@itentialopensource/adapter-viptela
Version:
This adapter integrates with system Viptela
271 lines • 6.55 kB
JSON
{
"id": "viptela",
"type": "Viptela",
"properties": {
"host": "localhost",
"port": 443,
"choosepath": "",
"base_path": "/dataservice",
"version": "",
"cache_location": "none",
"encode_pathvars": true,
"encode_queryvars": true,
"save_metric": false,
"stub": true,
"protocol": "https",
"authentication": {
"auth_method": "request_token",
"username": "username",
"password": "password",
"token": "token",
"token_timeout": 180000,
"token_cache": "local",
"invalid_token_error": 401,
"auth_field": [
"header.headers.Cookie",
"header.headers.X-XSRF-TOKEN",
"header.headers.Authorization"
],
"auth_field_format": [
"JSESSIONID={token}",
"{tokenp2}",
"Basic {b64}{username}:{password}{/b64}"
],
"auth_logging": false,
"client_id": "",
"client_secret": "",
"grant_type": "",
"sensitive": [],
"sso": {
"protocol": "",
"host": "",
"port": 0
},
"multiStepAuthCalls": [
{
"name": "",
"requestFields": {},
"responseFields": {},
"successfullResponseCode": 200
}
]
},
"healthcheck": {
"type": "none",
"frequency": 60000,
"query_object": {},
"addlHeaders": {}
},
"throttle": {
"throttle_enabled": false,
"number_pronghorns": 1,
"sync_async": "sync",
"max_in_queue": 1000,
"concurrent_max": 1,
"expire_timeout": 0,
"avg_runtime": 200,
"priorities": [
{
"value": 0,
"percent": 100
}
]
},
"request": {
"number_redirects": 0,
"number_retries": 3,
"limit_retry_error": 0,
"failover_codes": [],
"attempt_timeout": 10000,
"global_request": {
"payload": {},
"uriOptions": {},
"addlHeaders": {},
"authData": {}
},
"healthcheck_on_timeout": false,
"return_raw": false,
"archiving": false,
"return_request": false
},
"proxy": {
"enabled": false,
"host": "",
"port": 1,
"protocol": "http",
"username": "",
"password": ""
},
"ssl": {
"ecdhCurve": "",
"enabled": true,
"accept_invalid_cert": true,
"ca_file": "",
"key_file": "",
"cert_file": "",
"secure_protocol": "",
"ciphers": ""
},
"mongo": {
"host": "",
"port": 0,
"database": "",
"username": "",
"password": "",
"replSet": "",
"db_ssl": {
"enabled": false,
"accept_invalid_cert": false,
"ca_file": "",
"key_file": "",
"cert_file": ""
}
},
"devicebroker": {
"enabled": true,
"getDevice": [
{
"path": "/device",
"method": "GET",
"query": {},
"body": {},
"headers": {},
"handleFailure": "ignore",
"requestFields": {},
"responseDatakey": "data",
"responseFields": {
"name": "{host-name}",
"ostype": "{device-type}",
"ostypePrefix": "viptela-",
"port": "{platform}",
"ipaddress": "{system-ip}"
}
}
],
"getDevicesFiltered": [
{
"path": "/device",
"method": "GET",
"pagination": {
"offsetVar": "",
"limitVar": "",
"incrementBy": "limit",
"requestLocation": "query"
},
"query": {},
"body": {},
"headers": {},
"handleFailure": "ignore",
"requestFields": {},
"responseDatakey": "data",
"responseFields": {
"name": "{host-name}",
"ostype": "{device-type}",
"ostypePrefix": "viptela-",
"port": "{platform}",
"ipaddress": "{system-ip}",
"id": "{deviceId}"
}
}
],
"isAlive": [
{
"path": "/device",
"method": "GET",
"query": {},
"body": {},
"headers": {},
"handleFailure": "ignore",
"requestFields": {},
"responseDatakey": "data",
"responseFields": {
"status": "{reachability}",
"statusValue": "reachable"
}
}
],
"getConfig": [
{
"path": "/device/config",
"method": "GET",
"query": {
"deviceId": "{id}"
},
"body": {},
"headers": {
"Accept": "*/*"
},
"handleFailure": "ignore",
"requestFields": {
"id": "{id}"
},
"responseDatakey": "",
"responseFields": {}
}
],
"getCount": [
{
"path": "/device",
"method": "GET",
"query": {},
"body": {},
"headers": {},
"handleFailure": "ignore",
"requestFields": {},
"responseDatakey": "data",
"responseFields": {}
}
]
},
"cache": {
"enabled": false,
"entities": [
{
"entityType": "device",
"frequency": 3600,
"flushOnFail": false,
"limit": 1000,
"retryAttempts": 5,
"sort": true,
"populate": [
{
"path": "/device",
"method": "GET",
"pagination": {
"offsetVar": "",
"limitVar": "",
"incrementBy": "limit",
"requestLocation": "query"
},
"query": {},
"body": {},
"headers": {},
"handleFailure": "ignore",
"requestFields": {},
"responseDatakey": "data",
"responseFields": {
"name": "{host-name}",
"ostype": "{device-type}",
"ostypePrefix": "viptela-",
"port": "{platform}",
"ipaddress": "{system-ip}",
"id": "{deviceId}"
}
}
],
"cachedTasks": [
{
"name": "",
"filterField": "",
"filterLoc": ""
}
]
}
]
}
},
"groups": [],
"brokers": [],
"logLevel": "none",
"timeout": 60000
}