Skip to main content

DescribeTags

Description

query tags that you can use. You can query tags based on the resource type, resource ID, tag key, or tag value. The filter conditions are in a logical AND (& amp;& amp;) relationship, and the tags that meet all the filter conditions are returned.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeTags

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
Tag.N.valueBODYstringNoFinancethe tag value of the resource. description to improve compatibility, it is recommended that you try to use the Tag.N.Value parameter.
Tag.N.keyBODYstringNoFinancethe tag key of the resource. Description To improve compatibility, we recommend that you use the Tag.N.Key parameter as much as possible.
Tag.N.KeyBODYstringNoFinancethe tag key of the resource. The value range of n is 1~20. Once the value is passed in, an empty string is not allowed. it can be up to 64 characters in length. it cannot start with aliyun or acs: and cannot contain http:// or https://.
PageSizeBODYintegerNo50the number of rows per page set during paging query. maximum value: 100 default value: 50
PageNumberBODYintegerNo1page number of the label list. starting value: 1 default value: 1
ResourceIdBODYstringNos-946ntx4wrresource ID bound by the tag. For example, when the resource type (ResourceType) is an instance (instance), the resource ID can be understood as the instance ID.
regionIdBODYstringYesNo sample value for this parameter.region id
Tag.N.ValueBODYstringNoFinancethe tag value of the resource. The value range of n is 1~20. Once the value is passed in, it can be an empty string. it can be up to 128 characters in length. it cannot start with aliyun or acs: and cannot contain http:// or https://.
ResourceTypeBODYstringNosnapshotresource type. Value range: disk instance image securitygroup snapshot The above values are all lowercase.
RegionIdBODYstringYescn-qingdao-env17-d01region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: DescribeTaskAttribute

DescribeTaskAttribute

Description

call DescribeTaskAttribute to query details of asynchronous tasks.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeTaskAttribute

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
TaskIdBODYstringYest-taskidtask ID. You can call the DescribeTasks to view the task ID.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env17-d01region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}