List Metamodel Resource Model
DescriptionReturns the set of identifiers for the structure elements that are models for the resource type corresponding to resourceId. The Structure service provides operations to retrieve more details about the structure elements corresponding to the identifiers returned by this operation.
Request
URLURL
https://{api_host}/rest/com/vmware/vapi/metadata/metamodel/resource/model
Query Parameters
Query Parameters
string
resource_id
Required
Identifier of the resource type.
The parameter must be an identifier for the resource type: com.vmware.vapi.resource.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
MetadataMetamodelResourceModelListResponseBody
of type application/json
The set of identifiers for the models that are associated with the resource type in resourceId. The result will contain identifiers for the resource type: com.vmware.vapi.structure.
{
"value": [
"string"
]
}
array of
string
value
Optional
The set of identifiers for the models that are associated with the resource type in resourceId. The result will contain identifiers for the resource type: com.vmware.vapi.structure.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/vapi/metadata/metamodel/resource/model?resource_id=string
Errors
404
com.vmware.vapi.std.errors.not_found : if the resource type associated with resourceId does not exist.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.