Policy
Policy rule action
patch/policy/rule
Request
- Base URL/v1 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared. Required headers: X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
scope'fed' | 'local'
When set to fed, fed policy rules get created. When set to local or no query string, local policy rules get created.
Headers
X-Auth-Tokenstring required
Request body
Example request
{
"move": {
"id": 10005
},
"insert": {
"rules": [
{
"id": 10002,
"comment": "a rule",
"from": "nv.iperfc",
"to": "Host:10.2.127.3",
"ports": "any",
"action": "allow",
"applications": [
"DNS"
],
"learned": true,
"created_timestamp": 1516563263,
"last_modified_timestamp": 1516573243,
"cfg_type": "ground"
}
]
},
"rules": [
{
"id": 10002,
"comment": "a rule",
"from": "nv.iperfc",
"to": "Host:10.2.127.3",
"ports": "any",
"action": "allow",
"applications": [
"DNS"
],
"learned": true,
"created_timestamp": 1516563263,
"last_modified_timestamp": 1516573243,
"cfg_type": "ground"
}
]
}Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.