Network Management/Network Services/Security Group
PUTSecurity GroupSince 4.7.21SynchronousAuth Required
ChangeSecurityGroupRule
ChangeSecurityGroupRule
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe UUID of the security group rule, uniquely identifying the resource
Body Fields
descriptionStringThe rule description
remoteSecurityGroupUuidStringThe remote security group UUID for inter-group policies
actionStringThe default action of the rule
stateStringThe state of the rule
priorityIntegerThe priority of the rule
Responses
Endpoint
PUT/zstack/v1/security-groups/rules/{uuid}/actions
/zstack/v1/security-groups/rules/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/security-groups/rules/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"description":"<description>","remoteSecurityGroupUuid":"<remoteSecurityGroupUuid>","action":"<action>","state":"<state>","priority":1,"protocol":"<protocol>","srcIpRange":"<srcIpRange>","dstIpRange":"<dstIpRange>","dstPortRange":"<dstPortRange>","systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "68e4f4b48b51369c8c2ada5cb6c2c3c3", "securityGroupUuid": "c80ad90499213d3b9989afdbfe498390", "type": "ingress", "protocol": "tcp", "state": "enable", "srcIpRange": "10.10.10.1-10.10.10.10", "dstPortRange": "2001-2023", "action": "RETURN", "createDate": "Sep 15, 2023 9:57:59 AM", "lastOpDate": "Sep 15, 2023 9:57:59 AM" } }Change History
This API has no change history records yet.
