VSphereAutomation::Appliance::SystemStorageApi

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

Method HTTP request Description
list GET /appliance/system/storage Get disk to partition mapping.
resize POST /appliance/system/storage/resize Resize all partitions to 100 percent of disk size.
resize_ex POST /appliance/system/storage?action=resize-ex Resize all partitions to 100 percent of disk size.

list

ApplianceSystemStorageListResult list

Get disk to partition mapping.

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::SystemStorageApi.new

begin
  #Get disk to partition mapping.
  result = api_instance.list
  p result
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling SystemStorageApi->list: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

ApplianceSystemStorageListResult

Authorization

api_key

HTTP request headers

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

resize

resize

Resize all partitions to 100 percent of disk size.

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::SystemStorageApi.new

begin
  #Resize all partitions to 100 percent of disk size.
  api_instance.resize
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling SystemStorageApi->resize: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

nil (empty response body)

Authorization

api_key

HTTP request headers

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

resize_ex

ApplianceSystemStorageResizeExResult resize_ex

Resize all partitions to 100 percent of disk size.

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::SystemStorageApi.new

begin
  #Resize all partitions to 100 percent of disk size.
  result = api_instance.resize_ex
  p result
rescue VSphereAutomation::ApiError => e
  puts "Exception when calling SystemStorageApi->resize_ex: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

ApplianceSystemStorageResizeExResult

Authorization

api_key

HTTP request headers

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