Create Security Policy Rule (v2.0)
POST/v2.0/api/tenants/:tenant_id/securitypolicysets/:policy_set_id/securitypolicyrules
Create a new tenant security policy rule.
Request
Path Parameters
The tenant ID.
ID of the security policy set.
- application/json
Body
Details of the policy rule to be created
The action taken for traffic matching this rule. It determine how the traffic from the specified source zone to the specified destination zone should respond.
The security policy rule application ID.
The description of the security policy rule. Max size = 256.
The destination filter IDs. Max list of prefix IDs is 16.
The destination zone IDs. Max list of zone IDs is 16.
The security policy rule, if disabled.
The security policy rule ID.
The name of the security policy rule. Max size = 128.
The source filter IDs. Max list of IDs is 16.
The source zone IDs. Max list of IDs is 16.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
The action taken for traffic matching this rule. It determine how the traffic from the specified source zone to the specified destination zone should respond.
The security policy rule application ID.
The description of the security policy rule. Max size = 256.
The destination filter IDs. Max list of prefix IDs is 16.
The destination zone IDs. Max list of zone IDs is 16.
The security policy rule, if disabled.
The security policy rule ID.
The name of the security policy rule. Max size = 128.
The source filter IDs. Max list of IDs is 16.
The source zone IDs. Max list of IDs is 16.
{
"action": "string",
"application_ids": [
"string"
],
"destination_filter_ids": [
"string"
],
"destination_zone_ids": [
"string"
],
"disabled_flag": true,
"id": "string",
"name": "string",
"source_filter_ids": [
"string"
],
"source_zone_ids": [
"string"
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "SECURITY_POLICYRULE_DUPLICATE_POLICYRULE"
},
{
"code": "SECURITY_POLICYRULE_NAME_REQD"
},
{
"code": "SECURITY_POLICYRULE_NAME_EXCEEDS_LIMIT"
},
{
"code": "SECURITY_POLICYRULE_DESCRIPTION_INVALID"
},
{
"code": "JSON_SCHEMA_MISMATCH"
},
{
"code": "SECURITY_POLICYRULE_INVALID_POLICYSET"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "SECURITY_POLICYRULE_INVALID_POLICYRULE"
}
]
}
}