Adds tags to an SLB instance.


Before you call this API, note the following limits:

  • You can add up to 10 tags to each SLB instance.
  • You can add up to five pairs of tags at a time.
  • All the tags and keys added to an SLB instance must be unique.
  • If you add a tag of which the key is the same as that of an existing tag, but the value is different, the new tag overwrites the existing one.


Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes AddTags

The name of this action.

Value: AddTags

LoadBalancerId String Yes 139a00604ad-cn-east-hangzhou-

The ID of the SLB instance.

RegionId String Yes cn-hangzhou

The ID of the region to which the SLB instance belongs.

Tags String Yes [{"TagKey":"Key1","TagValue":"Value1"}{"TagKey":"Key2","TagValue":"Value2"}]

A list of tags to be added.

Response parameters

Parameter Type Example value Description
RequestId String 365F4154-92F6-4AE4-92F8-7FF34B540710

The ID of the request.


Request example

http(s)://[Endpoint]/? Action=AddTags

Response examples

XML format


JSON format


Error codes

See common error codes.