VMware

Source Namespace

The Source namespace provides commands to manage the sources of privilege metadata information. The interface definition language infrastructure provides tools to generate various kinds of metadata in JSON format from the interface definition files and additional properties files. One of the generated files contains privilege information. The generated file can be registered as a source of metadata. The privilege file contains all the data present in the interface definition files. Each privilege file contains data about one component element. When a privilege file is added as a source, each source contributes only one component element's metadata. Privilege metadata can also be discovered from a remote server that supports the privilege metadata namespaces (see privilege). Since multiple components can be registered with a single metadata server, when a remote server is registered as a source, that source can contribute more than one component.

List of commands:



Create Command

dcli com vmware vapi metadata privilege source create

Description

Creates a new metadata source. Once the server validates the registration information of the metadata source, the privilege metadata is retrieved from the source. This populates elements in all the namespaces defined in privilege namespace.

Options

Option Name Type Required Description
source‑id string Yes metadata source identifier. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source.
spec‑description string Yes English language human readable description of the source.
spec‑type string Yes Type of the metadata source. Valid values are: {FILE, REMOTE}
spec‑filepath string No Absolute file path of the metamodel metadata file that has the metamodel information about one component element. This option is optional and it is only relevant when the value of type is FILE.
spec‑address string No Connection information of the remote server. This should be of the format http(s)://IP:port/namespace. The remote server should contain the namespaces in metamodel namespace. It could expose metamodel information of one or more components. This option is optional and it is only relevant when the value of type is REMOTE.

Example

dcli com vmware vapi metadata privilege source create --source-id testId --spec-description testString --spec-type test


Delete Command

dcli com vmware vapi metadata privilege source delete

Description

Deletes an existing privilege metadata source from the infrastructure.

Options

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

Example

dcli com vmware vapi metadata privilege source delete --source-id testId


Get Command

dcli com vmware vapi metadata privilege source get

Description

Retrieves information about the metadata source corresponding to source-id.

Options

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

Example

dcli com vmware vapi metadata privilege source get --source-id testId


List Command

dcli com vmware vapi metadata privilege source list

Description

Returns the identifiers of the metadata sources currently registered with the infrastructure.

Example

dcli com vmware vapi metadata privilege source list


Reload Command

dcli com vmware vapi metadata privilege source reload

Description

Reloads the privilege metadata from all the metadata sources or of a particular metadata source if source-id is specified.

Options

Option Name Type Required Description
source‑id string No Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source. If unspecified, all the metadata sources are reloaded.

Example

dcli com vmware vapi metadata privilege source reload


Fingerprint Command

dcli com vmware vapi metadata privilege source fingerprint

Description

Returns the aggregate fingerprint of metadata from all the metadata sources or from a particular metadata source if source-id is specified.

Options

Option Name Type Required Description
source‑id string No Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source. If unspecified, the fingerprint of all the metadata sources is returned.

Example

dcli com vmware vapi metadata privilege source fingerprint