alicloud.cen.getTransitRouterMulticastDomainAssociations

This data source provides the Cen Transit Router Multicast Domain Associations of the current Alibaba Cloud user.

NOTE: Available in v1.195.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Cen.GetTransitRouterMulticastDomainAssociations.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
        TransitRouterMulticastDomainId = "your_transit_router_multicast_domain_id",
    });

    return new Dictionary<string, object?>
    {
        ["cenTransitRouterMulticastDomainId0"] = ids.Apply(getTransitRouterMulticastDomainAssociationsResult => getTransitRouterMulticastDomainAssociationsResult.Associations[0]?.Id),
    };
});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cen.GetTransitRouterMulticastDomainAssociations(ctx, &cen.GetTransitRouterMulticastDomainAssociationsArgs{
			Ids: []string{
				"example_id",
			},
			TransitRouterMulticastDomainId: "your_transit_router_multicast_domain_id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cenTransitRouterMulticastDomainId0", ids.Associations[0].Id)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetTransitRouterMulticastDomainAssociationsArgs;
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 ids = CenFunctions.getTransitRouterMulticastDomainAssociations(GetTransitRouterMulticastDomainAssociationsArgs.builder()
            .ids("example_id")
            .transitRouterMulticastDomainId("your_transit_router_multicast_domain_id")
            .build());

        ctx.export("cenTransitRouterMulticastDomainId0", ids.applyValue(getTransitRouterMulticastDomainAssociationsResult -> getTransitRouterMulticastDomainAssociationsResult.associations()[0].id()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.cen.get_transit_router_multicast_domain_associations(ids=["example_id"],
    transit_router_multicast_domain_id="your_transit_router_multicast_domain_id")
pulumi.export("cenTransitRouterMulticastDomainId0", ids.associations[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.cen.getTransitRouterMulticastDomainAssociations({
    ids: ["example_id"],
    transitRouterMulticastDomainId: "your_transit_router_multicast_domain_id",
});
export const cenTransitRouterMulticastDomainId0 = ids.then(ids => ids.associations?.[0]?.id);
variables:
  ids:
    fn::invoke:
      Function: alicloud:cen:getTransitRouterMulticastDomainAssociations
      Arguments:
        ids:
          - example_id
        transitRouterMulticastDomainId: your_transit_router_multicast_domain_id
outputs:
  cenTransitRouterMulticastDomainId0: ${ids.associations[0].id}

Using getTransitRouterMulticastDomainAssociations

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 getTransitRouterMulticastDomainAssociations(args: GetTransitRouterMulticastDomainAssociationsArgs, opts?: InvokeOptions): Promise<GetTransitRouterMulticastDomainAssociationsResult>
function getTransitRouterMulticastDomainAssociationsOutput(args: GetTransitRouterMulticastDomainAssociationsOutputArgs, opts?: InvokeOptions): Output<GetTransitRouterMulticastDomainAssociationsResult>
def get_transit_router_multicast_domain_associations(ids: Optional[Sequence[str]] = None,
                                                     output_file: Optional[str] = None,
                                                     resource_id: Optional[str] = None,
                                                     resource_type: Optional[str] = None,
                                                     status: Optional[str] = None,
                                                     transit_router_attachment_id: Optional[str] = None,
                                                     transit_router_multicast_domain_id: Optional[str] = None,
                                                     vswitch_id: Optional[str] = None,
                                                     opts: Optional[InvokeOptions] = None) -> GetTransitRouterMulticastDomainAssociationsResult
def get_transit_router_multicast_domain_associations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                     output_file: Optional[pulumi.Input[str]] = None,
                                                     resource_id: Optional[pulumi.Input[str]] = None,
                                                     resource_type: Optional[pulumi.Input[str]] = None,
                                                     status: Optional[pulumi.Input[str]] = None,
                                                     transit_router_attachment_id: Optional[pulumi.Input[str]] = None,
                                                     transit_router_multicast_domain_id: Optional[pulumi.Input[str]] = None,
                                                     vswitch_id: Optional[pulumi.Input[str]] = None,
                                                     opts: Optional[InvokeOptions] = None) -> Output[GetTransitRouterMulticastDomainAssociationsResult]
func GetTransitRouterMulticastDomainAssociations(ctx *Context, args *GetTransitRouterMulticastDomainAssociationsArgs, opts ...InvokeOption) (*GetTransitRouterMulticastDomainAssociationsResult, error)
func GetTransitRouterMulticastDomainAssociationsOutput(ctx *Context, args *GetTransitRouterMulticastDomainAssociationsOutputArgs, opts ...InvokeOption) GetTransitRouterMulticastDomainAssociationsResultOutput

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

public static class GetTransitRouterMulticastDomainAssociations 
{
    public static Task<GetTransitRouterMulticastDomainAssociationsResult> InvokeAsync(GetTransitRouterMulticastDomainAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetTransitRouterMulticastDomainAssociationsResult> Invoke(GetTransitRouterMulticastDomainAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTransitRouterMulticastDomainAssociationsResult> getTransitRouterMulticastDomainAssociations(GetTransitRouterMulticastDomainAssociationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:cen/getTransitRouterMulticastDomainAssociations:getTransitRouterMulticastDomainAssociations
  arguments:
    # arguments dictionary

The following arguments are supported:

TransitRouterMulticastDomainId string

The ID of the multicast domain.

Ids List<string>

A list of Transit Router Multicast Domain Association IDs.

OutputFile string
ResourceId string

The ID of the resource associated with the multicast domain.

ResourceType string

The type of resource associated with the multicast domain. Valid Value: VPC.

Status string

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

TransitRouterAttachmentId string

The ID of the network instance connection.

VswitchId string

The ID of the vSwitch.

TransitRouterMulticastDomainId string

The ID of the multicast domain.

Ids []string

A list of Transit Router Multicast Domain Association IDs.

OutputFile string
ResourceId string

The ID of the resource associated with the multicast domain.

ResourceType string

The type of resource associated with the multicast domain. Valid Value: VPC.

Status string

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

TransitRouterAttachmentId string

The ID of the network instance connection.

VswitchId string

The ID of the vSwitch.

transitRouterMulticastDomainId String

The ID of the multicast domain.

ids List<String>

A list of Transit Router Multicast Domain Association IDs.

outputFile String
resourceId String

The ID of the resource associated with the multicast domain.

resourceType String

The type of resource associated with the multicast domain. Valid Value: VPC.

status String

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

transitRouterAttachmentId String

The ID of the network instance connection.

vswitchId String

The ID of the vSwitch.

transitRouterMulticastDomainId string

The ID of the multicast domain.

ids string[]

A list of Transit Router Multicast Domain Association IDs.

outputFile string
resourceId string

The ID of the resource associated with the multicast domain.

resourceType string

The type of resource associated with the multicast domain. Valid Value: VPC.

status string

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

transitRouterAttachmentId string

The ID of the network instance connection.

vswitchId string

The ID of the vSwitch.

transit_router_multicast_domain_id str

The ID of the multicast domain.

ids Sequence[str]

A list of Transit Router Multicast Domain Association IDs.

output_file str
resource_id str

The ID of the resource associated with the multicast domain.

resource_type str

The type of resource associated with the multicast domain. Valid Value: VPC.

status str

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

transit_router_attachment_id str

The ID of the network instance connection.

vswitch_id str

The ID of the vSwitch.

transitRouterMulticastDomainId String

The ID of the multicast domain.

ids List<String>

A list of Transit Router Multicast Domain Association IDs.

outputFile String
resourceId String

The ID of the resource associated with the multicast domain.

resourceType String

The type of resource associated with the multicast domain. Valid Value: VPC.

status String

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

transitRouterAttachmentId String

The ID of the network instance connection.

vswitchId String

The ID of the vSwitch.

getTransitRouterMulticastDomainAssociations Result

The following output properties are available:

Associations List<Pulumi.AliCloud.Cen.Outputs.GetTransitRouterMulticastDomainAssociationsAssociation>

A list of Cen Transit Router Multicast Domain Associations. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
TransitRouterMulticastDomainId string

The ID of the multicast domain.

OutputFile string
ResourceId string

The ID of the resource associated with the multicast domain.

ResourceType string

The type of resource associated with the multicast domain.

Status string

The status of the associated resource.

TransitRouterAttachmentId string

The ID of the network instance connection.

VswitchId string

The ID of the vSwitch.

Associations []GetTransitRouterMulticastDomainAssociationsAssociation

A list of Cen Transit Router Multicast Domain Associations. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string
TransitRouterMulticastDomainId string

The ID of the multicast domain.

OutputFile string
ResourceId string

The ID of the resource associated with the multicast domain.

ResourceType string

The type of resource associated with the multicast domain.

Status string

The status of the associated resource.

TransitRouterAttachmentId string

The ID of the network instance connection.

VswitchId string

The ID of the vSwitch.

associations List<GetTransitRouterMulticastDomainAssociationsAssociation>

A list of Cen Transit Router Multicast Domain Associations. Each element contains the following attributes:

id String

The provider-assigned unique ID for this managed resource.

ids List<String>
transitRouterMulticastDomainId String

The ID of the multicast domain.

outputFile String
resourceId String

The ID of the resource associated with the multicast domain.

resourceType String

The type of resource associated with the multicast domain.

status String

The status of the associated resource.

transitRouterAttachmentId String

The ID of the network instance connection.

vswitchId String

The ID of the vSwitch.

associations GetTransitRouterMulticastDomainAssociationsAssociation[]

A list of Cen Transit Router Multicast Domain Associations. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]
transitRouterMulticastDomainId string

The ID of the multicast domain.

outputFile string
resourceId string

The ID of the resource associated with the multicast domain.

resourceType string

The type of resource associated with the multicast domain.

status string

The status of the associated resource.

transitRouterAttachmentId string

The ID of the network instance connection.

vswitchId string

The ID of the vSwitch.

associations Sequence[GetTransitRouterMulticastDomainAssociationsAssociation]

A list of Cen Transit Router Multicast Domain Associations. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
transit_router_multicast_domain_id str

The ID of the multicast domain.

output_file str
resource_id str

The ID of the resource associated with the multicast domain.

resource_type str

The type of resource associated with the multicast domain.

status str

The status of the associated resource.

transit_router_attachment_id str

The ID of the network instance connection.

vswitch_id str

The ID of the vSwitch.

associations List<Property Map>

A list of Cen Transit Router Multicast Domain Associations. Each element contains the following attributes:

id String

The provider-assigned unique ID for this managed resource.

ids List<String>
transitRouterMulticastDomainId String

The ID of the multicast domain.

outputFile String
resourceId String

The ID of the resource associated with the multicast domain.

resourceType String

The type of resource associated with the multicast domain.

status String

The status of the associated resource.

transitRouterAttachmentId String

The ID of the network instance connection.

vswitchId String

The ID of the vSwitch.

Supporting Types

GetTransitRouterMulticastDomainAssociationsAssociation

Id string

The ID of the Transit Router Multicast Domain Association. It formats as <transit_router_multicast_domain_id>:<transit_router_attachment_id>:<vswitch_id>.

ResourceId string

The ID of the resource associated with the multicast domain.

ResourceOwnerId int

The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.

ResourceType string

The type of resource associated with the multicast domain. Valid Value: VPC.

Status string

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

TransitRouterAttachmentId string

The ID of the network instance connection.

TransitRouterMulticastDomainId string

The ID of the multicast domain.

VswitchId string

The ID of the vSwitch.

Id string

The ID of the Transit Router Multicast Domain Association. It formats as <transit_router_multicast_domain_id>:<transit_router_attachment_id>:<vswitch_id>.

ResourceId string

The ID of the resource associated with the multicast domain.

ResourceOwnerId int

The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.

ResourceType string

The type of resource associated with the multicast domain. Valid Value: VPC.

Status string

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

TransitRouterAttachmentId string

The ID of the network instance connection.

TransitRouterMulticastDomainId string

The ID of the multicast domain.

VswitchId string

The ID of the vSwitch.

id String

The ID of the Transit Router Multicast Domain Association. It formats as <transit_router_multicast_domain_id>:<transit_router_attachment_id>:<vswitch_id>.

resourceId String

The ID of the resource associated with the multicast domain.

resourceOwnerId Integer

The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.

resourceType String

The type of resource associated with the multicast domain. Valid Value: VPC.

status String

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

transitRouterAttachmentId String

The ID of the network instance connection.

transitRouterMulticastDomainId String

The ID of the multicast domain.

vswitchId String

The ID of the vSwitch.

id string

The ID of the Transit Router Multicast Domain Association. It formats as <transit_router_multicast_domain_id>:<transit_router_attachment_id>:<vswitch_id>.

resourceId string

The ID of the resource associated with the multicast domain.

resourceOwnerId number

The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.

resourceType string

The type of resource associated with the multicast domain. Valid Value: VPC.

status string

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

transitRouterAttachmentId string

The ID of the network instance connection.

transitRouterMulticastDomainId string

The ID of the multicast domain.

vswitchId string

The ID of the vSwitch.

id str

The ID of the Transit Router Multicast Domain Association. It formats as <transit_router_multicast_domain_id>:<transit_router_attachment_id>:<vswitch_id>.

resource_id str

The ID of the resource associated with the multicast domain.

resource_owner_id int

The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.

resource_type str

The type of resource associated with the multicast domain. Valid Value: VPC.

status str

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

transit_router_attachment_id str

The ID of the network instance connection.

transit_router_multicast_domain_id str

The ID of the multicast domain.

vswitch_id str

The ID of the vSwitch.

id String

The ID of the Transit Router Multicast Domain Association. It formats as <transit_router_multicast_domain_id>:<transit_router_attachment_id>:<vswitch_id>.

resourceId String

The ID of the resource associated with the multicast domain.

resourceOwnerId Number

The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.

resourceType String

The type of resource associated with the multicast domain. Valid Value: VPC.

status String

The status of the associated resource. Valid Value: Associated, Associating, Dissociating.

transitRouterAttachmentId String

The ID of the network instance connection.

transitRouterMulticastDomainId String

The ID of the multicast domain.

vswitchId String

The ID of the vSwitch.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.