Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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);
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:
- Transit
Router stringAttachment Id - The ID of the inter-region connection.
- Transit
Router stringId - The ID of the transit router.
- Ids List<string>
- A list of Inter Region Traffic Qos Policy IDs.
- Name
Regex string - A regex string to filter results by Inter Region Traffic Qos Policy name.
- Output
File 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
. - Traffic
Qos stringPolicy Description - The description of the QoS policy.
- Traffic
Qos stringPolicy Id - The ID of the QoS policy.
- Traffic
Qos stringPolicy Name - The name of the QoS policy.
- Transit
Router stringAttachment Id - The ID of the inter-region connection.
- Transit
Router stringId - The ID of the transit router.
- Ids []string
- A list of Inter Region Traffic Qos Policy IDs.
- Name
Regex string - A regex string to filter results by Inter Region Traffic Qos Policy name.
- Output
File 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
. - Traffic
Qos stringPolicy Description - The description of the QoS policy.
- Traffic
Qos stringPolicy Id - The ID of the QoS policy.
- Traffic
Qos stringPolicy Name - The name of the QoS policy.
- transit
Router StringAttachment Id - The ID of the inter-region connection.
- transit
Router StringId - The ID of the transit router.
- ids List<String>
- A list of Inter Region Traffic Qos Policy IDs.
- name
Regex String - A regex string to filter results by Inter Region Traffic Qos Policy name.
- output
File 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
. - traffic
Qos StringPolicy Description - The description of the QoS policy.
- traffic
Qos StringPolicy Id - The ID of the QoS policy.
- traffic
Qos StringPolicy Name - The name of the QoS policy.
- transit
Router stringAttachment Id - The ID of the inter-region connection.
- transit
Router stringId - The ID of the transit router.
- ids string[]
- A list of Inter Region Traffic Qos Policy IDs.
- name
Regex string - A regex string to filter results by Inter Region Traffic Qos Policy name.
- output
File 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
. - traffic
Qos stringPolicy Description - The description of the QoS policy.
- traffic
Qos stringPolicy Id - The ID of the QoS policy.
- traffic
Qos stringPolicy Name - The name of the QoS policy.
- transit_
router_ strattachment_ id - The ID of the inter-region connection.
- transit_
router_ strid - 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_ strpolicy_ description - The description of the QoS policy.
- traffic_
qos_ strpolicy_ id - The ID of the QoS policy.
- traffic_
qos_ strpolicy_ name - The name of the QoS policy.
- transit
Router StringAttachment Id - The ID of the inter-region connection.
- transit
Router StringId - The ID of the transit router.
- ids List<String>
- A list of Inter Region Traffic Qos Policy IDs.
- name
Regex String - A regex string to filter results by Inter Region Traffic Qos Policy name.
- output
File 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
. - traffic
Qos StringPolicy Description - The description of the QoS policy.
- traffic
Qos StringPolicy Id - The ID of the QoS policy.
- traffic
Qos StringPolicy Name - 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.
Ali Cloud. Cen. Outputs. Get Inter Region Traffic Qos Policies Policy> - A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
- Transit
Router stringAttachment Id - The ID of the inter-region connection.
- Transit
Router stringId - The ID of the transit router.
- Name
Regex string - Output
File string - Status string
- The status of the Inter Region Traffic Qos Policy.
- Traffic
Qos stringPolicy Description - Traffic
Qos stringPolicy Id - Traffic
Qos stringPolicy Name
- 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
[]Get
Inter Region Traffic Qos Policies Policy - A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
- Transit
Router stringAttachment Id - The ID of the inter-region connection.
- Transit
Router stringId - The ID of the transit router.
- Name
Regex string - Output
File string - Status string
- The status of the Inter Region Traffic Qos Policy.
- Traffic
Qos stringPolicy Description - Traffic
Qos stringPolicy Id - Traffic
Qos stringPolicy Name
- 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<Get
Inter Region Traffic Qos Policies Policy> - A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
- transit
Router StringAttachment Id - The ID of the inter-region connection.
- transit
Router StringId - The ID of the transit router.
- name
Regex String - output
File String - status String
- The status of the Inter Region Traffic Qos Policy.
- traffic
Qos StringPolicy Description - traffic
Qos StringPolicy Id - traffic
Qos StringPolicy Name
- 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
Get
Inter Region Traffic Qos Policies Policy[] - A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
- transit
Router stringAttachment Id - The ID of the inter-region connection.
- transit
Router stringId - The ID of the transit router.
- name
Regex string - output
File string - status string
- The status of the Inter Region Traffic Qos Policy.
- traffic
Qos stringPolicy Description - traffic
Qos stringPolicy Id - traffic
Qos stringPolicy Name
- 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[Get
Inter Region Traffic Qos Policies Policy] - A list of Cen Inter Region Traffic Qos Policies. Each element contains the following attributes:
- transit_
router_ strattachment_ id - The ID of the inter-region connection.
- transit_
router_ strid - 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_ strpolicy_ description - traffic_
qos_ strpolicy_ id - traffic_
qos_ strpolicy_ name
- 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:
- transit
Router StringAttachment Id - The ID of the inter-region connection.
- transit
Router StringId - The ID of the transit router.
- name
Regex String - output
File String - status String
- The status of the Inter Region Traffic Qos Policy.
- traffic
Qos StringPolicy Description - traffic
Qos StringPolicy Id - traffic
Qos StringPolicy Name
Supporting Types
GetInterRegionTrafficQosPoliciesPolicy
- Id string
- The ID of the Inter Region Traffic Qos Policy.
- Inter
Region stringTraffic Qos Policy Description - The description of the Inter Region Traffic Qos Policy.
- Inter
Region stringTraffic Qos Policy Id - The ID of the Inter Region Traffic Qos Policy.
- Inter
Region stringTraffic Qos Policy Name - 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
. - Transit
Router stringAttachment Id - The ID of the inter-region connection.
- Transit
Router stringId - The ID of the transit router.
- Id string
- The ID of the Inter Region Traffic Qos Policy.
- Inter
Region stringTraffic Qos Policy Description - The description of the Inter Region Traffic Qos Policy.
- Inter
Region stringTraffic Qos Policy Id - The ID of the Inter Region Traffic Qos Policy.
- Inter
Region stringTraffic Qos Policy Name - 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
. - Transit
Router stringAttachment Id - The ID of the inter-region connection.
- Transit
Router stringId - The ID of the transit router.
- id String
- The ID of the Inter Region Traffic Qos Policy.
- inter
Region StringTraffic Qos Policy Description - The description of the Inter Region Traffic Qos Policy.
- inter
Region StringTraffic Qos Policy Id - The ID of the Inter Region Traffic Qos Policy.
- inter
Region StringTraffic Qos Policy Name - 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
. - transit
Router StringAttachment Id - The ID of the inter-region connection.
- transit
Router StringId - The ID of the transit router.
- id string
- The ID of the Inter Region Traffic Qos Policy.
- inter
Region stringTraffic Qos Policy Description - The description of the Inter Region Traffic Qos Policy.
- inter
Region stringTraffic Qos Policy Id - The ID of the Inter Region Traffic Qos Policy.
- inter
Region stringTraffic Qos Policy Name - 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
. - transit
Router stringAttachment Id - The ID of the inter-region connection.
- transit
Router stringId - The ID of the transit router.
- id str
- The ID of the Inter Region Traffic Qos Policy.
- inter_
region_ strtraffic_ qos_ policy_ description - The description of the Inter Region Traffic Qos Policy.
- inter_
region_ strtraffic_ qos_ policy_ id - The ID of the Inter Region Traffic Qos Policy.
- inter_
region_ strtraffic_ qos_ policy_ name - 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_ strattachment_ id - The ID of the inter-region connection.
- transit_
router_ strid - The ID of the transit router.
- id String
- The ID of the Inter Region Traffic Qos Policy.
- inter
Region StringTraffic Qos Policy Description - The description of the Inter Region Traffic Qos Policy.
- inter
Region StringTraffic Qos Policy Id - The ID of the Inter Region Traffic Qos Policy.
- inter
Region StringTraffic Qos Policy Name - 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
. - transit
Router StringAttachment Id - The ID of the inter-region connection.
- transit
Router StringId - 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.