Show / Hide Table of Contents

Class GetDomains

Inheritance
System.Object
GetDomains
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 GetDomains

Methods

View Source

InvokeAsync(GetDomainsArgs, InvokeOptions)

This data source provides a list of DNS Domains 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 domainsDs = Output.Create(AliCloud.Dns.GetDomains.InvokeAsync(new AliCloud.Dns.GetDomainsArgs
    {
        DomainNameRegex = "^hegu",
        OutputFile = "domains.txt",
    }));
    this.FirstDomainId = domainsDs.Apply(domainsDs => domainsDs.Domains[0].DomainId);
}

[Output("firstDomainId")]
public Output<string> FirstDomainId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetDomainsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetDomainsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.