Administer > RTSM > RTSM Developer Reference > Using APIs > HPE Universal CMDB REST API > Converting UCMDB IDs to Global Ids

Converting UCMDB IDs to Global Ids

This call converts UCMDB IDs to Global IDs.

URL

/multipleCmdb/convertToGlobalIds

Method

POST

Headers

Required:

Authorization: Bearer <token>

Note <token> is the token that is returned by the Authentication call.

Example:

Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Njc5ODQ5MTcsImN1c3RvbWVyIjoxLCJ1c2VybmFtZSI6InN5c2FkbWluIn0.Ph8WHtzvpvfuH1j0CtwHqyBhX1uLlfhr0eQQ7m0_gT0

Request type

JSON

Response type

JSON

URL Parameters

Required: None

Optional: None

Payload

[ list of ucmdb_id ]

Example:

[ "40967247acdd869fa52d1f42e4eeb59a", "48981ed7ff877904bbbeb7d5c72069fa"]

Data Types:

[ucmdb_id]

The string that represents the UCMDB ID of a CI.

Success response

Code: 200

Content:

{
"ids": [
{
ucmdbId: [ucmdb_id],
globalId: [String]
}, ...
]
}

Example:

Code: 200

Content:

{
 "ids": [
 {
 "ucmdbId": "4dd87eb2bba2cf59a177662dbb0e7a44",
 "globalId": "4dd87eb2bba2cf59a177662dbb0e7a44"
 },
 {
 "ucmdbId": "445519e389143825ad01aeccbf3f50ca",
 "globalId": "445519e389143825ad01aeccbf3f50ca"
 }
 ]
}

Data Types:

[ucmdb_id]

The string that represents the UCMDB ID of a CI.

Error response

Code: 400

Content:

{
  error: [string]
} 

Notes

The user needs access to SDK permission.