MetadataSourceCreateSpec
The SourceCreateSpec structure contains the registration information for a metadata source.
Properties
Connection information of the remote server. This should be of the format http(s)://IP:port/namespace. The remote server should contain the services in com.vmware.vapi.metadata.metamodel package. It could expose metamodel information of one or more components.
This field is optional and it is only relevant when the value of SourceCreateSpec.type is REMOTE.
English language human readable description of the source.
Absolute file path of the metamodel metadata file that has the metamodel information about one component element. This field is optional and it is only relevant when the value of SourceCreateSpec.type is FILE.
The SourceType enumerated type defines the types of sources for API metadata. You specify the type of source when adding a metadata source to a metadata service.
FILE : Indicates the metadata source is a JSON file.
REMOTE : Indicates the metadata source is a remote server.
Possible values are: FILE , REMOTE
JSON Example
{
"description": "string",
"type": "FILE"
}