The Ruby gem for the vSphere VAPI API
- API version: 2.0.0
- Package version: 0.4.7
Add this line to your application's Gemfile:
gem 'vsphere-automation-vapi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vsphere-automation-vapi
Please follow the installation procedure and then run the following code:
# Load the gem
require 'vsphere-automation-vapi'
# Setup authorization
VSphereAutomation.configure 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::MetadataAuthenticationComponentApi.new
component_id = 'component_id_example' # String | Identifier of the component element.
begin
#Retrieves the fingerprint computed from the authentication metadata of the component element corresponding to {@param.name componentId}. <p> The fingerprint provides clients an efficient way to check if the metadata for a particular component has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of {@link vapi.metadata.authentication.Component#get}.
result = api_instance.fingerprint(component_id)
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling MetadataAuthenticationComponentApi->fingerprint: #{e}"
end
All URIs are relative to https://<vcenter>/rest
Class | Method | HTTP request | Description |
---|---|---|---|
VSphereAutomation::VAPI::MetadataAuthenticationComponentApi |
fingerprint | POST /com/vmware/vapi/metadata/authentication/component/id:{component_id}?~action=fingerprint | Retrieves the fingerprint computed from the authentication metadata of the component element corresponding to {@param.name componentId}. The fingerprint provides clients an efficient way to check if the metadata for a particular component has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of {@link vapi.metadata.authentication.Component#get}. |
VSphereAutomation::VAPI::MetadataAuthenticationComponentApi |
get | GET /com/vmware/vapi/metadata/authentication/component/id:{component_id} | Retrieves authentication information about the component element corresponding to {@param.name componentId}. The {@link ComponentData} contains the authentication information about the component element and it's fingerprint. It contains information about all the package elements that belong to this component element. |
VSphereAutomation::VAPI::MetadataAuthenticationComponentApi |
list | GET /com/vmware/vapi/metadata/authentication/component | Returns the identifiers for the component elements that have authentication information. |
VSphereAutomation::VAPI::MetadataAuthenticationPackageApi |
get | GET /com/vmware/vapi/metadata/authentication/package/id:{package_id} | Retrieves authentication information about the package element corresponding to {@param.name packageId}. |
VSphereAutomation::VAPI::MetadataAuthenticationPackageApi |
list | GET /com/vmware/vapi/metadata/authentication/package | Returns the identifiers for the package elements that have authentication information. |
VSphereAutomation::VAPI::MetadataAuthenticationServiceApi |
get | GET /com/vmware/vapi/metadata/authentication/service/id:{service_id} | Retrieves authentication information about the service element corresponding to {@param.name serviceId}. |
VSphereAutomation::VAPI::MetadataAuthenticationServiceApi |
list | GET /com/vmware/vapi/metadata/authentication/service | Returns the identifiers for the service elements that have authentication information. |
VSphereAutomation::VAPI::MetadataAuthenticationServiceOperationApi |
get | POST /com/vmware/vapi/metadata/authentication/service/operation/id:{service_id}?~action=get | Retrieves the authentication information about an operation element corresponding to {@param.name operationId} contained in the service element corresponding to {@param.name serviceId}. |
VSphereAutomation::VAPI::MetadataAuthenticationServiceOperationApi |
list | GET /com/vmware/vapi/metadata/authentication/service/operation | Returns the identifiers for the operation elements contained in the service element corresponding to {@param.name serviceId} that have authentication information. |
VSphereAutomation::VAPI::MetadataCliCommandApi |
fingerprint | POST /com/vmware/vapi/metadata/cli/command?~action=fingerprint | Returns the aggregate fingerprint of all the command metadata from all the metadata sources. The fingerprint provides clients an efficient way to check if the metadata for commands has been modified on the server. |
VSphereAutomation::VAPI::MetadataCliCommandApi |
get | POST /com/vmware/vapi/metadata/cli/command?~action=get | Retrieves information about a command including information about how to execute that command. |
VSphereAutomation::VAPI::MetadataCliCommandApi |
list | GET /com/vmware/vapi/metadata/cli/command | Returns the identifiers of all commands, or commands in a specific namespace. |
VSphereAutomation::VAPI::MetadataCliNamespaceApi |
fingerprint | POST /com/vmware/vapi/metadata/cli/namespace?~action=fingerprint | Returns the aggregate fingerprint of all the namespace metadata from all the metadata sources. The fingerprint provides clients an efficient way to check if the metadata for namespaces has been modified on the server. |
VSphereAutomation::VAPI::MetadataCliNamespaceApi |
get | POST /com/vmware/vapi/metadata/cli/namespace?~action=get | Retreives information about a namespace including information about children of that namespace. |
VSphereAutomation::VAPI::MetadataCliNamespaceApi |
list | GET /com/vmware/vapi/metadata/cli/namespace | Returns the identifiers of all namespaces registered with the infrastructure. |
VSphereAutomation::VAPI::MetadataMetamodelComponentApi |
fingerprint | POST /com/vmware/vapi/metadata/metamodel/component/id:{component_id}?~action=fingerprint | Retrieves the fingerprint computed from the metamodel metadata of the component element corresponding to {@param.name componentId}. The fingerprint provides clients an efficient way to check if the metadata for a particular component element has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of {@link vapi.metadata.metamodel.Component#get}. |
VSphereAutomation::VAPI::MetadataMetamodelComponentApi |
get | GET /com/vmware/vapi/metadata/metamodel/component/id:{component_id} | Retrieves metamodel information about the component element corresponding to {@param.name componentId}. The {@link ComponentData} contains the metamodel information about the component and it's fingerprint. It contains information about all the package elements that are contained in this component element. |
VSphereAutomation::VAPI::MetadataMetamodelComponentApi |
list | GET /com/vmware/vapi/metadata/metamodel/component | Returns the identifiers for the component elements that are registered with the infrastructure. |
VSphereAutomation::VAPI::MetadataMetamodelEnumerationApi |
get | GET /com/vmware/vapi/metadata/metamodel/enumeration/id:{enumeration_id} | Retrieves information about the enumeration element corresponding to {@param.name enumerationId}. The {@link EnumerationInfo} contains the metamodel information about the enumeration value element contained in the enumeration element. |
VSphereAutomation::VAPI::MetadataMetamodelEnumerationApi |
list | GET /com/vmware/vapi/metadata/metamodel/enumeration | Returns the identifiers for the enumeration elements that are contained in all the package elements, service elements and structure elements. |
VSphereAutomation::VAPI::MetadataMetamodelPackageApi |
get | GET /com/vmware/vapi/metadata/metamodel/package/id:{package_id} | Retrieves information about the package element corresponding to {@param.name packageId}. |
VSphereAutomation::VAPI::MetadataMetamodelPackageApi |
list | GET /com/vmware/vapi/metadata/metamodel/package | Returns the identifiers for the packages elements that are contained in all the registered component elements. |
VSphereAutomation::VAPI::MetadataMetamodelResourceApi |
list | GET /com/vmware/vapi/metadata/metamodel/resource | Returns the set of resource types present across all the service elements contained in all the package elements. |
VSphereAutomation::VAPI::MetadataMetamodelResourceModelApi |
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}. 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}. |
VSphereAutomation::VAPI::MetadataMetamodelServiceApi |
get | GET /com/vmware/vapi/metadata/metamodel/service/id:{service_id} | Retrieves information about the service element corresponding to {@param.name serviceId}. The {@link ServiceInfo} contains the metamodel information for the operation elements, structure elements and enumeration elements contained in the service element. |
VSphereAutomation::VAPI::MetadataMetamodelServiceApi |
list | GET /com/vmware/vapi/metadata/metamodel/service | Returns the identifiers for the service elements that are currently registered with the infrastructure. The list of service elements is an aggregate list of all the service elements contained in all the package elements. |
VSphereAutomation::VAPI::MetadataMetamodelServiceOperationApi |
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}. |
VSphereAutomation::VAPI::MetadataMetamodelServiceOperationApi |
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}. |
VSphereAutomation::VAPI::MetadataMetamodelStructureApi |
get | GET /com/vmware/vapi/metadata/metamodel/structure/id:{structure_id} | Retrieves information about the structure element corresponding to {@param.name structureId}. The {@link StructureInfo} contains the metamodel information about the structure element. It contains information about all the field elements and enumeration elements contained in this structure element. |
VSphereAutomation::VAPI::MetadataMetamodelStructureApi |
list | GET /com/vmware/vapi/metadata/metamodel/structure | Returns the identifiers for the structure elements that are contained in all the package elements and service elements. |
VSphereAutomation::VAPI::MetadataPrivilegeComponentApi |
fingerprint | POST /com/vmware/vapi/metadata/privilege/component/id:{component_id}?~action=fingerprint | Retrieves the fingerprint computed from the privilege metadata of the component element corresponding to {@param.name componentId}. The fingerprint provides clients an efficient way to check if the metadata for a particular component has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of {@link vapi.metadata.privilege.Component#get}. |
VSphereAutomation::VAPI::MetadataPrivilegeComponentApi |
get | GET /com/vmware/vapi/metadata/privilege/component/id:{component_id} | Retrieves privilege information about the component element corresponding to {@param.name componentId}. The {@link ComponentData} contains the privilege information about the component element and its fingerprint. It contains information about all the package elements that belong to this component element. |
VSphereAutomation::VAPI::MetadataPrivilegeComponentApi |
list | GET /com/vmware/vapi/metadata/privilege/component | Returns the identifiers for the component elements that have privilege information. |
VSphereAutomation::VAPI::MetadataPrivilegePackageApi |
get | GET /com/vmware/vapi/metadata/privilege/package/id:{package_id} | Retrieves privilege information about the package element corresponding to {@param.name packageId}. |
VSphereAutomation::VAPI::MetadataPrivilegePackageApi |
list | GET /com/vmware/vapi/metadata/privilege/package | Returns the identifiers for the package elements that have privilege information. |
VSphereAutomation::VAPI::MetadataPrivilegeServiceApi |
get | GET /com/vmware/vapi/metadata/privilege/service/id:{service_id} | Retrieves privilege information about the service element corresponding to {@param.name serviceId}. |
VSphereAutomation::VAPI::MetadataPrivilegeServiceApi |
list | GET /com/vmware/vapi/metadata/privilege/service | Returns the identifiers for the service elements that have privilege information. |
VSphereAutomation::VAPI::MetadataPrivilegeServiceOperationApi |
get | POST /com/vmware/vapi/metadata/privilege/service/operation/id:{service_id}?~action=get | Retrieves the privilege information about an operation element corresponding to {@param.name operationId} contained in the service element corresponding to {@param.name serviceId}. |
VSphereAutomation::VAPI::MetadataPrivilegeServiceOperationApi |
list | GET /com/vmware/vapi/metadata/privilege/service/operation | Returns the identifiers for the operation elements contained in the service element corresponding to {@param.name serviceId} that have privilege information. |
VSphereAutomation::VAPI::RestNavigationComponentApi |
list | GET /com/vmware/vapi/rest/navigation/component | Gets list of all vAPI REST {@link Component}s. |
VSphereAutomation::VAPI::RestNavigationOptionsApi |
get | POST /com/vmware/vapi/rest/navigation/options?~action=get | Retrieves operations for specific URL. |
VSphereAutomation::VAPI::RestNavigationResourceApi |
get | GET /com/vmware/vapi/rest/navigation/resource/id:{type_id}/id:{instance_id} | Gets {@link List} of all {@link Operation}s about a vAPI REST {@link Resource}. Information is searched for by {@param.name typeId} and {@param.name instanceId} is used only in URLs. |
VSphereAutomation::VAPI::RestNavigationResourceApi |
list | GET /com/vmware/vapi/rest/navigation/resource | Gets list of all vAPI REST {@link Resource}s. |
VSphereAutomation::VAPI::RestNavigationRootApi |
get | GET /com/vmware/vapi/rest/navigation/root | Retrieves information about a vAPI REST {@link Root}. |
VSphereAutomation::VAPI::RestNavigationServiceApi |
list | GET /com/vmware/vapi/rest/navigation/service | Gets list of all vAPI REST {@link Service}s for a vAPI REST {@link Component}. |
VSphereAutomation::VAPI::VcenterActivationApi |
cancel | POST /com/vmware/vapi/vcenter/activation/id:{activation_id}?~action=cancel | Sends a request to cancel the task associated with the provided {@param.name activationId}. |
- VSphereAutomation::VAPI::VapiMetadataAuthenticationAuthenticationInfo
- VSphereAutomation::VAPI::VapiMetadataAuthenticationAuthenticationInfoSchemeType
- VSphereAutomation::VAPI::VapiMetadataAuthenticationComponentData
- VSphereAutomation::VAPI::VapiMetadataAuthenticationComponentFingerprintResult
- VSphereAutomation::VAPI::VapiMetadataAuthenticationComponentInfo
- VSphereAutomation::VAPI::VapiMetadataAuthenticationComponentInfoPackages
- VSphereAutomation::VAPI::VapiMetadataAuthenticationComponentListResult
- VSphereAutomation::VAPI::VapiMetadataAuthenticationComponentResult
- VSphereAutomation::VAPI::VapiMetadataAuthenticationOperationInfo
- VSphereAutomation::VAPI::VapiMetadataAuthenticationPackageInfo
- VSphereAutomation::VAPI::VapiMetadataAuthenticationPackageInfoServices
- VSphereAutomation::VAPI::VapiMetadataAuthenticationPackageListResult
- VSphereAutomation::VAPI::VapiMetadataAuthenticationPackageResult
- VSphereAutomation::VAPI::VapiMetadataAuthenticationServiceInfo
- VSphereAutomation::VAPI::VapiMetadataAuthenticationServiceInfoOperations
- VSphereAutomation::VAPI::VapiMetadataAuthenticationServiceListResult
- VSphereAutomation::VAPI::VapiMetadataAuthenticationServiceOperationGet
- VSphereAutomation::VAPI::VapiMetadataAuthenticationServiceOperationListResult
- VSphereAutomation::VAPI::VapiMetadataAuthenticationServiceOperationResult
- VSphereAutomation::VAPI::VapiMetadataAuthenticationServiceResult
- VSphereAutomation::VAPI::VapiMetadataCliCommandFingerprintResult
- VSphereAutomation::VAPI::VapiMetadataCliCommandFormatterType
- VSphereAutomation::VAPI::VapiMetadataCliCommandGenericType
- VSphereAutomation::VAPI::VapiMetadataCliCommandGet
- VSphereAutomation::VAPI::VapiMetadataCliCommandIdentity
- VSphereAutomation::VAPI::VapiMetadataCliCommandInfo
- VSphereAutomation::VAPI::VapiMetadataCliCommandListResult
- VSphereAutomation::VAPI::VapiMetadataCliCommandOptionInfo
- VSphereAutomation::VAPI::VapiMetadataCliCommandOutputFieldInfo
- VSphereAutomation::VAPI::VapiMetadataCliCommandOutputInfo
- VSphereAutomation::VAPI::VapiMetadataCliCommandResult
- VSphereAutomation::VAPI::VapiMetadataCliNamespaceFingerprintResult
- VSphereAutomation::VAPI::VapiMetadataCliNamespaceGet
- VSphereAutomation::VAPI::VapiMetadataCliNamespaceIdentity
- VSphereAutomation::VAPI::VapiMetadataCliNamespaceInfo
- VSphereAutomation::VAPI::VapiMetadataCliNamespaceListResult
- VSphereAutomation::VAPI::VapiMetadataCliNamespaceResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelComponentData
- VSphereAutomation::VAPI::VapiMetadataMetamodelComponentFingerprintResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelComponentInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelComponentInfoMetadata
- VSphereAutomation::VAPI::VapiMetadataMetamodelComponentInfoPackages
- VSphereAutomation::VAPI::VapiMetadataMetamodelComponentListResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelComponentResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelConstantInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelConstantValue
- VSphereAutomation::VAPI::VapiMetadataMetamodelConstantValueCategory
- VSphereAutomation::VAPI::VapiMetadataMetamodelElementMap
- VSphereAutomation::VAPI::VapiMetadataMetamodelElementMapElements
- VSphereAutomation::VAPI::VapiMetadataMetamodelElementValue
- VSphereAutomation::VAPI::VapiMetadataMetamodelElementValueType
- VSphereAutomation::VAPI::VapiMetadataMetamodelEnumerationInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelEnumerationListResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelEnumerationResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelEnumerationValueInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelErrorInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelFieldInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelGenericInstantiation
- VSphereAutomation::VAPI::VapiMetadataMetamodelGenericInstantiationGenericType
- VSphereAutomation::VAPI::VapiMetadataMetamodelOperationInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelOperationResultInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelPackageInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelPackageInfoEnumerations
- VSphereAutomation::VAPI::VapiMetadataMetamodelPackageInfoServices
- VSphereAutomation::VAPI::VapiMetadataMetamodelPackageInfoStructures
- VSphereAutomation::VAPI::VapiMetadataMetamodelPackageListResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelPackageResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelPrimitiveValue
- VSphereAutomation::VAPI::VapiMetadataMetamodelPrimitiveValueType
- VSphereAutomation::VAPI::VapiMetadataMetamodelResourceListResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelResourceModelListResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelServiceInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelServiceInfoConstants
- VSphereAutomation::VAPI::VapiMetadataMetamodelServiceInfoOperations
- VSphereAutomation::VAPI::VapiMetadataMetamodelServiceListResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelServiceOperationListResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelServiceOperationResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelServiceResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelStructureInfo
- VSphereAutomation::VAPI::VapiMetadataMetamodelStructureInfoType
- VSphereAutomation::VAPI::VapiMetadataMetamodelStructureListResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelStructureResult
- VSphereAutomation::VAPI::VapiMetadataMetamodelType
- VSphereAutomation::VAPI::VapiMetadataMetamodelTypeBuiltinType
- VSphereAutomation::VAPI::VapiMetadataMetamodelTypeCategory
- VSphereAutomation::VAPI::VapiMetadataMetamodelUserDefinedType
- VSphereAutomation::VAPI::VapiMetadataPrivilegeComponentData
- VSphereAutomation::VAPI::VapiMetadataPrivilegeComponentFingerprintResult
- VSphereAutomation::VAPI::VapiMetadataPrivilegeComponentInfo
- VSphereAutomation::VAPI::VapiMetadataPrivilegeComponentInfoPackages
- VSphereAutomation::VAPI::VapiMetadataPrivilegeComponentListResult
- VSphereAutomation::VAPI::VapiMetadataPrivilegeComponentResult
- VSphereAutomation::VAPI::VapiMetadataPrivilegeOperationInfo
- VSphereAutomation::VAPI::VapiMetadataPrivilegePackageInfo
- VSphereAutomation::VAPI::VapiMetadataPrivilegePackageInfoServices
- VSphereAutomation::VAPI::VapiMetadataPrivilegePackageListResult
- VSphereAutomation::VAPI::VapiMetadataPrivilegePackageResult
- VSphereAutomation::VAPI::VapiMetadataPrivilegePrivilegeInfo
- VSphereAutomation::VAPI::VapiMetadataPrivilegeServiceInfo
- VSphereAutomation::VAPI::VapiMetadataPrivilegeServiceInfoOperations
- VSphereAutomation::VAPI::VapiMetadataPrivilegeServiceListResult
- VSphereAutomation::VAPI::VapiMetadataPrivilegeServiceOperationGet
- VSphereAutomation::VAPI::VapiMetadataPrivilegeServiceOperationListResult
- VSphereAutomation::VAPI::VapiMetadataPrivilegeServiceOperationResult
- VSphereAutomation::VAPI::VapiMetadataPrivilegeServiceResult
- VSphereAutomation::VAPI::VapiRestNavigationComponentInfo
- VSphereAutomation::VAPI::VapiRestNavigationComponentListResult
- VSphereAutomation::VAPI::VapiRestNavigationHttpMethod
- VSphereAutomation::VAPI::VapiRestNavigationLink
- VSphereAutomation::VAPI::VapiRestNavigationOperation
- VSphereAutomation::VAPI::VapiRestNavigationOptionsGet
- VSphereAutomation::VAPI::VapiRestNavigationOptionsResult
- VSphereAutomation::VAPI::VapiRestNavigationReference
- VSphereAutomation::VAPI::VapiRestNavigationResourceInfo
- VSphereAutomation::VAPI::VapiRestNavigationResourceListResult
- VSphereAutomation::VAPI::VapiRestNavigationResourceResult
- VSphereAutomation::VAPI::VapiRestNavigationRootInfo
- VSphereAutomation::VAPI::VapiRestNavigationRootResult
- VSphereAutomation::VAPI::VapiRestNavigationServiceInfo
- VSphereAutomation::VAPI::VapiRestNavigationServiceListResult
- VSphereAutomation::VAPI::VapiStdErrorsNotAllowedInCurrentState
- VSphereAutomation::VAPI::VapiStdErrorsNotAllowedInCurrentStateError
- VSphereAutomation::VAPI::VapiStdErrorsNotFound
- VSphereAutomation::VAPI::VapiStdErrorsNotFoundError
- VSphereAutomation::VAPI::VapiStdErrorsServiceUnavailable
- VSphereAutomation::VAPI::VapiStdErrorsServiceUnavailableError
- VSphereAutomation::VAPI::VapiStdErrorsUnauthenticated
- VSphereAutomation::VAPI::VapiStdErrorsUnauthenticatedError
- VSphereAutomation::VAPI::VapiStdErrorsUnauthorized
- VSphereAutomation::VAPI::VapiStdErrorsUnauthorizedError
- VSphereAutomation::VAPI::VapiStdLocalizableMessage