Deleting a Tag from a Security Group
Function
This API is used to delete a security group tag. This API is idempotent. If the key to be deleted does not exist, error 404 is reported. The key cannot be empty or an empty string.
Debugging
You can debug this API through automatic authentication in API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
vpc:securityGroups:deleteTags
Tagging
securityGroup *
-
g:EnterpriseProjectId
-
g:ResourceTag/<tag-key>
-
vpc:SecurityGroupId
- vpc:securityGroupTags:delete
-
-
g:TagKeys
-
URI
DELETE /v2.0/{project_id}/security-groups/{security_group_id}/tags/{key}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
key |
Yes |
String |
Key value |
|
project_id |
Yes |
String |
Project ID |
|
security_group_id |
Yes |
String |
Security Group ID |
Request Parameters
None
Response Parameters
Status code: 204
The response to the request is normal. For more status codes, see Status Codes.
None
Example Requests
Deleting a Security Group Tag
DELETE https://{Endpoint}/v2.0/{project_id}/security-groups/{security_group_id}/tags/{key}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
The response to the request is normal. For more status codes, see Status Codes. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot