Resource Center/Network Service/Network Service Operations/VPC Firewall Operations
POSTVPC Firewall OperationsSince 3.6.0SynchronousAuth Required
CreateVpcFirewall
CreateVpcFirewall
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.
vpcUuidStringRequiredVPC路由器UUID
descriptionStringOptional. The detailed description of the resource.
nameStringRequiredThe resource name.
resourceUuidStringOptional.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/vpcfirewalls
/zstack/v1/vpcfirewalls
Request Example
curl -X POST 'http://{host}/zstack/v1/vpcfirewalls' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"vpcUuid":"<vpcUuid>","description":"<description>","name":"<name>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "name", "refs": [ { "id": 1.0, "ruleSetUuid": "06fc56b0483a3bf487b9cdfeaa6c4be2", "l3NetworkUuid": "27e1a95342083ce4a790d4f9dcf7f9bd", "packetsForwardType": "in", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } ], "description": "example-des" } }Change History
This API has no change history records yet.
