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:
- Instance
Id 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.
- Output
File string
- Instance
Id string The Id of waf instance to which waf domain belongs.
- Ids []string
A list of WAF domain names. Each item is domain name.
- Output
File string
- instance
Id string The Id of waf instance to which waf domain belongs.
- ids string[]
A list of WAF domain names. Each item is domain name.
- output
File 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.
Ali Cloud. Waf. Outputs. Get Domains Domain> 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.
- Instance
Id string - Output
File string
- Domains
[]Get
Domains Domain 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.
- Instance
Id string - Output
File string
- domains
Get
Domains Domain[] 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.
- instance
Id string - output
File string
- domains
List[Get
Domains Domain] 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.