Resource: global_config
PS global configuration.
http://{device}/api/cmc.pathrules/1.0/global_config
{ "path_selection": boolean, "path_selection_push": boolean }
Property Name | Type | Description | Notes |
---|---|---|---|
global_config | <object> | PS global configuration. | |
global_config.path_selection | <boolean> | This is the field for enabling/disabling PS. | Optional; |
global_config.path_selection_push | <boolean> | This is the field for enabling/disabling PS push. | Optional; |
global_config.anyOf[0] | <object> | Required properties: [path_selection]; | |
global_config.anyOf[0].<prop> | <any> | Optional; | |
global_config.anyOf[1] | <object> | Required properties: [path_selection_push]; | |
global_config.anyOf[1].<prop> | <any> | Optional; |
Links
global_config: set
Update the global Path Selection flag.
PUT http://{device}/api/cmc.pathrules/1.0/global_configRequest Body
Provide a global_config data object.
Response BodyReturns a global_config data object.
global_config: get
Get the value of global Path Selection flag.
GET http://{device}/api/cmc.pathrules/1.0/global_configResponse Body
Returns a global_config data object.
Resource: path_rules
Path Selection Rules collection
http://{device}/api/cmc.pathrules/1.0/path_rules{?uplink_type_id,apptag_id,app_id}
[ { "id": identifier, "position": position, "app_id": identifier, "apptag_id": identifier, "is_default": boolean, "uplinks": [ { "uplink_type_id": integer, "uplink_dscp": dscp, "uplink_secured": boolean } ], "is_backhaul": boolean } ]
Property Name | Type | Description | Notes |
---|---|---|---|
path_rules | <array of <object>> | Path Selection Rules collection | |
path_rules[items] | <object> | ||
path_rules[items].id | <identifier> | Read-only; | |
path_rules[items].position | <position> | Position of the path rule | |
path_rules[items].app_id | <identifier> | Read-only; | |
path_rules[items].apptag_id | <identifier> | Read-only; | |
path_rules[items].is_default | <boolean> | Read-only; Optional; | |
path_rules[items].uplinks | <array of <object>> | Optional; | |
path_rules[items].uplinks[items] | <object> | ||
path_rules[items].uplinks[items]. uplink_type_id |
<integer> | Optional; | |
path_rules[items].uplinks[items]. uplink_dscp |
<dscp> | DSCP integer constrained type | |
path_rules[items].uplinks[items]. uplink_secured |
<boolean> | Optional; | |
path_rules[items].is_backhaul | <boolean> | Read-only; Optional; | |
path_rules[items].anyOf[0] | <object> | Required properties: [id]; | |
path_rules[items].anyOf[0].<prop> | <any> | Optional; | |
path_rules[items].anyOf[1] | <object> | Required properties: [position, id]; | |
path_rules[items].anyOf[1].<prop> | <any> | Optional; | |
path_rules[items].anyOf[2] | <object> | Required properties: [apptag_id, position, id]; | |
path_rules[items].anyOf[2].<prop> | <any> | Optional; | |
path_rules[items].anyOf[3] | <object> | Required properties: [app_id, position, id]; | |
path_rules[items].anyOf[3].<prop> | <any> | Optional; |
Links
path_rules: create
Create a new Path Selection Rule instance
POST http://{device}/api/cmc.pathrules/1.0/path_rules{?uplink_type_id,apptag_id,app_id}Request Body
Provide a path_rule data object.
Response BodyReturns a path_rule data object.
path_rules: clear
Delete all the Path Selection Rule instances
POST http://{device}/api/cmc.pathrules/1.0/path_rules/clearRequest Body
Do not provide a request body.
Response BodyOn success, the server does not provide any body in the responses.
path_rules: get
Get a list of references to Path Rule instances
GET http://{device}/api/cmc.pathrules/1.0/path_rules{?uplink_type_id,apptag_id,app_id}Response Body
Returns a path_rules data object.
path_rules: set
Update the positions of the Path Selection Rules
PUT http://{device}/api/cmc.pathrules/1.0/path_rules{?uplink_type_id,apptag_id,app_id}Request Body
Provide a path_rules data object.
Response BodyReturns a path_rules data object.
Resource: path_rule
Path-Selection Rule object
http://{device}/api/cmc.pathrules/1.0/path_rules/items/{id}
{ "id": identifier, "app_id": multiple, "apptag_id": multiple, "position": position, "uplinks": [ { "uplink_type_id": integer, "uplink_dscp": dscp, "uplink_secured": boolean } ], "default_action": integer, "is_default": boolean, "is_backhaul": boolean }
Property Name | Type | Description | Notes |
---|---|---|---|
path_rule | <object> | Path-Selection Rule object | Required properties: [default_action]; |
path_rule.id | <identifier> | Read-only; | |
path_rule.app_id | <multiple> | Application ID. Only one of Application/ApplicationTag/group ID can be specified, not all. | Optional; |
path_rule.app_id.anyOf[0] | <integer> | ||
path_rule.app_id.anyOf[1] | <null> | ||
path_rule.apptag_id | <multiple> | Application tag ID. Only one of Application/ApplicationTag/group ID can be specified, not all. | Optional; |
path_rule.apptag_id.anyOf[0] | <integer> | ||
path_rule.apptag_id.anyOf[1] | <null> | ||
path_rule.position | <position> | Position of the path rule | |
path_rule.uplinks | <array of <object>> | Uplinks specified for the rule | Optional; |
path_rule.uplinks[items] | <object> | Required properties: [uplink_type_id, uplink_dscp]; | |
path_rule.uplinks[items].uplink_type_id | <integer> | ||
path_rule.uplinks[items].uplink_dscp | <dscp> | DSCP integer constrained type | |
path_rule.uplinks[items].uplink_secured | <boolean> | Optional; | |
path_rule.default_action | <integer> | Default action to be taken in case all the links are down. | |
path_rule.is_default | <boolean> | Is the path-selection rule a default rule? | Read-only; Optional; |
path_rule.is_backhaul | <boolean> | Is the path-selection rule a backhaul site only rule? | Read-only; Optional; |
Links
path_rule: get
Retrieve a data representation of a Path Selection Rule.
GET http://{device}/api/cmc.pathrules/1.0/path_rules/items/{id}Response Body
Returns a path_rule data object.
path_rule: set
Replace the data representation for a Path Selection Rule.
PUT http://{device}/api/cmc.pathrules/1.0/path_rules/items/{id}Request Body
Provide a path_rule data object.
Response BodyReturns a path_rule data object.
path_rule: delete
Delete an Path Selection Rule instance
DELETE http://{device}/api/cmc.pathrules/1.0/path_rules/items/{id}Response Body
On success, the server does not provide any body in the responses.
Relations
path_rule: default_action
Related resource VariablesRelated var | Data value for replacement |
---|---|
id | 0/default_action |
Resource: default_actions
Default action resource for the Path Selection rule
http://{device}/api/cmc.pathrules/1.0/default_actions
[ { "id": identifier, "name": string } ]
Property Name | Type | Description | Notes |
---|---|---|---|
default_actions | <array of <items>> | Default action resource for the Path Selection rule | |
items | <object> | Required properties: [name]; | |
items.id | <identifier> | Read-only; | |
items.name | <string> |
Links
default_actions: get
GET http://{device}/api/cmc.pathrules/1.0/default_actionsResponse Body
Returns a default_actions data object.
Resource: default_action
http://{device}/api/cmc.pathrules/1.0/default_actions/items/{id}
{ "id": identifier, "name": string }
Property Name | Type | Description | Notes |
---|---|---|---|
default_action | <object> | Required properties: [name]; | |
default_action.id | <identifier> | Read-only; | |
default_action.name | <string> |
Links
default_action: get
GET http://{device}/api/cmc.pathrules/1.0/default_actions/items/{id}Response Body
Returns a default_action data object.
Relations
Resource: pathrule_status
Path rule status of a site.
http://{device}/api/cmc.pathrules/1.0/status{?site_id}
{ "status": string, "rules": [ { "id": identifier, "status": string } ], <prop>: any }
Property Name | Type | Description | Notes |
---|---|---|---|
pathrule_status | <object> | Path rule status of a site. | Read-only; Required properties: [status]; |
pathrule_status.status | <string> | Read-only; | |
pathrule_status.rules | <array of <object>> | Read-only; Optional; | |
pathrule_status.rules[items] | <object> | Read-only; | |
pathrule_status.rules[items].id | <identifier> | Read-only; | |
pathrule_status.rules[items].status | <string> | Read-only; Optional; | |
pathrule_status.<prop> | <any> | Read-only; Optional; |
Links
pathrule_status: get
GET http://{device}/api/cmc.pathrules/1.0/status{?site_id}Response Body
Returns a pathrule_status data object.
Type: identifier
integer
Property Name | Type | Description | Notes |
---|---|---|---|
identifier | <integer> | Read-only; |
Type: generic_name
Case insensitive name
string
Property Name | Type | Description | Notes |
---|---|---|---|
generic_name | <string> | Case insensitive name |
Type: dscp
DSCP integer constrained type
integer
Property Name | Type | Description | Notes |
---|---|---|---|
dscp | <integer> | DSCP integer constrained type | Range: -1 to 255; |
Type: position
Position of the path rule
integer
Property Name | Type | Description | Notes |
---|---|---|---|
position | <integer> | Position of the path rule | Minimum 1; |
Type: uplinks
Uplink template ID and name
[ { "uplink_type_id": integer, "name": string, "dscp": dscp, "network_security_level": integer } ]
Property Name | Type | Description | Notes |
---|---|---|---|
uplinks | <array of <object>> | Uplink template ID and name | |
uplinks[items] | <object> | ||
uplinks[items].uplink_type_id | <integer> | Optional; | |
uplinks[items].name | <string> | Optional; | |
uplinks[items].dscp | <dscp> | DSCP integer constrained type | |
uplinks[items].network_security_level | <integer> | Network security level | Optional; Range: 0 to 1; |