Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Latest commit

 

History

History
59 lines (40 loc) · 2.61 KB

File metadata and controls

59 lines (40 loc) · 2.61 KB

VSphereAutomation::VAPI::MetadataMetamodelResourceModelApi

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}.

list

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}.

Example

# 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

Parameters

Name Type Description Notes
resource_id String Identifier of the resource type.

Return type

VapiMetadataMetamodelResourceModelListResult

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json