Resource Center/Network Service/Network Service Operations/VPC Firewall Operations
POSTVPC Firewall OperationsSince 4.4.0SynchronousAuth Required
CreateFirewallRuleFromConfigFile
CreateFirewallRuleFromConfigFile
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.
ruleInfoStringRequiredThe firewall rule information.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The tag UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/vpcfirewalls/rules/from-file
/zstack/v1/vpcfirewalls/rules/from-file
Request Example
curl -X POST 'http://{host}/zstack/v1/vpcfirewalls/rules/from-file' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"ruleInfo":"<ruleInfo>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": [ { "name": "name", "actionType": "drop", "description": "example-des", "enableDefaultLog": false, "isDefault": false, "isApplied": true } ] }Change History
This API has no change history records yet.
