Use this API to get the configuration of a device.

Resource Information

Method

URL

Required authentication

GET

/V1/CMDB/DataEngine/DeviceData/Configuration

Yes

Parameter

Name

Description

Token*required
(header)

Place the token received from the API Log in to get an authentication token.

hostname*required
(query)

The hostname of the device that you want to get the configuration.

Response

Parameter

Type

Description

Example

configuration

string

The full context of the configuration of the device.

{'configuration': '!\r\n! This config file is generated via SNMP\r\n!\r\n! 
vendor,model,sysoid:**Cisco**2611**1.3.6.1.4.1.9.1.186**\r\n!\r\n
hostname NY_POPP\r\n!\r\n\r\n\r\n
interface Ethernet0/0\r\n description "Con-Catalyst 3/13"\r\n 
ip address 172.24.31.65 255.255.255.192\r\n!\r\n\r\n
interface Tu2147483647\r\n description DMVPN shutdown Interface testing\r\n 
ip address 172.16.33.4 255.255.255.248\r\n!\r\n\r\n',
'time''2018-07-17T08:55:28Z'
'statusCode'790200
'statusDescription''Success.'}

time

string

The last update time of the device configuration.

statusCode

integer

The returned status code of executing the API.

statusDescription

string

The explanation of the status code.