Scaleway logo
Edge Services API

A DNS stage is part of a pipeline. It allows you to customize your Edge Services endpoint with a domain you own. This is useful if you do not want to use the default domain endpoint provided by Scaleway. Edge Services will then serve content from your customized domain. A TLS stage is also necessary to provide an SSL/TLS certificate so that Edge Services can serve traffic for your customized domain over HTTPS.


Get DNS stage

GET
https://api.scaleway.com
/edge-services/v1beta1/dns-stages/{dns_stage_id}

Retrieve information about an existing DNS stage, specified by its dns_stage_id. Its full details, including FQDNs, are returned in the response object.

Get DNS stage › path Parameters

dns_stage_id
​string · required

ID of the requested DNS stage.

Get DNS stage › Responses

200
id
​string

ID of the DNS stage.

default_fqdn
​string

Default Fully Qualified Domain Name provided for the Pipeline.

fqdns
​string[]

Custom Fully Qualified Domain Names configured (only the first one is valid).

Type of the stage.

Enum values:
unknown_type
auto
managed
custom
Default: unknown_type
pipeline_id
​string

Pipeline ID the DNS stage belongs to.

status
​scaleway.edge_services.v1beta1.StageStatus · enum

Current status of the stage.

Enum values:
unknown_status
inactive
active
Default: unknown_status
created_at
​string | null · date-time

Date the DNS stage was created. (RFC 3339 format)

updated_at
​string | null · date-time

Date the DNS stage was last updated. (RFC 3339 format)

tls_stage_id
​string | null

TLS stage ID the DNS stage is linked to. (UUID format)

cache_stage_id
​string | null

Cache stage ID the DNS stage is linked to. (UUID format)

backend_stage_id
​string | null

Backend stage ID the DNS stage is linked to. (UUID format)

wildcard_domain
​boolean

Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).


Update DNS stage

PATCH
https://api.scaleway.com
/edge-services/v1beta1/dns-stages/{dns_stage_id}

Update the parameters of an existing DNS stage, specified by its dns_stage_id.

Update DNS stage › path Parameters

dns_stage_id
​string · required

ID of the DNS stage to update.

Update DNS stage › Request Body

fqdns
​array | null

Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now).

tls_stage_id
​string | null

TLS stage ID the DNS stage will be linked to. (UUID format)

cache_stage_id
​string | null

Cache stage ID the DNS stage will be linked to. (UUID format)

backend_stage_id
​string | null

Backend stage ID the DNS stage will be linked to. (UUID format)

wildcard_domain
​boolean | null

Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).

Update DNS stage › Responses

200
id
​string

ID of the DNS stage.

default_fqdn
​string

Default Fully Qualified Domain Name provided for the Pipeline.

fqdns
​string[]

Custom Fully Qualified Domain Names configured (only the first one is valid).

Type of the stage.

Enum values:
unknown_type
auto
managed
custom
Default: unknown_type
pipeline_id
​string

Pipeline ID the DNS stage belongs to.

status
​scaleway.edge_services.v1beta1.StageStatus · enum

Current status of the stage.

Enum values:
unknown_status
inactive
active
Default: unknown_status
created_at
​string | null · date-time

Date the DNS stage was created. (RFC 3339 format)

updated_at
​string | null · date-time

Date the DNS stage was last updated. (RFC 3339 format)

tls_stage_id
​string | null

TLS stage ID the DNS stage is linked to. (UUID format)

cache_stage_id
​string | null

Cache stage ID the DNS stage is linked to. (UUID format)

backend_stage_id
​string | null

Backend stage ID the DNS stage is linked to. (UUID format)

wildcard_domain
​boolean

Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).


Delete DNS stage

DELETE
https://api.scaleway.com
/edge-services/v1beta1/dns-stages/{dns_stage_id}

Delete an existing DNS stage, specified by its dns_stage_id. Deleting a DNS stage is permanent, and cannot be undone.

Delete DNS stage › path Parameters

dns_stage_id
​string · required

ID of the DNS stage to delete.

Delete DNS stage › Responses

No data returned

List DNS stages

GET
https://api.scaleway.com
/edge-services/v1beta1/pipelines/{pipeline_id}/dns-stages

List all DNS stages, for a Scaleway Organization or Scaleway Project. By default, the DNS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.

List DNS stages › path Parameters

pipeline_id
​string · required

Pipeline ID to filter for. Only DNS stages from this pipeline will be returned.

List DNS stages › query Parameters

Sort order of DNS stages in the response.

Enum values:
created_at_asc
created_at_desc
Default: created_at_asc
page
​integer · int32

Page number to return, from the paginated results.

page_size
​integer · uint32

Number of DNS stages to return per page.

fqdn
​string

Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned.

List DNS stages › Responses

200

Paginated list of DNS stages.

total_count
​integer · uint64

Count of all DNS stages matching the requested criteria.


Create DNS stage

POST
https://api.scaleway.com
/edge-services/v1beta1/pipelines/{pipeline_id}/dns-stages

Create a new DNS stage. You must specify the fqdns field to customize the domain endpoint, using a domain you already own.

Create DNS stage › path Parameters

pipeline_id
​string · required

Pipeline ID the DNS stage belongs to. (UUID format)

Create DNS stage › Request Body

fqdns
​array | null

Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now).

tls_stage_id
​string | null

TLS stage ID the DNS stage will be linked to. (UUID format)

cache_stage_id
​string | null

Cache stage ID the DNS stage will be linked to. (UUID format)

backend_stage_id
​string | null

Backend stage ID the DNS stage will be linked to. (UUID format)

wildcard_domain
​boolean | null

Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).

Create DNS stage › Responses

200
id
​string

ID of the DNS stage.

default_fqdn
​string

Default Fully Qualified Domain Name provided for the Pipeline.

fqdns
​string[]

Custom Fully Qualified Domain Names configured (only the first one is valid).

Type of the stage.

Enum values:
unknown_type
auto
managed
custom
Default: unknown_type
pipeline_id
​string

Pipeline ID the DNS stage belongs to.

status
​scaleway.edge_services.v1beta1.StageStatus · enum

Current status of the stage.

Enum values:
unknown_status
inactive
active
Default: unknown_status
created_at
​string | null · date-time

Date the DNS stage was created. (RFC 3339 format)

updated_at
​string | null · date-time

Date the DNS stage was last updated. (RFC 3339 format)

tls_stage_id
​string | null

TLS stage ID the DNS stage is linked to. (UUID format)

cache_stage_id
​string | null

Cache stage ID the DNS stage is linked to. (UUID format)

backend_stage_id
​string | null

Backend stage ID the DNS stage is linked to. (UUID format)

wildcard_domain
​boolean

Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work).