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

Latest commit

 

History

History
112 lines (78 loc) · 4.02 KB

File metadata and controls

112 lines (78 loc) · 4.02 KB

VSphereAutomation::VAPI::MetadataMetamodelServiceOperationApi

All URIs are relative to https://<vcenter>/rest

Method HTTP request Description
get GET /com/vmware/vapi/metadata/metamodel/service/operation/id:{service_id}/id:{operation_id} Retrieves the metamodel information about an operation element corresponding to {@param.name operationId} contained in the service element corresponding to {@param.name serviceId}.
list GET /com/vmware/vapi/metadata/metamodel/service/operation Returns the identifiers for the operation elements that are defined in the scope of {@param.name serviceId}.

get

VapiMetadataMetamodelServiceOperationResult get(service_id, operation_id)

Retrieves the metamodel information about an operation element corresponding to {@param.name operationId} contained in the service element corresponding to {@param.name serviceId}.

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::MetadataMetamodelServiceOperationApi.new
service_id = 'service_id_example' # String | Identifier of the service element.
operation_id = 'operation_id_example' # String | Identifier of the operation element.

begin
  #Retrieves the metamodel information about an operation element corresponding to {@param.name operationId} contained in the service element corresponding to {@param.name serviceId}.
  result = api_instance.get(service_id, operation_id)
  p result
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling MetadataMetamodelServiceOperationApi->get: #{e}"
end

Parameters

Name Type Description Notes
service_id String Identifier of the service element.
operation_id String Identifier of the operation element.

Return type

VapiMetadataMetamodelServiceOperationResult

Authorization

api_key

HTTP request headers

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

list

VapiMetadataMetamodelServiceOperationListResult list(service_id)

Returns the identifiers for the operation elements that are defined in the scope of {@param.name serviceId}.

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::MetadataMetamodelServiceOperationApi.new
service_id = 'service_id_example' # String | Identifier of the service element.

begin
  #Returns the identifiers for the operation elements that are defined in the scope of {@param.name serviceId}.
  result = api_instance.list(service_id)
  p result
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling MetadataMetamodelServiceOperationApi->list: #{e}"
end

Parameters

Name Type Description Notes
service_id String Identifier of the service element.

Return type

VapiMetadataMetamodelServiceOperationListResult

Authorization

api_key

HTTP request headers

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