Resource Center/Network Service/Network Service Operations/VPC Firewall Operations
POSTVPC Firewall OperationsSince 4.0.0SynchronousAuth Required
CreateFirewallIpSetTemplate
CreateFirewallIpSetTemplate
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe name of the template.
sourceValueStringOptional.
destValueStringOptional.
typeIpSetTypeRequired类型。
resourceUuidStringOptional. The UUID of the template.
tagUuidsListOptional. The user tags.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/vpcfirewalls/ipset/templates
/zstack/v1/vpcfirewalls/ipset/templates
Request Example
curl -X POST 'http://{host}/zstack/v1/vpcfirewalls/ipset/templates' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","sourceValue":"<sourceValue>","destValue":"<destValue>","type":"<type>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"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.
