opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getDnsZoneV2
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
Up-to-date reference of API arguments for DNS zone you can get at documentation portal (private zone) and documentation portal (public zone)
Use this data source to get the ID of an available OpenTelekomCloud DNS zone.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const zone1 = opentelekomcloud.getDnsZoneV2({
name: "example.com.",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
zone1 = opentelekomcloud.get_dns_zone_v2(name="example.com.")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.LookupDnsZoneV2(ctx, &opentelekomcloud.LookupDnsZoneV2Args{
Name: pulumi.StringRef("example.com."),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var zone1 = Opentelekomcloud.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.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.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 = OpentelekomcloudFunctions.getDnsZoneV2(GetDnsZoneV2Args.builder()
.name("example.com.")
.build());
}
}
variables:
zone1:
fn::invoke:
function: opentelekomcloud: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,
status: Optional[str] = None,
tags: Optional[Mapping[str, 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,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, 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: opentelekomcloud: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. A fuzzy search will be performed.
- Status string
- The zone's status.
- Dictionary<string, string>
- Tags map to be matched. An exact match will be performed. If the value starts with an asterisk (*), the string following the asterisk is fuzzy matched.
- Ttl double
- The time to live (TTL) of the zone.
- Zone
Type string - The type of the zone:
private
orpublic
. This argument is required to matchprivate
zones.
- 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. A fuzzy search will be performed.
- Status string
- The zone's status.
- map[string]string
- Tags map to be matched. An exact match will be performed. If the value starts with an asterisk (*), the string following the asterisk is fuzzy matched.
- Ttl float64
- The time to live (TTL) of the zone.
- Zone
Type string - The type of the zone:
private
orpublic
. This argument is required to matchprivate
zones.
- 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. A fuzzy search will be performed.
- status String
- The zone's status.
- Map<String,String>
- Tags map to be matched. An exact match will be performed. If the value starts with an asterisk (*), the string following the asterisk is fuzzy matched.
- ttl Double
- The time to live (TTL) of the zone.
- zone
Type String - The type of the zone:
private
orpublic
. This argument is required to matchprivate
zones.
- 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. A fuzzy search will be performed.
- status string
- The zone's status.
- {[key: string]: string}
- Tags map to be matched. An exact match will be performed. If the value starts with an asterisk (*), the string following the asterisk is fuzzy matched.
- ttl number
- The time to live (TTL) of the zone.
- zone
Type string - The type of the zone:
private
orpublic
. This argument is required to matchprivate
zones.
- 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. A fuzzy search will be performed.
- status str
- The zone's status.
- Mapping[str, str]
- Tags map to be matched. An exact match will be performed. If the value starts with an asterisk (*), the string following the asterisk is fuzzy matched.
- ttl float
- The time to live (TTL) of the zone.
- zone_
type str - The type of the zone:
private
orpublic
. This argument is required to matchprivate
zones.
- 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. A fuzzy search will be performed.
- status String
- The zone's status.
- Map<String>
- Tags map to be matched. An exact match will be performed. If the value starts with an asterisk (*), the string following the asterisk is fuzzy matched.
- ttl Number
- The time to live (TTL) of the zone.
- zone
Type String - The type of the zone:
private
orpublic
. This argument is required to matchprivate
zones.
getDnsZoneV2 Result
The following output properties are available:
- Created
At string - The time the zone was created.
- Description string
- Email string
- Id string
- Links Dictionary<string, string>
- Masters List<string>
- An array of master DNS servers.
- Name string
- Pool
Id string - The ID of the pool hosting the zone.
- Project
Id string - The project ID that owns the zone.
- Serial double
- The serial number of the zone.
- Status string
- Ttl double
- Updated
At string - The time the zone was last updated.
- Zone
Type string - Dictionary<string, string>
- Created
At string - The time the zone was created.
- Description string
- Email string
- Id string
- Links map[string]string
- Masters []string
- An array of master DNS servers.
- Name string
- Pool
Id string - The ID of the pool hosting the zone.
- Project
Id string - The project ID that owns the zone.
- Serial float64
- The serial number of the zone.
- Status string
- Ttl float64
- Updated
At string - The time the zone was last updated.
- Zone
Type string - map[string]string
- created
At String - The time the zone was created.
- description String
- email String
- id String
- links Map<String,String>
- masters List<String>
- An array of master DNS servers.
- name String
- pool
Id String - The ID of the pool hosting the zone.
- project
Id String - The project ID that owns the zone.
- serial Double
- The serial number of the zone.
- status String
- ttl Double
- updated
At String - The time the zone was last updated.
- zone
Type String - Map<String,String>
- created
At string - The time the zone was created.
- description string
- email string
- id string
- links {[key: string]: string}
- masters string[]
- An array of master DNS servers.
- name string
- pool
Id string - The ID of the pool hosting the zone.
- project
Id string - The project ID that owns the zone.
- serial number
- The serial number of the zone.
- status string
- ttl number
- updated
At string - The time the zone was last updated.
- zone
Type string - {[key: string]: string}
- created_
at str - The time the zone was created.
- description str
- email str
- id str
- links Mapping[str, str]
- masters Sequence[str]
- An array of master DNS servers.
- name str
- pool_
id str - The ID of the pool hosting the zone.
- project_
id str - The project ID that owns the zone.
- serial float
- The serial number of the zone.
- status str
- ttl float
- updated_
at str - The time the zone was last updated.
- zone_
type str - Mapping[str, str]
- created
At String - The time the zone was created.
- description String
- email String
- id String
- links Map<String>
- masters List<String>
- An array of master DNS servers.
- name String
- pool
Id String - The ID of the pool hosting the zone.
- project
Id String - The project ID that owns the zone.
- serial Number
- The serial number of the zone.
- status String
- ttl Number
- updated
At String - The time the zone was last updated.
- zone
Type String - Map<String>
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud