1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getPublicdnsZone
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getPublicdnsZone

Explore with Pulumi AI

vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

Use this data source to get the ID of a VKCS public DNS zone.

New since v0.2.0.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";

const zone = vkcs.getPublicdnsZone({
    zone: "example.com",
});
Copy
import pulumi
import pulumi_vkcs as vkcs

zone = vkcs.get_publicdns_zone(zone="example.com")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vkcs.LookupPublicdnsZone(ctx, &vkcs.LookupPublicdnsZoneArgs{
			Zone: pulumi.StringRef("example.com"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;

return await Deployment.RunAsync(() => 
{
    var zone = Vkcs.GetPublicdnsZone.Invoke(new()
    {
        Zone = "example.com",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetPublicdnsZoneArgs;
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 zone = VkcsFunctions.getPublicdnsZone(GetPublicdnsZoneArgs.builder()
            .zone("example.com")
            .build());

    }
}
Copy
variables:
  zone:
    fn::invoke:
      function: vkcs:getPublicdnsZone
      arguments:
        zone: example.com
Copy

Using getPublicdnsZone

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 getPublicdnsZone(args: GetPublicdnsZoneArgs, opts?: InvokeOptions): Promise<GetPublicdnsZoneResult>
function getPublicdnsZoneOutput(args: GetPublicdnsZoneOutputArgs, opts?: InvokeOptions): Output<GetPublicdnsZoneResult>
Copy
def get_publicdns_zone(admin_email: Optional[str] = None,
                       expire: Optional[float] = None,
                       id: Optional[str] = None,
                       primary_dns: Optional[str] = None,
                       refresh: Optional[float] = None,
                       region: Optional[str] = None,
                       retry: Optional[float] = None,
                       serial: Optional[float] = None,
                       status: Optional[str] = None,
                       ttl: Optional[float] = None,
                       zone: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPublicdnsZoneResult
def get_publicdns_zone_output(admin_email: Optional[pulumi.Input[str]] = None,
                       expire: Optional[pulumi.Input[float]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       primary_dns: Optional[pulumi.Input[str]] = None,
                       refresh: Optional[pulumi.Input[float]] = None,
                       region: Optional[pulumi.Input[str]] = None,
                       retry: Optional[pulumi.Input[float]] = None,
                       serial: Optional[pulumi.Input[float]] = None,
                       status: Optional[pulumi.Input[str]] = None,
                       ttl: Optional[pulumi.Input[float]] = None,
                       zone: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPublicdnsZoneResult]
Copy
func LookupPublicdnsZone(ctx *Context, args *LookupPublicdnsZoneArgs, opts ...InvokeOption) (*LookupPublicdnsZoneResult, error)
func LookupPublicdnsZoneOutput(ctx *Context, args *LookupPublicdnsZoneOutputArgs, opts ...InvokeOption) LookupPublicdnsZoneResultOutput
Copy

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

public static class GetPublicdnsZone 
{
    public static Task<GetPublicdnsZoneResult> InvokeAsync(GetPublicdnsZoneArgs args, InvokeOptions? opts = null)
    public static Output<GetPublicdnsZoneResult> Invoke(GetPublicdnsZoneInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPublicdnsZoneResult> getPublicdnsZone(GetPublicdnsZoneArgs args, InvokeOptions options)
public static Output<GetPublicdnsZoneResult> getPublicdnsZone(GetPublicdnsZoneArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vkcs:index/getPublicdnsZone:getPublicdnsZone
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AdminEmail string
optional string → The admin email of the zone SOA.
Expire double
optional number → The expire time of the zone SOA.
Id string
optional string → The UUID of the DNS zone.
PrimaryDns string
optional string → The primary DNS of the zone SOA.
Refresh double
optional number → The refresh time of the zone SOA.
Region string
optional string → The region in which to obtain the V2 Public DNS client. If omitted, the region argument of the provider is used.
Retry double
optional number → The retry time of the zone SOA.
Serial double
optional number → The serial number of the zone SOA.
Status string
optional string → The status of the zone.
Ttl double
optional number → The TTL (time to live) of the zone SOA.
Zone string
optional string → The name of the zone.
AdminEmail string
optional string → The admin email of the zone SOA.
Expire float64
optional number → The expire time of the zone SOA.
Id string
optional string → The UUID of the DNS zone.
PrimaryDns string
optional string → The primary DNS of the zone SOA.
Refresh float64
optional number → The refresh time of the zone SOA.
Region string
optional string → The region in which to obtain the V2 Public DNS client. If omitted, the region argument of the provider is used.
Retry float64
optional number → The retry time of the zone SOA.
Serial float64
optional number → The serial number of the zone SOA.
Status string
optional string → The status of the zone.
Ttl float64
optional number → The TTL (time to live) of the zone SOA.
Zone string
optional string → The name of the zone.
adminEmail String
optional string → The admin email of the zone SOA.
expire Double
optional number → The expire time of the zone SOA.
id String
optional string → The UUID of the DNS zone.
primaryDns String
optional string → The primary DNS of the zone SOA.
refresh Double
optional number → The refresh time of the zone SOA.
region String
optional string → The region in which to obtain the V2 Public DNS client. If omitted, the region argument of the provider is used.
retry Double
optional number → The retry time of the zone SOA.
serial Double
optional number → The serial number of the zone SOA.
status String
optional string → The status of the zone.
ttl Double
optional number → The TTL (time to live) of the zone SOA.
zone String
optional string → The name of the zone.
adminEmail string
optional string → The admin email of the zone SOA.
expire number
optional number → The expire time of the zone SOA.
id string
optional string → The UUID of the DNS zone.
primaryDns string
optional string → The primary DNS of the zone SOA.
refresh number
optional number → The refresh time of the zone SOA.
region string
optional string → The region in which to obtain the V2 Public DNS client. If omitted, the region argument of the provider is used.
retry number
optional number → The retry time of the zone SOA.
serial number
optional number → The serial number of the zone SOA.
status string
optional string → The status of the zone.
ttl number
optional number → The TTL (time to live) of the zone SOA.
zone string
optional string → The name of the zone.
admin_email str
optional string → The admin email of the zone SOA.
expire float
optional number → The expire time of the zone SOA.
id str
optional string → The UUID of the DNS zone.
primary_dns str
optional string → The primary DNS of the zone SOA.
refresh float
optional number → The refresh time of the zone SOA.
region str
optional string → The region in which to obtain the V2 Public DNS client. If omitted, the region argument of the provider is used.
retry float
optional number → The retry time of the zone SOA.
serial float
optional number → The serial number of the zone SOA.
status str
optional string → The status of the zone.
ttl float
optional number → The TTL (time to live) of the zone SOA.
zone str
optional string → The name of the zone.
adminEmail String
optional string → The admin email of the zone SOA.
expire Number
optional number → The expire time of the zone SOA.
id String
optional string → The UUID of the DNS zone.
primaryDns String
optional string → The primary DNS of the zone SOA.
refresh Number
optional number → The refresh time of the zone SOA.
region String
optional string → The region in which to obtain the V2 Public DNS client. If omitted, the region argument of the provider is used.
retry Number
optional number → The retry time of the zone SOA.
serial Number
optional number → The serial number of the zone SOA.
status String
optional string → The status of the zone.
ttl Number
optional number → The TTL (time to live) of the zone SOA.
zone String
optional string → The name of the zone.

getPublicdnsZone Result

The following output properties are available:

AdminEmail string
Expire double
Id string
PrimaryDns string
Refresh double
Region string
Retry double
Serial double
Status string
Ttl double
Zone string
AdminEmail string
Expire float64
Id string
PrimaryDns string
Refresh float64
Region string
Retry float64
Serial float64
Status string
Ttl float64
Zone string
adminEmail String
expire Double
id String
primaryDns String
refresh Double
region String
retry Double
serial Double
status String
ttl Double
zone String
adminEmail string
expire number
id string
primaryDns string
refresh number
region string
retry number
serial number
status string
ttl number
zone string
admin_email str
expire float
id str
primary_dns str
refresh float
region str
retry float
serial float
status str
ttl float
zone str
adminEmail String
expire Number
id String
primaryDns String
refresh Number
region String
retry Number
serial Number
status String
ttl Number
zone String

Package Details

Repository
vkcs vk-cs/terraform-provider-vkcs
License
Notes
This Pulumi package is based on the vkcs Terraform Provider.
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs