All URIs are relative to https://<vcenter>/rest
Method | HTTP request | Description |
---|---|---|
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}. |
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. |
VapiMetadataPrivilegeServiceOperationResult get(service_id, request_body)
Retrieves the privilege information about an operation element corresponding to {@param.name operationId} contained in the service element corresponding to {@param.name serviceId}.
# 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::MetadataPrivilegeServiceOperationApi.new
service_id = 'service_id_example' # String | Identifier of the service element.
request_body = VAPI::VapiMetadataPrivilegeServiceOperationGet.new # VapiMetadataPrivilegeServiceOperationGet |
begin
#Retrieves the privilege 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, request_body)
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling MetadataPrivilegeServiceOperationApi->get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | Identifier of the service element. | |
request_body | VapiMetadataPrivilegeServiceOperationGet |
VapiMetadataPrivilegeServiceOperationResult
- Content-Type: application/json
- Accept: application/json
VapiMetadataPrivilegeServiceOperationListResult list(service_id)
Returns the identifiers for the operation elements contained in the service element corresponding to {@param.name serviceId} that have privilege information.
# 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::MetadataPrivilegeServiceOperationApi.new
service_id = 'service_id_example' # String | Identifier of the service element.
begin
#Returns the identifiers for the operation elements contained in the service element corresponding to {@param.name serviceId} that have privilege information.
result = api_instance.list(service_id)
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling MetadataPrivilegeServiceOperationApi->list: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | Identifier of the service element. |
VapiMetadataPrivilegeServiceOperationListResult
- Content-Type: Not defined
- Accept: application/json