Use this API to create a customized module attribute for certain device types.
Method |
URL |
Required authentication |
POST |
/V1/CMDB/Modules/Attributes |
Yes |
Name |
Description |
---|---|
Token*required |
Place the token received from the API Log in to get an authentication token. |
Request*required |
The body contains the following parameters: ▪attributeName*(string): the name of the module attribute to be created. ▪attributeDisplayName (string): the display name of the attribute in the Device Details pane of NetBrain system. ▪deviceTypeNames*(string): specify the device types that the created attribute applies to. If set to null, it will apply to all device types. See Device Type Name and ID for available device types. ▪dataType*(string): the supported data types of the attribute, such as string. ▪subDataType (string): this parameter is only available to the attribute in list or table type. ▪isFullSearch*(boolean): set whether to use the attribute as an index in full scope search, including extended search and default search. Example: { |
Parameter |
Type |
Description |
Example |
---|---|---|---|
statusCode |
integer |
The returned status code of executing the API. |
{ |
statusDescription |
string |
The explanation of the status code. |