Deleting a security group rule

This section explains how to delete a security group rule.

Tip: Deleting a security group does not delete its security group rules. Follow the procedure below to delete a security group rule.
  1. Set the environment variable below as follows:
    $ TMP_SGR_ID=<secGroupRuleIdTargetedForDeletion>
  2. Execute the following API:
    $ curl -i -Ss $NETWORK/v2.0/security-group-rules/$TMP_SGR_ID -X DELETE \
    -H "X-Auth-Token: $OS_AUTH_TOKEN"
    HTTP/1.1 204 No Content
    Server:  Apache
    Date:  Www, DD MMM yyyy hh:mm:ss GMT
    x-compute-request-id:  req-<reqId>
    Cache-Control:  no-cache
    X-Request-Id:  <xReqId>
    X-Runtime:  <runtime>