Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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);
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)
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
	})
}
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)),
    };
});
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());
    }
}
variables:
  default:
    fn::invoke:
      Function: alicloud:cen:getTransitRouterMulticastDomainSources
      Arguments:
        transitRouterMulticastDomainId: tr-mcast-domain-xxxxxx
outputs:
  alicloudCenTransitRouterMulticastDomainSourceExampleId: ${default.sources[0].id}
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>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]func GetTransitRouterMulticastDomainSources(ctx *Context, args *GetTransitRouterMulticastDomainSourcesArgs, opts ...InvokeOption) (*GetTransitRouterMulticastDomainSourcesResult, error)
func GetTransitRouterMulticastDomainSourcesOutput(ctx *Context, args *GetTransitRouterMulticastDomainSourcesOutputArgs, opts ...InvokeOption) GetTransitRouterMulticastDomainSourcesResultOutput> 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)
}public static CompletableFuture<GetTransitRouterMulticastDomainSourcesResult> getTransitRouterMulticastDomainSources(GetTransitRouterMulticastDomainSourcesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - Ids List<string>
 - A list of the multicast domain IDs.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). 
- Transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - Ids []string
 - A list of the multicast domain IDs.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). 
- transit
Router StringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - ids List<String>
 - A list of the multicast domain IDs.
 - output
File String - File name where to save data source results (after running 
pulumi preview). 
- transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - ids string[]
 - A list of the multicast domain IDs.
 - output
File string - File name where to save data source results (after running 
pulumi preview). 
- transit_
router_ strmulticast_ domain_ id  - 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). 
- transit
Router StringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - ids List<String>
 - A list of the multicast domain IDs.
 - output
File 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.
Ali Cloud. Cen. Outputs. Get Transit Router Multicast Domain Sources Source>  - A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
 - Transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - Output
File string 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - Sources
[]Get
Transit Router Multicast Domain Sources Source  - A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
 - Transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - Output
File string 
- id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - sources
List<Get
Transit Router Multicast Domain Sources Source>  - A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
 - transit
Router StringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - output
File String 
- id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - sources
Get
Transit Router Multicast Domain Sources Source[]  - A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
 - transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - output
File string 
- id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - sources
Sequence[Get
Transit Router Multicast Domain Sources Source]  - A list of Transit Router Multicast Domain Source Entries. Each element contains the following attributes:
 - transit_
router_ strmulticast_ domain_ id  - 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:
 - transit
Router StringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - output
File String 
Supporting Types
GetTransitRouterMulticastDomainSourcesSource      
- Group
Ip stringAddress  - 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 string
 - The id of the resource.
 - Network
Interface stringId  - ENI ID of the multicast source.
 - Status string
 - The status of the resource.
 - Transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - Vpc
Id 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 stringAddress  - 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 string
 - The id of the resource.
 - Network
Interface stringId  - ENI ID of the multicast source.
 - Status string
 - The status of the resource.
 - Transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - Vpc
Id 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 StringAddress  - 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 String
 - The id of the resource.
 - network
Interface StringId  - ENI ID of the multicast source.
 - status String
 - The status of the resource.
 - transit
Router StringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - vpc
Id 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 stringAddress  - 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 string
 - The id of the resource.
 - network
Interface stringId  - ENI ID of the multicast source.
 - status string
 - The status of the resource.
 - transit
Router stringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - vpc
Id 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_ straddress  - 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 str
 - The id of the resource.
 - network_
interface_ strid  - ENI ID of the multicast source.
 - status str
 - The status of the resource.
 - transit_
router_ strmulticast_ domain_ id  - The ID of the multicast domain to which the multicast source belongs.
 - vpc_
id str - 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 StringAddress  - 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 String
 - The id of the resource.
 - network
Interface StringId  - ENI ID of the multicast source.
 - status String
 - The status of the resource.
 - transit
Router StringMulticast Domain Id  - The ID of the multicast domain to which the multicast source belongs.
 - vpc
Id 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 
alicloudTerraform Provider.