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 | 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
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
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
resize_ex
ApplianceSystemStorageResizeExResult resize_ex(action)
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
action = 'action_example' # String | action=resize-ex
begin
#Resize all partitions to 100 percent of disk size.
result = api_instance.resize_ex(action)
p result
rescue VSphereAutomation::ApiError => e
puts "Exception when calling SystemStorageApi->resize_ex: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
action | String | action=resize-ex |
Return type
ApplianceSystemStorageResizeExResult
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json