Delete Device

Delete a device from inventory.

URL: /adc-device

Type: Delete

Parameters

ParamType 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
Query Param adc-device** Name of the device String

** - Mandatory value

Possible Response Message and Code

HTTP Code Description Response Message
200 OK Device(s) deleted successfully
400 Bad request All the given devices are invalid
400 Bad request Invalid Device Name. The device name cannot be null or empty

Sample Request/Response

Use Case

Delete the device with name ADC_GTM_1 and device with the name ADC_GTM_2.

Request URL

http://appviewxapi.com/avxapi/adc-device? deviceName=ADC_GTM_1,ADC_GTM_2&gwkey=f000ca01&gwsource=external

Request Payload

NA

Response

{

"response": "Device(s) deleted succesfully.",

"message": "Device(s) deleted succesfully.",

"appStatusCode": null,

"tags": {

"Deleted Device(s)": [

"ADC_GTM_1",

“ADC_GTM_2”

],

"Invalid Device(s)": [

]

}

}