Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
Get information about a DNS Zone.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Yandex.GetDnsZone.InvokeAsync(new Yandex.GetDnsZoneArgs
{
DnsZoneId = yandex_dns_zone.Zone1.Id,
}));
this.Zone = foo.Apply(foo => foo.Zone);
}
[Output("zone")]
public Output<string> Zone { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := yandex_dns_zone.Zone1.Id
foo, err := yandex.LookupDnsZone(ctx, &GetDnsZoneArgs{
DnsZoneId: &opt0,
}, nil)
if err != nil {
return err
}
ctx.Export("zone", foo.Zone)
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const foo = yandex.getDnsZone({
dnsZoneId: yandex_dns_zone.zone1.id,
});
export const zone = foo.then(foo => foo.zone);
import pulumi
import pulumi_yandex as yandex
foo = yandex.get_dns_zone(dns_zone_id=yandex_dns_zone["zone1"]["id"])
pulumi.export("zone", foo.zone)
Example coming soon!
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(dns_zone_id: Optional[str] = None,
folder_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsZoneResult
def get_dns_zone_output(dns_zone_id: Optional[pulumi.Input[str]] = None,
folder_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: yandex:index/getDnsZone:getDnsZone
arguments:
# arguments dictionaryThe following arguments are supported:
- dns_
zone_ strid - The ID of the DNS Zone.
- folder_
id str - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name str
- Name of the DNS Zone.
getDnsZone Result
The following output properties are available:
- Created
At string - (Computed) The DNS zone creation timestamp.
- Description string
- (Computed) Description of the DNS zone.
- Dns
Zone stringId - Folder
Id string - (Computed) The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- (Computed) A set of key/value label pairs to assign to the DNS zone.
- Name string
- (Computed) User assigned name of a specific resource. Must be unique within the folder.
- Private
Networks List<string> - (Computed) For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
- Public bool
- (Computed) The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
- Zone string
- (Computed) The DNS name of this zone, e.g. "example.com.". Must ends with dot.
- Created
At string - (Computed) The DNS zone creation timestamp.
- Description string
- (Computed) Description of the DNS zone.
- Dns
Zone stringId - Folder
Id string - (Computed) The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- (Computed) A set of key/value label pairs to assign to the DNS zone.
- Name string
- (Computed) User assigned name of a specific resource. Must be unique within the folder.
- Private
Networks []string - (Computed) For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
- Public bool
- (Computed) The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
- Zone string
- (Computed) The DNS name of this zone, e.g. "example.com.". Must ends with dot.
- created
At String - (Computed) The DNS zone creation timestamp.
- description String
- (Computed) Description of the DNS zone.
- dns
Zone StringId - folder
Id String - (Computed) The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- (Computed) A set of key/value label pairs to assign to the DNS zone.
- name String
- (Computed) User assigned name of a specific resource. Must be unique within the folder.
- private
Networks List<String> - (Computed) For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
- public_ Boolean
- (Computed) The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
- zone String
- (Computed) The DNS name of this zone, e.g. "example.com.". Must ends with dot.
- created
At string - (Computed) The DNS zone creation timestamp.
- description string
- (Computed) Description of the DNS zone.
- dns
Zone stringId - folder
Id string - (Computed) The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- (Computed) A set of key/value label pairs to assign to the DNS zone.
- name string
- (Computed) User assigned name of a specific resource. Must be unique within the folder.
- private
Networks string[] - (Computed) For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
- public boolean
- (Computed) The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
- zone string
- (Computed) The DNS name of this zone, e.g. "example.com.". Must ends with dot.
- created_
at str - (Computed) The DNS zone creation timestamp.
- description str
- (Computed) Description of the DNS zone.
- dns_
zone_ strid - folder_
id str - (Computed) The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- (Computed) A set of key/value label pairs to assign to the DNS zone.
- name str
- (Computed) User assigned name of a specific resource. Must be unique within the folder.
- private_
networks Sequence[str] - (Computed) For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
- public bool
- (Computed) The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
- zone str
- (Computed) The DNS name of this zone, e.g. "example.com.". Must ends with dot.
- created
At String - (Computed) The DNS zone creation timestamp.
- description String
- (Computed) Description of the DNS zone.
- dns
Zone StringId - folder
Id String - (Computed) The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- (Computed) A set of key/value label pairs to assign to the DNS zone.
- name String
- (Computed) User assigned name of a specific resource. Must be unique within the folder.
- private
Networks List<String> - (Computed) For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
- public Boolean
- (Computed) The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
- zone String
- (Computed) The DNS name of this zone, e.g. "example.com.". Must ends with dot.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandexTerraform Provider.
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
