GetZoneRecords

This data source provides Private Zone Records resource information owned by an Alibaba Cloud account.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var recordsDs = Output.Create(AliCloud.Pvtz.GetZoneRecords.InvokeAsync(new AliCloud.Pvtz.GetZoneRecordsArgs
        {
            Keyword = alicloud_pvtz_zone_record.Foo.Value,
            ZoneId = alicloud_pvtz_zone.Basic.Id,
        }));
        this.FirstRecordId = recordsDs.Apply(recordsDs => recordsDs.Records[0].Id);
    }

    [Output("firstRecordId")]
    public Output<string> FirstRecordId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

records_ds = alicloud.pvtz.get_zone_records(keyword=alicloud_pvtz_zone_record["foo"]["value"],
    zone_id=alicloud_pvtz_zone["basic"]["id"])
pulumi.export("firstRecordId", records_ds.records[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const recordsDs = pulumi.all([alicloud_pvtz_zone_record_foo.value, alicloud_pvtz_zone_basic.id]).apply(([value, id]) => alicloud.pvtz.getZoneRecords({
    keyword: value,
    zoneId: id,
}, { async: true }));

export const firstRecordId = recordsDs.records[0].id;

Using GetZoneRecords

function getZoneRecords(args: GetZoneRecordsArgs, opts?: InvokeOptions): Promise<GetZoneRecordsResult>
function  get_zone_records(ids=None, keyword=None, output_file=None, zone_id=None, opts=None)
func GetZoneRecords(ctx *Context, args *GetZoneRecordsArgs, opts ...InvokeOption) (*GetZoneRecordsResult, error)
public static class GetZoneRecords {
    public static Task<GetZoneRecordsResult> InvokeAsync(GetZoneRecordsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ZoneId string

ID of the Private Zone.

Ids List<string>

A list of Private Zone Record IDs.

Keyword string

Keyword for record rr and value.

OutputFile string
ZoneId string

ID of the Private Zone.

Ids []string

A list of Private Zone Record IDs.

Keyword string

Keyword for record rr and value.

OutputFile string
zoneId string

ID of the Private Zone.

ids string[]

A list of Private Zone Record IDs.

keyword string

Keyword for record rr and value.

outputFile string
zone_id str

ID of the Private Zone.

ids List[str]

A list of Private Zone Record IDs.

keyword str

Keyword for record rr and value.

output_file str

GetZoneRecords Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of Private Zone Record IDs.

Records List<Pulumi.AliCloud.Pvtz.Outputs.GetZoneRecordsRecord>

A list of zone records. Each element contains the following attributes:

ZoneId string
Keyword string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of Private Zone Record IDs.

Records []GetZoneRecordsRecord

A list of zone records. Each element contains the following attributes:

ZoneId string
Keyword string
OutputFile string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of Private Zone Record IDs.

records GetZoneRecordsRecord[]

A list of zone records. Each element contains the following attributes:

zoneId string
keyword string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of Private Zone Record IDs.

records List[GetZoneRecordsRecord]

A list of zone records. Each element contains the following attributes:

zone_id str
keyword str
output_file str

Supporting Types

GetZoneRecordsRecord

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id int

ID of the Private Zone Record.

Priority int

Priority of the Private Zone Record.

ResourceRecord string

Resource record of the Private Zone Record.

Status string
Ttl int

Ttl of the Private Zone Record.

Type string

Type of the Private Zone Record.

Value string

Value of the Private Zone Record.

Id int

ID of the Private Zone Record.

Priority int

Priority of the Private Zone Record.

ResourceRecord string

Resource record of the Private Zone Record.

Status string
Ttl int

Ttl of the Private Zone Record.

Type string

Type of the Private Zone Record.

Value string

Value of the Private Zone Record.

id number

ID of the Private Zone Record.

priority number

Priority of the Private Zone Record.

resourceRecord string

Resource record of the Private Zone Record.

status string
ttl number

Ttl of the Private Zone Record.

type string

Type of the Private Zone Record.

value string

Value of the Private Zone Record.

id float

ID of the Private Zone Record.

priority float

Priority of the Private Zone Record.

resource_record str

Resource record of the Private Zone Record.

status str
ttl float

Ttl of the Private Zone Record.

type str

Type of the Private Zone Record.

value str

Value of the Private Zone Record.

Package Details

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