Get Additional Attribute Metadata
/rest/{versionId}/configuration/device-configs/{deviceId}/element-types/attribute-metadata
Request
Response
200 Response
400 Response
401 Response
403 Response
404 Response
500 Response
Examples
Examples of Accessing the API
See Authenticate page to acquire a token.
The following example shows how to use curl to get Additional Attribute Metadata.
curl -X POST \
-d @request.json \
-H @auth_header.txt \
"https://<tenant-url>/<tenant-name>/osdmc/ums/rest/<versionId>/configuration/device-configs/<deviceId>/element-types/attribute-metadata"The following example shows how to use Python to get Additional Attribute Metadata.
import requests
import json
headers = {
"Accept": "application/json",
"Authorization": "Bearer <auth-token>"
}
with open("request.json") as f: data = json.load(f)
url = "https://<tenant-url>/<tenant-name>/osdmc/ums/rest/<versionId>/configuration/device-configs/<deviceId>/element-types/attribute-metadata"
resp = requests.post(url, headers=headers, data=data)Note:
Use the Get a List of Devices Associated with Config Manager API to find the deviceId parameter.Example of the Request Body
The following shows an example of the contents of the request file sent as the request body.
{
"elementTypePath": "accessControl",
"attributeName": "maxMsgThreshold"
}
Example of the Response Body
The following example shows the contents of the response body.
{
"cliName": "maximum-signal-threshold",
"defaultValue": "0",
"key": false,
"name": "maxMsgThreshold",
"required": false,
"validNumericRange": [
"0-4294967295"
],
"valueType": "NUMERIC"
}
Example 2 of Accessing this API
This example shows getting additional attribute metadata.
curl -X POST \
-d @request.json \
-H @auth_header.txt \
"https://<tenant-url>/<tenant-name>/osdmc/ums/rest/<versionId>/configuration/device-configs/<deviceId>/element-types/attribute-metadata"The following shows an example of the request body.
{
"elementTypePath": "mediaPolicy/tosSetting",
"attributeName": "mediaType"
}
The following shows an example response.
{
"cliName": "media-type",
"defaultValue": "",
"key": true,
"name": "mediaType",
"required": true,
"valueType": "STRING"
}