Create IP Community List (v2.0)
POST/v2.0/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/routing_ipcommunitylists
Create an IP community list.
Request
Path Parameters
ID of the tenant.
The ID of the site.
The ID of the element.
- application/json
Body
Details of the community list to be created
- Array [
- ]
as_path_regex_list ASPathRegex[]
The AS Path Regex expression list.
The AS Path Regex expression.
The order of the AS Path Regex.
The value true or false if AS path regex is allowed.
The value true or false for auto-generated access/community lists.
The description of the access/community list. Max size = 1024.
The ID of the access/community list.
The name of the access/community list. Max size = 128.
A information field that can be added to identify the access/community list. Maximum 10 unique tags of length 1024 each are allowed.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
The value true or false for auto-generated IP community lists.
community_list RoutingIPCommunity[]
The details of the IP community lists.
The community string. Max size = 256.
The permit of the IP community sctring = Permit or Deny.
The description of the IP community list. Max size = 1024.
The ID of the IP community list.
The name of the IP community list. Max size = 128.
A information field that can be added to identify the IP community list. Maximum 10 unique tags of length 1024 each are allowed.
{
"auto_generated": true,
"community_list": [
{
"community_str": "string",
"permit": true
}
],
"id": "string",
"name": "string",
"tags": [
"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_NOT_FOUND"
},
{
"code": "ELEMENT_NOT_ASSIGNED_TO_SITE"
},
{
"code": "NOT_SUPPORTED_BY_ELEMENT"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_COMMUNITY_LIST_NAME"
},
{
"code": "MAX_LIMIT_FOR_COMMUNITY_LIST_EXCEEDS"
},
{
"code": "COMMUNITY_LIST_ALREADY_DEFINED"
}
]
}
}