All URIs are relative to https://<vcenter>/rest
| Method | HTTP request | Description |
|---|---|---|
| list | GET /com/vmware/vapi/metadata/metamodel/resource/model | Returns the set of identifiers for the structure elements that are models for the resource type corresponding to {@param.name resourceId}. <p> The {@link vapi.metadata.metamodel.Structure} {@term service} provides {@term operations} to retrieve more details about the structure elements corresponding to the identifiers returned by this {@term operation}. |
VapiMetadataMetamodelResourceModelListResult list(resource_id)
Returns the set of identifiers for the structure elements that are models for the resource type corresponding to {@param.name resourceId}.
The {@link vapi.metadata.metamodel.Structure} {@term service} provides {@term operations} to retrieve more details about the structure elements corresponding to the identifiers returned by this {@term operation}.
# load the gem
require 'vsphere-automation-vapi'
# setup authorization
VSphereAutomation::Configuration.new.tap do |config|
# Configure API key authorization: api_key
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
end
api_instance = VSphereAutomation::VAPI::MetadataMetamodelResourceModelApi.new
resource_id = 'resource_id_example' # String | Identifier of the resource type.
begin
#Returns the set of identifiers for the structure elements that are models for the resource type corresponding to {@param.name resourceId}. <p> The {@link vapi.metadata.metamodel.Structure} {@term service} provides {@term operations} to retrieve more details about the structure elements corresponding to the identifiers returned by this {@term operation}.
result = api_instance.list(resource_id)
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling MetadataMetamodelResourceModelApi->list: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| resource_id | String | Identifier of the resource type. |
VapiMetadataMetamodelResourceModelListResult
- Content-Type: Not defined
- Accept: application/json