vapi metadata metamodel resource model: list

Returns the set of identifiers for the structure elements that are models for the resource type corresponding to resource_id.

The vapi.metadata.metamodel.structure service provides operations to retrieve more details about the structure elements corresponding to the identifiers returned by this operation.

Request:

HTTP request

GET https://{server}/rest/com/vmware/vapi/metadata/metamodel/resource/model

?resource_id=obj-103

Request Query Parameters:

Name Type Description
bold = required
resource_id string Identifier of the resource type.

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        "obj-103",
        "obj-103"
    ]
}

Response Type:

Name Type Description
bold = required
value string[] The set of identifiers for the models that are associated with the resource type in resource_id.

Errors:

HTTP Status Code Type Description
404 not_found if the resource type associated with resource_id does not exist.