find routingPolicyRule
GET/v1/projects/:projectId/zones/:zoneName/routingpolicies/:routingPolicyId/rules
find routingPolicyRule
Request
Path Parameters
Project Identifier
Zone name
Query Parameters
Name of the resource.
Requested pagination of response. The parameter offset is the index of the first element to retrieve. Zero is the first element of the collection.
0
Possible values: >= 1
Requested pagination of response. The parameter limit is the maximum number of elements to retrieve (it can be greater than the actual available number of items).
100
Possible values: <= 100 characters
, Value must match regular expression -?[A-Za-z0-9]+(?:,[A-Za-z0-9]+)*
The list of field names to sort the result. Prefixing a field name with a "-" sign will indicate a descending order.
Header Parameters
Bearer access token authentication if you use this API through Orange Developer or Orange Developer Inside.
Your SIU token if you use this API through Orange Developer.
Your SIU Id if you use this API through Orange Developer Inside.
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 500
- 503
Ok
Response Headers
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
hRef to the Routing Policy rule details.
Name of the routing policy rule. Must be unique within routing policy.
Description of the routing policy rule.
List of Community Tags to match. Possible values: community tag or 'encapsulation:udp'
Possible values: <= 10
Match only if all Community Tags are present.
matchExtCommunityVpns object[]
Match only if all extended communities are present.
List of protocols to match.
Possible values: [bgpaas
, bgp-bb
, direct
, static-interface-route
, static-network-route
], <= 9
List of subnets to match (exact match only)
Possible values: <= 10
List of subnets to match (exact match or longer subnets)
Possible values: <= 10
Subnet to match list (longer subnets only)
Possible values: <= 10
List of Community Tags to set on the routes (this will replace the original list of Community Tags on the routes). NB: some Community Tags are protected and could be rejected. Possible values: community tag or ‘no-export’, ‘no-advertise’
Possible values: <= 10
List of Community Tags to add on the routes. NB: some Community Tags are protected and could be rejected. Possible values: community tag or ‘no-export’, ‘no-advertise’
Possible values: <= 10
List of Community Tags to remove from the routes (does not apply to the Community Tags added by the same rule). Possible values: community tag or ‘no-export’, ‘no-advertise’
Possible values: <= 10
setExtCommunityVpns object[]
addExtCommunityVpns object[]
removeExtCommunityVpns object[]
List of Autonomous Systems (2 or 4 bytes) to add at the beginning of the Autonomous System path list (AS append).
Possible values: <= 99
Local preference to set.
Possible values: <= 100000
MED to set
Possible values: <= 100000
Action on the flow
Possible values: [reject
, next
, accept
]
[
{
"hRef": "string",
"name": "string",
"description": "string",
"matchCommunityTags": [
"string"
],
"matchAllCommunityTags": true,
"matchExtCommunityVpns": [
{
"vpnName": "string",
"vnRole": "any-to-any"
}
],
"matchAllExtCommunityVpns": true,
"matchProtocols": [
"bgpaas"
],
"matchExactSubnetIps": [
"string"
],
"matchOrlongerSubnetIps": [
"0"
],
"matchLongerSubnetIps": [
"string"
],
"setCommunityTags": [
"string"
],
"addCommunityTags": [
"string"
],
"removeCommunityTags": [
"string"
],
"setExtCommunityVpns": [
{
"vpnName": "string",
"vnRole": "any-to-any"
}
],
"addExtCommunityVpns": [
{
"vpnName": "string",
"vnRole": "any-to-any"
}
],
"removeExtCommunityVpns": [
{
"vpnName": "string",
"vnRole": "any-to-any"
}
],
"expandAutonomousSystems": [
"string"
],
"setLocalPreference": 0,
"setMed": 0,
"action": "reject"
}
]
Bad Request
Request is not valid
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Unauthorized
Credentials are missing
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Forbidden
Valid credentials but not enough privileges to perform the operation
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Not Found
Unknown resource or service
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Method Not Allowed
Operation is not valid according to the state of the resource
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Internal Server Error
Unexpected error, please contact support
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Service Unavailable
Service probably in maintenance. Please retry later.
- application/json
- Schema
- Example (auto)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
- curl
- python
- go
- nodejs
- php
- java
- CURL