GetAlidnsDomainGroups
This data source provides a list of Alidns Domain Groups in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.85.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AliCloud.Dns.GetAlidnsDomainGroups.InvokeAsync(new AliCloud.Dns.GetAlidnsDomainGroupsArgs
{
Ids =
{
"c5ef2bc43064445787adf182af2****",
},
}));
this.FirstDomainGroupId = example.Apply(example => example.Groups[0].Id);
}
[Output("firstDomainGroupId")]
public Output<string> FirstDomainGroupId { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.dns.get_alidns_domain_groups(ids=["c5ef2bc43064445787adf182af2****"])
pulumi.export("firstDomainGroupId", example.groups[0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = pulumi.output(alicloud.dns.getAlidnsDomainGroups({
ids: ["c5ef2bc43064445787adf182af2****"],
}, { async: true }));
export const firstDomainGroupId = example.groups[0].id;Using GetAlidnsDomainGroups
function getAlidnsDomainGroups(args: GetAlidnsDomainGroupsArgs, opts?: InvokeOptions): Promise<GetAlidnsDomainGroupsResult>function get_alidns_domain_groups(ids=None, name_regex=None, output_file=None, opts=None)func GetAlidnsDomainGroups(ctx *Context, args *GetAlidnsDomainGroupsArgs, opts ...InvokeOption) (*GetAlidnsDomainGroupsResult, error)public static class GetAlidnsDomainGroups {
public static Task<GetAlidnsDomainGroupsResult> InvokeAsync(GetAlidnsDomainGroupsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ids List<string>
A list of instance IDs.
- Name
Regex string A regex string to filter results by the domain group name.
- Output
File string
- ids List[str]
A list of instance IDs.
- name_
regex str A regex string to filter results by the domain group name.
- output_
file str
GetAlidnsDomainGroups Result
The following output properties are available:
- Groups
List<Pulumi.
Ali Cloud. Dns. Outputs. Get Alidns Domain Groups Group> A list of instances. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of instance IDs.
- Names List<string>
A list of domain group names.
- Name
Regex string - Output
File string
- groups
List[Get
Alidns Domain Groups Group] A list of instances. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of instance IDs.
- names List[str]
A list of domain group names.
- name_
regex str - output_
file str
Supporting Types
GetAlidnsDomainGroupsGroup
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_
count float Number of domain names in the group.
- group_
id str Id of the domain group.
- group_
name str The name of the domain group.
- id str
Id of the instance.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.