VMware

Model Namespace

The Model namespace provides commands to retrieve information about models. A structure is used as a model if it is used for persisting data about an entity. Some of the fields in the model structure are also used for creating indexes for querying. One or more services can operate on the same resource type. One or more services can provide the model structure for an entity of this resource type. Using Model namespace you can retrieve the list of all the structure elements that are model structures for a given resource type.

List of commands:



List Command

dcli com vmware vapi metadata metamodel resource model list

Description

Returns the set of identifiers for the structure elements that are models for the resource type corresponding to resource-id. The Structure namespace provides commands to retrieve more details about the structure elements corresponding to the identifiers returned by this command.

Options

Option Name Type Required Description
resource‑id string Yes Identifier of the resource type. The parameter must be an identifier for the resource type: com.vmware.vapi.resource.

Example

dcli com vmware vapi metadata metamodel resource model list --resource-id testId