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

alicloud.cen.getInterRegionTrafficQosPolicies

Explore with Pulumi AI

This data source provides the Cen Inter Region Traffic Qos Policies 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.getInterRegionTrafficQosPolicies({
    ids: ["example_id"],
    transitRouterId: "your_transit_router_id",
    transitRouterAttachmentId: "your_transit_router_attachment_id",
});
export const cenInterRegionTrafficQosPolicyId0 = ids.then(ids => ids.policies?.[0]?.id);
const nameRegex = alicloud.cen.getInterRegionTrafficQosPolicies({
    nameRegex: "^my-name",
    transitRouterId: "your_transit_router_id",
    transitRouterAttachmentId: "your_transit_router_attachment_id",
});
export const cenInterRegionTrafficQosPolicyId1 = nameRegex.then(nameRegex => nameRegex.policies?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.cen.get_inter_region_traffic_qos_policies(ids=["example_id"],
    transit_router_id="your_transit_router_id",
    transit_router_attachment_id="your_transit_router_attachment_id")
pulumi.export("cenInterRegionTrafficQosPolicyId0", ids.policies[0].id)
name_regex = alicloud.cen.get_inter_region_traffic_qos_policies(name_regex="^my-name",
    transit_router_id="your_transit_router_id",
    transit_router_attachment_id="your_transit_router_attachment_id")
pulumi.export("cenInterRegionTrafficQosPolicyId1", name_regex.policies[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 {
		ids, err := cen.GetInterRegionTrafficQosPolicies(ctx, &cen.GetInterRegionTrafficQosPoliciesArgs{
			Ids: []string{
				"example_id",
			},
			TransitRouterId:           "your_transit_router_id",
			TransitRouterAttachmentId: "your_transit_router_attachment_id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cenInterRegionTrafficQosPolicyId0", ids.Policies[0].Id)
		nameRegex, err := cen.GetInterRegionTrafficQosPolicies(ctx, &cen.GetInterRegionTrafficQosPoliciesArgs{
			NameRegex:                 pulumi.StringRef("^my-name"),
			TransitRouterId:           "your_transit_router_id",
			TransitRouterAttachmentId: "your_transit_router_attachment_id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cenInterRegionTrafficQosPolicyId1", nameRegex.Policies[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Cen.GetInterRegionTrafficQosPolicies.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
        TransitRouterId = "your_transit_router_id",
        TransitRouterAttachmentId = "your_transit_router_attachment_id",
    });

    var nameRegex = AliCloud.Cen.GetInterRegionTrafficQosPolicies.Invoke(new()
    {
        NameRegex = "^my-name",
        TransitRouterId = "your_transit_router_id",
        TransitRouterAttachmentId = "your_transit_router_attachment_id",
    });

    return new Dictionary<string, object?>
    {
        ["cenInterRegionTrafficQosPolicyId0"] = ids.Apply(getInterRegionTrafficQosPoliciesResult => getInterRegionTrafficQosPoliciesResult.Policies[0]?.Id),
        ["cenInterRegionTrafficQosPolicyId1"] = nameRegex.Apply(getInterRegionTrafficQosPoliciesResult => getInterRegionTrafficQosPoliciesResult.Policies[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.GetInterRegionTrafficQosPoliciesArgs;
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.getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs.builder()
            .ids("example_id")
            .transitRouterId("your_transit_router_id")
            .transitRouterAttachmentId("your_transit_router_attachment_id")
            .build());

        ctx.export("cenInterRegionTrafficQosPolicyId0", ids.applyValue(getInterRegionTrafficQosPoliciesResult -> getInterRegionTrafficQosPoliciesResult.policies()[0].id()));
        final var nameRegex = CenFunctions.getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs.builder()
            .nameRegex("^my-name")
            .transitRouterId("your_transit_router_id")
            .transitRouterAttachmentId("your_transit_router_attachment_id")
            .build());

        ctx.export("cenInterRegionTrafficQosPolicyId1", nameRegex.applyValue(getInterRegionTrafficQosPoliciesResult -> getInterRegionTrafficQosPoliciesResult.policies()[0].id()));
    }
}
Copy
variables:
  ids:
    fn::invoke:
      function: alicloud:cen:getInterRegionTrafficQosPolicies
      arguments:
        ids:
          - example_id
        transitRouterId: your_transit_router_id
        transitRouterAttachmentId: your_transit_router_attachment_id
  nameRegex:
    fn::invoke:
      function: alicloud:cen:getInterRegionTrafficQosPolicies
      arguments:
        nameRegex: ^my-name
        transitRouterId: your_transit_router_id
        transitRouterAttachmentId: your_transit_router_attachment_id
outputs:
  cenInterRegionTrafficQosPolicyId0: ${ids.policies[0].id}
  cenInterRegionTrafficQosPolicyId1: ${nameRegex.policies[0].id}
Copy

Using getInterRegionTrafficQosPolicies

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 getInterRegionTrafficQosPolicies(args: GetInterRegionTrafficQosPoliciesArgs, opts?: InvokeOptions): Promise<GetInterRegionTrafficQosPoliciesResult>
function getInterRegionTrafficQosPoliciesOutput(args: GetInterRegionTrafficQosPoliciesOutputArgs, opts?: InvokeOptions): Output<GetInterRegionTrafficQosPoliciesResult>
Copy
def get_inter_region_traffic_qos_policies(ids: Optional[Sequence[str]] = None,
                                          name_regex: Optional[str] = None,
                                          output_file: Optional[str] = None,
                                          status: Optional[str] = None,
                                          traffic_qos_policy_description: Optional[str] = None,
                                          traffic_qos_policy_id: Optional[str] = None,
                                          traffic_qos_policy_name: Optional[str] = None,
                                          transit_router_attachment_id: Optional[str] = None,
                                          transit_router_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetInterRegionTrafficQosPoliciesResult
def get_inter_region_traffic_qos_policies_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,
                                          traffic_qos_policy_description: Optional[pulumi.Input[str]] = None,
                                          traffic_qos_policy_id: Optional[pulumi.Input[str]] = None,
                                          traffic_qos_policy_name: Optional[pulumi.Input[str]] = None,
                                          transit_router_attachment_id: Optional[pulumi.Input[str]] = None,
                                          transit_router_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetInterRegionTrafficQosPoliciesResult]
Copy
func GetInterRegionTrafficQosPolicies(ctx *Context, args *GetInterRegionTrafficQosPoliciesArgs, opts ...InvokeOption) (*GetInterRegionTrafficQosPoliciesResult, error)
func GetInterRegionTrafficQosPoliciesOutput(ctx *Context, args *GetInterRegionTrafficQosPoliciesOutputArgs, opts ...InvokeOption) GetInterRegionTrafficQosPoliciesResultOutput
Copy

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

public static class GetInterRegionTrafficQosPolicies 
{
    public static Task<GetInterRegionTrafficQosPoliciesResult> InvokeAsync(GetInterRegionTrafficQosPoliciesArgs args, InvokeOptions? opts = null)
    public static Output<GetInterRegionTrafficQosPoliciesResult> Invoke(GetInterRegionTrafficQosPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInterRegionTrafficQosPoliciesResult> getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs args, InvokeOptions options)
public static Output<GetInterRegionTrafficQosPoliciesResult> getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cen/getInterRegionTrafficQosPolicies:getInterRegionTrafficQosPolicies
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TransitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the inter-region connection.
TransitRouterId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the transit router.
Ids Changes to this property will trigger replacement. List<string>
A list of Inter Region Traffic Qos Policy IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Inter Region Traffic Qos Policy name.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
TrafficQosPolicyDescription Changes to this property will trigger replacement. string
The description of the QoS policy.
TrafficQosPolicyId Changes to this property will trigger replacement. string
The ID of the QoS policy.
TrafficQosPolicyName Changes to this property will trigger replacement. string
The name of the QoS policy.
TransitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the inter-region connection.
TransitRouterId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the transit router.
Ids Changes to this property will trigger replacement. []string
A list of Inter Region Traffic Qos Policy IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Inter Region Traffic Qos Policy name.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
TrafficQosPolicyDescription Changes to this property will trigger replacement. string
The description of the QoS policy.
TrafficQosPolicyId Changes to this property will trigger replacement. string
The ID of the QoS policy.
TrafficQosPolicyName Changes to this property will trigger replacement. string
The name of the QoS policy.
transitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the inter-region connection.
transitRouterId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the transit router.
ids Changes to this property will trigger replacement. List<String>
A list of Inter Region Traffic Qos Policy IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Inter Region Traffic Qos Policy name.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
trafficQosPolicyDescription Changes to this property will trigger replacement. String
The description of the QoS policy.
trafficQosPolicyId Changes to this property will trigger replacement. String
The ID of the QoS policy.
trafficQosPolicyName Changes to this property will trigger replacement. String
The name of the QoS policy.
transitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the inter-region connection.
transitRouterId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the transit router.
ids Changes to this property will trigger replacement. string[]
A list of Inter Region Traffic Qos Policy IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Inter Region Traffic Qos Policy name.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
trafficQosPolicyDescription Changes to this property will trigger replacement. string
The description of the QoS policy.
trafficQosPolicyId Changes to this property will trigger replacement. string
The ID of the QoS policy.
trafficQosPolicyName Changes to this property will trigger replacement. string
The name of the QoS policy.
transit_router_attachment_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the inter-region connection.
transit_router_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the transit router.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Inter Region Traffic Qos Policy IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Inter Region Traffic Qos Policy name.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
traffic_qos_policy_description Changes to this property will trigger replacement. str
The description of the QoS policy.
traffic_qos_policy_id Changes to this property will trigger replacement. str
The ID of the QoS policy.
traffic_qos_policy_name Changes to this property will trigger replacement. str
The name of the QoS policy.
transitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the inter-region connection.
transitRouterId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the transit router.
ids Changes to this property will trigger replacement. List<String>
A list of Inter Region Traffic Qos Policy IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Inter Region Traffic Qos Policy name.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
trafficQosPolicyDescription Changes to this property will trigger replacement. String
The description of the QoS policy.
trafficQosPolicyId Changes to this property will trigger replacement. String
The ID of the QoS policy.
trafficQosPolicyName Changes to this property will trigger replacement. String
The name of the QoS policy.

getInterRegionTrafficQosPolicies Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Names List<string>
A list of Inter Region Traffic Qos Policy names.
Policies List<Pulumi.AliCloud.Cen.Outputs.GetInterRegionTrafficQosPoliciesPolicy>
A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
TransitRouterAttachmentId string
The ID of the inter-region connection.
TransitRouterId string
The ID of the transit router.
NameRegex string
OutputFile string
Status string
The status of the Inter Region Traffic Qos Policy.
TrafficQosPolicyDescription string
TrafficQosPolicyId string
TrafficQosPolicyName string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
A list of Inter Region Traffic Qos Policy names.
Policies []GetInterRegionTrafficQosPoliciesPolicy
A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
TransitRouterAttachmentId string
The ID of the inter-region connection.
TransitRouterId string
The ID of the transit router.
NameRegex string
OutputFile string
Status string
The status of the Inter Region Traffic Qos Policy.
TrafficQosPolicyDescription string
TrafficQosPolicyId string
TrafficQosPolicyName string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
A list of Inter Region Traffic Qos Policy names.
policies List<GetInterRegionTrafficQosPoliciesPolicy>
A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
transitRouterAttachmentId String
The ID of the inter-region connection.
transitRouterId String
The ID of the transit router.
nameRegex String
outputFile String
status String
The status of the Inter Region Traffic Qos Policy.
trafficQosPolicyDescription String
trafficQosPolicyId String
trafficQosPolicyName String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
A list of Inter Region Traffic Qos Policy names.
policies GetInterRegionTrafficQosPoliciesPolicy[]
A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
transitRouterAttachmentId string
The ID of the inter-region connection.
transitRouterId string
The ID of the transit router.
nameRegex string
outputFile string
status string
The status of the Inter Region Traffic Qos Policy.
trafficQosPolicyDescription string
trafficQosPolicyId string
trafficQosPolicyName string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
A list of Inter Region Traffic Qos Policy names.
policies Sequence[GetInterRegionTrafficQosPoliciesPolicy]
A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
transit_router_attachment_id str
The ID of the inter-region connection.
transit_router_id str
The ID of the transit router.
name_regex str
output_file str
status str
The status of the Inter Region Traffic Qos Policy.
traffic_qos_policy_description str
traffic_qos_policy_id str
traffic_qos_policy_name str
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
A list of Inter Region Traffic Qos Policy names.
policies List<Property Map>
A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
transitRouterAttachmentId String
The ID of the inter-region connection.
transitRouterId String
The ID of the transit router.
nameRegex String
outputFile String
status String
The status of the Inter Region Traffic Qos Policy.
trafficQosPolicyDescription String
trafficQosPolicyId String
trafficQosPolicyName String

Supporting Types

GetInterRegionTrafficQosPoliciesPolicy

Id This property is required. string
The ID of the Inter Region Traffic Qos Policy.
InterRegionTrafficQosPolicyDescription This property is required. string
The description of the Inter Region Traffic Qos Policy.
InterRegionTrafficQosPolicyId This property is required. string
The ID of the Inter Region Traffic Qos Policy.
InterRegionTrafficQosPolicyName This property is required. string
The name of the Inter Region Traffic Qos Policy.
Status This property is required. string
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
TransitRouterAttachmentId This property is required. string
The ID of the inter-region connection.
TransitRouterId This property is required. string
The ID of the transit router.
Id This property is required. string
The ID of the Inter Region Traffic Qos Policy.
InterRegionTrafficQosPolicyDescription This property is required. string
The description of the Inter Region Traffic Qos Policy.
InterRegionTrafficQosPolicyId This property is required. string
The ID of the Inter Region Traffic Qos Policy.
InterRegionTrafficQosPolicyName This property is required. string
The name of the Inter Region Traffic Qos Policy.
Status This property is required. string
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
TransitRouterAttachmentId This property is required. string
The ID of the inter-region connection.
TransitRouterId This property is required. string
The ID of the transit router.
id This property is required. String
The ID of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyDescription This property is required. String
The description of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyId This property is required. String
The ID of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyName This property is required. String
The name of the Inter Region Traffic Qos Policy.
status This property is required. String
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
transitRouterAttachmentId This property is required. String
The ID of the inter-region connection.
transitRouterId This property is required. String
The ID of the transit router.
id This property is required. string
The ID of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyDescription This property is required. string
The description of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyId This property is required. string
The ID of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyName This property is required. string
The name of the Inter Region Traffic Qos Policy.
status This property is required. string
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
transitRouterAttachmentId This property is required. string
The ID of the inter-region connection.
transitRouterId This property is required. string
The ID of the transit router.
id This property is required. str
The ID of the Inter Region Traffic Qos Policy.
inter_region_traffic_qos_policy_description This property is required. str
The description of the Inter Region Traffic Qos Policy.
inter_region_traffic_qos_policy_id This property is required. str
The ID of the Inter Region Traffic Qos Policy.
inter_region_traffic_qos_policy_name This property is required. str
The name of the Inter Region Traffic Qos Policy.
status This property is required. str
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
transit_router_attachment_id This property is required. str
The ID of the inter-region connection.
transit_router_id This property is required. str
The ID of the transit router.
id This property is required. String
The ID of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyDescription This property is required. String
The description of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyId This property is required. String
The ID of the Inter Region Traffic Qos Policy.
interRegionTrafficQosPolicyName This property is required. String
The name of the Inter Region Traffic Qos Policy.
status This property is required. String
The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
transitRouterAttachmentId This property is required. String
The ID of the inter-region connection.
transitRouterId This property is required. String
The ID of the transit router.

Package Details

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