Deleting a Security Group
Function
This API is used to delete a security group.
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 the required permissions in Permissions and Supported Actions.
- 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:delete
Write
securityGroup *
- g:EnterpriseProjectId
- vpc:SecurityGroupId
- g:ResourceTag/<tag-key>
-
-
URI
DELETE /v1/{project_id}/security-groups/{security_group_id}
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
security_group_id |
Yes |
Specifies the security group ID, which uniquely identifies the security group. |
|
project_id |
No |
Specifies the project ID. For details about how to obtain a project ID, see Obtaining a Project ID. |
Request Parameters
None
Example Request
DELETE https://{Endpoint}/v1/{project_id}/security-groups/0c4a2336-b036-4fa2-bc3c-1a291ed4c431
Response Parameters
None
Example Response
None
Status Code
See Status Codes.
Error Code
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