diff --git a/docs/resources/edge_services_dns_stage.md b/docs/resources/edge_services_dns_stage.md index bda3143fbe..6aacdd9409 100644 --- a/docs/resources/edge_services_dns_stage.md +++ b/docs/resources/edge_services_dns_stage.md @@ -33,6 +33,7 @@ In addition to all arguments above, the following attributes are exported: - `id` - The ID of the DNS stage (UUID format). - `type` - The type of the stage. +- `default_fqdn` - The Default Fully Qualified Domain Name attached to the stage. - `created_at` - The date and time of the creation of the DNS stage. - `updated_at` - The date and time of the last update of the DNS stage. diff --git a/go.mod b/go.mod index ca9de7a721..3fff5c9629 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/nats-io/jwt/v2 v2.8.0 github.com/nats-io/nats.go v1.46.1 github.com/robfig/cron/v3 v3.0.1 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251015050748-12aafea99911 + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251017125838-3eb0f2adaa94 github.com/stretchr/testify v1.11.1 golang.org/x/crypto v0.43.0 golang.org/x/sync v0.17.0 diff --git a/go.sum b/go.sum index 3fc2cf7f91..5640a8102b 100644 --- a/go.sum +++ b/go.sum @@ -457,8 +457,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251015050748-12aafea99911 h1:puwRtGGoGw9Rw3qlB7ltimV2+uugkalN08DyVEL1VoE= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251015050748-12aafea99911/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251017125838-3eb0f2adaa94 h1:39j+3zweuYVml1Ozahl7RVb0AtpaiQtRztjq4W3GvNM= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251017125838-3eb0f2adaa94/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA= github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= diff --git a/internal/services/edgeservices/dns_stage.go b/internal/services/edgeservices/dns_stage.go index d74ad717d8..c1326216e7 100644 --- a/internal/services/edgeservices/dns_stage.go +++ b/internal/services/edgeservices/dns_stage.go @@ -63,6 +63,11 @@ func ResourceDNSStage() *schema.Resource { Computed: true, Description: "The type of the stage", }, + "default_fqdn": { + Type: schema.TypeString, + Computed: true, + Description: "Default Fully Qualified Domain Name attached to the stage", + }, "created_at": { Type: schema.TypeString, Computed: true, @@ -120,6 +125,7 @@ func ResourceDNSStageRead(ctx context.Context, d *schema.ResourceData, m any) di _ = d.Set("created_at", types.FlattenTime(dnsStage.CreatedAt)) _ = d.Set("updated_at", types.FlattenTime(dnsStage.UpdatedAt)) _ = d.Set("type", dnsStage.Type.String()) + _ = d.Set("default_fqdn", dnsStage.DefaultFqdn) oldFQDNs := d.Get("fqdns").([]any) oldFQDNsSet := make(map[string]bool) diff --git a/templates/resources/edge_services_dns_stage.md.tmpl b/templates/resources/edge_services_dns_stage.md.tmpl index 7c85e9d1c5..b1075f9bd1 100644 --- a/templates/resources/edge_services_dns_stage.md.tmpl +++ b/templates/resources/edge_services_dns_stage.md.tmpl @@ -34,6 +34,7 @@ In addition to all arguments above, the following attributes are exported: - `id` - The ID of the DNS stage (UUID format). - `type` - The type of the stage. +- `default_fqdn` - The Default Fully Qualified Domain Name attached to the stage. - `created_at` - The date and time of the creation of the DNS stage. - `updated_at` - The date and time of the last update of the DNS stage.