Create Association between Element and Security Zone (v2.0)
POST/v2.0/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/securityzones
Create an association between the element and the security zone.
Request
Path Parameters
The tenant ID.
The ID of the site.
The ID of the element.
- application/json
Body
Details of the element security zone to be created
The ID of the security zone.
The element security zones interface IDs.
The element security zones LAN network IDs.
The site ID configured for the element security zone.
Tenant Id: NotNull Digits(fraction = 0, integer = 20, TENANT_ID_INVALID_0001)
The element security zones WAN interface IDs.
The element security zones WAN overlay IDs.
The element security zone ID.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
The ID of the security zone.
The element security zones interface IDs.
The element security zones LAN network IDs.
The site ID configured for the element security zone.
Tenant Id: NotNull Digits(fraction = 0, integer = 20, TENANT_ID_INVALID_0001)
The element security zones WAN interface IDs.
The element security zones WAN overlay IDs.
The element security zone ID.
{
"id": "string",
"interface_ids": [
"string"
],
"lannetwork_ids": [
"string"
],
"site_id": "string",
"tenant_id": "string",
"waninterface_ids": [
"string"
],
"wanoverlay_ids": [
"string"
],
"zone_id": "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": "ELEMENT_SECURITYZONE_ELEMENT_NOT_FOUND"
},
{
"code": "ELEMENT_SECURITYZONE_ZONE_NOT_FOUND"
},
{
"code": "ELEMENT_SECURITYZONE_INVALID_ELEMENT_ROLE"
},
{
"code": "ELEMENT_SECURITYZONE_DUPLICATE_INTERFACE_IDS"
},
{
"code": "ELEMENT_SECURITYZONE_INTERFACE_ID_NOT_FOUND"
},
{
"code": "ELEMENT_SECURITYZONE_DUPLICATE_LANNETWORK_IDS"
},
{
"code": "ELEMENT_SECURITYZONE_LANNETWORK_ID_NOT_FOUND"
},
{
"code": "ELEMENT_SECURITYZONE_DUPLICATE_WANOVERLAY_IDS"
},
{
"code": "ELEMENT_SECURITYZONE_WANOVERLAY_ID_NOT_FOUND"
},
{
"code": "ELEMENT_SECURITYZONE_INVALID_INTERFACE_IDS"
},
{
"code": "ELEMENT_SECURITYZONE_ZONEID_REQUIRED"
},
{
"code": "ELEMENT_SECURITYZONE_INVALID_LANNETWORK_IDS"
},
{
"code": "ELEMENT_SECURITYZONE_INVALID_WANINTERFACE_IDS"
},
{
"code": "ELEMENT_SECURITYZONE_INVALID_WANOVERLAY_IDS"
}
]
}
}