Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.cen.getTransitRouterMulticastDomains
Explore with Pulumi AI
This data source provides the Cen Transit Router Multicast Domains 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.getTransitRouterMulticastDomains({
ids: ["example_id"],
transitRouterId: "your_transit_router_id",
});
export const cenTransitRouterMulticastDomainId0 = ids.then(ids => ids.domains?.[0]?.id);
const nameRegex = alicloud.cen.getTransitRouterMulticastDomains({
nameRegex: "^my-name",
transitRouterId: "your_transit_router_id",
});
export const cenTransitRouterMulticastDomainId1 = nameRegex.then(nameRegex => nameRegex.domains?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.cen.get_transit_router_multicast_domains(ids=["example_id"],
transit_router_id="your_transit_router_id")
pulumi.export("cenTransitRouterMulticastDomainId0", ids.domains[0].id)
name_regex = alicloud.cen.get_transit_router_multicast_domains(name_regex="^my-name",
transit_router_id="your_transit_router_id")
pulumi.export("cenTransitRouterMulticastDomainId1", name_regex.domains[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.GetTransitRouterMulticastDomains(ctx, &cen.GetTransitRouterMulticastDomainsArgs{
Ids: []string{
"example_id",
},
TransitRouterId: "your_transit_router_id",
}, nil)
if err != nil {
return err
}
ctx.Export("cenTransitRouterMulticastDomainId0", ids.Domains[0].Id)
nameRegex, err := cen.GetTransitRouterMulticastDomains(ctx, &cen.GetTransitRouterMulticastDomainsArgs{
NameRegex: pulumi.StringRef("^my-name"),
TransitRouterId: "your_transit_router_id",
}, nil)
if err != nil {
return err
}
ctx.Export("cenTransitRouterMulticastDomainId1", nameRegex.Domains[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.GetTransitRouterMulticastDomains.Invoke(new()
{
Ids = new[]
{
"example_id",
},
TransitRouterId = "your_transit_router_id",
});
var nameRegex = AliCloud.Cen.GetTransitRouterMulticastDomains.Invoke(new()
{
NameRegex = "^my-name",
TransitRouterId = "your_transit_router_id",
});
return new Dictionary<string, object?>
{
["cenTransitRouterMulticastDomainId0"] = ids.Apply(getTransitRouterMulticastDomainsResult => getTransitRouterMulticastDomainsResult.Domains[0]?.Id),
["cenTransitRouterMulticastDomainId1"] = nameRegex.Apply(getTransitRouterMulticastDomainsResult => getTransitRouterMulticastDomainsResult.Domains[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.GetTransitRouterMulticastDomainsArgs;
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.getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs.builder()
.ids("example_id")
.transitRouterId("your_transit_router_id")
.build());
ctx.export("cenTransitRouterMulticastDomainId0", ids.applyValue(getTransitRouterMulticastDomainsResult -> getTransitRouterMulticastDomainsResult.domains()[0].id()));
final var nameRegex = CenFunctions.getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs.builder()
.nameRegex("^my-name")
.transitRouterId("your_transit_router_id")
.build());
ctx.export("cenTransitRouterMulticastDomainId1", nameRegex.applyValue(getTransitRouterMulticastDomainsResult -> getTransitRouterMulticastDomainsResult.domains()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:cen:getTransitRouterMulticastDomains
Arguments:
ids:
- example_id
transitRouterId: your_transit_router_id
nameRegex:
fn::invoke:
Function: alicloud:cen:getTransitRouterMulticastDomains
Arguments:
nameRegex: ^my-name
transitRouterId: your_transit_router_id
outputs:
cenTransitRouterMulticastDomainId0: ${ids.domains[0].id}
cenTransitRouterMulticastDomainId1: ${nameRegex.domains[0].id}
Using getTransitRouterMulticastDomains
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 getTransitRouterMulticastDomains(args: GetTransitRouterMulticastDomainsArgs, opts?: InvokeOptions): Promise<GetTransitRouterMulticastDomainsResult>
function getTransitRouterMulticastDomainsOutput(args: GetTransitRouterMulticastDomainsOutputArgs, opts?: InvokeOptions): Output<GetTransitRouterMulticastDomainsResult>
def get_transit_router_multicast_domains(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
transit_router_id: Optional[str] = None,
transit_router_multicast_domain_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTransitRouterMulticastDomainsResult
def get_transit_router_multicast_domains_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
transit_router_id: Optional[pulumi.Input[str]] = None,
transit_router_multicast_domain_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTransitRouterMulticastDomainsResult]
func GetTransitRouterMulticastDomains(ctx *Context, args *GetTransitRouterMulticastDomainsArgs, opts ...InvokeOption) (*GetTransitRouterMulticastDomainsResult, error)
func GetTransitRouterMulticastDomainsOutput(ctx *Context, args *GetTransitRouterMulticastDomainsOutputArgs, opts ...InvokeOption) GetTransitRouterMulticastDomainsResultOutput
> Note: This function is named GetTransitRouterMulticastDomains
in the Go SDK.
public static class GetTransitRouterMulticastDomains
{
public static Task<GetTransitRouterMulticastDomainsResult> InvokeAsync(GetTransitRouterMulticastDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetTransitRouterMulticastDomainsResult> Invoke(GetTransitRouterMulticastDomainsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTransitRouterMulticastDomainsResult> getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cen/getTransitRouterMulticastDomains:getTransitRouterMulticastDomains
arguments:
# arguments dictionary
The following arguments are supported:
- Transit
Router stringId - The ID of the transit router.
- Ids List<string>
- A list of Transit Router Multicast Domain IDs.
- Name
Regex string - A regex string to filter results by Transit Router Multicast Domain name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the multicast domain. Valid Value:
Active
. - Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Transit
Router stringId - The ID of the transit router.
- Ids []string
- A list of Transit Router Multicast Domain IDs.
- Name
Regex string - A regex string to filter results by Transit Router Multicast Domain name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the multicast domain. Valid Value:
Active
. - Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- transit
Router StringId - The ID of the transit router.
- ids List<String>
- A list of Transit Router Multicast Domain IDs.
- name
Regex String - A regex string to filter results by Transit Router Multicast Domain name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the multicast domain. Valid Value:
Active
. - transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- transit
Router stringId - The ID of the transit router.
- ids string[]
- A list of Transit Router Multicast Domain IDs.
- name
Regex string - A regex string to filter results by Transit Router Multicast Domain name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- The status of the multicast domain. Valid Value:
Active
. - transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- transit_
router_ strid - The ID of the transit router.
- ids Sequence[str]
- A list of Transit Router Multicast Domain IDs.
- name_
regex str - A regex string to filter results by Transit Router Multicast Domain name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- The status of the multicast domain. Valid Value:
Active
. - transit_
router_ strmulticast_ domain_ id - The ID of the multicast domain.
- transit
Router StringId - The ID of the transit router.
- ids List<String>
- A list of Transit Router Multicast Domain IDs.
- name
Regex String - A regex string to filter results by Transit Router Multicast Domain name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the multicast domain. Valid Value:
Active
. - transit
Router StringMulticast Domain Id - The ID of the multicast domain.
getTransitRouterMulticastDomains Result
The following output properties are available:
- Domains
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Transit Router Multicast Domains Domain> - A list of Cen Transit Router Multicast Domains. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Transit Router Multicast Domain names.
- Transit
Router stringId - The ID of the transit router.
- Name
Regex string - Output
File string - Status string
- The status of the Transit Router Multicast Domain.
- Transit
Router stringMulticast Domain Id - The ID of the Transit Router Multicast Domain.
- Domains
[]Get
Transit Router Multicast Domains Domain - A list of Cen Transit Router Multicast Domains. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Transit Router Multicast Domain names.
- Transit
Router stringId - The ID of the transit router.
- Name
Regex string - Output
File string - Status string
- The status of the Transit Router Multicast Domain.
- Transit
Router stringMulticast Domain Id - The ID of the Transit Router Multicast Domain.
- domains
List<Get
Transit Router Multicast Domains Domain> - A list of Cen Transit Router Multicast Domains. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Transit Router Multicast Domain names.
- transit
Router StringId - The ID of the transit router.
- name
Regex String - output
File String - status String
- The status of the Transit Router Multicast Domain.
- transit
Router StringMulticast Domain Id - The ID of the Transit Router Multicast Domain.
- domains
Get
Transit Router Multicast Domains Domain[] - A list of Cen Transit Router Multicast Domains. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Transit Router Multicast Domain names.
- transit
Router stringId - The ID of the transit router.
- name
Regex string - output
File string - status string
- The status of the Transit Router Multicast Domain.
- transit
Router stringMulticast Domain Id - The ID of the Transit Router Multicast Domain.
- domains
Sequence[Get
Transit Router Multicast Domains Domain] - A list of Cen Transit Router Multicast Domains. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Transit Router Multicast Domain names.
- transit_
router_ strid - The ID of the transit router.
- name_
regex str - output_
file str - status str
- The status of the Transit Router Multicast Domain.
- transit_
router_ strmulticast_ domain_ id - The ID of the Transit Router Multicast Domain.
- domains List<Property Map>
- A list of Cen Transit Router Multicast Domains. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Transit Router Multicast Domain names.
- transit
Router StringId - The ID of the transit router.
- name
Regex String - output
File String - status String
- The status of the Transit Router Multicast Domain.
- transit
Router StringMulticast Domain Id - The ID of the Transit Router Multicast Domain.
Supporting Types
GetTransitRouterMulticastDomainsDomain
- Id string
- The ID of the Transit Router Multicast Domain.
- Status string
- The status of the multicast domain. Valid Value:
Active
. - Transit
Router stringId - The ID of the transit router.
- Transit
Router stringMulticast Domain Description - The description of the Transit Router Multicast Domain.
- Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Transit
Router stringMulticast Domain Name - The name of the Transit Router Multicast Domain.
- Id string
- The ID of the Transit Router Multicast Domain.
- Status string
- The status of the multicast domain. Valid Value:
Active
. - Transit
Router stringId - The ID of the transit router.
- Transit
Router stringMulticast Domain Description - The description of the Transit Router Multicast Domain.
- Transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- Transit
Router stringMulticast Domain Name - The name of the Transit Router Multicast Domain.
- id String
- The ID of the Transit Router Multicast Domain.
- status String
- The status of the multicast domain. Valid Value:
Active
. - transit
Router StringId - The ID of the transit router.
- transit
Router StringMulticast Domain Description - The description of the Transit Router Multicast Domain.
- transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- transit
Router StringMulticast Domain Name - The name of the Transit Router Multicast Domain.
- id string
- The ID of the Transit Router Multicast Domain.
- status string
- The status of the multicast domain. Valid Value:
Active
. - transit
Router stringId - The ID of the transit router.
- transit
Router stringMulticast Domain Description - The description of the Transit Router Multicast Domain.
- transit
Router stringMulticast Domain Id - The ID of the multicast domain.
- transit
Router stringMulticast Domain Name - The name of the Transit Router Multicast Domain.
- id str
- The ID of the Transit Router Multicast Domain.
- status str
- The status of the multicast domain. Valid Value:
Active
. - transit_
router_ strid - The ID of the transit router.
- transit_
router_ strmulticast_ domain_ description - The description of the Transit Router Multicast Domain.
- transit_
router_ strmulticast_ domain_ id - The ID of the multicast domain.
- transit_
router_ strmulticast_ domain_ name - The name of the Transit Router Multicast Domain.
- id String
- The ID of the Transit Router Multicast Domain.
- status String
- The status of the multicast domain. Valid Value:
Active
. - transit
Router StringId - The ID of the transit router.
- transit
Router StringMulticast Domain Description - The description of the Transit Router Multicast Domain.
- transit
Router StringMulticast Domain Id - The ID of the multicast domain.
- transit
Router StringMulticast Domain Name - The name of the Transit Router Multicast Domain.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.