All URIs are relative to https://<vcenter>/rest
| Method | HTTP request | Description |
|---|---|---|
| fingerprint | POST /com/vmware/vapi/metadata/cli/namespace?~action=fingerprint | Returns the aggregate fingerprint of all the namespace metadata from all the metadata sources. <p> The fingerprint provides clients an efficient way to check if the metadata for namespaces has been modified on the server. |
| get | POST /com/vmware/vapi/metadata/cli/namespace?~action=get | Retreives information about a namespace including information about children of that namespace. |
| list | GET /com/vmware/vapi/metadata/cli/namespace | Returns the identifiers of all namespaces registered with the infrastructure. |
VapiMetadataCliNamespaceFingerprintResult 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.
# 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::MetadataCliNamespaceApi.new
begin
#Returns the aggregate fingerprint of all the namespace metadata from all the metadata sources. <p> The fingerprint provides clients an efficient way to check if the metadata for namespaces has been modified on the server.
result = api_instance.fingerprint
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling MetadataCliNamespaceApi->fingerprint: #{e}"
endThis endpoint does not need any parameter.
VapiMetadataCliNamespaceFingerprintResult
- Content-Type: Not defined
- Accept: application/json
VapiMetadataCliNamespaceResult get(request_body)
Retreives information about a namespace including information about children of that namespace.
# 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::MetadataCliNamespaceApi.new
request_body = VAPI::VapiMetadataCliNamespaceGet.new # VapiMetadataCliNamespaceGet |
begin
#Retreives information about a namespace including information about children of that namespace.
result = api_instance.get(request_body)
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling MetadataCliNamespaceApi->get: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| request_body | VapiMetadataCliNamespaceGet |
VapiMetadataCliNamespaceResult
- Content-Type: application/json
- Accept: application/json
VapiMetadataCliNamespaceListResult list
Returns the identifiers of all namespaces registered with the infrastructure.
# 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::MetadataCliNamespaceApi.new
begin
#Returns the identifiers of all namespaces registered with the infrastructure.
result = api_instance.list
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling MetadataCliNamespaceApi->list: #{e}"
endThis endpoint does not need any parameter.
VapiMetadataCliNamespaceListResult
- Content-Type: Not defined
- Accept: application/json