DeletePrivateAccessTag
Deletes a private access tag from your Alibaba Cloud account.
Operation description
You cannot delete a tag if it is referenced by an application, a workshop, or a policy. For more information, see:
ListPrivateAccessApplications: Queries a list of private access applications.
ListPrivateAccessTags: Queries a list of private access tags.
ListPrivateAccessPolices: Queries a list of private access policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
csas:DeletePrivateAccessTag |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TagId |
string |
Yes |
The ID of the private access tag. You can obtain the tag ID from the responses of the following operations:
|
tag-d3f64e8bdd4a**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
FD724DBC-CD76-5235-BF76-59C51B73296D |
Examples
Success response
JSON format
{
"RequestId": "FD724DBC-CD76-5235-BF76-59C51B73296D"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | Tag.UsedByApplication | The tag is used by application. | |
| 500 | Tag.UsedByPolicy | The tag is used by policy. | |
| 500 | Tag.UsedByWorkshop | The tag is used by workshop. | |
| 500 | Tag.DefaultCannotDelete | The default tag cannot be deleted. | |
| 404 | Tag.NotFound | The tag is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.