GetDomains

Provides a WAF datasource to retrieve domains.

For information about WAF and how to use it, see What is Alibaba Cloud WAF.

NOTE: Available in 1.86.0+ .

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.Waf.GetDomains.InvokeAsync(new AliCloud.Waf.GetDomainsArgs
        {
            InstanceId = "waf-cf-xxxxx",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.waf.get_domains(instance_id="waf-cf-xxxxx")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultDomains = pulumi.output(alicloud.waf.getDomains({
    instanceId: "waf-cf-xxxxx",
}, { async: true }));

Using GetDomains

function getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>
function  get_domains(ids=None, instance_id=None, output_file=None, opts=None)
func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)
public static class GetDomains {
    public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

InstanceId string

The Id of waf instance to which waf domain belongs.

Ids List<string>

A list of WAF domain names. Each item is domain name.

OutputFile string
InstanceId string

The Id of waf instance to which waf domain belongs.

Ids []string

A list of WAF domain names. Each item is domain name.

OutputFile string
instanceId string

The Id of waf instance to which waf domain belongs.

ids string[]

A list of WAF domain names. Each item is domain name.

outputFile string
instance_id str

The Id of waf instance to which waf domain belongs.

ids List[str]

A list of WAF domain names. Each item is domain name.

output_file str

GetDomains Result

The following output properties are available:

Domains List<Pulumi.AliCloud.Waf.Outputs.GetDomainsDomain>

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

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

(Optional) A list of WAF domain names. Each item is domain name.

InstanceId string
OutputFile string
Domains []GetDomainsDomain

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

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

(Optional) A list of WAF domain names. Each item is domain name.

InstanceId string
OutputFile string
domains GetDomainsDomain[]

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

id string

The provider-assigned unique ID for this managed resource.

ids string[]

(Optional) A list of WAF domain names. Each item is domain name.

instanceId string
outputFile string
domains List[GetDomainsDomain]

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

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

(Optional) A list of WAF domain names. Each item is domain name.

instance_id str
output_file str

Supporting Types

GetDomainsDomain

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Domain string

Name of the domain.

Domain string

Name of the domain.

domain string

Name of the domain.

domain str

Name of the domain.

Package Details

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