GetZones

This data source lists a number of Private Zones resource information owned by an Alibaba Cloud account.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var pvtzZonesDs = Output.Create(AliCloud.Pvtz.GetZones.InvokeAsync(new AliCloud.Pvtz.GetZonesArgs
        {
            Keyword = alicloud_pvtz_zone.Basic.Zone_name,
        }));
        this.FirstZoneId = pvtzZonesDs.Apply(pvtzZonesDs => pvtzZonesDs.Zones[0].Id);
    }

    [Output("firstZoneId")]
    public Output<string> FirstZoneId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

pvtz_zones_ds = alicloud.pvtz.get_zones(keyword=alicloud_pvtz_zone["basic"]["zone_name"])
pulumi.export("firstZoneId", pvtz_zones_ds.zones[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const pvtzZonesDs = alicloud_pvtz_zone_basic.zoneName.apply(zoneName => alicloud.pvtz.getZones({
    keyword: zoneName,
}, { async: true }));

export const firstZoneId = pvtzZonesDs.zones[0].id;

Using GetZones

function getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function  get_zones(ids=None, keyword=None, output_file=None, opts=None)
func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
public static class GetZones {
    public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of zone IDs.

Keyword string

keyword for zone name.

OutputFile string
Ids []string

A list of zone IDs.

Keyword string

keyword for zone name.

OutputFile string
ids string[]

A list of zone IDs.

keyword string

keyword for zone name.

outputFile string
ids List[str]

A list of zone IDs.

keyword str

keyword for zone name.

output_file str

GetZones Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of zone IDs.

Names List<string>

A list of zone names.

Zones List<Pulumi.AliCloud.Pvtz.Outputs.GetZonesZone>

A list of zones. Each element contains the following attributes:

Keyword string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of zone IDs.

Names []string

A list of zone names.

Zones []GetZonesZone

A list of zones. Each element contains the following attributes:

Keyword string
OutputFile string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of zone IDs.

names string[]

A list of zone names.

zones GetZonesZone[]

A list of zones. Each element contains the following attributes:

keyword string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of zone IDs.

names List[str]

A list of zone names.

zones List[GetZonesZone]

A list of zones. Each element contains the following attributes:

keyword str
output_file str

Supporting Types

GetZonesZone

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

BindVpcs List<Pulumi.AliCloud.Pvtz.Inputs.GetZonesZoneBindVpcArgs>

List of the VPCs is bound to the Private Zone.

CreationTime string

Time of creation of the Private Zone.

Id string

ID of the Private Zone.

IsPtr bool

Whether the Private Zone is ptr

Name string

Name of the Private Zone.

RecordCount int

Count of the Private Zone Record.

Remark string

Remark of the Private Zone.

UpdateTime string

Time of update of the Private Zone.

BindVpcs []GetZonesZoneBindVpc

List of the VPCs is bound to the Private Zone.

CreationTime string

Time of creation of the Private Zone.

Id string

ID of the Private Zone.

IsPtr bool

Whether the Private Zone is ptr

Name string

Name of the Private Zone.

RecordCount int

Count of the Private Zone Record.

Remark string

Remark of the Private Zone.

UpdateTime string

Time of update of the Private Zone.

bindVpcs GetZonesZoneBindVpc[]

List of the VPCs is bound to the Private Zone.

creationTime string

Time of creation of the Private Zone.

id string

ID of the Private Zone.

isPtr boolean

Whether the Private Zone is ptr

name string

Name of the Private Zone.

recordCount number

Count of the Private Zone Record.

remark string

Remark of the Private Zone.

updateTime string

Time of update of the Private Zone.

bindVpcs List[GetZonesZoneBindVpc]

List of the VPCs is bound to the Private Zone.

creation_time str

Time of creation of the Private Zone.

id str

ID of the Private Zone.

is_ptr bool

Whether the Private Zone is ptr

name str

Name of the Private Zone.

record_count float

Count of the Private Zone Record.

remark str

Remark of the Private Zone.

update_time str

Time of update of the Private Zone.

GetZonesZoneBindVpc

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

RegionId string
VpcId string
VpcName string
RegionId string
VpcId string
VpcName string
regionId string
vpcId string
vpcName string
regionId str
vpc_id str
vpc_name str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.