Resource Center/Network Resource/Policy Routing Operations
POSTPolicy Routing OperationsSince 3.6.0SynchronousAuth Required
CreatePolicyRouteRuleSet
CreatePolicyRouteRuleSet
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 resource name.
descriptionStringOptional. The detailed description of the resource.
vRouterUuidStringRequiredThe vRouter UUID.
typeStringOptional. The type.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/policy-routes/rulesets
/zstack/v1/policy-routes/rulesets
Request Example
curl -X POST 'http://{host}/zstack/v1/policy-routes/rulesets' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","vRouterUuid":"<vRouterUuid>","type":"<type>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "name", "description": "example-des", "rules": [ { "uuid": "74cc4fed46f633f2a618b0e06d122377", "ruleNumber": 1.0, "ruleSetUuid": "00693e31fa3b3e3fba017ed714c02cdf", "tableUuid": "b273e0c273c03559872efa272194492c", "destIp": "192.168.1.1", "sourceIp": "10.0.0.1", "destPort": "22", "sourcePort": "80", "protocol": "tcp", "state": "enable" } ] } }Change History
This API has no change history records yet.
