Query Vc Inventory Full Path
Api to query full inventory path for vCenter objects
Request
URI
POST
https://{api_host}/tca/vim/api/v1/orgs/{vimInventoryOrgId}/vims/{vimId}/inventory/vc/path/query
COPY
Path Parameters
string
vimInventoryOrgId
Required
vimInventoryOrgId
string
vimId
Required
vimId
Request Body
Query inventory full path
fullInventoryPathRequest of type(s) application/json
Required
{
"filter": {
"cloud": {
"endpointId": "string"
},
"entities": [
{
"moids": [
"vm-1442",
"vm-316",
"vm-317"
],
"motype": "string"
}
]
}
}
object
filter
Optional
filter
Responses
200
Full inventory path was sent successfully, look for error in response for missing moids
Returns fullInventoryPathResponse of type(s) application/json
{
"items": [
{
"motype": "string",
"items": [
{
"moid": "string",
"fullInventoryPath": "/pod4-dc/vm/Automation-BYOI-Templates/photon-3-kube-v1.17.16+vmware.2"
}
]
}
],
"errors": [
"string"
]
}
array of object
items
Optional
items
array of string
errors
Optional
Will have errors about moids or parent object not found in vc inventory
400
Returns BadRequest of type(s) application/json
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
500
Returns InternalServerError of type(s) application/json
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
On This Page
Org Aware Vc Inventory Operations
GET
Get Storage Policies
POST
Query Vc Inventory Full Path