Retrieve S3 object storage single signon URL for the given user
um_groups_delete
Object um_groups_delete(group_id, opts)
Delete a Group
Delete a group
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::UserManagementApi.newgroup_id ='group_id_example'# String | The unique ID of the groupopts = { 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 Group result = api_instance.um_groups_delete(group_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_delete: #{e}"end
Using the um_groups_delete_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Delete a Group data, status_code, headers = api_instance.um_groups_delete_with_http_info(group_id, opts)p status_code # => 2xxp headers # => { ... }p data # => ObjectrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_delete_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
group_id
String
The unique ID of the group
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
um_groups_find_by_id
um_groups_find_by_id(group_id, opts)
Retrieve a Group
You can retrieve a group by using the group ID. This value can be found in the response body when a group is created or when you GET a list of groups.
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::UserManagementApi.newgroup_id ='group_id_example'# String | The unique ID of the groupopts = { 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# Retrieve a Group result = api_instance.um_groups_find_by_id(group_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_find_by_id: #{e}"end
Using the um_groups_find_by_id_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve a Group data, status_code, headers = api_instance.um_groups_find_by_id_with_http_info(group_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <Group>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_find_by_id_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
group_id
String
The unique ID of the group
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 all groups 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::UserManagementApi.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 All Groups. result = api_instance.um_groups_get(opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_get: #{e}"end
Using the um_groups_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# List All Groups. data, status_code, headers = api_instance.um_groups_get_with_http_info(opts)p status_code # => 2xxp headers # => { ... }p data # => <Groups>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_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::UserManagementApi.newgroup =Ionoscloud::Group.new({properties: Ionoscloud::GroupProperties.new}) # Group | Group to be createdopts = { 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 Group result = api_instance.um_groups_post(group, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_post: #{e}"end
Using the um_groups_post_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
You can use this method to update properties of the group.
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::UserManagementApi.newgroup_id ='group_id_example'# String | The unique ID of the groupgroup =Ionoscloud::Group.new({properties: Ionoscloud::GroupProperties.new}) # Group | Modified properties of the Groupopts = { 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 group result = api_instance.um_groups_put(group_id, group, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_put: #{e}"end
Using the um_groups_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
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::UserManagementApi.newgroup_id ='group_id_example'# String | The unique ID of the groupopts = { 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# Retrieve resources assigned to a group result = api_instance.um_groups_resources_get(group_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_resources_get: #{e}"end
Using the um_groups_resources_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve resources assigned to a group data, status_code, headers = api_instance.um_groups_resources_get_with_http_info(group_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <ResourceGroups>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_resources_get_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
group_id
String
The unique ID of the group
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::UserManagementApi.newgroup_id ='group_id_example'# String | resource_id ='resource_id_example'# String | opts = { 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# Remove a resource from a group result = api_instance.um_groups_shares_delete(group_id, resource_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_shares_delete: #{e}"end
Using the um_groups_shares_delete_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Remove a resource from a group data, status_code, headers = api_instance.um_groups_shares_delete_with_http_info(group_id, resource_id, opts)p status_code # => 2xxp headers # => { ... }p data # => ObjectrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_shares_delete_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
group_id
String
resource_id
String
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
This will retrieve the properties of a group share.
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::UserManagementApi.newgroup_id ='group_id_example'# String | resource_id ='resource_id_example'# String | opts = { 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# Retrieve a group share result = api_instance.um_groups_shares_find_by_resource_id(group_id, resource_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_shares_find_by_resource_id: #{e}"end
Using the um_groups_shares_find_by_resource_id_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve a group share data, status_code, headers = api_instance.um_groups_shares_find_by_resource_id_with_http_info(group_id, resource_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <GroupShare>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_shares_find_by_resource_id_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
group_id
String
resource_id
String
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 list of all resources along with their permissions of the group
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::UserManagementApi.newgroup_id ='group_id_example'# String | opts = { 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 Group Shares result = api_instance.um_groups_shares_get(group_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_shares_get: #{e}"end
Using the um_groups_shares_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# List Group Shares data, status_code, headers = api_instance.um_groups_shares_get_with_http_info(group_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <GroupShares>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_shares_get_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
group_id
String
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::UserManagementApi.newgroup_id ='group_id_example'# String | resource_id ='resource_id_example'# String | resource =Ionoscloud::GroupShare.new({properties: Ionoscloud::GroupShareProperties.new}) # GroupShare | Resource to be addedopts = { 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# Add a resource to a group result = api_instance.um_groups_shares_post(group_id, resource_id, resource, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_shares_post: #{e}"end
Using the um_groups_shares_post_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
You can use update resource permissions of a group. If empty body will be provided, no updates will happen, instead you will be returned the current permissions of resource in a group. In this case response code will be 200
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::UserManagementApi.newgroup_id ='group_id_example'# String | resource_id ='resource_id_example'# String | resource =Ionoscloud::GroupShare.new({properties: Ionoscloud::GroupShareProperties.new}) # GroupShare | Modified Resourceopts = { 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 resource permissions of a group result = api_instance.um_groups_shares_put(group_id, resource_id, resource, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_shares_put: #{e}"end
Using the um_groups_shares_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
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::UserManagementApi.newgroup_id ='group_id_example'# String | user_id ='user_id_example'# String | opts = { 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# Remove a user from a group result = api_instance.um_groups_users_delete(group_id, user_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_users_delete: #{e}"end
Using the um_groups_users_delete_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Remove a user from a group data, status_code, headers = api_instance.um_groups_users_delete_with_http_info(group_id, user_id, opts)p status_code # => 2xxp headers # => { ... }p data # => ObjectrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_users_delete_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
group_id
String
user_id
String
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
um_groups_users_get
um_groups_users_get(group_id, opts)
List Group Members
You can retrieve a list of users who are members of the group
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::UserManagementApi.newgroup_id ='group_id_example'# String | opts = { 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 Group Members result = api_instance.um_groups_users_get(group_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_users_get: #{e}"end
Using the um_groups_users_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# List Group Members data, status_code, headers = api_instance.um_groups_users_get_with_http_info(group_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <GroupMembers>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_users_get_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
group_id
String
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::UserManagementApi.newgroup_id ='group_id_example'# String | user =Ionoscloud::User.new({properties: Ionoscloud::UserProperties.new}) # User | User to be addedopts = { 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# Add a user to a group result = api_instance.um_groups_users_post(group_id, user, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_users_post: #{e}"end
Using the um_groups_users_post_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Add a user to a group data, status_code, headers = api_instance.um_groups_users_post_with_http_info(group_id, user, opts)p status_code # => 2xxp headers # => { ... }p data # => <User>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_groups_users_post_with_http_info: #{e}"end
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 list of resources by using the type. Allowed values are { datacenter, snapshot, image, ipblock, pcc, backupunit, k8s }. This value of resource type also be found in the response body when you GET a list of all resources.
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::UserManagementApi.newresource_type ='resource_type_example'# String | The resource Typeopts = { 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# Retrieve a list of Resources by type. result = api_instance.um_resources_find_by_type(resource_type, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_resources_find_by_type: #{e}"end
Using the um_resources_find_by_type_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve a list of Resources by type. data, status_code, headers = api_instance.um_resources_find_by_type_with_http_info(resource_type, opts)p status_code # => 2xxp headers # => { ... }p data # => <Resources>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_resources_find_by_type_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
resource_type
String
The resource Type
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 resource by using the type and its uuid. Allowed values for types are { datacenter, snapshot, image, ipblock, pcc, backupunit, k8s }. The value of resource type can also be found in the response body when you GET a list of all resources.
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::UserManagementApi.newresource_type ='resource_type_example'# String | The resource Typeresource_id ='resource_id_example'# String | The resource Uuidopts = { 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# Retrieve a Resource by type. result = api_instance.um_resources_find_by_type_and_id(resource_type, resource_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_resources_find_by_type_and_id: #{e}"end
Using the um_resources_find_by_type_and_id_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve a Resource by type. data, status_code, headers = api_instance.um_resources_find_by_type_and_id_with_http_info(resource_type, resource_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <Resource>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_resources_find_by_type_and_id_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
resource_type
String
The resource Type
resource_id
String
The resource Uuid
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 all resources 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::UserManagementApi.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 All Resources. result = api_instance.um_resources_get(opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_resources_get: #{e}"end
Using the um_resources_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# List All Resources. data, status_code, headers = api_instance.um_resources_get_with_http_info(opts)p status_code # => 2xxp headers # => { ... }p data # => <Resources>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_resources_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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the useropts = { 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 User result = api_instance.um_users_delete(user_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_delete: #{e}"end
Using the um_users_delete_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Delete a User data, status_code, headers = api_instance.um_users_delete_with_http_info(user_id, opts)p status_code # => 2xxp headers # => { ... }p data # => ObjectrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_delete_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
user_id
String
The unique ID of the user
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
um_users_find_by_id
um_users_find_by_id(user_id, opts)
Retrieve a User
You can retrieve user details by using the users ID. This value can be found in the response body when a user is created or when you GET a list of users.
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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the useropts = { 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# Retrieve a User result = api_instance.um_users_find_by_id(user_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_find_by_id: #{e}"end
Using the um_users_find_by_id_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve a User data, status_code, headers = api_instance.um_users_find_by_id_with_http_info(user_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <User>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_find_by_id_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
user_id
String
The unique ID of the user
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 users under your account
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::UserManagementApi.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 offset: 56,# Integer | the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination) limit: 56# Integer | the maximum number of elements to return (use together with <code>offset</code> for pagination)}begin# List all Users result = api_instance.um_users_get(opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_get: #{e}"end
Using the um_users_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# List all Users data, status_code, headers = api_instance.um_users_get_with_http_info(opts)p status_code # => 2xxp headers # => { ... }p data # => <Users>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_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
[optional]
offset
Integer
the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
[optional][default to 0]
limit
Integer
the maximum number of elements to return (use together with <code>offset</code> for pagination)
You can retrieve group resources of user by using the users ID. This value can be found in the response body when a user is created or when you GET a list of users.
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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the useropts = { 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# Retrieve a User's group resources result = api_instance.um_users_groups_get(user_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_groups_get: #{e}"end
Using the um_users_groups_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve a User's group resources data, status_code, headers = api_instance.um_users_groups_get_with_http_info(user_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <ResourceGroups>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_groups_get_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
user_id
String
The unique ID of the user
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 resources owned by using the users ID. This value can be found in the response body when a user is created or when you GET a list of users.
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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the useropts = { 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# Retrieve a User's own resources result = api_instance.um_users_owns_get(user_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_owns_get: #{e}"end
Using the um_users_owns_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve a User's own resources data, status_code, headers = api_instance.um_users_owns_get_with_http_info(user_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <ResourcesUsers>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_owns_get_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
user_id
String
The unique ID of the user
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::UserManagementApi.newuser =Ionoscloud::UserPost.new({properties: Ionoscloud::UserPropertiesPost.new}) # UserPost | User to be createdopts = { 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 user result = api_instance.um_users_post(user, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_post: #{e}"end
Using the um_users_post_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
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::UserManagementApi.newuser_id ='user_id_example'# String | user =Ionoscloud::UserPut.new({properties: Ionoscloud::UserPropertiesPut.new}) # UserPut | Modified useropts = { 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 user result = api_instance.um_users_put(user_id, user, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_put: #{e}"end
Using the um_users_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
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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the userkey_id ='key_id_example'# String | The unique access key ID of the S3 keyopts = { 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 S3 key result = api_instance.um_users_s3keys_delete(user_id, key_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_s3keys_delete: #{e}"end
Using the um_users_s3keys_delete_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
You can retrieve S3 key belonging to the given User. This user Id can be found in the response body when a user is created or when you GET a list of users. The key Id can be found in the response body when a S3 key is created or when you GET a list of all S3 keys of a user
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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the userkey_id ='key_id_example'# String | The unique access key ID of the S3 keyopts = { 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# Retrieve given S3 key belonging to the given User result = api_instance.um_users_s3keys_find_by_key_id(user_id, key_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_s3keys_find_by_key_id: #{e}"end
Using the um_users_s3keys_find_by_key_id_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Retrieve given S3 key belonging to the given User data, status_code, headers = api_instance.um_users_s3keys_find_by_key_id_with_http_info(user_id, key_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <S3Key>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_s3keys_find_by_key_id_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
user_id
String
The unique ID of the user
key_id
String
The unique access key ID of the S3 key
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 S3 keys owned by a user by using the users ID. This user Id can be found in the response body when a user is created or when you GET a list of users.
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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the useropts = { 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# Retrieve a User's S3 keys result = api_instance.um_users_s3keys_get(user_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_s3keys_get: #{e}"end
Using the um_users_s3keys_get_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
Creates a S3 key for the given user. This user Id can be found in the response body when a user is created or when you GET a list of users. Maximum of 5 keys can be generated for a given user
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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the useropts = { 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 S3 key for the given user result = api_instance.um_users_s3keys_post(user_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_s3keys_post: #{e}"end
Using the um_users_s3keys_post_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Create a S3 key for the given user data, status_code, headers = api_instance.um_users_s3keys_post_with_http_info(user_id, opts)p status_code # => 2xxp headers # => { ... }p data # => <S3Key>rescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_s3keys_post_with_http_info: #{e}"end
Parameters
Name
Type
Description
Notes
user_id
String
The unique ID of the user
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::UserManagementApi.newuser_id ='user_id_example'# String | key_id ='key_id_example'# String | The unique access key ID of the S3 keys3_key =Ionoscloud::S3Key.new({properties: Ionoscloud::S3KeyProperties.new}) # S3Key | Modified S3 keyopts = { 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 S3 key having the given key id result = api_instance.um_users_s3keys_put(user_id, key_id, s3_key, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_s3keys_put: #{e}"end
Using the um_users_s3keys_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
Retrieve S3 object storage single signon URL for the given user
You can retrieve S3 object storage single signon URL for the given user. This user Id can be found in the response body when a user is created or when you GET a list of users.
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::UserManagementApi.newuser_id ='user_id_example'# String | The unique ID of the useropts = { 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# Retrieve S3 object storage single signon URL for the given user result = api_instance.um_users_s3ssourl_get(user_id, opts)p resultrescueIonoscloud::ApiError=> eputs"Error when calling UserManagementApi->um_users_s3ssourl_get: #{e}"end
Using the um_users_s3ssourl_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.