VolumesApi
Method
HTTP request
Description
datacenters_volumes_create_snapshot_post
Examples
require 'time'
require 'ionoscloud'
# setup authorization
Ionoscloud.configure do |config|
# Configure HTTP basic authorization: Basic Authentication
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token Authentication
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
end
api_instance = Ionoscloud::VolumesApi.new
datacenter_id = 'datacenter_id_example' # String | The unique ID of the data center.
volume_id = 'volume_id_example' # String | The unique ID of the volume.
opts = {
pretty: true, # Boolean | Controls whether the response is pretty-printed (with indentations and new lines).
depth: 56, # Integer | Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
x_contract_number: 56, # Integer | Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
name: 'name_example', # String | Snapshot name
description: 'description_example', # String | Snapshot description
sec_auth_protection: true, # Boolean | Flag for enabling extra protection for this snapshot, such as two-step verification.
licence_type: 'UNKNOWN' # String | The OS type for this snapshot.
}
begin
# Create volume snapshots
result = api_instance.datacenters_volumes_create_snapshot_post(datacenter_id, volume_id, opts)
p result
rescue Ionoscloud::ApiError => e
puts "Error when calling VolumesApi->datacenters_volumes_create_snapshot_post: #{e}"
endUsing the datacenters_volumes_create_snapshot_post_with_http_info variant
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_volumes_delete
Examples
Using the datacenters_volumes_delete_with_http_info variant
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_volumes_find_by_id
Examples
Using the datacenters_volumes_find_by_id_with_http_info variant
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_volumes_get
Examples
Using the datacenters_volumes_get_with_http_info variant
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_volumes_patch
Examples
Using the datacenters_volumes_patch_with_http_info variant
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_volumes_post
Examples
Using the datacenters_volumes_post_with_http_info variant
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_volumes_put
Examples
Using the datacenters_volumes_put_with_http_info variant
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_volumes_restore_snapshot_post
Examples
Using the datacenters_volumes_restore_snapshot_post_with_http_info variant
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Last updated
