Create Security Policy Set (v2.0)
POST/v2.0/api/tenants/:tenant_id/securitypolicysets
Create a new tenant security policy set.
Request
Path Parameters
tenant_id stringrequired
The tenant ID.
- application/json
Body
Details of the policy set to be created
clone_from string
Policy sets cloned from existing policy sets.
description
The description of the security policy set. Max size = 256.
id string
The security policy set ID.
name stringrequired
The name of the security policy set. Max size = 128.
policyrule_order string[]
The order for the execution of the policy rule.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
description
The description of the security policy set. Max size = 256.
id string
The security policy set ID.
name stringrequired
The name of the security policy set. Max size = 128.
policyrule_order string[]
The order for the execution of the policy rule.
{
"id": "string",
"name": "string",
"policyrule_order": [
"string"
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
code string
The error code.
message string
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "JSON_SCHEMA_MISMATCH"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "SECURITY_POLICYSET_INVALID_NAME"
},
{
"code": "SECURITY_POLICYSET_NAME_REQUIRED"
},
{
"code": "SECURITY_POLICYSET_INVALID_DESCRIPTION"
}
]
}
}
Loading...