VSphereAutomation::Appliance::RecoveryBackupPartsApi
All URIs are relative to https://<vcenter>/rest
Method | HTTP request | Description |
---|---|---|
get | GET /appliance/recovery/backup/parts/id | Gets the size (in MB) of the part. |
list | GET /appliance/recovery/backup/parts | Gets a list of the backup parts. |
get
ApplianceRecoveryBackupPartsResult get(id)
Gets the size (in MB) of the part.
Example
# load the gem
require 'vsphere-automation-appliance'
# 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::Appliance::RecoveryBackupPartsApi.new
id = 'id_example' # String | Identifier of the part.
begin
#Gets the size (in MB) of the part.
result = api_instance.get(id)
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling RecoveryBackupPartsApi->get: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the part. |
Return type
ApplianceRecoveryBackupPartsResult
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
list
ApplianceRecoveryBackupPartsListResult list
Gets a list of the backup parts.
Example
# load the gem
require 'vsphere-automation-appliance'
# 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::Appliance::RecoveryBackupPartsApi.new
begin
#Gets a list of the backup parts.
result = api_instance.list
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling RecoveryBackupPartsApi->list: #{e}"
end
Parameters
This endpoint does not need any parameter.
Return type
ApplianceRecoveryBackupPartsListResult
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json