Resource Center/Network Service/Network Service Operations/VPC Firewall Operations
PUTVPC Firewall OperationsSince 4.0.0SynchronousAuth Required
UpdateFirewallIpSetTemplate
UpdateFirewallIpSetTemplate
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 template.
Body Fields
updatefirewallipsettemplateObjectRequiredupdatefirewallipsettemplate request body object.
nameStringOptional. The name of the template.
sourceValueStringOptional.
destValueStringOptional.
typeIpSetTypeRequired类型。
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/vpcfirewalls/ipset/templates/{uuid}/actions
/zstack/v1/vpcfirewalls/ipset/templates/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/vpcfirewalls/ipset/templates/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatefirewallipsettemplate":{"name":"<name>","sourceValue":"<sourceValue>","destValue":"<destValue>","type":"<type>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "ipset-template", "sourceValue": "192.168.1.2", "destValue": "192.168.1.1,10.0.0.1/24", "type": "ip" } }Change History
This API has no change history records yet.
