Skip to content

Commit ab562f3

Browse files
committed
feat(edge-services): add default fqdn on dns stage
1 parent e126e9c commit ab562f3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

docs/resources/edge_services_dns_stage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ In addition to all arguments above, the following attributes are exported:
3333

3434
- `id` - The ID of the DNS stage (UUID format).
3535
- `type` - The type of the stage.
36+
- `default_fqdn` - The Default Fully Qualified Domain Name attached to the stage.
3637
- `created_at` - The date and time of the creation of the DNS stage.
3738
- `updated_at` - The date and time of the last update of the DNS stage.
3839

internal/services/edgeservices/dns_stage.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ func ResourceDNSStage() *schema.Resource {
6363
Computed: true,
6464
Description: "The type of the stage",
6565
},
66+
"default_fqdn": {
67+
Type: schema.TypeString,
68+
Computed: true,
69+
Description: "Default Fully Qualified Domain Name attached to the stage",
70+
},
6671
"created_at": {
6772
Type: schema.TypeString,
6873
Computed: true,
@@ -120,6 +125,7 @@ func ResourceDNSStageRead(ctx context.Context, d *schema.ResourceData, m any) di
120125
_ = d.Set("created_at", types.FlattenTime(dnsStage.CreatedAt))
121126
_ = d.Set("updated_at", types.FlattenTime(dnsStage.UpdatedAt))
122127
_ = d.Set("type", dnsStage.Type.String())
128+
_ = d.Set("default_fqdn", dnsStage.DefaultFqdn)
123129

124130
oldFQDNs := d.Get("fqdns").([]any)
125131
oldFQDNsSet := make(map[string]bool)

templates/resources/edge_services_dns_stage.md.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ In addition to all arguments above, the following attributes are exported:
3434

3535
- `id` - The ID of the DNS stage (UUID format).
3636
- `type` - The type of the stage.
37+
- `default_fqdn` - The Default Fully Qualified Domain Name attached to the stage.
3738
- `created_at` - The date and time of the creation of the DNS stage.
3839
- `updated_at` - The date and time of the last update of the DNS stage.
3940

0 commit comments

Comments
 (0)