Summary
Creates a policy.
Description
Creates a new policy document.
Route
POST /policy-manager/policies
Roles
admin
other
readonly
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
policyDetails |
object |
yes |
Details of policy to be created |
Copied to Clipboard
{
"policyDetails": {
"name": "officia aute minim",
"policyType": "sunt",
"description": "sunt dolore in reprehenderit adipisicing",
"addressType": "IPv4",
"rules": []
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"policyDetails": {
"title": "policyDetails",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"policyType": {
"type": "string"
},
"addressType": {
"type": "string",
"enum": [
"IPv4",
"IPv6",
"Mixed"
]
},
"rules": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"name",
"policyType"
]
}
},
"required": [
"policyDetails"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Response object with the document that was created. |
Copied to Clipboard
{
"status": "failure",
"n": -40917433
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"success",
"failure"
]
},
"n": {
"type": "integer"
},
"doc": {
"type": "object"
}
}
}