1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. getInterRegionTrafficQosPolicies
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.cen.getInterRegionTrafficQosPolicies

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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);
    
    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)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    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}
    

    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>
    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]
    func GetInterRegionTrafficQosPolicies(ctx *Context, args *GetInterRegionTrafficQosPoliciesArgs, opts ...InvokeOption) (*GetInterRegionTrafficQosPoliciesResult, error)
    func GetInterRegionTrafficQosPoliciesOutput(ctx *Context, args *GetInterRegionTrafficQosPoliciesOutputArgs, opts ...InvokeOption) GetInterRegionTrafficQosPoliciesResultOutput

    > 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)
    }
    public static CompletableFuture<GetInterRegionTrafficQosPoliciesResult> getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cen/getInterRegionTrafficQosPolicies:getInterRegionTrafficQosPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TransitRouterAttachmentId string
    The ID of the inter-region connection.
    TransitRouterId string
    The ID of the transit router.
    Ids List<string>
    A list of Inter Region Traffic Qos Policy IDs.
    NameRegex 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 string
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    TrafficQosPolicyDescription string
    The description of the QoS policy.
    TrafficQosPolicyId string
    The ID of the QoS policy.
    TrafficQosPolicyName string
    The name of the QoS policy.
    TransitRouterAttachmentId string
    The ID of the inter-region connection.
    TransitRouterId string
    The ID of the transit router.
    Ids []string
    A list of Inter Region Traffic Qos Policy IDs.
    NameRegex 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 string
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    TrafficQosPolicyDescription string
    The description of the QoS policy.
    TrafficQosPolicyId string
    The ID of the QoS policy.
    TrafficQosPolicyName string
    The name of the QoS policy.
    transitRouterAttachmentId String
    The ID of the inter-region connection.
    transitRouterId String
    The ID of the transit router.
    ids List<String>
    A list of Inter Region Traffic Qos Policy IDs.
    nameRegex 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 String
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    trafficQosPolicyDescription String
    The description of the QoS policy.
    trafficQosPolicyId String
    The ID of the QoS policy.
    trafficQosPolicyName String
    The name of the QoS policy.
    transitRouterAttachmentId string
    The ID of the inter-region connection.
    transitRouterId string
    The ID of the transit router.
    ids string[]
    A list of Inter Region Traffic Qos Policy IDs.
    nameRegex 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 string
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    trafficQosPolicyDescription string
    The description of the QoS policy.
    trafficQosPolicyId string
    The ID of the QoS policy.
    trafficQosPolicyName string
    The name of the QoS policy.
    transit_router_attachment_id str
    The ID of the inter-region connection.
    transit_router_id str
    The ID of the transit router.
    ids Sequence[str]
    A list of Inter Region Traffic Qos Policy IDs.
    name_regex 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 str
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    traffic_qos_policy_description str
    The description of the QoS policy.
    traffic_qos_policy_id str
    The ID of the QoS policy.
    traffic_qos_policy_name str
    The name of the QoS policy.
    transitRouterAttachmentId String
    The ID of the inter-region connection.
    transitRouterId String
    The ID of the transit router.
    ids List<String>
    A list of Inter Region Traffic Qos Policy IDs.
    nameRegex 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 String
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    trafficQosPolicyDescription String
    The description of the QoS policy.
    trafficQosPolicyId String
    The ID of the QoS policy.
    trafficQosPolicyName 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 string
    The ID of the Inter Region Traffic Qos Policy.
    InterRegionTrafficQosPolicyDescription string
    The description of the Inter Region Traffic Qos Policy.
    InterRegionTrafficQosPolicyId string
    The ID of the Inter Region Traffic Qos Policy.
    InterRegionTrafficQosPolicyName string
    The name of the Inter Region Traffic Qos Policy.
    Status string
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    TransitRouterAttachmentId string
    The ID of the inter-region connection.
    TransitRouterId string
    The ID of the transit router.
    Id string
    The ID of the Inter Region Traffic Qos Policy.
    InterRegionTrafficQosPolicyDescription string
    The description of the Inter Region Traffic Qos Policy.
    InterRegionTrafficQosPolicyId string
    The ID of the Inter Region Traffic Qos Policy.
    InterRegionTrafficQosPolicyName string
    The name of the Inter Region Traffic Qos Policy.
    Status string
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    TransitRouterAttachmentId string
    The ID of the inter-region connection.
    TransitRouterId string
    The ID of the transit router.
    id String
    The ID of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyDescription String
    The description of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyId String
    The ID of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyName String
    The name of the Inter Region Traffic Qos Policy.
    status String
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    transitRouterAttachmentId String
    The ID of the inter-region connection.
    transitRouterId String
    The ID of the transit router.
    id string
    The ID of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyDescription string
    The description of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyId string
    The ID of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyName string
    The name of the Inter Region Traffic Qos Policy.
    status string
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    transitRouterAttachmentId string
    The ID of the inter-region connection.
    transitRouterId string
    The ID of the transit router.
    id str
    The ID of the Inter Region Traffic Qos Policy.
    inter_region_traffic_qos_policy_description str
    The description of the Inter Region Traffic Qos Policy.
    inter_region_traffic_qos_policy_id str
    The ID of the Inter Region Traffic Qos Policy.
    inter_region_traffic_qos_policy_name str
    The name of the Inter Region Traffic Qos Policy.
    status str
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    transit_router_attachment_id str
    The ID of the inter-region connection.
    transit_router_id str
    The ID of the transit router.
    id String
    The ID of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyDescription String
    The description of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyId String
    The ID of the Inter Region Traffic Qos Policy.
    interRegionTrafficQosPolicyName String
    The name of the Inter Region Traffic Qos Policy.
    status String
    The status of the traffic scheduling policy. Valid Value: Creating, Active, Modifying, Deleting, Deleted.
    transitRouterAttachmentId String
    The ID of the inter-region connection.
    transitRouterId 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi