Class GetRecords
Inheritance
System.Object
GetRecords
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Dns
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetRecords
Methods
View SourceInvokeAsync(GetRecordsArgs, InvokeOptions)
This data source provides a list of DNS Domain Records in an Alibaba Cloud account according to the specified filters.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var recordsDs = Output.Create(AliCloud.Dns.GetRecords.InvokeAsync(new AliCloud.Dns.GetRecordsArgs
{
DomainName = "xiaozhu.top",
HostRecordRegex = "^@",
IsLocked = false,
OutputFile = "records.txt",
Type = "A",
}));
this.FirstRecordId = recordsDs.Apply(recordsDs => recordsDs.Records[0].RecordId);
}
[Output("firstRecordId")]
public Output<string> FirstRecordId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetRecordsResult> InvokeAsync(GetRecordsArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetRecordsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetRecordsResult> |