1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. getTransitRouterMulticastDomainSources
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cen.getTransitRouterMulticastDomainSources

Explore with Pulumi AI

This data source provides Cen Transit Router Multicast Domain Source available to the user.What is Transit Router Multicast Domain Source

NOTE: Available since v1.195.0.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.cen.getTransitRouterMulticastDomainSources({
    transitRouterMulticastDomainId: "tr-mcast-domain-xxxxxx",
});
export const alicloudCenTransitRouterMulticastDomainSourceExampleId = _default.then(_default => _default.sources?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.cen.get_transit_router_multicast_domain_sources(transit_router_multicast_domain_id="tr-mcast-domain-xxxxxx")
pulumi.export("alicloudCenTransitRouterMulticastDomainSourceExampleId", default.sources[0].id)
Copy
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 {
		_default, err := cen.GetTransitRouterMulticastDomainSources(ctx, &cen.GetTransitRouterMulticastDomainSourcesArgs{
			TransitRouterMulticastDomainId: "tr-mcast-domain-xxxxxx",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alicloudCenTransitRouterMulticastDomainSourceExampleId", _default.Sources[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Cen.GetTransitRouterMulticastDomainSources.Invoke(new()
    {
        TransitRouterMulticastDomainId = "tr-mcast-domain-xxxxxx",
    });

    return new Dictionary<string, object?>
    {
        ["alicloudCenTransitRouterMulticastDomainSourceExampleId"] = @default.Apply(@default => @default.Apply(getTransitRouterMulticastDomainSourcesResult => getTransitRouterMulticastDomainSourcesResult.Sources[0]?.Id)),
    };
});
Copy
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.GetTransitRouterMulticastDomainSourcesArgs;
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 default = CenFunctions.getTransitRouterMulticastDomainSources(GetTransitRouterMulticastDomainSourcesArgs.builder()
            .transitRouterMulticastDomainId("tr-mcast-domain-xxxxxx")
            .build());

        ctx.export("alicloudCenTransitRouterMulticastDomainSourceExampleId", default_.sources()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:cen:getTransitRouterMulticastDomainSources
      arguments:
        transitRouterMulticastDomainId: tr-mcast-domain-xxxxxx
outputs:
  alicloudCenTransitRouterMulticastDomainSourceExampleId: ${default.sources[0].id}
Copy

Using getTransitRouterMulticastDomainSources

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 getTransitRouterMulticastDomainSources(args: GetTransitRouterMulticastDomainSourcesArgs, opts?: InvokeOptions): Promise<GetTransitRouterMulticastDomainSourcesResult>
function getTransitRouterMulticastDomainSourcesOutput(args: GetTransitRouterMulticastDomainSourcesOutputArgs, opts?: InvokeOptions): Output<GetTransitRouterMulticastDomainSourcesResult>
Copy
def get_transit_router_multicast_domain_sources(ids: Optional[Sequence[str]] = None,
                                                output_file: Optional[str] = None,
                                                transit_router_multicast_domain_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetTransitRouterMulticastDomainSourcesResult
def get_transit_router_multicast_domain_sources_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                output_file: Optional[pulumi.Input[str]] = None,
                                                transit_router_multicast_domain_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetTransitRouterMulticastDomainSourcesResult]
Copy
func GetTransitRouterMulticastDomainSources(ctx *Context, args *GetTransitRouterMulticastDomainSourcesArgs, opts ...InvokeOption) (*GetTransitRouterMulticastDomainSourcesResult, error)
func GetTransitRouterMulticastDomainSourcesOutput(ctx *Context, args *GetTransitRouterMulticastDomainSourcesOutputArgs, opts ...InvokeOption) GetTransitRouterMulticastDomainSourcesResultOutput
Copy

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

public static class GetTransitRouterMulticastDomainSources 
{
    public static Task<GetTransitRouterMulticastDomainSourcesResult> InvokeAsync(GetTransitRouterMulticastDomainSourcesArgs args, InvokeOptions? opts = null)
    public static Output<GetTransitRouterMulticastDomainSourcesResult> Invoke(GetTransitRouterMulticastDomainSourcesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTransitRouterMulticastDomainSourcesResult> getTransitRouterMulticastDomainSources(GetTransitRouterMulticastDomainSourcesArgs args, InvokeOptions options)
public static Output<GetTransitRouterMulticastDomainSourcesResult> getTransitRouterMulticastDomainSources(GetTransitRouterMulticastDomainSourcesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TransitRouterMulticastDomainId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the multicast domain to which the multicast source belongs.
Ids List<string>
A list of the multicast domain IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
TransitRouterMulticastDomainId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the multicast domain to which the multicast source belongs.
Ids []string
A list of the multicast domain IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
transitRouterMulticastDomainId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the multicast domain to which the multicast source belongs.
ids List<String>
A list of the multicast domain IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
transitRouterMulticastDomainId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the multicast domain to which the multicast source belongs.
ids string[]
A list of the multicast domain IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
transit_router_multicast_domain_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the multicast domain to which the multicast source belongs.
ids Sequence[str]
A list of the multicast domain IDs.
output_file str
File name where to save data source results (after running pulumi preview).
transitRouterMulticastDomainId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the multicast domain to which the multicast source belongs.
ids List<String>
A list of the multicast domain IDs.
outputFile String
File name where to save data source results (after running pulumi preview).

getTransitRouterMulticastDomainSources Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Sources List<Pulumi.AliCloud.Cen.Outputs.GetTransitRouterMulticastDomainSourcesSource>
A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
TransitRouterMulticastDomainId string
The ID of the multicast domain to which the multicast source belongs.
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Sources []GetTransitRouterMulticastDomainSourcesSource
A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
TransitRouterMulticastDomainId string
The ID of the multicast domain to which the multicast source belongs.
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
sources List<GetTransitRouterMulticastDomainSourcesSource>
A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
transitRouterMulticastDomainId String
The ID of the multicast domain to which the multicast source belongs.
outputFile String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
sources GetTransitRouterMulticastDomainSourcesSource[]
A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
transitRouterMulticastDomainId string
The ID of the multicast domain to which the multicast source belongs.
outputFile string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
sources Sequence[GetTransitRouterMulticastDomainSourcesSource]
A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
transit_router_multicast_domain_id str
The ID of the multicast domain to which the multicast source belongs.
output_file str
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
sources List<Property Map>
A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
transitRouterMulticastDomainId String
The ID of the multicast domain to which the multicast source belongs.
outputFile String

Supporting Types

GetTransitRouterMulticastDomainSourcesSource

GroupIpAddress This property is required. string
The IP address of the multicast group to which the multicast source belongs. Value range: 224.0.0.1 to 239.255.255.254. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you.
Id This property is required. string
The id of the resource.
NetworkInterfaceId This property is required. string
ENI ID of the multicast source.
Status This property is required. string
The status of the resource.
TransitRouterMulticastDomainId This property is required. string
The ID of the multicast domain to which the multicast source belongs.
VpcId This property is required. string
The VPC to which the ENI of the multicast source belongs. This field is mandatory for VPCs that is owned by another accounts.
GroupIpAddress This property is required. string
The IP address of the multicast group to which the multicast source belongs. Value range: 224.0.0.1 to 239.255.255.254. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you.
Id This property is required. string
The id of the resource.
NetworkInterfaceId This property is required. string
ENI ID of the multicast source.
Status This property is required. string
The status of the resource.
TransitRouterMulticastDomainId This property is required. string
The ID of the multicast domain to which the multicast source belongs.
VpcId This property is required. string
The VPC to which the ENI of the multicast source belongs. This field is mandatory for VPCs that is owned by another accounts.
groupIpAddress This property is required. String
The IP address of the multicast group to which the multicast source belongs. Value range: 224.0.0.1 to 239.255.255.254. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you.
id This property is required. String
The id of the resource.
networkInterfaceId This property is required. String
ENI ID of the multicast source.
status This property is required. String
The status of the resource.
transitRouterMulticastDomainId This property is required. String
The ID of the multicast domain to which the multicast source belongs.
vpcId This property is required. String
The VPC to which the ENI of the multicast source belongs. This field is mandatory for VPCs that is owned by another accounts.
groupIpAddress This property is required. string
The IP address of the multicast group to which the multicast source belongs. Value range: 224.0.0.1 to 239.255.255.254. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you.
id This property is required. string
The id of the resource.
networkInterfaceId This property is required. string
ENI ID of the multicast source.
status This property is required. string
The status of the resource.
transitRouterMulticastDomainId This property is required. string
The ID of the multicast domain to which the multicast source belongs.
vpcId This property is required. string
The VPC to which the ENI of the multicast source belongs. This field is mandatory for VPCs that is owned by another accounts.
group_ip_address This property is required. str
The IP address of the multicast group to which the multicast source belongs. Value range: 224.0.0.1 to 239.255.255.254. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you.
id This property is required. str
The id of the resource.
network_interface_id This property is required. str
ENI ID of the multicast source.
status This property is required. str
The status of the resource.
transit_router_multicast_domain_id This property is required. str
The ID of the multicast domain to which the multicast source belongs.
vpc_id This property is required. str
The VPC to which the ENI of the multicast source belongs. This field is mandatory for VPCs that is owned by another accounts.
groupIpAddress This property is required. String
The IP address of the multicast group to which the multicast source belongs. Value range: 224.0.0.1 to 239.255.255.254. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you.
id This property is required. String
The id of the resource.
networkInterfaceId This property is required. String
ENI ID of the multicast source.
status This property is required. String
The status of the resource.
transitRouterMulticastDomainId This property is required. String
The ID of the multicast domain to which the multicast source belongs.
vpcId This property is required. String
The VPC to which the ENI of the multicast source belongs. This field is mandatory for VPCs that is owned by another accounts.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.