Get the value of a device attribute

Use this API to get the value of a specific attribute of a device.

Resource Information

Method

URL

Required authentication

GET

/V1/CMDB/Devices/Attributes

Yes

Parameters

Name

Description

Token*required
(header)

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

attributeName
(query)

The name of the attribute that you want to get value. If not specified, return all attributes and their values.

hostname*required
(query)

The hostname of a device.

Response

Parameter

Type

Description

Example

Attributes

Object

An attribute set.

{
    "hostname""BJ-R1",
    "attributes": {
        "mgmtIP""172.24.10.2"
    },
    "statusCode"790200,
    "statusDescription""Success."
}

attributeName

string

The name of the attribute with its value returned.

hostname

string

The hostname of the returned device.

statusCode

integer

The returned status code of executing the API.

statusDescription

string

The explanation of the status code.