Updated on 2025-10-23 GMT+08:00

Deleting a Security Group Rule

Function

You can call this API to delete a security group rule that is no longer used.

Calling Method

For details, see Calling APIs.

URI

DELETE /v3/{project_id}/vpc/security-group-rules/{security_group_rule_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

  • Definition: Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

  • Range: None

security_group_rule_id

Yes

String

  • Definition: ID of a security group rule. You can call the API Querying Security Group Rules to obtain the ID of the target security group rule, and then use this API to delete the security group rule.

  • Range: None

Request Parameters

None

Response Parameters

Status code: 204

Normal response to the DELETE operation. For more status codes, see Status Codes.

None

Example Requests

Delete the security group rule whose ID is f626eb24-d8bd-4d26-ae0b-c16bb65730cb.

DELETE https://{Endpoint}/v3/{project_id}/vpc/security-group-rules/f626eb24-d8bd-4d26-ae0b-c16bb65730cb

Example Responses

None

Status Codes

Status Code

Description

204

Normal response to the DELETE operation. For more status codes, see Status Codes.

Error Codes

See Error Codes.