Deleting security group rules

DELETE /v2.0/security-group-rules/{security_group_rule_id}

Delete a rule from a security group.

Source: https://docs.openstack.org/api-ref/network/v2/index.html#delete-security-group-rule

Request

Parameters

Name In Type Description
security_group_rule_id path string The ID of the security group rule.

Example

# curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:9696/v2.0/security-group-rules/5e1786ee-59fc-43ef-8bc6-01d2001c8b59

Response

Status codes

Success

Code Reason
204 - No Content The server has fulfilled the request.

Error

Code Reason
401 - Unauthorized

User must authenticate before making a request.

404 - Not Found

The requested resource could not be found.

412 - Precondition Failed

The server does not meet one of the preconditions that the requester put on the request header fields.