All Products
Search
Document Center

Server Load Balancer:UntagResources

Last Updated:Mar 02, 2026

Removes tags from a resource.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

slb:UntagResources

update

acl

acs:slb:{#regionId}:{#accountId}:acl/{#aclId}

certificate

acs:slb:{#regionId}:{#accountId}:certificate/{#certificateId}

loadbalancer

acs:slb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}

  • slb:tag
None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID of the Classic Load Balancer (CLB) instance.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou

ResourceType

string

Yes

The type of resource. Valid values:

  • instance: CLB instance

  • certificate: certificate

  • acl: access control list (ACL)

  • listener: listener

  • vservergroup: vServer group

  • masterslaveservergroup: primary/secondary server group

instance

All

boolean

No

Specifies whether to remove all tags from the specified resource. This parameter takes effect only if TagKey.N is empty.

Valid values: true and false.

true

ResourceId

array

Yes

The ID of the resource. You can specify at most 20 resources.

Note

Set ResourceId of the listener to LoadBalancerId_Listener protocol_Port. Set LoadBalancerId to the ID of the CLB instance, and Port to the listener port.

lb-bp16qjewdsunr41m1****

string

No

The ID of the resource. You can specify at most 20 resources.

Note

Set ResourceId of the listener to LoadBalancerId_Listener protocol_Port. Set LoadBalancerId to the ID of the CLB instance, and Port to the listener port. Example: lb-bp1snb10sbml4****_http_80.

lb-bp16qjewdsunr41m1****

TagKey

array

No

The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.

The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with aliyun or acs:.

Note

If you do not specify TagKey, all tags are removed from the instance.

FinanceDept

string

No

The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string.

The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with aliyun or acs:.

Note

If you do not specify TagKey, all tags are removed from the instance.

FinanceDept

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

C46FF5A8-C5F0-4024-8262-B16B******

Examples

Success response

JSON format

{
  "RequestId": "C46FF5A8-C5F0-4024-8262-B16B******"
}

Error codes

HTTP status code

Error code

Error message

Description

400 TagTypeNotSame The category of tags in the same request must be the same.
400 ResourceNotExist %s.
400 DeniedForNoneTagCreator %s.
400 DeniedForScopeNotEqual %s.
400 InvalidParam.ResourceType The specified ResourceType is invalid.
400 InvalidParam.TagKey The specified TagKey is invalid.
400 InvalidParam.TagValue The specified TagValue is invalid.
400 InvalidParam.TagKeyOrValue The specified TagKey or TagValue is invalid.
400 InvalidParam.TagOwnerUid The specified TagOwnerUid is invalid.
400 InvalidParam.TagOwnerBid The specified TagOwnerBid is invalid.
400 MissingParam.TagOwnerUid The parameter TagOwnerUid is required.
400 MissingParam.TagOwnerBid The parameter TagOwnerBid is required.
400 InvalidParameter.RegionId The specified RegionId does not exist.
400 MissingParam.ResourceId The parameter ResourceId is required.
400 DeniedForOperateCustomTag %s.
400 Duplicate.TagKey The param TagKey has duplicate value.
400 SizeLimitExceeded.ResourceId The maximum size of ResourceId is exceeded.
400 SizeLimitExceeded.TagKey The maximum size of TagKey is exceeded.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.