All URIs are relative to https://api.scaleway.com
Method | HTTP request | Description |
---|---|---|
create_volume | POST /instance/v1/zones/{zone}/volumes | Create a volume |
delete_volume | DELETE /instance/v1/zones/{zone}/volumes/{volume_id} | Delete a volume |
get_volume | GET /instance/v1/zones/{zone}/volumes/{volume_id} | Get a volume |
list_volumes | GET /instance/v1/zones/{zone}/volumes | List volumes |
set_volume | PUT /instance/v1/zones/{zone}/volumes/{id} | Update volume |
update_volume | PATCH /instance/v1/zones/{zone}/volumes/{volume_id} | Update a volume |
crate::models::ScalewayPeriodInstancePeriodV1PeriodCreateVolumeResponse create_volume(zone, create_volume_request) Create a volume
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
create_volume_request | CreateVolumeRequest | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodCreateVolumeResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_volume(zone, volume_id) Delete a volume
Delete the volume with the given ID.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
volume_id | String | UUID of the volume 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::ScalewayPeriodInstancePeriodV1PeriodGetVolumeResponse get_volume(zone, volume_id) Get a volume
Get details of a volume with the given ID.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
volume_id | String | UUID of the volume you want to get | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodGetVolumeResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodListVolumesResponse list_volumes(zone, volume_type, per_page, page, organization, project, tags, name) List volumes
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
volume_type | Option<String> | Filter by volume type | [default to l_ssd] | |
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> | Filter volume by organization ID | ||
project | Option<String> | Filter volume by project ID | ||
tags | Option<String> | Filter volumes with these exact tags (to filter with several tags, use commas to separate them) | ||
name | Option<String> | Filter volume by name (for eg. "vol" will return "myvolume" but not "data") |
crate::models::ScalewayPeriodInstancePeriodV1PeriodListVolumesResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodSetVolumeResponse set_volume(zone, id, set_volume_request) Update volume
Replace all volume properties with a volume message.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
id | String | The volumes unique ID | [required] | |
set_volume_request | SetVolumeRequest | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodSetVolumeResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ScalewayPeriodInstancePeriodV1PeriodUpdateVolumeResponse update_volume(zone, volume_id, update_volume_request) Update a volume
Replace name and/or size properties of given ID volume with the given value(s). Any volume name can be changed while, for now, only b_ssd
volume growing is supported.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
zone | String | The zone you want to target | [required] | |
volume_id | String | UUID of the volume | [required] | |
update_volume_request | UpdateVolumeRequest | [required] |
crate::models::ScalewayPeriodInstancePeriodV1PeriodUpdateVolumeResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]