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; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.GetAlidnsDomainGroups(ctx, &dns.GetAlidnsDomainGroupsArgs{
			Ids: []string{
				"c5ef2bc43064445787adf182af2****",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstDomainGroupId", example.Groups[0].Id)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.DnsFunctions;
import com.pulumi.alicloud.dns.inputs.GetAlidnsDomainGroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = DnsFunctions.getAlidnsDomainGroups(GetAlidnsDomainGroupsArgs.builder()
            .ids("c5ef2bc43064445787adf182af2****")
            .build());

        ctx.export("firstDomainGroupId", example.applyValue(getAlidnsDomainGroupsResult -> getAlidnsDomainGroupsResult.groups()[0].id()));
    }
}
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****"],
}));

export const firstDomainGroupId = example.groups[0].id;
variables:
  example:
    Fn::Invoke:
      Function: alicloud:dns:getAlidnsDomainGroups
      Arguments:
        ids:
          - c5ef2bc43064445787adf182af2****
outputs:
  firstDomainGroupId: ${example.groups[0].id}

Using getAlidnsDomainGroups

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAlidnsDomainGroups(args: GetAlidnsDomainGroupsArgs, opts?: InvokeOptions): Promise<GetAlidnsDomainGroupsResult>
function getAlidnsDomainGroupsOutput(args: GetAlidnsDomainGroupsOutputArgs, opts?: InvokeOptions): Output<GetAlidnsDomainGroupsResult>
def get_alidns_domain_groups(ids: Optional[Sequence[str]] = None,
                             name_regex: Optional[str] = None,
                             output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAlidnsDomainGroupsResult
def get_alidns_domain_groups_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                             name_regex: Optional[pulumi.Input[str]] = None,
                             output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAlidnsDomainGroupsResult]
func GetAlidnsDomainGroups(ctx *Context, args *GetAlidnsDomainGroupsArgs, opts ...InvokeOption) (*GetAlidnsDomainGroupsResult, error)
func GetAlidnsDomainGroupsOutput(ctx *Context, args *GetAlidnsDomainGroupsOutputArgs, opts ...InvokeOption) GetAlidnsDomainGroupsResultOutput

> Note: This function is named GetAlidnsDomainGroups in the Go SDK.

public static class GetAlidnsDomainGroups 
{
    public static Task<GetAlidnsDomainGroupsResult> InvokeAsync(GetAlidnsDomainGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetAlidnsDomainGroupsResult> Invoke(GetAlidnsDomainGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlidnsDomainGroupsResult> getAlidnsDomainGroups(GetAlidnsDomainGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:dns/getAlidnsDomainGroups:getAlidnsDomainGroups
  arguments:
    # arguments dictionary

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 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 Sequence[str]

A list of instance IDs.

name_regex str

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

output_file str
ids List<String>

A list of instance IDs.

nameRegex String

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

outputFile String

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 List<GetAliDomainGroupsGroup>

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 Sequence[GetAlidnsDomainGroupsGroup]

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

id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of instance IDs.

names Sequence[str]

A list of domain group names.

name_regex str
output_file str
groups List<Property Map>

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

Supporting Types

GetAlidnsDomainGroupsGroup

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 Integer

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 int

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.

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.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.