1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getDnsZoneV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getDnsZoneV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the ID of an available FlexibleEngine DNS zone.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const zone1 = flexibleengine.getDnsZoneV2({
        name: "example.com",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    zone1 = flexibleengine.get_dns_zone_v2(name="example.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.LookupDnsZoneV2(ctx, &flexibleengine.LookupDnsZoneV2Args{
    			Name: pulumi.StringRef("example.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var zone1 = Flexibleengine.GetDnsZoneV2.Invoke(new()
        {
            Name = "example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetDnsZoneV2Args;
    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) {
            final var zone1 = FlexibleengineFunctions.getDnsZoneV2(GetDnsZoneV2Args.builder()
                .name("example.com")
                .build());
    
        }
    }
    
    variables:
      zone1:
        fn::invoke:
          function: flexibleengine:getDnsZoneV2
          arguments:
            name: example.com
    

    Using getDnsZoneV2

    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 getDnsZoneV2(args: GetDnsZoneV2Args, opts?: InvokeOptions): Promise<GetDnsZoneV2Result>
    function getDnsZoneV2Output(args: GetDnsZoneV2OutputArgs, opts?: InvokeOptions): Output<GetDnsZoneV2Result>
    def get_dns_zone_v2(description: Optional[str] = None,
                        email: Optional[str] = None,
                        id: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        status: Optional[str] = None,
                        ttl: Optional[float] = None,
                        zone_type: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDnsZoneV2Result
    def get_dns_zone_v2_output(description: Optional[pulumi.Input[str]] = None,
                        email: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        region: Optional[pulumi.Input[str]] = None,
                        status: Optional[pulumi.Input[str]] = None,
                        ttl: Optional[pulumi.Input[float]] = None,
                        zone_type: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDnsZoneV2Result]
    func LookupDnsZoneV2(ctx *Context, args *LookupDnsZoneV2Args, opts ...InvokeOption) (*LookupDnsZoneV2Result, error)
    func LookupDnsZoneV2Output(ctx *Context, args *LookupDnsZoneV2OutputArgs, opts ...InvokeOption) LookupDnsZoneV2ResultOutput

    > Note: This function is named LookupDnsZoneV2 in the Go SDK.

    public static class GetDnsZoneV2 
    {
        public static Task<GetDnsZoneV2Result> InvokeAsync(GetDnsZoneV2Args args, InvokeOptions? opts = null)
        public static Output<GetDnsZoneV2Result> Invoke(GetDnsZoneV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsZoneV2Result> getDnsZoneV2(GetDnsZoneV2Args args, InvokeOptions options)
    public static Output<GetDnsZoneV2Result> getDnsZoneV2(GetDnsZoneV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getDnsZoneV2:getDnsZoneV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    A description of the zone.
    Email string
    The email contact for the zone record.
    Id string
    Name string
    The name of the zone.
    Region string
    The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.
    Status string
    The zone's status.
    Ttl double
    The time to live (TTL) of the zone.
    ZoneType string
    The type of the zone. Can either be public or private.
    Description string
    A description of the zone.
    Email string
    The email contact for the zone record.
    Id string
    Name string
    The name of the zone.
    Region string
    The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.
    Status string
    The zone's status.
    Ttl float64
    The time to live (TTL) of the zone.
    ZoneType string
    The type of the zone. Can either be public or private.
    description String
    A description of the zone.
    email String
    The email contact for the zone record.
    id String
    name String
    The name of the zone.
    region String
    The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.
    status String
    The zone's status.
    ttl Double
    The time to live (TTL) of the zone.
    zoneType String
    The type of the zone. Can either be public or private.
    description string
    A description of the zone.
    email string
    The email contact for the zone record.
    id string
    name string
    The name of the zone.
    region string
    The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.
    status string
    The zone's status.
    ttl number
    The time to live (TTL) of the zone.
    zoneType string
    The type of the zone. Can either be public or private.
    description str
    A description of the zone.
    email str
    The email contact for the zone record.
    id str
    name str
    The name of the zone.
    region str
    The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.
    status str
    The zone's status.
    ttl float
    The time to live (TTL) of the zone.
    zone_type str
    The type of the zone. Can either be public or private.
    description String
    A description of the zone.
    email String
    The email contact for the zone record.
    id String
    name String
    The name of the zone.
    region String
    The region in which to obtain the V2 DNS client. A DNS client is needed to retrieve zone ids. If omitted, the region argument of the provider is used.
    status String
    The zone's status.
    ttl Number
    The time to live (TTL) of the zone.
    zoneType String
    The type of the zone. Can either be public or private.

    getDnsZoneV2 Result

    The following output properties are available:

    Id string
    Masters List<string>
    An array of master DNS servers.
    PoolId string
    The ID of the pool hosting the zone.
    ProjectId string
    The project ID that owns the zone.
    Region string
    See Argument Reference above.
    Serial double
    The serial number of the zone.
    Description string
    See Argument Reference above.
    Email string
    See Argument Reference above.
    Name string
    See Argument Reference above.
    Status string
    See Argument Reference above.
    Ttl double
    See Argument Reference above.
    ZoneType string
    See Argument Reference above.
    Id string
    Masters []string
    An array of master DNS servers.
    PoolId string
    The ID of the pool hosting the zone.
    ProjectId string
    The project ID that owns the zone.
    Region string
    See Argument Reference above.
    Serial float64
    The serial number of the zone.
    Description string
    See Argument Reference above.
    Email string
    See Argument Reference above.
    Name string
    See Argument Reference above.
    Status string
    See Argument Reference above.
    Ttl float64
    See Argument Reference above.
    ZoneType string
    See Argument Reference above.
    id String
    masters List<String>
    An array of master DNS servers.
    poolId String
    The ID of the pool hosting the zone.
    projectId String
    The project ID that owns the zone.
    region String
    See Argument Reference above.
    serial Double
    The serial number of the zone.
    description String
    See Argument Reference above.
    email String
    See Argument Reference above.
    name String
    See Argument Reference above.
    status String
    See Argument Reference above.
    ttl Double
    See Argument Reference above.
    zoneType String
    See Argument Reference above.
    id string
    masters string[]
    An array of master DNS servers.
    poolId string
    The ID of the pool hosting the zone.
    projectId string
    The project ID that owns the zone.
    region string
    See Argument Reference above.
    serial number
    The serial number of the zone.
    description string
    See Argument Reference above.
    email string
    See Argument Reference above.
    name string
    See Argument Reference above.
    status string
    See Argument Reference above.
    ttl number
    See Argument Reference above.
    zoneType string
    See Argument Reference above.
    id str
    masters Sequence[str]
    An array of master DNS servers.
    pool_id str
    The ID of the pool hosting the zone.
    project_id str
    The project ID that owns the zone.
    region str
    See Argument Reference above.
    serial float
    The serial number of the zone.
    description str
    See Argument Reference above.
    email str
    See Argument Reference above.
    name str
    See Argument Reference above.
    status str
    See Argument Reference above.
    ttl float
    See Argument Reference above.
    zone_type str
    See Argument Reference above.
    id String
    masters List<String>
    An array of master DNS servers.
    poolId String
    The ID of the pool hosting the zone.
    projectId String
    The project ID that owns the zone.
    region String
    See Argument Reference above.
    serial Number
    The serial number of the zone.
    description String
    See Argument Reference above.
    email String
    See Argument Reference above.
    name String
    See Argument Reference above.
    status String
    See Argument Reference above.
    ttl Number
    See Argument Reference above.
    zoneType String
    See Argument Reference above.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud