The
source
service provides
operations to manage the sources of metamodel 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 metamodel information. The generated file can be registered as a source of metadata.
The metamodel file contains all the data present in the interface definition files. Each metamodel file contains data about one component element. When a metamodel file is added as a source, each source contributes only one component element's metadata.
Metamodel metadata can also be discovered from a remote server that supports the metamodel metadata services (see com.vmware.vapi.metadata.metamodel). 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
GET /com/vmware/vapi/metadata/metamodel/source |
POST /com/vmware/vapi/metadata/metamodel/source?~action=list |
Returns the identifiers of the metadata sources currently registered with the infrastructure.
- Request:
-
- Representations:
- Parameters:
None
- Response:
-
- Representations:
{
"value": [
"obj-103",
"obj-103"
]
}
<?xml version="1.0" ?> <ns0:List-Result xmlns:ns0="http://vmware.com/vapi/metadata/metamodel/source" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <value-array> <array-item>obj-103</array-item> <array-item>obj-103</array-item> </value-array> </ns0:List-Result>
|
- Parameters:
Name |
Type |
Required |
Description |
result |
List<ID> |
Yes |
The list of identifiers for metadata sources currently registered. Id of type com.vmware.vapi.metadata.metamodel.source. |
- Errors:
-
None