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

Converting Global IDs to UCMDB IDs

This call converts Global IDs to UCMDB IDs.

URL

/multipleCmdb/convertToUcmdbIds

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 Strings ]

Example:

[ "40967247acdd869fa52d1f42e4eeb59a", "48981ed7ff877904bbbeb7d5c72069fa"]

Note String represents the Global IDs.

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 RTSM ID of a CI.

Note String represents the Global IDs.

Error response

Code: 400

Content:

{
  error: [string]
} 

Notes

The user needs access to SDK permission.