opentelekomcloud.ApigwThrottlingPolicyV2
Explore with Pulumi AI
Up-to-date reference of API arguments for API Gateway throttling policy service you can get at documentation portal
API Gateway (APIG) is a high-performance, high-availability, and high-security API hosting service that helps you build, manage, and deploy APIs at any scale. With just a few clicks, you can integrate internal systems, and selectively expose capabilities with minimal costs and risks.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const policy = new opentelekomcloud.ApigwThrottlingPolicyV2("policy", {
    instanceId: opentelekomcloud_apigw_gateway_v2.gateway.id,
    type: "API-shared",
    period: 10,
    periodUnit: "MINUTE",
    maxApiRequests: 70,
    maxUserRequests: 45,
    maxAppRequests: 45,
    maxIpRequests: 45,
    description: "Created by tf",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
policy = opentelekomcloud.ApigwThrottlingPolicyV2("policy",
    instance_id=opentelekomcloud_apigw_gateway_v2["gateway"]["id"],
    type="API-shared",
    period=10,
    period_unit="MINUTE",
    max_api_requests=70,
    max_user_requests=45,
    max_app_requests=45,
    max_ip_requests=45,
    description="Created by tf")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewApigwThrottlingPolicyV2(ctx, "policy", &opentelekomcloud.ApigwThrottlingPolicyV2Args{
			InstanceId:      pulumi.Any(opentelekomcloud_apigw_gateway_v2.Gateway.Id),
			Type:            pulumi.String("API-shared"),
			Period:          pulumi.Float64(10),
			PeriodUnit:      pulumi.String("MINUTE"),
			MaxApiRequests:  pulumi.Float64(70),
			MaxUserRequests: pulumi.Float64(45),
			MaxAppRequests:  pulumi.Float64(45),
			MaxIpRequests:   pulumi.Float64(45),
			Description:     pulumi.String("Created by tf"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() => 
{
    var policy = new Opentelekomcloud.ApigwThrottlingPolicyV2("policy", new()
    {
        InstanceId = opentelekomcloud_apigw_gateway_v2.Gateway.Id,
        Type = "API-shared",
        Period = 10,
        PeriodUnit = "MINUTE",
        MaxApiRequests = 70,
        MaxUserRequests = 45,
        MaxAppRequests = 45,
        MaxIpRequests = 45,
        Description = "Created by tf",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ApigwThrottlingPolicyV2;
import com.pulumi.opentelekomcloud.ApigwThrottlingPolicyV2Args;
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) {
        var policy = new ApigwThrottlingPolicyV2("policy", ApigwThrottlingPolicyV2Args.builder()
            .instanceId(opentelekomcloud_apigw_gateway_v2.gateway().id())
            .type("API-shared")
            .period(10)
            .periodUnit("MINUTE")
            .maxApiRequests(70)
            .maxUserRequests(45)
            .maxAppRequests(45)
            .maxIpRequests(45)
            .description("Created by tf")
            .build());
    }
}
resources:
  policy:
    type: opentelekomcloud:ApigwThrottlingPolicyV2
    properties:
      instanceId: ${opentelekomcloud_apigw_gateway_v2.gateway.id}
      type: API-shared
      period: 10
      periodUnit: MINUTE
      maxApiRequests: 70
      maxUserRequests: 45
      maxAppRequests: 45
      maxIpRequests: 45
      description: Created by tf
Create ApigwThrottlingPolicyV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApigwThrottlingPolicyV2(name: string, args: ApigwThrottlingPolicyV2Args, opts?: CustomResourceOptions);@overload
def ApigwThrottlingPolicyV2(resource_name: str,
                            args: ApigwThrottlingPolicyV2Args,
                            opts: Optional[ResourceOptions] = None)
@overload
def ApigwThrottlingPolicyV2(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            period: Optional[float] = None,
                            instance_id: Optional[str] = None,
                            max_api_requests: Optional[float] = None,
                            app_throttles: Optional[Sequence[ApigwThrottlingPolicyV2AppThrottleArgs]] = None,
                            description: Optional[str] = None,
                            max_app_requests: Optional[float] = None,
                            max_ip_requests: Optional[float] = None,
                            max_user_requests: Optional[float] = None,
                            name: Optional[str] = None,
                            apigw_throttling_policy_v2_id: Optional[str] = None,
                            period_unit: Optional[str] = None,
                            type: Optional[str] = None,
                            user_throttles: Optional[Sequence[ApigwThrottlingPolicyV2UserThrottleArgs]] = None)func NewApigwThrottlingPolicyV2(ctx *Context, name string, args ApigwThrottlingPolicyV2Args, opts ...ResourceOption) (*ApigwThrottlingPolicyV2, error)public ApigwThrottlingPolicyV2(string name, ApigwThrottlingPolicyV2Args args, CustomResourceOptions? opts = null)
public ApigwThrottlingPolicyV2(String name, ApigwThrottlingPolicyV2Args args)
public ApigwThrottlingPolicyV2(String name, ApigwThrottlingPolicyV2Args args, CustomResourceOptions options)
type: opentelekomcloud:ApigwThrottlingPolicyV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ApigwThrottlingPolicyV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApigwThrottlingPolicyV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApigwThrottlingPolicyV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApigwThrottlingPolicyV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApigwThrottlingPolicyV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var apigwThrottlingPolicyV2Resource = new Opentelekomcloud.ApigwThrottlingPolicyV2("apigwThrottlingPolicyV2Resource", new()
{
    Period = 0,
    InstanceId = "string",
    MaxApiRequests = 0,
    AppThrottles = new[]
    {
        new Opentelekomcloud.Inputs.ApigwThrottlingPolicyV2AppThrottleArgs
        {
            MaxApiRequests = 0,
            ThrottlingObjectId = "string",
            Id = "string",
            ThrottlingObjectName = "string",
        },
    },
    Description = "string",
    MaxAppRequests = 0,
    MaxIpRequests = 0,
    MaxUserRequests = 0,
    Name = "string",
    ApigwThrottlingPolicyV2Id = "string",
    PeriodUnit = "string",
    Type = "string",
    UserThrottles = new[]
    {
        new Opentelekomcloud.Inputs.ApigwThrottlingPolicyV2UserThrottleArgs
        {
            MaxApiRequests = 0,
            ThrottlingObjectId = "string",
            Id = "string",
            ThrottlingObjectName = "string",
        },
    },
});
example, err := opentelekomcloud.NewApigwThrottlingPolicyV2(ctx, "apigwThrottlingPolicyV2Resource", &opentelekomcloud.ApigwThrottlingPolicyV2Args{
	Period:         pulumi.Float64(0),
	InstanceId:     pulumi.String("string"),
	MaxApiRequests: pulumi.Float64(0),
	AppThrottles: opentelekomcloud.ApigwThrottlingPolicyV2AppThrottleArray{
		&opentelekomcloud.ApigwThrottlingPolicyV2AppThrottleArgs{
			MaxApiRequests:       pulumi.Float64(0),
			ThrottlingObjectId:   pulumi.String("string"),
			Id:                   pulumi.String("string"),
			ThrottlingObjectName: pulumi.String("string"),
		},
	},
	Description:               pulumi.String("string"),
	MaxAppRequests:            pulumi.Float64(0),
	MaxIpRequests:             pulumi.Float64(0),
	MaxUserRequests:           pulumi.Float64(0),
	Name:                      pulumi.String("string"),
	ApigwThrottlingPolicyV2Id: pulumi.String("string"),
	PeriodUnit:                pulumi.String("string"),
	Type:                      pulumi.String("string"),
	UserThrottles: opentelekomcloud.ApigwThrottlingPolicyV2UserThrottleArray{
		&opentelekomcloud.ApigwThrottlingPolicyV2UserThrottleArgs{
			MaxApiRequests:       pulumi.Float64(0),
			ThrottlingObjectId:   pulumi.String("string"),
			Id:                   pulumi.String("string"),
			ThrottlingObjectName: pulumi.String("string"),
		},
	},
})
var apigwThrottlingPolicyV2Resource = new ApigwThrottlingPolicyV2("apigwThrottlingPolicyV2Resource", ApigwThrottlingPolicyV2Args.builder()
    .period(0.0)
    .instanceId("string")
    .maxApiRequests(0.0)
    .appThrottles(ApigwThrottlingPolicyV2AppThrottleArgs.builder()
        .maxApiRequests(0.0)
        .throttlingObjectId("string")
        .id("string")
        .throttlingObjectName("string")
        .build())
    .description("string")
    .maxAppRequests(0.0)
    .maxIpRequests(0.0)
    .maxUserRequests(0.0)
    .name("string")
    .apigwThrottlingPolicyV2Id("string")
    .periodUnit("string")
    .type("string")
    .userThrottles(ApigwThrottlingPolicyV2UserThrottleArgs.builder()
        .maxApiRequests(0.0)
        .throttlingObjectId("string")
        .id("string")
        .throttlingObjectName("string")
        .build())
    .build());
apigw_throttling_policy_v2_resource = opentelekomcloud.ApigwThrottlingPolicyV2("apigwThrottlingPolicyV2Resource",
    period=0,
    instance_id="string",
    max_api_requests=0,
    app_throttles=[{
        "max_api_requests": 0,
        "throttling_object_id": "string",
        "id": "string",
        "throttling_object_name": "string",
    }],
    description="string",
    max_app_requests=0,
    max_ip_requests=0,
    max_user_requests=0,
    name="string",
    apigw_throttling_policy_v2_id="string",
    period_unit="string",
    type="string",
    user_throttles=[{
        "max_api_requests": 0,
        "throttling_object_id": "string",
        "id": "string",
        "throttling_object_name": "string",
    }])
const apigwThrottlingPolicyV2Resource = new opentelekomcloud.ApigwThrottlingPolicyV2("apigwThrottlingPolicyV2Resource", {
    period: 0,
    instanceId: "string",
    maxApiRequests: 0,
    appThrottles: [{
        maxApiRequests: 0,
        throttlingObjectId: "string",
        id: "string",
        throttlingObjectName: "string",
    }],
    description: "string",
    maxAppRequests: 0,
    maxIpRequests: 0,
    maxUserRequests: 0,
    name: "string",
    apigwThrottlingPolicyV2Id: "string",
    periodUnit: "string",
    type: "string",
    userThrottles: [{
        maxApiRequests: 0,
        throttlingObjectId: "string",
        id: "string",
        throttlingObjectName: "string",
    }],
});
type: opentelekomcloud:ApigwThrottlingPolicyV2
properties:
    apigwThrottlingPolicyV2Id: string
    appThrottles:
        - id: string
          maxApiRequests: 0
          throttlingObjectId: string
          throttlingObjectName: string
    description: string
    instanceId: string
    maxApiRequests: 0
    maxAppRequests: 0
    maxIpRequests: 0
    maxUserRequests: 0
    name: string
    period: 0
    periodUnit: string
    type: string
    userThrottles:
        - id: string
          maxApiRequests: 0
          throttlingObjectId: string
          throttlingObjectName: string
ApigwThrottlingPolicyV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ApigwThrottlingPolicyV2 resource accepts the following input properties:
- InstanceId string
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- MaxApi doubleRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- Period double
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- ApigwThrottling stringPolicy V2Id 
- ID of the special user/application throttling policy.
- AppThrottles List<ApigwThrottling Policy V2App Throttle> 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- Description string
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- MaxApp doubleRequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- MaxIp doubleRequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- MaxUser doubleRequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- Name string
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- PeriodUnit string
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- Type string
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- UserThrottles List<ApigwThrottling Policy V2User Throttle> 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- InstanceId string
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- MaxApi float64Requests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- Period float64
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- ApigwThrottling stringPolicy V2Id 
- ID of the special user/application throttling policy.
- AppThrottles []ApigwThrottling Policy V2App Throttle Args 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- Description string
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- MaxApp float64Requests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- MaxIp float64Requests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- MaxUser float64Requests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- Name string
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- PeriodUnit string
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- Type string
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- UserThrottles []ApigwThrottling Policy V2User Throttle Args 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- instanceId String
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- maxApi DoubleRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- period Double
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- apigwThrottling StringPolicy V2Id 
- ID of the special user/application throttling policy.
- appThrottles List<ApigwThrottling Policy V2App Throttle> 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- description String
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- maxApp DoubleRequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- maxIp DoubleRequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- maxUser DoubleRequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- name String
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- periodUnit String
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- type String
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- userThrottles List<ApigwThrottling Policy V2User Throttle> 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- instanceId string
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- maxApi numberRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- period number
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- apigwThrottling stringPolicy V2Id 
- ID of the special user/application throttling policy.
- appThrottles ApigwThrottling Policy V2App Throttle[] 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- description string
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- maxApp numberRequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- maxIp numberRequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- maxUser numberRequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- name string
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- periodUnit string
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- type string
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- userThrottles ApigwThrottling Policy V2User Throttle[] 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- instance_id str
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- max_api_ floatrequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- period float
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- apigw_throttling_ strpolicy_ v2_ id 
- ID of the special user/application throttling policy.
- app_throttles Sequence[ApigwThrottling Policy V2App Throttle Args] 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- description str
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- max_app_ floatrequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- max_ip_ floatrequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- max_user_ floatrequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- name str
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- period_unit str
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- type str
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- user_throttles Sequence[ApigwThrottling Policy V2User Throttle Args] 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- instanceId String
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- maxApi NumberRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- period Number
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- apigwThrottling StringPolicy V2Id 
- ID of the special user/application throttling policy.
- appThrottles List<Property Map>
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- description String
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- maxApp NumberRequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- maxIp NumberRequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- maxUser NumberRequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- name String
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- periodUnit String
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- type String
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- userThrottles List<Property Map>
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApigwThrottlingPolicyV2 resource produces the following output properties:
- created_at str
- The creation time of the throttling policy.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- The region where the throttling policy is located.
Look up Existing ApigwThrottlingPolicyV2 Resource
Get an existing ApigwThrottlingPolicyV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApigwThrottlingPolicyV2State, opts?: CustomResourceOptions): ApigwThrottlingPolicyV2@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        apigw_throttling_policy_v2_id: Optional[str] = None,
        app_throttles: Optional[Sequence[ApigwThrottlingPolicyV2AppThrottleArgs]] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        instance_id: Optional[str] = None,
        max_api_requests: Optional[float] = None,
        max_app_requests: Optional[float] = None,
        max_ip_requests: Optional[float] = None,
        max_user_requests: Optional[float] = None,
        name: Optional[str] = None,
        period: Optional[float] = None,
        period_unit: Optional[str] = None,
        region: Optional[str] = None,
        type: Optional[str] = None,
        user_throttles: Optional[Sequence[ApigwThrottlingPolicyV2UserThrottleArgs]] = None) -> ApigwThrottlingPolicyV2func GetApigwThrottlingPolicyV2(ctx *Context, name string, id IDInput, state *ApigwThrottlingPolicyV2State, opts ...ResourceOption) (*ApigwThrottlingPolicyV2, error)public static ApigwThrottlingPolicyV2 Get(string name, Input<string> id, ApigwThrottlingPolicyV2State? state, CustomResourceOptions? opts = null)public static ApigwThrottlingPolicyV2 get(String name, Output<String> id, ApigwThrottlingPolicyV2State state, CustomResourceOptions options)resources:  _:    type: opentelekomcloud:ApigwThrottlingPolicyV2    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- ApigwThrottling stringPolicy V2Id 
- ID of the special user/application throttling policy.
- AppThrottles List<ApigwThrottling Policy V2App Throttle> 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- CreatedAt string
- The creation time of the throttling policy.
- Description string
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- InstanceId string
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- MaxApi doubleRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- MaxApp doubleRequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- MaxIp doubleRequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- MaxUser doubleRequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- Name string
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- Period double
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- PeriodUnit string
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- Region string
- The region where the throttling policy is located.
- Type string
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- UserThrottles List<ApigwThrottling Policy V2User Throttle> 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- ApigwThrottling stringPolicy V2Id 
- ID of the special user/application throttling policy.
- AppThrottles []ApigwThrottling Policy V2App Throttle Args 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- CreatedAt string
- The creation time of the throttling policy.
- Description string
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- InstanceId string
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- MaxApi float64Requests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- MaxApp float64Requests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- MaxIp float64Requests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- MaxUser float64Requests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- Name string
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- Period float64
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- PeriodUnit string
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- Region string
- The region where the throttling policy is located.
- Type string
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- UserThrottles []ApigwThrottling Policy V2User Throttle Args 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- apigwThrottling StringPolicy V2Id 
- ID of the special user/application throttling policy.
- appThrottles List<ApigwThrottling Policy V2App Throttle> 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- createdAt String
- The creation time of the throttling policy.
- description String
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- instanceId String
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- maxApi DoubleRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- maxApp DoubleRequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- maxIp DoubleRequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- maxUser DoubleRequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- name String
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- period Double
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- periodUnit String
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- region String
- The region where the throttling policy is located.
- type String
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- userThrottles List<ApigwThrottling Policy V2User Throttle> 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- apigwThrottling stringPolicy V2Id 
- ID of the special user/application throttling policy.
- appThrottles ApigwThrottling Policy V2App Throttle[] 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- createdAt string
- The creation time of the throttling policy.
- description string
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- instanceId string
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- maxApi numberRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- maxApp numberRequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- maxIp numberRequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- maxUser numberRequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- name string
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- period number
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- periodUnit string
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- region string
- The region where the throttling policy is located.
- type string
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- userThrottles ApigwThrottling Policy V2User Throttle[] 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- apigw_throttling_ strpolicy_ v2_ id 
- ID of the special user/application throttling policy.
- app_throttles Sequence[ApigwThrottling Policy V2App Throttle Args] 
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- created_at str
- The creation time of the throttling policy.
- description str
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- instance_id str
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- max_api_ floatrequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- max_app_ floatrequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- max_ip_ floatrequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- max_user_ floatrequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- name str
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- period float
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- period_unit str
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- region str
- The region where the throttling policy is located.
- type str
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- user_throttles Sequence[ApigwThrottling Policy V2User Throttle Args] 
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
- apigwThrottling StringPolicy V2Id 
- ID of the special user/application throttling policy.
- appThrottles List<Property Map>
- Specifies the array of one or more special throttling policies for APP limit. The - app_throttlesobject structure is documented below.- The - user_throttlesand- user_throttlesblocks support:
- createdAt String
- The creation time of the throttling policy.
- description String
- Specifies the description about the API throttling policy.
The description contain a maximum of 255characters and the angle brackets (< and >) are not allowed.
- instanceId String
- Specifies the ID of the dedicated instance to which the throttling policy belongs.
- maxApi NumberRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- maxApp NumberRequests 
- Specifies the maximum number of times the API can be accessed by an app within
the same period.
The value of this parameter must be less than or equal to the value of max_user_requests.
- maxIp NumberRequests 
- Specifies the maximum number of times the API can be accessed by an IP address
within the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- maxUser NumberRequests 
- Specifies the maximum number of times the API can be accessed by a user within
the same period.
The value of this parameter must be less than or equal to the value of max_api_requests.
- name String
- Specifies the name of the throttling policy.
The valid length is limited from 3to64, only English letters, digits and underscores (_) are allowed.
- period Number
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits: max_api_requests,max_app_requests,max_ip_requestsandmax_user_requests.
- periodUnit String
- Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, defaults to MINUTE.
- region String
- The region where the throttling policy is located.
- type String
- Specifies the type of the request throttling policy.
The valid values are as follows:- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
 
- userThrottles List<Property Map>
- Specifies the array of one or more special throttling policies for IAM user limit.
The user_throttlesobject structure is documented below.
Supporting Types
ApigwThrottlingPolicyV2AppThrottle, ApigwThrottlingPolicyV2AppThrottleArgs          
- MaxApi doubleRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- ThrottlingObject stringId 
- Specifies the object ID which the special throttling policy belongs.
- Id string
- ID of the special user/application throttling policy.
- ThrottlingObject stringName 
- The object name which the special user/application throttling policy belongs.
- MaxApi float64Requests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- ThrottlingObject stringId 
- Specifies the object ID which the special throttling policy belongs.
- Id string
- ID of the special user/application throttling policy.
- ThrottlingObject stringName 
- The object name which the special user/application throttling policy belongs.
- maxApi DoubleRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- throttlingObject StringId 
- Specifies the object ID which the special throttling policy belongs.
- id String
- ID of the special user/application throttling policy.
- throttlingObject StringName 
- The object name which the special user/application throttling policy belongs.
- maxApi numberRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- throttlingObject stringId 
- Specifies the object ID which the special throttling policy belongs.
- id string
- ID of the special user/application throttling policy.
- throttlingObject stringName 
- The object name which the special user/application throttling policy belongs.
- max_api_ floatrequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- throttling_object_ strid 
- Specifies the object ID which the special throttling policy belongs.
- id str
- ID of the special user/application throttling policy.
- throttling_object_ strname 
- The object name which the special user/application throttling policy belongs.
- maxApi NumberRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- throttlingObject StringId 
- Specifies the object ID which the special throttling policy belongs.
- id String
- ID of the special user/application throttling policy.
- throttlingObject StringName 
- The object name which the special user/application throttling policy belongs.
ApigwThrottlingPolicyV2UserThrottle, ApigwThrottlingPolicyV2UserThrottleArgs          
- MaxApi doubleRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- ThrottlingObject stringId 
- Specifies the object ID which the special throttling policy belongs.
- Id string
- ID of the special user/application throttling policy.
- ThrottlingObject stringName 
- The object name which the special user/application throttling policy belongs.
- MaxApi float64Requests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- ThrottlingObject stringId 
- Specifies the object ID which the special throttling policy belongs.
- Id string
- ID of the special user/application throttling policy.
- ThrottlingObject stringName 
- The object name which the special user/application throttling policy belongs.
- maxApi DoubleRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- throttlingObject StringId 
- Specifies the object ID which the special throttling policy belongs.
- id String
- ID of the special user/application throttling policy.
- throttlingObject StringName 
- The object name which the special user/application throttling policy belongs.
- maxApi numberRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- throttlingObject stringId 
- Specifies the object ID which the special throttling policy belongs.
- id string
- ID of the special user/application throttling policy.
- throttlingObject stringName 
- The object name which the special user/application throttling policy belongs.
- max_api_ floatrequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- throttling_object_ strid 
- Specifies the object ID which the special throttling policy belongs.
- id str
- ID of the special user/application throttling policy.
- throttling_object_ strname 
- The object name which the special user/application throttling policy belongs.
- maxApi NumberRequests 
- Specifies the maximum number of times an API can be accessed within a specified period.
- throttlingObject StringId 
- Specifies the object ID which the special throttling policy belongs.
- id String
- ID of the special user/application throttling policy.
- throttlingObject StringName 
- The object name which the special user/application throttling policy belongs.
Import
API Throttling Policies can be imported using their name and related dedicated instance ID, separated by a slash, e.g.
$ pulumi import opentelekomcloud:index/apigwThrottlingPolicyV2:ApigwThrottlingPolicyV2 test <instance_id>/<name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the opentelekomcloudTerraform Provider.