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.

NameRegex string

A regex string to filter results by the domain group name.

OutputFile string
Ids []string

A list of instance IDs.

NameRegex string

A regex string to filter results by the domain group name.

OutputFile string
ids string[]

A list of instance IDs.

nameRegex string

A regex string to filter results by the domain group name.

outputFile 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.AliCloud.Dns.Outputs.GetAlidnsDomainGroupsGroup>

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.

NameRegex string
OutputFile string
Groups []GetAlidnsDomainGroupsGroup

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

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of instance IDs.

Names []string

A list of domain group names.

NameRegex string
OutputFile string
groups GetAlidnsDomainGroupsGroup[]

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

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of instance IDs.

names string[]

A list of domain group names.

nameRegex string
outputFile string
groups List[GetAlidnsDomainGroupsGroup]

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.

DomainCount int

Number of domain names in the group.

GroupId string

Id of the domain group.

GroupName string

The name of the domain group.

Id string

Id of the instance.

DomainCount int

Number of domain names in the group.

GroupId string

Id of the domain group.

GroupName string

The name of the domain group.

Id string

Id of the instance.

domainCount number

Number of domain names in the group.

groupId string

Id of the domain group.

groupName string

The name of the domain group.

id string

Id of the instance.

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 alicloud Terraform Provider.