Device Restore Status
This API fetches the status of the device restore.
Before you begin
- ADC > Backup & Restore > Restore
Request Structure
| Endpoint: | /adc-inventory-get-device-restore-status |
| Type: | GET |
| Sample URL: | To understand the elements of the sample URL, click here. |
| Headers: | |
| Content-Type: | application/json |
| Name | Description |
|---|---|
| sessionId
|
(Mandatory) Specifies the session ID of the user session received
after login. Type: String Constraints: The session ID is used when username and password are not provided. |
| username
|
(Mandatory) Specifies the login username used to access the
AppViewX. Type: String Constraints: The username, along with the password, is used when the session ID is not provided. |
| password
|
(Mandatory) Specifies the login password used to access the
AppViewX. Type: String Constraints: The password, along with the username, is used when the session ID is not provided. |
| Content-Type
|
(Mandatory) Specifies the format of the data in the
payload. Type: String Constraints: The value of this param must be ‘application/json’. |
| gwsource
|
(Mandatory) Specifies the source from which the request is
triggered. The options are:
|
| payload
|
(Mandatory) Contains all the params to be sent in the request body for the post request. See Payload section for more details. |
Payload
| Name | Description |
|---|---|
| backupName
|
(Mandatory) Name of the backup. |
| deviceName
|
(Mandatory) Name of the device. |
Response Structure
- Status Code: 200 OK
- Message: Successful
- Headers:
- Content-Type: application/json
| Name | Description |
|---|---|
| response
|
Success message with device name or failure description in case of error. |
| message
|
Success message or failure description in case of error. |
| appStatusCode
|
Application-specific status code for the response. Will be non-null for failure response. |
| tags | More info in case of failure response. |
Status Codes
| HTTP Status Code | appStatusCode | Message | Possible remediation |
|---|---|---|---|
| 200 Accepted | - | null | - |
| 400 Bad Request | ADC_INV_2006 | Invalid input. | Check if a non-null/non-empty value is given under field ‘payload’. |
Sample Request/Response
Use Case
Get the status of device restore.
Request URL
https://<IP/HostName/TenantName>:<GWPORT>/avxapi/adc-inventory-get-device-restore-status
{
}{
"response": [
{
"id": "68791c3fb83ca219e42fd69c",
"logs": [
{
"name": "Create",
"time": 1752767551339,
"messages": [
{
"time": 1752767551000,
"message": "Device Restore is triggered for the device : 192.168.150.82"
}
],
"workOrderId": 1,
"mongoId": "68791c3fb83ca219e42fd69c"
},
{
"name": "BackUp",
"time": 1752767551554,
"messages": [
{
"time": 1752767551000,
"message": "Storing Running Configuration"
}
],
"mongoId": "68791c3fb83ca219e42fd69c"
},
{
"name": "Upload",
"time": 1752767631419,
"messages": [
{
"time": 1752767738000,
"message": "Configuration for restore has been uploaded by the user"
}
],
"mongoId": "68791c3fb83ca219e42fd69c"
},
{
"name": "Install",
"time": 1752767738619,
"messages": [
{
"time": 1752767738000,
"message": "Device Restore for the workorder DR-1 performed on the device 192.168.150.82 is Successful."
}
],
"mongoId": "68791c3fb83ca219e42fd69c"
}
],
"deviceName": "192.168.150.82",
"status": "Request Closed",
"deviceId": "683583fa9d3ae02294dcd655"
}
],
"message": null,
"appStatusCode": null,
"tags": null,
"headers": null
}
Reference
- IP/HostName/TenantName: Replace with the actual IP address, hostname,
or tenant name based on the specific configuration in AppViewX.
- IP: A unique identifier assigned to each device connected to
a computer network that uses the Internet Protocol for communication
The IP address will be included in the endpoint URL for an on-prem deployment.
- HostName: A human-readable label assigned to a device (host)
on a network
The hostname will be included in the endpoint URL for an on-prem deployment.
- TenantName: An identifier label for a tenant given to
indicate which tenant's data the API request will
access/modify
The tenant name will be included in the endpoint URL for a SaaS deployment.
- IP: A unique identifier assigned to each device connected to
a computer network that uses the Internet Protocol for communication
- GWPORT: AppViewX gateway port
A gateway port refers to a network port through which data is sent and received to communicate with a gateway in an on-prem deployment.
Example: 31443
- avxapi: Path parameter value (static) that is part of the endpoint's URL
- Endpoint: Endpoint of the API, for example: execute-hook
- gwsource: Source or origin of a gateway, for example: external.