vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getPublicdnsZone
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_vkcs as vkcs
zone = vkcs.get_publicdns_zone(zone="example.com")
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
})
}
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",
});
});
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());
}
}
variables:
zone:
fn::invoke:
function: vkcs:getPublicdnsZone
arguments:
zone: example.com
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>
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]
func LookupPublicdnsZone(ctx *Context, args *LookupPublicdnsZoneArgs, opts ...InvokeOption) (*LookupPublicdnsZoneResult, error)
func LookupPublicdnsZoneOutput(ctx *Context, args *LookupPublicdnsZoneOutputArgs, opts ...InvokeOption) LookupPublicdnsZoneResultOutput
> 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)
}
public static CompletableFuture<GetPublicdnsZoneResult> getPublicdnsZone(GetPublicdnsZoneArgs args, InvokeOptions options)
public static Output<GetPublicdnsZoneResult> getPublicdnsZone(GetPublicdnsZoneArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getPublicdnsZone:getPublicdnsZone
arguments:
# arguments dictionary
The following arguments are supported:
- Admin
Email 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.
- Primary
Dns 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.
- Admin
Email 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.
- Primary
Dns 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.
- admin
Email 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.
- primary
Dns 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.
- admin
Email 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.
- primary
Dns 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.
- admin
Email 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.
- primary
Dns 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:
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.