Resource Center/Network Service/Network Service Operations/Security Group Operations
PUTSecurity Group OperationsSince 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 security group UUID.
Body Fields
paramsObjectRequiredRequest body parameter object.
descriptionStringOptional. The detailed description of the rule.
remoteSecurityGroupUuidStringOptional. The remote security group UUID.
actionStringOptional. The default action of the rule.
stateStringOptional. The rule status.
priorityIntegerOptional. The rule priority.
protocolStringOptional. The protocol type.
srcIpRangeStringOptional. The range of the source IP of the rule.
dstIpRangeStringOptional. The range of the target IP of the rule.
dstPortRangeStringOptional. The range of the target port of the rule.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
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 '{"params":{"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.
