Get the value of a module attribute

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

Resource Information

Method

URL

Required authentication

GET

/V1/CMDB/Modules/Attributes

Yes

Parameters

Name

Description

Token*required
(header)

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

moduleName*required
(query)

The module name of a device.

hostname*required
(query)

The hostname of a device.

attributeName
(query)

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

Response

Parameter

Type

Description

Example

hostname

string

The hostname of the returned device.

{
  "statusCode"790200,
  "statusDescription""success",
  "hostname""Bos-Core-1",
  "attributeName""XX",
  "moduleAttributeValue""XX"
}

attributeName

string

The name of the attribute.

moduleAttributeValue

integer

The value of the attribute.

statusCode

integer

The returned status code of executing the API.

statusDescription

string

The explanation of the status code.