Skip to content

Latest commit

 

History

History
200 lines (112 loc) · 7.03 KB

VersionsApi.md

File metadata and controls

200 lines (112 loc) · 7.03 KB

\VersionsApi

All URIs are relative to https://api.scaleway.com

Method HTTP request Description
get_dns_zone_version_diff GET /domain/v2beta1/dns-zones/version/{dns_zone_version_id}/diff Get DNS zone version diff
get_version GET /k8s/v1/regions/{region}/versions/{version_name} Get details about a specific version
list_dns_zone_version_records GET /domain/v2beta1/dns-zones/version/{dns_zone_version_id} List DNS zone version records
list_dns_zone_versions GET /domain/v2beta1/dns-zones/{dns_zone}/versions List DNS zone versions
list_versions GET /k8s/v1/regions/{region}/versions List all available versions
restore_dns_zone_version POST /domain/v2beta1/dns-zones/version/{dns_zone_version_id}/restore Restore DNS zone version

get_dns_zone_version_diff

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodGetDnsZoneVersionDiffResponse get_dns_zone_version_diff(dns_zone_version_id) Get DNS zone version diff

Get all differences from a previous DNS zone version.

Parameters

Name Type Description Required Notes
dns_zone_version_id String (UUID format) [required]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodGetDnsZoneVersionDiffResponse

Authorization

scaleway

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_version

crate::models::ScalewayPeriodK8sPeriodV1PeriodVersion get_version(region, version_name) Get details about a specific version

This method allows to get a specific Kubernetes version and the details about the version.

Parameters

Name Type Description Required Notes
region String The region you want to target [required]
version_name String The requested version name [required]

Return type

crate::models::ScalewayPeriodK8sPeriodV1PeriodVersion

Authorization

scaleway

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_dns_zone_version_records

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodListDnsZoneVersionRecordsResponse list_dns_zone_version_records(dns_zone_version_id, page, page_size) List DNS zone version records

Get a list of records from a previous DNS zone version.

Parameters

Name Type Description Required Notes
dns_zone_version_id String (UUID format) [required]
page Option<i32> The page number for the returned DNS zones versions records [default to 1]
page_size Option<i32> The maximum number of DNS zones versions records per page [default to 20]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodListDnsZoneVersionRecordsResponse

Authorization

scaleway

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_dns_zone_versions

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodListDnsZoneVersionsResponse list_dns_zone_versions(dns_zone, page, page_size) List DNS zone versions

Get a list of DNS zone versions.
The maximum version count is 100.
If the count reaches this limit, the oldest version will be deleted after each new modification.

Parameters

Name Type Description Required Notes
dns_zone String [required]
page Option<i32> The page number for the returned DNS zones versions [default to 1]
page_size Option<i32> The maximum number of DNS zones versions per page [default to 20]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodListDnsZoneVersionsResponse

Authorization

scaleway

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_versions

crate::models::ScalewayPeriodK8sPeriodV1PeriodListVersionsResponse list_versions(region) List all available versions

This method allows to list all available versions for the creation of a new Kubernetes cluster.

Parameters

Name Type Description Required Notes
region String The region you want to target [required]

Return type

crate::models::ScalewayPeriodK8sPeriodV1PeriodListVersionsResponse

Authorization

scaleway

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

restore_dns_zone_version

serde_json::Value restore_dns_zone_version(dns_zone_version_id, body) Restore DNS zone version

Restore and activate a previous DNS zone version.

Parameters

Name Type Description Required Notes
dns_zone_version_id String (UUID format) [required]
body serde_json::Value [required]

Return type

serde_json::Value

Authorization

scaleway

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]