Viewing docs for netlify 0.4.1
published on Thursday, Feb 12, 2026 by netlify
published on Thursday, Feb 12, 2026 by netlify
Viewing docs for netlify 0.4.1
published on Thursday, Feb 12, 2026 by netlify
published on Thursday, Feb 12, 2026 by netlify
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netlify from "@pulumi/netlify";
// Read-only data source for a Netlify DNS zone.
const example = netlify.getDnsZone({
name: "example.com",
});
import pulumi
import pulumi_netlify as netlify
# Read-only data source for a Netlify DNS zone.
example = netlify.get_dns_zone(name="example.com")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netlify/netlify"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Read-only data source for a Netlify DNS zone.
_, err := netlify.LookupDnsZone(ctx, &netlify.LookupDnsZoneArgs{
Name: pulumi.StringRef("example.com"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netlify = Pulumi.Netlify;
return await Deployment.RunAsync(() =>
{
// Read-only data source for a Netlify DNS zone.
var example = Netlify.GetDnsZone.Invoke(new()
{
Name = "example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netlify.NetlifyFunctions;
import com.pulumi.netlify.inputs.GetDnsZoneArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Read-only data source for a Netlify DNS zone.
final var example = NetlifyFunctions.getDnsZone(GetDnsZoneArgs.builder()
.name("example.com")
.build());
}
}
variables:
# Read-only data source for a Netlify DNS zone.
example:
fn::invoke:
function: netlify:getDnsZone
arguments:
name: example.com
Using getDnsZone
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDnsZone(args: GetDnsZoneArgs, opts?: InvokeOptions): Promise<GetDnsZoneResult>
function getDnsZoneOutput(args: GetDnsZoneOutputArgs, opts?: InvokeOptions): Output<GetDnsZoneResult>def get_dns_zone(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsZoneResult
def get_dns_zone_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDnsZoneResult]func LookupDnsZone(ctx *Context, args *LookupDnsZoneArgs, opts ...InvokeOption) (*LookupDnsZoneResult, error)
func LookupDnsZoneOutput(ctx *Context, args *LookupDnsZoneOutputArgs, opts ...InvokeOption) LookupDnsZoneResultOutput> Note: This function is named LookupDnsZone in the Go SDK.
public static class GetDnsZone
{
public static Task<GetDnsZoneResult> InvokeAsync(GetDnsZoneArgs args, InvokeOptions? opts = null)
public static Output<GetDnsZoneResult> Invoke(GetDnsZoneInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDnsZoneResult> getDnsZone(GetDnsZoneArgs args, InvokeOptions options)
public static Output<GetDnsZoneResult> getDnsZone(GetDnsZoneArgs args, InvokeOptions options)
fn::invoke:
function: netlify:index/getDnsZone:getDnsZone
arguments:
# arguments dictionaryThe following arguments are supported:
getDnsZone Result
The following output properties are available:
- Dns
Servers List<string> - Domain
Get
Dns Zone Domain - Id string
- The ID of this resource.
- Name string
- Records
List<Get
Dns Zone Record> - Team
Id string - Team
Slug string
- Dns
Servers []string - Domain
Get
Dns Zone Domain - Id string
- The ID of this resource.
- Name string
- Records
[]Get
Dns Zone Record - Team
Id string - Team
Slug string
- dns
Servers List<String> - domain
Get
Dns Zone Domain - id String
- The ID of this resource.
- name String
- records
List<Get
Dns Zone Record> - team
Id String - team
Slug String
- dns
Servers string[] - domain
Get
Dns Zone Domain - id string
- The ID of this resource.
- name string
- records
Get
Dns Zone Record[] - team
Id string - team
Slug string
- dns_
servers Sequence[str] - domain
Get
Dns Zone Domain - id str
- The ID of this resource.
- name str
- records
Sequence[Get
Dns Zone Record] - team_
id str - team_
slug str
- dns
Servers List<String> - domain Property Map
- id String
- The ID of this resource.
- name String
- records List<Property Map>
- team
Id String - team
Slug String
Supporting Types
GetDnsZoneDomain
- Auto
Renew bool - Auto
Renew stringAt - Expires
At string - Id string
- Name string
- Registered
At string - Renewal
Price string
- Auto
Renew bool - Auto
Renew stringAt - Expires
At string - Id string
- Name string
- Registered
At string - Renewal
Price string
- auto
Renew Boolean - auto
Renew StringAt - expires
At String - id String
- name String
- registered
At String - renewal
Price String
- auto
Renew boolean - auto
Renew stringAt - expires
At string - id string
- name string
- registered
At string - renewal
Price string
- auto_
renew bool - auto_
renew_ strat - expires_
at str - id str
- name str
- registered_
at str - renewal_
price str
- auto
Renew Boolean - auto
Renew StringAt - expires
At String - id String
- name String
- registered
At String - renewal
Price String
GetDnsZoneRecord
Package Details
- Repository
- netlify netlify/terraform-provider-netlify
- License
- Notes
- This Pulumi package is based on the
netlifyTerraform Provider.
Viewing docs for netlify 0.4.1
published on Thursday, Feb 12, 2026 by netlify
published on Thursday, Feb 12, 2026 by netlify
