TargetGroupsApi
Last updated
Last updated
All URIs are relative to https://api.ionos.com/cloudapi/v6
Method | HTTP request | Description |
---|---|---|
target_groups_delete(target_group_id, opts)
Delete a Target Group by ID
Deletes the target group specified by its ID.
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> target_groups_delete_with_http_info(target_group_id, opts)
nil (empty response body)
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
targetgroups_find_by_target_group_id(target_group_id, opts)
Get a Target Group by ID
Retrieves the properties of the target group specified by its ID.
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> targetgroups_find_by_target_group_id_with_http_info(target_group_id, opts)
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
targetgroups_get(opts)
Get Target Groups
Lists target groups. A target group is a set of one or more registered targets. You must specify an IP address, a port number, and a weight for each target. Any object with an IP address in your VDC can be a target, for example, a VM, another load balancer, etc. You can register a target with multiple target groups.
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> targetgroups_get_with_http_info(opts)
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
targetgroups_patch(target_group_id, target_group_properties, opts)
Partially Modify a Target Group by ID
Updates the properties of the target group specified by its ID.
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> targetgroups_patch_with_http_info(target_group_id, target_group_properties, opts)
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
targetgroups_post(target_group, opts)
Create a Target Group
Creates a target group.
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> targetgroups_post_with_http_info(target_group, opts)
Basic Authentication, Token Authentication
Content-Type: application/json
Accept: application/json
targetgroups_put(target_group_id, target_group, opts)
Modify a Target Group by ID
Modifies the properties of the target group specified by its ID.
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> targetgroups_put_with_http_info(target_group_id, target_group, opts)
Basic Authentication, Token Authentication
Content-Type: application/json
Accept: application/json
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
DELETE /targetgroups/{targetGroupId}
Delete a Target Group by ID
GET /targetgroups/{targetGroupId}
Get a Target Group by ID
GET /targetgroups
Get Target Groups
PATCH /targetgroups/{targetGroupId}
Partially Modify a Target Group by ID
POST /targetgroups
Create a Target Group
PUT /targetgroups/{targetGroupId}
Modify a Target Group by ID
target_group_id
String
The unique ID of the target group.
pretty
Boolean
Controls whether the response is pretty-printed (with indentations and new lines).
[optional][default to true]
depth
Integer
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[optional][default to 0]
x_contract_number
Integer
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
[optional]
target_group_id
String
The unique ID of the target group.
pretty
Boolean
Controls whether the response is pretty-printed (with indentations and new lines).
[optional][default to true]
depth
Integer
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[optional][default to 0]
x_contract_number
Integer
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
[optional]
pretty
Boolean
Controls whether the response is pretty-printed (with indentations and new lines).
[optional][default to true]
depth
Integer
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[optional][default to 0]
x_contract_number
Integer
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
[optional]
offset
Integer
The first element (from the complete list of the elements) to include in the response (used together with <b><i>limit</i></b> for pagination).
[optional][default to 0]
limit
Integer
The maximum number of elements to return (used together with <b><i>offset</i></b> for pagination). It must not exceed <b><i>200</i></b>.
[optional][default to 100]
target_group_id
String
The unique ID of the target group.
target_group_properties
The target group properties to be updated.
pretty
Boolean
Controls whether the response is pretty-printed (with indentations and new lines).
[optional][default to true]
depth
Integer
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[optional][default to 0]
x_contract_number
Integer
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
[optional]
target_group
The target group to create.
pretty
Boolean
Controls whether the response is pretty-printed (with indentations and new lines).
[optional][default to true]
depth
Integer
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[optional][default to 0]
x_contract_number
Integer
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
[optional]
target_group_id
String
The unique ID of the target group.
target_group
The modified target group.
pretty
Boolean
Controls whether the response is pretty-printed (with indentations and new lines).
[optional][default to true]
depth
Integer
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
[optional][default to 0]
x_contract_number
Integer
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
[optional]