All URIs are relative to https://api.scaleway.com
Method | HTTP request | Description |
---|---|---|
create_placement_group | POST /instance/v1/zones/{zone}/placement_groups | Create a placement group |
delete_placement_group | DELETE /instance/v1/zones/{zone}/placement_groups/{placement_group_id} | Delete the given placement group |
get_placement_group | GET /instance/v1/zones/{zone}/placement_groups/{placement_group_id} | Get a placement group |
get_placement_group_servers | GET /instance/v1/zones/{zone}/placement_groups/{placement_group_id}/servers | Get placement group servers |
list_placement_groups | GET /instance/v1/zones/{zone}/placement_groups | List placement groups |
set_placement_group | PUT /instance/v1/zones/{zone}/placement_groups/{placement_group_id} | Set placement group |
set_placement_group_servers | PUT /instance/v1/zones/{zone}/placement_groups/{placement_group_id}/servers | Set placement group servers |
update_placement_group | PATCH /instance/v1/zones/{zone}/placement_groups/{placement_group_id} | Update a placement group |
update_placement_group_servers | PATCH /instance/v1/zones/{zone}/placement_groups/{placement_group_id}/servers | Update placement group servers |
crate::models::ScalewayPeriodInstancePeriodV1PeriodCreatePlacementGroupResponse create_placement_group(zone, create_placement_group_request) Create a placement group
Create a new placement group.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
create_placement_group_request | CreatePlacementGroupRequest | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodCreatePlacementGroupResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_placement_group(zone, placement_group_id) Delete the given placement group
Delete the given placement group.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
placement_group_id | String | UUID of the placement group you want to delete | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodGetPlacementGroupResponse get_placement_group(zone, placement_group_id) Get a placement group
Get the given placement group.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
placement_group_id | String | UUID of the placement group you want to get | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodGetPlacementGroupResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodGetPlacementGroupServersResponse get_placement_group_servers(zone, placement_group_id) Get placement group servers
Get all servers belonging to the given placement group.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
placement_group_id | String | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodGetPlacementGroupServersResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodListPlacementGroupsResponse list_placement_groups(zone, per_page, page, organization, project, tags, name) List placement groups
List all placement groups.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
per_page | Option<i32> | A positive integer lower or equal to 100 to select the number of items to return | ||
page | Option<i32> | A positive integer to choose the page to return | [default to 1] | |
organization | Option<String> | List only placement groups of this organization ID | ||
project | Option<String> | List only placement groups of this project ID | ||
tags | Option<String> | List placement groups with these exact tags (to filter with several tags, use commas to separate them) | ||
name | Option<String> | Filter placement groups by name (for eg. "cluster1" will return "cluster100" and "cluster1" but not "foo") |
crate::models::ScalewayPeriodInstancePeriodV1PeriodListPlacementGroupsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodSetPlacementGroupResponse set_placement_group(zone, placement_group_id, set_placement_group_request) Set placement group
Set all parameters of the given placement group.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
placement_group_id | String | [required] | ||
set_placement_group_request | SetPlacementGroupRequest | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodSetPlacementGroupResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodSetPlacementGroupServersResponse set_placement_group_servers(zone, placement_group_id, set_placement_group_servers_request) Set placement group servers
Set all servers belonging to the given placement group.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
placement_group_id | String | [required] | ||
set_placement_group_servers_request | SetPlacementGroupServersRequest | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodSetPlacementGroupServersResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodUpdatePlacementGroupResponse update_placement_group(zone, placement_group_id, update_placement_group_request) Update a placement group
Update one or more parameter of the given placement group.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
placement_group_id | String | UUID of the placement group | [required] | |
update_placement_group_request | UpdatePlacementGroupRequest | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodUpdatePlacementGroupResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodUpdatePlacementGroupServersResponse update_placement_group_servers(zone, placement_group_id, update_placement_group_servers_request) Update placement group servers
Update all servers belonging to the given placement group.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
placement_group_id | String | UUID of the placement group | [required] | |
update_placement_group_servers_request | UpdatePlacementGroupServersRequest | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodUpdatePlacementGroupServersResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]