1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cen
  5. getTransitRouterMulticastDomainSources
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cen.getTransitRouterMulticastDomainSources

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    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 dictionary

    The following arguments are supported:

    TransitRouterMulticastDomainId 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 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 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 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 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 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 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 string
    The id of the resource.
    NetworkInterfaceId string
    ENI ID of the multicast source.
    Status string
    The status of the resource.
    TransitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast source belongs.
    VpcId 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 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 string
    The id of the resource.
    NetworkInterfaceId string
    ENI ID of the multicast source.
    Status string
    The status of the resource.
    TransitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast source belongs.
    VpcId 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 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 String
    The id of the resource.
    networkInterfaceId String
    ENI ID of the multicast source.
    status String
    The status of the resource.
    transitRouterMulticastDomainId String
    The ID of the multicast domain to which the multicast source belongs.
    vpcId 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 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 string
    The id of the resource.
    networkInterfaceId string
    ENI ID of the multicast source.
    status string
    The status of the resource.
    transitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast source belongs.
    vpcId 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 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 str
    The id of the resource.
    network_interface_id str
    ENI ID of the multicast source.
    status str
    The status of the resource.
    transit_router_multicast_domain_id str
    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.
    groupIpAddress 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 String
    The id of the resource.
    networkInterfaceId String
    ENI ID of the multicast source.
    status String
    The status of the resource.
    transitRouterMulticastDomainId String
    The ID of the multicast domain to which the multicast source belongs.
    vpcId 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.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi