VMware

Service Namespace

The Service namespace provides commands to retrieve metamodel information about a service element in the interface definition language. A service is a logical grouping of operations that operate on some entity. A service element describes a service. It contains operation elements that describe the operations grouped in the service. It also contains structure elements and enumeration elements corresponding to the structures and enumerations defined in the service.

List of commands:



List Command

dcli com vmware vapi metadata metamodel service list

Description

Returns the identifiers for the service elements that are currently registered with the infrastructure. The list of service elements is an aggregate list of all the service elements contained in all the package elements.

Example

dcli com vmware vapi metadata metamodel service list


Get Command

dcli com vmware vapi metadata metamodel service get

Description

Retrieves information about the service element corresponding to service-id. The ServiceInfo contains the metamodel information for the operation elements, structure elements and enumeration elements contained in the service element.

Options

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

Example

dcli com vmware vapi metadata metamodel service get --service-id testId