Returns a single signon URL for the specified backup Unit.
backupunits_delete
Object backupunits_delete(backupunit_id, opts)
Delete a Backup Unit
NOTE: Running through the deletion process will delete: - the backup plans inside the Backup Unit. - all backups associated with the Backup Unit. - the backup user and finally also the unit
Examples
require'time'require'ionoscloud'# setup authorizationIonoscloud.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'endapi_instance =Ionoscloud::BackupUnitApi.newbackupunit_id ='backupunit_id_example'# String | The unique ID of the backup Unitopts = { pretty: true,# Boolean | Controls whether response is pretty-printed (with indentation and new lines) depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed}begin# Delete a Backup Unit result = api_instance.backupunits_delete(backupunit_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_delete: #{e}"end
Using the backupunits_delete_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Delete a Backup Unit data, status_code, headers = api_instance.backupunits_delete_with_http_info(backupunit_id, opts)p status_code # => 2xxp headers # => { ... }p data # => ObjectrescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_delete_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
backupunit_id
String
The unique ID of the backup Unit
pretty
Boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
Integer
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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
[optional][default to 0]
x_contract_number
Integer
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional]
Return type
Object
Authorization
Basic Authentication, Token Authentication
HTTP request headers
Content-Type: Not defined
Accept: application/json
backupunits_find_by_id
backupunits_find_by_id(backupunit_id, opts)
Returns the specified backup Unit
You can retrieve the details of an specific backup unit.
Examples
require'time'require'ionoscloud'# setup authorizationIonoscloud.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'endapi_instance =Ionoscloud::BackupUnitApi.newbackupunit_id ='backupunit_id_example'# String | The unique ID of the backup unitopts = { pretty: true,# Boolean | Controls whether response is pretty-printed (with indentation and new lines) depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed}begin# Returns the specified backup Unit result = api_instance.backupunits_find_by_id(backupunit_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_find_by_id: #{e}"end
Using the backupunits_find_by_id_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Returns the specified backup Unit data, status_code, headers = api_instance.backupunits_find_by_id_with_http_info(backupunit_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <BackupUnit>rescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_find_by_id_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
backupunit_id
String
The unique ID of the backup unit
pretty
Boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
Integer
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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
[optional][default to 0]
x_contract_number
Integer
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
You can retrieve a complete list of backup Units that you have access to.
Examples
require'time'require'ionoscloud'# setup authorizationIonoscloud.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'endapi_instance =Ionoscloud::BackupUnitApi.newopts = { pretty: true,# Boolean | Controls whether response is pretty-printed (with indentation and new lines) depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed}begin# List Backup Units result = api_instance.backupunits_get(opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_get: #{e}"end
Using the backupunits_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# List Backup Units data, status_code, headers = api_instance.backupunits_get_with_http_info(opts)p status_code # => 2xxp headers # => { ... }p data # => <BackupUnits>rescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_get_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
pretty
Boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
Integer
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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
[optional][default to 0]
x_contract_number
Integer
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
require'time'require'ionoscloud'# setup authorizationIonoscloud.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'endapi_instance =Ionoscloud::BackupUnitApi.newbackupunit_id ='backupunit_id_example'# String | The unique ID of the backup unitbackup_unit_properties =Ionoscloud::BackupUnitProperties.new({name: 'BackupUnitName'}) # BackupUnitProperties | Modified backup Unit propertiesopts = { pretty: true,# Boolean | Controls whether response is pretty-printed (with indentation and new lines) depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed}begin# Partially modify a Backup Unit result = api_instance.backupunits_patch(backupunit_id, backup_unit_properties, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_patch: #{e}"end
Using the backupunits_patch_with_http_info variant
This returns an Array which contains the response data, status code and headers.
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
Integer
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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
[optional][default to 0]
x_contract_number
Integer
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
Create a Backup Unit. A Backup Unit is considered a resource like a virtual datacenter, IP Block, snapshot, etc. It shall be shareable via groups inside our User Management Feature
Examples
require'time'require'ionoscloud'# setup authorizationIonoscloud.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'endapi_instance =Ionoscloud::BackupUnitApi.newbackup_unit =Ionoscloud::BackupUnit.new({properties: Ionoscloud::BackupUnitProperties.new({name: 'BackupUnitName'})}) # BackupUnit | Payload containing data to create a new Backup Unitopts = { pretty: true,# Boolean | Controls whether response is pretty-printed (with indentation and new lines) depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed}begin# Create a Backup Unit result = api_instance.backupunits_post(backup_unit, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_post: #{e}"end
Using the backupunits_post_with_http_info variant
This returns an Array which contains the response data, status code and headers.
Payload containing data to create a new Backup Unit
pretty
Boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
Integer
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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
[optional][default to 0]
x_contract_number
Integer
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
require'time'require'ionoscloud'# setup authorizationIonoscloud.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'endapi_instance =Ionoscloud::BackupUnitApi.newbackupunit_id ='backupunit_id_example'# String | The unique ID of the backup unitbackup_unit =Ionoscloud::BackupUnit.new({properties: Ionoscloud::BackupUnitProperties.new({name: 'BackupUnitName'})}) # BackupUnit | Modified backup Unitopts = { pretty: true,# Boolean | Controls whether response is pretty-printed (with indentation and new lines) depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed}begin# Modify a Backup Unit result = api_instance.backupunits_put(backupunit_id, backup_unit, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_put: #{e}"end
Using the backupunits_put_with_http_info variant
This returns an Array which contains the response data, status code and headers.
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
Integer
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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
[optional][default to 0]
x_contract_number
Integer
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
Returns a single signon URL for the specified backup Unit.
Returns a single signon URL for the specified backup Unit.
Examples
require'time'require'ionoscloud'# setup authorizationIonoscloud.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'endapi_instance =Ionoscloud::BackupUnitApi.newbackupunit_id ='backupunit_id_example'# String | The unique UUID of the backup unitopts = { pretty: true,# Boolean | Controls whether response is pretty-printed (with indentation and new lines) x_contract_number: 56# Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed}begin# Returns a single signon URL for the specified backup Unit. result = api_instance.backupunits_ssourl_get(backupunit_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling BackupUnitApi->backupunits_ssourl_get: #{e}"end
Using the backupunits_ssourl_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.