Skip to content

Latest commit

 

History

History
383 lines (216 loc) · 12.8 KB

DnsZonesApi.md

File metadata and controls

383 lines (216 loc) · 12.8 KB

\DnsZonesApi

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

Method HTTP request Description
clone_dns_zone POST /domain/v2beta1/dns-zones/{dns_zone}/clone Clone a DNS zone
create_dns_zone POST /domain/v2beta1/dns-zones Create a DNS zone
create_ssl_certificate POST /domain/v2beta1/ssl-certificates Create or return the zone TLS certificate
delete_dns_zone DELETE /domain/v2beta1/dns-zones/{dns_zone} Delete DNS zone
delete_dns_zone_tsig_key DELETE /domain/v2beta1/dns-zones/{dns_zone}/tsig-key Delete the DNS zone TSIG Key
delete_ssl_certificate DELETE /domain/v2beta1/ssl-certificates/{dns_zone} Delete an TLS certificate
get_dns_zone_tsig_key GET /domain/v2beta1/dns-zones/{dns_zone}/tsig-key Get the DNS zone TSIG Key
get_ssl_certificate GET /domain/v2beta1/ssl-certificates/{dns_zone} Get the zone TLS certificate if it exists
list_dns_zones GET /domain/v2beta1/dns-zones List DNS zones
list_ssl_certificates GET /domain/v2beta1/ssl-certificates List all user TLS certificates
refresh_dns_zone POST /domain/v2beta1/dns-zones/{dns_zone}/refresh Refresh DNS zone
update_dns_zone PATCH /domain/v2beta1/dns-zones/{dns_zone} Update a DNS zone

clone_dns_zone

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodDnsZone clone_dns_zone(dns_zone, clone_dns_zone_request) Clone a DNS zone

Clone an existed DNS zone with all its records into a new one.

Parameters

Name Type Description Required Notes
dns_zone String The DNS zone to clone [required]
clone_dns_zone_request CloneDnsZoneRequest [required]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodDnsZone

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]

create_dns_zone

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodDnsZone create_dns_zone(create_dns_zone_request) Create a DNS zone

Create a new DNS zone.

Parameters

Name Type Description Required Notes
create_dns_zone_request CreateDnsZoneRequest [required]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodDnsZone

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]

create_ssl_certificate

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodSslCertificate create_ssl_certificate(create_ssl_certificate_request) Create or return the zone TLS certificate

Parameters

Name Type Description Required Notes
create_ssl_certificate_request CreateSslCertificateRequest [required]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodSslCertificate

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]

delete_dns_zone

serde_json::Value delete_dns_zone(dns_zone, project_id) Delete DNS zone

Delete a DNS zone and all it's records.

Parameters

Name Type Description Required Notes
dns_zone String The DNS zone to delete [required]
project_id String The project ID of the DNS zone to delete [required]

Return type

serde_json::Value

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]

delete_dns_zone_tsig_key

delete_dns_zone_tsig_key(dns_zone) Delete the DNS zone TSIG Key

Parameters

Name Type Description Required Notes
dns_zone String [required]

Return type

(empty response body)

Authorization

scaleway

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

delete_ssl_certificate

serde_json::Value delete_ssl_certificate(dns_zone) Delete an TLS certificate

Parameters

Name Type Description Required Notes
dns_zone String [required]

Return type

serde_json::Value

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_dns_zone_tsig_key

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodGetDnsZoneTsigKeyResponse get_dns_zone_tsig_key(dns_zone) Get the DNS zone TSIG Key

Get the DNS zone TSIG Key to allow AXFR request.

Parameters

Name Type Description Required Notes
dns_zone String [required]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodGetDnsZoneTsigKeyResponse

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_ssl_certificate

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodSslCertificate get_ssl_certificate(dns_zone) Get the zone TLS certificate if it exists

Parameters

Name Type Description Required Notes
dns_zone String [required]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodSslCertificate

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_zones

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodListDnsZonesResponse list_dns_zones(organization_id, project_id, order_by, page, page_size, domain, dns_zone) List DNS zones

Returns a list of manageable DNS zones. You can filter the DNS zones by domain name.

Parameters

Name Type Description Required Notes
organization_id Option<String> The organization ID on which to filter the returned DNS zones
project_id Option<String> The project ID on which to filter the returned DNS zones
order_by Option<String> The sort order of the returned DNS zones [default to domain_asc]
page Option<i32> The page number for the returned DNS zones [default to 1]
page_size Option<i32> The maximum number of DNS zones per page [default to 20]
domain Option<String> The domain on which to filter the returned DNS zones
dns_zone Option<String> The DNS zone on which to filter the returned DNS zones

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodListDnsZonesResponse

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_ssl_certificates

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodListSslCertificatesResponse list_ssl_certificates(dns_zone, page, page_size, project_id) List all user TLS certificates

Parameters

Name Type Description Required Notes
dns_zone Option<String>
page Option<i32> Page number [default to 1]
page_size Option<i32> Page size [default to 20]
project_id Option<String>

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodListSslCertificatesResponse

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]

refresh_dns_zone

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodRefreshDnsZoneResponse refresh_dns_zone(dns_zone, refresh_dns_zone_request) Refresh DNS zone

Refresh SOA DNS zone. You can recreate the given DNS zone and its sub DNS zone if needed.

Parameters

Name Type Description Required Notes
dns_zone String The DNS zone to refresh [required]
refresh_dns_zone_request RefreshDnsZoneRequest [required]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodRefreshDnsZoneResponse

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]

update_dns_zone

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodDnsZone update_dns_zone(dns_zone, update_dns_zone_request) Update a DNS zone

Update the name and/or the organizations for a DNS zone.

Parameters

Name Type Description Required Notes
dns_zone String The DNS zone to update [required]
update_dns_zone_request UpdateDnsZoneRequest [required]

Return type

crate::models::ScalewayPeriodDomainPeriodV2beta1PeriodDnsZone

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]