Add Device

Add an ADC device.

URL: /adc-device-add

Type: POST

Parameters

Param Type Name Description Field type
Header sessionId ** Session Id received after login string
Query gwkey Tenant Key. Needed only in case of multitenant installations string
Query gwsource** Source from which the request is triggered (Eg: web, external) String

** - Mandatory value

Possible Response Message and Code

HTTP Code Description Response Message
202 Accepted The device has been successfully added and configuration parse is triggered.
409 Conflict Device(s) Already Exists
400 Bad request Validation error [NOTE: Mandatory parameters will be dynamic basic based on vendor and version]

Sample Request/Response

Use Case

Add an F5 device with IP address 192.168.112.92 with both LTM and GTM modules with user name and password with the name f5-v13-112.92.com.

Request URL

http://appviewxapi.com/avxapi/ /adc-device-add/gwkey=f000ca01&gwsource=external

Request Payload

{

"payload": {

"name": "f5-v13-112.92.com",

"communicationAddressType": "ip",

"ip": "192.168.112.92",

"vendor": "F5",

"module": [

"LTM",

"BIG-IP DNS"

],

"credentialType": "Manual Entry",

"userName": "admin",

"password": "YXBwdGFnQDEyMw=="

}

}

Response

{

"response": "Device is added to the inventory.",

"message": "Device has been successfully added and configuration parse is triggered.",

"appStatusCode": null,

"tags": null,

"headers": null

}