Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.cen.getTransitRouterMulticastDomainAssociations
Explore with Pulumi AI
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
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);
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)
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
})
}
using System.Collections.Generic;
using System.Linq;
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 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()));
}
}
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:
- Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Ids List<string>
- A list of Transit Router Multicast Domain Association IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Id string - The ID of the resource associated with the multicast domain.
- Resource
Type 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
. - Transit
Router stringAttachment Id - The ID of the network instance connection.
- Vswitch
Id string - The ID of the vSwitch.
- Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Ids []string
- A list of Transit Router Multicast Domain Association IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Id string - The ID of the resource associated with the multicast domain.
- Resource
Type 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
. - Transit
Router stringAttachment Id - The ID of the network instance connection.
- Vswitch
Id string - The ID of the vSwitch.
- transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- ids List<String>
- A list of Transit Router Multicast Domain Association IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Id String - The ID of the resource associated with the multicast domain.
- resource
Type 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
. - transit
Router StringAttachment Id - The ID of the network instance connection.
- vswitch
Id String - The ID of the vSwitch.
- transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- ids string[]
- A list of Transit Router Multicast Domain Association IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Id string - The ID of the resource associated with the multicast domain.
- resource
Type 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
. - transit
Router stringAttachment Id - The ID of the network instance connection.
- vswitch
Id string - The ID of the vSwitch.
- transit_
router_ strmulticast_ domain_ id - The ID of the multicast domain.
- ids Sequence[str]
- A list of Transit Router Multicast Domain Association IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - 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_ strattachment_ id - The ID of the network instance connection.
- vswitch_
id str - The ID of the vSwitch.
- transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- ids List<String>
- A list of Transit Router Multicast Domain Association IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Id String - The ID of the resource associated with the multicast domain.
- resource
Type 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
. - transit
Router StringAttachment Id - The ID of the network instance connection.
- vswitch
Id String - The ID of the vSwitch.
getTransitRouterMulticastDomainAssociations Result
The following output properties are available:
- Associations
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Transit Router Multicast Domain Associations Association> - 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>
- Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Output
File string - Resource
Id string - The ID of the resource associated with the multicast domain.
- Resource
Type string - The type of resource associated with the multicast domain.
- Status string
- The status of the associated resource.
- Transit
Router stringAttachment Id - The ID of the network instance connection.
- Vswitch
Id string - The ID of the vSwitch.
- Associations
[]Get
Transit Router Multicast Domain Associations Association - 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
- Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Output
File string - Resource
Id string - The ID of the resource associated with the multicast domain.
- Resource
Type string - The type of resource associated with the multicast domain.
- Status string
- The status of the associated resource.
- Transit
Router stringAttachment Id - The ID of the network instance connection.
- Vswitch
Id string - The ID of the vSwitch.
- associations
List<Get
Transit Router Multicast Domain Associations Association> - 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>
- transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- output
File String - resource
Id String - The ID of the resource associated with the multicast domain.
- resource
Type String - The type of resource associated with the multicast domain.
- status String
- The status of the associated resource.
- transit
Router StringAttachment Id - The ID of the network instance connection.
- vswitch
Id String - The ID of the vSwitch.
- associations
Get
Transit Router Multicast Domain Associations Association[] - 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[]
- transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- output
File string - resource
Id string - The ID of the resource associated with the multicast domain.
- resource
Type string - The type of resource associated with the multicast domain.
- status string
- The status of the associated resource.
- transit
Router stringAttachment Id - The ID of the network instance connection.
- vswitch
Id string - The ID of the vSwitch.
- associations
Sequence[Get
Transit Router Multicast Domain Associations Association] - 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_ strmulticast_ domain_ id - 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_ strattachment_ id - 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>
- transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- output
File String - resource
Id String - The ID of the resource associated with the multicast domain.
- resource
Type String - The type of resource associated with the multicast domain.
- status String
- The status of the associated resource.
- transit
Router StringAttachment Id - The ID of the network instance connection.
- vswitch
Id 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>
. - Resource
Id string - The ID of the resource associated with the multicast domain.
- Resource
Owner intId - The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.
- Resource
Type 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
. - Transit
Router stringAttachment Id - The ID of the network instance connection.
- Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Vswitch
Id 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>
. - Resource
Id string - The ID of the resource associated with the multicast domain.
- Resource
Owner intId - The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.
- Resource
Type 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
. - Transit
Router stringAttachment Id - The ID of the network instance connection.
- Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Vswitch
Id 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>
. - resource
Id String - The ID of the resource associated with the multicast domain.
- resource
Owner IntegerId - The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.
- resource
Type 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
. - transit
Router StringAttachment Id - The ID of the network instance connection.
- transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- vswitch
Id 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>
. - resource
Id string - The ID of the resource associated with the multicast domain.
- resource
Owner numberId - The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.
- resource
Type 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
. - transit
Router stringAttachment Id - The ID of the network instance connection.
- transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- vswitch
Id 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_ intid - 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_ strattachment_ id - The ID of the network instance connection.
- transit_
router_ strmulticast_ domain_ id - 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>
. - resource
Id String - The ID of the resource associated with the multicast domain.
- resource
Owner NumberId - The ID of the Alibaba Cloud account to which the resource associated with the multicast domain belongs.
- resource
Type 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
. - transit
Router StringAttachment Id - The ID of the network instance connection.
- transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- vswitch
Id 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.