All Products
Search
Document Center

Cloud Enterprise Network:UntagResources

Last Updated:Aug 07, 2025

Remove tags from resources.

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 support 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

cen:UntagResources

update

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

ResourceType

string

Yes

Resource type. Valid values:

Cen: Cloud Enterprise Network (CEN).

BandwidthPackage: Bandwidth package.

TransitRouter: Transit router.

TransitRouterVpcAttachment: VPC attachment.

TransitRouterVbrAttachment: VBR attachment.

TransitRouterPeerAttachment: Inter-region attachment.

TransitRouterVpnAttachment: VPN attachment.

TransitRouterRouteTable: Route table.

Flowlog: Flow log.

TransitRouterMulticastDomain: Multicast domain.

cen

All

boolean

No

Specifies whether to delete all tags. Valid values:

  • true: Yes

  • false (default): No

Note

This parameter takes effect only when the TagKey.N parameter is empty.

false

ResourceId

array

Yes

Resource ID. The value of N ranges from 1 to 50.

cen-7qthudw0ll6jmc****

string

No

Resource ID. The value of N ranges from 1 to 50.

cen-7qthudw0ll6jmc****

TagKey

array

No

Tag key.

A tag key can contain up to 64 characters. It cannot start with aliyun or acs:, and cannot contain http:// or https://.

If you specify multiple tag keys, the logical relation among these tag keys is OR. Valid values of N: 1 to 20.

FinanceDept

string

No

Tag key.

A tag key can contain up to 64 characters. It cannot start with aliyun or acs:, and cannot contain http:// or https://.

If you specify multiple tag keys, the logical relation among these tag keys is OR. Valid values of N: 1 to 20.

Name

RegionId

string

No

The ID of the region.

This parameter is not required when the resource type is Cen or BandwidthPackage. For all other resource types, this parameter is required.

cn-hangzhou

Response parameters

Parameter

Type

Description

Example

object

The returned result.

RequestId

string

The request ID.

C46FF5A8-C5F0-4024-8262-B16B639225A0

Examples

Success response

JSON format

{
  "RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0\t"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidTagKey The tag keys are not valid. The error message returned because the specified tag key is invalid.
400 InvalidTagValue The tag values are not valid. The error message returned because the specified tag value is invalid.
400 MissingParam %s
400 InvalidInstanceType.NotFound The instance type is not found The error message returned because the specified instance type does not exist.
400 InvalidInstanceIds.NotFound The instanceIds are not found The error message returned because the specified instance does not exist.
400 Forbidden.TagKeys The request do not allow to operate the tag keys The error message returned because you cannot manage the specified tag key.
400 QuotaExceeded.TagNum Custom Tags quota exceeded The error message returned because the number of tags has reached the upper limit.
400 InvalidTagScope.NotFound The tag scope is not found The error message returned because the specified tag scope is invalid.
400 Forbidden.NotAllowedCategary The System tag is not valid The error message returned because you cannot configure system tags.
400 SizeLimitExceeded.ResourceIdNum The ResourceIds parameter's number is exceed , Valid : 20
400 IllegalParam.Region The specified region is invalid.
400 InvalidParameter Invalid parameter. The error message returned because the parameter is set to an invalid value.
400 Unauthorized The AccessKeyId is unauthorized. The error message returned because you do not have the permissions to perform this operation.
400 InvalidParameter.TagKeyOrAll The specified parameter TagKey or All is invalid. The specified parameter TagKey or All is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.