Creates a tag.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
TagName String Yes vme

The name of the tag.

AccessKeyId String No xxx

The AccessKey ID provided to you by Alibaba Cloud.

Action String No CreateTag

The operation that you want to perform. Set the value to CreateTag.

Response parameters

Parameter Type Example Description
RequestId String 10A1AD70-E48E-476D-98D9-39BD92193837

The ID of the request.

TagId String xxxx

The ID of the tag.

Examples

Sample requests


http(s)://dm.aliyuncs.com/? Action=CreateTag
&TagName=vme
&<Common request parameters>

Sample success responses

XML format

<CreateTagResponse>
      <RequestId>10A1AD70-E48E-476D-98D9-39BD92193837</RequestId>
      <TagId>xxxx</TagId>
</CreateTagResponse>

JSON format

{
	"RequestId":"10A1AD70-E48E-476D-98D9-39BD92193837",
	"TagId":"xxxx"
}

Error codes

For a list of error codes, visit the API Error Center.