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.
- Output
File string
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.
Ali Cloud. Pvtz. Outputs. Get Zones Zone> A list of zones. Each element contains the following attributes:
- Keyword string
- Output
File string
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.
- Bind
Vpcs List<Pulumi.Ali Cloud. Pvtz. Inputs. Get Zones Zone Bind Vpc Args> List of the VPCs is bound to the Private Zone.
- Creation
Time string Time of creation of the Private Zone.
- Id string
ID of the Private Zone.
- Is
Ptr bool Whether the Private Zone is ptr
- Name string
Name of the Private Zone.
- Record
Count int Count of the Private Zone Record.
- Remark string
Remark of the Private Zone.
- Update
Time string Time of update of the Private Zone.
- Bind
Vpcs []GetZones Zone Bind Vpc List of the VPCs is bound to the Private Zone.
- Creation
Time string Time of creation of the Private Zone.
- Id string
ID of the Private Zone.
- Is
Ptr bool Whether the Private Zone is ptr
- Name string
Name of the Private Zone.
- Record
Count int Count of the Private Zone Record.
- Remark string
Remark of the Private Zone.
- Update
Time string Time of update of the Private Zone.
- bind
Vpcs GetZones Zone Bind Vpc[] List of the VPCs is bound to the Private Zone.
- creation
Time string Time of creation of the Private Zone.
- id string
ID of the Private Zone.
- is
Ptr boolean Whether the Private Zone is ptr
- name string
Name of the Private Zone.
- record
Count number Count of the Private Zone Record.
- remark string
Remark of the Private Zone.
- update
Time string Time of update of the Private Zone.
- bind
Vpcs List[GetZones Zone Bind Vpc] 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.