Resource Center/Network Service/Network Service Operations/VPC Firewall Operations
POSTVPC Firewall OperationsSince 3.6.0SynchronousAuth Required
AttachFirewallRuleSetToL3
AttachFirewallRuleSetToL3
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
l3UuidStringRequiredNo description provided.
ruleSetUuidStringRequired规则设置UUID。
Body Fields
paramsObjectRequiredRequest body parameter object.
vpcFirewallUuidStringRequiredNo description provided.
forwardStringRequiredNo description provided.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/vpcfirewalls/ruleSets/{ruleSetUuid}/l3networks/{l3Uuid}
/zstack/v1/vpcfirewalls/ruleSets/{ruleSetUuid}/l3networks/{l3Uuid}
Request Example
curl -X POST 'http://{host}/zstack/v1/vpcfirewalls/ruleSets/{ruleSetUuid}/l3networks/{l3Uuid}' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"vpcFirewallUuid":"<vpcFirewallUuid>","forward":"<forward>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "id": 1.0, "ruleSetUuid": "91e9fed42a113c0395a81920c4179a43", "l3NetworkUuid": "ad2bbeb82973334fa0ab243f52088fea", "packetsForwardType": "in", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } }Change History
This API has no change history records yet.
