summaryrefslogtreecommitdiff
path: root/data/en_us/quotas/2020-05-10
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/quotas/2020-05-10')
-rw-r--r--data/en_us/quotas/2020-05-10/api-docs.php8521
1 files changed, 3748 insertions, 4773 deletions
diff --git a/data/en_us/quotas/2020-05-10/api-docs.php b/data/en_us/quotas/2020-05-10/api-docs.php
index 5123a10..4546efb 100644
--- a/data/en_us/quotas/2020-05-10/api-docs.php
+++ b/data/en_us/quotas/2020-05-10/api-docs.php
@@ -1,1686 +1,1022 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'quotas',
- 'version' => '2020-05-10',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'quotas', 'version' => '2020-05-10'],
'directories' => [
[
- 'id' => 277504,
- 'title' => null,
+ 'children' => ['GetProductQuota', 'GetProductQuotaDimension', 'ListProductDimensionGroups', 'ListProductQuotaDimensions', 'ListProductQuotas', 'ListDependentQuotas'],
'type' => 'directory',
- 'children' => [
- 'GetProductQuota',
- 'GetProductQuotaDimension',
- 'ListProductDimensionGroups',
- 'ListProductQuotaDimensions',
- 'ListProductQuotas',
- 'ListProducts',
- 'ListDependentQuotas',
- ],
+ 'title' => 'Product quota',
],
[
- 'id' => 277512,
- 'title' => null,
+ 'children' => ['CreateQuotaAlarm', 'DeleteQuotaAlarm', 'UpdateQuotaAlarm', 'ListQuotaAlarms', 'GetQuotaAlarm', 'ListAlarmHistories'],
'type' => 'directory',
- 'children' => [
- 'CreateQuotaAlarm',
- 'DeleteQuotaAlarm',
- 'UpdateQuotaAlarm',
- 'ListQuotaAlarms',
- 'GetQuotaAlarm',
- 'ListAlarmHistories',
- ],
+ 'title' => 'Quota alert',
],
[
- 'id' => 277519,
- 'title' => null,
+ 'children' => ['CreateQuotaApplication', 'GetQuotaApplication', 'ListQuotaApplications', 'GetQuotaApplicationApproval', 'RemindQuotaApplicationApproval'],
'type' => 'directory',
- 'children' => [
- 'CreateQuotaApplication',
- 'GetQuotaApplication',
- 'ListQuotaApplications',
- 'GetQuotaApplicationApproval',
- 'RemindQuotaApplicationApproval',
- ],
+ 'title' => 'Quota increase request',
],
[
- 'id' => 277525,
- 'title' => null,
+ 'children' => ['GetQuotaTemplateServiceStatus', 'ModifyQuotaTemplateServiceStatus', 'CreateTemplateQuotaItem', 'ModifyTemplateQuotaItem', 'ListQuotaApplicationTemplates', 'DeleteTemplateQuotaItem', 'CreateQuotaApplicationsForTemplate', 'ListQuotaApplicationsDetailForTemplate', 'ListQuotaApplicationsForTemplate'],
+ 'type' => 'directory',
+ 'title' => 'Quota template',
+ ],
+ [
+ 'children' => ['ListProducts'],
+ 'title' => 'Others',
'type' => 'directory',
- 'children' => [
- 'GetQuotaTemplateServiceStatus',
- 'ModifyQuotaTemplateServiceStatus',
- 'CreateTemplateQuotaItem',
- 'ModifyTemplateQuotaItem',
- 'ListQuotaApplicationTemplates',
- 'DeleteTemplateQuotaItem',
- 'CreateQuotaApplicationsForTemplate',
- 'ListQuotaApplicationsDetailForTemplate',
- 'ListQuotaApplicationsForTemplate',
- ],
],
],
'components' => [
'schemas' => [],
],
'apis' => [
- 'GetProductQuota' => [
- 'summary' => 'Queries the details of a quota of a cloud service.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateQuotaAlarm' => [
+ 'summary' => 'Creates a quota alert.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasC3VMZU'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440555~~) operation and check the value of `ProductCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'enumValueTitles' => [],
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the abbreviation of an Alibaba Cloud service name, see the `ProductCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => true, 'example' => 'config', 'title' => ''],
],
[
'name' => 'QuotaActionCode',
'in' => 'formData',
+ 'schema' => ['description' => 'The quota ID.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the quota ID of an Alibaba Cloud service, see the `QuotaActionCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => true, 'example' => 'q_hvnoqv', 'title' => ''],
+ ],
+ [
+ 'name' => 'AlarmName',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The name of the quota alert.', 'type' => 'string', 'required' => true, 'example' => 'q_hvnoqv alarm', 'title' => ''],
+ ],
+ [
+ 'name' => 'ThresholdType',
+ 'in' => 'formData',
'schema' => [
- 'description' => 'The quota ID.'."\n"
+ 'description' => 'The type of the quota alert. Valid values:'."\n"
+ ."\n"
+ .'- used (default): an alert for the used quota.'."\n"
."\n"
- .'> To query a quota ID of an Alibaba Cloud service, call the [ListProductQuotas](~~440554~~) operation and check the value of `QuotaActionCode` in the response.'."\n",
+ .'- usable: an alert for the available quota.',
'type' => 'string',
- 'required' => true,
- 'example' => 'q_security-groups',
+ 'default' => 'used',
+ 'enum' => ['used', 'usable'],
+ 'required' => false,
+ 'example' => 'used',
+ 'title' => '',
],
],
[
- 'name' => 'Dimensions',
+ 'name' => 'Threshold',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The numeric value of the alert threshold. Valid values:'."\n"
+ ."\n"
+ .'- If you set `ThresholdType` to `used`, an alert is triggered when the used quota is greater than or equal to this value. The threshold must be greater than the current used quota.'."\n"
+ ."\n"
+ .'- If you set `ThresholdType` to `usable`, an alert is triggered when the available quota is less than or equal to this value. The threshold must be less than the current available quota.'."\n"
+ ."\n"
+ .'> You must specify either this parameter or ThresholdPercent.', 'type' => 'number', 'format' => 'float', 'required' => false, 'minimum' => '1', 'example' => '150', 'title' => ''],
+ ],
+ [
+ 'name' => 'ThresholdPercent',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The percentage of the alert threshold. Valid values:'."\n"
+ ."\n"
+ .'- If you set `ThresholdType` to `used`, an alert is triggered when the used quota percentage is greater than or equal to this value. The value must be in the range of (50%, 100%].'."\n"
+ ."\n"
+ .'- If you set `ThresholdType` to `usable`, an alert is triggered when the available quota percentage is less than or equal to this value. The value must be in the range of (0%, 50%].'."\n"
+ ."\n"
+ .'> You must specify either this parameter or Threshold.', 'type' => 'number', 'format' => 'float', 'required' => false, 'maximum' => '100', 'minimum' => '50', 'example' => '50', 'title' => ''],
+ ],
+ [
+ 'name' => 'WebHook',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The public URL for receiving alert notifications. Quota Center sends HTTP POST requests to this URL.', 'type' => 'string', 'required' => false, 'example' => 'https://alert.aliyun.com/callback', 'title' => ''],
+ ],
+ [
+ 'name' => 'QuotaDimensions',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
- 'description' => 'The quota dimensions.'."\n",
+ 'description' => 'The quota dimensions.'."\n"
+ .'A quota dimension is an attribute of a quota item. The combination of `Dimensions` and `QuotaActionCode` uniquely identifies a quota item.'."\n"
+ ."\n"
+ .'> This parameter is required for some Alibaba Cloud services. To query the dimensions that an Alibaba Cloud service supports, call the [ListProductQuotaDimensions](~~440553~~) operation. The `Requisite` parameter in the response indicates whether a dimension is required.',
'type' => 'array',
'items' => [
- 'description' => 'The quota dimension.'."\n",
+ 'description' => 'None.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> This parameter is required for cloud services that support dimensions. You must specify both `Dimensions.N.Key` and `Dimensions.N.Value`. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. The following cloud services support dimensions: ECS whose service code is ecs, Enterprise Distributed Application Service (EDAS) whose service code is edas, ECS Quotas by Instance Type whose service code is ecs-spec, and Auto Scaling whose service code is ess.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> This parameter is required for cloud services that support dimensions. You must specify both `Dimensions.N.Key` and `Dimensions.N.Value`. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. The following cloud services support dimensions: ECS whose service code is ecs, EDAS whose service code is edas, ECS Quotas by Instance Type whose service code is ecs-spec, and Auto Scaling whose service code is ess.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> You must specify both `Dimensions.N.Key` and `Dimensions.N.Value`. The value of N indicates the number of dimensions that the Alibaba Cloud service supports. To query the supported dimensions, call the [ListProductQuotaDimensions](~~440553~~) operation. The value of N is the length of the returned array.', 'type' => 'string', 'required' => false, 'example' => 'regionId', 'title' => ''],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> You must specify both `Dimensions.N.Key` and `Dimensions.N.Value`. The value of N indicates the number of dimensions that the Alibaba Cloud service supports. To query the supported dimensions, call the [ListProductQuotaDimensions](~~440553~~) operation. The value of N is the length of the returned array.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
- 'example' => '{\\"regionId\\":\\"cn-beijing\\"}',
- 'maxItems' => 10,
+ 'maxItems' => 5,
+ 'title' => '',
+ 'example' => '',
],
],
+ [
+ 'name' => 'OriginalContext',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'The response parameters.'."\n",
'type' => 'object',
'properties' => [
- 'Quota' => [
- 'description' => 'The details of the quota.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'Adjustable' => [
- 'description' => 'Indicates whether the quota is adjustable. Valid values:'."\n"
- ."\n"
- .'* true'."\n"
- .'* false'."\n",
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ApplicableRange' => [
- 'description' => 'The range of the quota value that can be requested for the quota item.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The range of the quota value that can be requested for the quota item. Example: `[802,10000]`.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '802',
- ],
- ],
- 'ApplicableType' => [
- 'description' => 'The type of the adjustable value. Valid values:'."\n"
- ."\n"
- .'* continuous'."\n"
- .'* discontinuous'."\n",
- 'type' => 'string',
- 'example' => 'continuous',
- ],
- 'ApplyReasonTips' => [
- 'description' => 'The reason for submitting a quota increase request.'."\n",
- 'type' => 'string',
- 'example' => 'The business xxx is expected to grow by 50%.'."\n",
- ],
- 'Consumable' => [
- 'description' => 'Indicates whether the system shows the used value of the quota. Valid values:'."\n"
- ."\n"
- .'* true'."\n"
- .'* false'."\n",
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'Dimensions' => [
- 'description' => 'The quota dimensions. Format: `{"regionId":"Region"}`.'."\n",
- 'type' => 'object',
- 'example' => '{"regionId":"cn-hangzhou"}',
- ],
- 'EffectiveTime' => [
- 'description' => 'The start time of the validity period of the quota. Specify the value in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2022-09-28T06:06:00Z',
- ],
- 'ExpireTime' => [
- 'description' => 'The end time of the validity period of the quota. Specify the value in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2022-09-29T06:06:00Z',
- ],
- 'GlobalQuota' => [
- 'description' => 'Indicates whether the quota is a global quota. Valid values:'."\n"
- ."\n"
- .'* true: The quota is shared in all regions.'."\n"
- .'* false: The quota is independently used in a region.'."\n",
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'Period' => [
- 'description' => 'The calculation cycle of the quota.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'PeriodUnit' => [
- 'description' => 'The unit of the calculation cycle of the quota. Valid values:'."\n"
- ."\n"
- .'* second'."\n"
- .'* minute'."\n"
- .'* hour'."\n"
- .'* day'."\n"
- .'* week'."\n",
- 'type' => 'string',
- 'example' => 'Day',
- ],
- 'PeriodValue' => [
- 'description' => 'The value of the calculation cycle of the quota.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'example' => 'q_security-groups',
- ],
- 'QuotaArn' => [
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/',
- ],
- 'QuotaCategory' => [
- 'description' => 'The type of the quota. Valid values:'."\n"
- ."\n"
- .'* CommonQuota: general quota'."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: whitelist quota'."\n",
- 'type' => 'string',
- 'example' => 'CommonQuota',
- ],
- 'QuotaDescription' => [
- 'description' => 'The description of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'The maximum number of security groups that can be owned by the current account'."\n",
- ],
- 'QuotaItems' => [
- 'description' => 'The details of the quota.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The category of the quota.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'Quota' => [
- 'description' => 'The value of the quota.'."\n",
- 'type' => 'string',
- 'example' => '801',
- ],
- 'QuotaUnit' => [
- 'description' => 'The unit of the quota.'."\n"
- ."\n"
- .'> The unit of each quota is unique. For example, the quota whose ID is `q_cbdch3` represents the maximum number of ACK clusters. The unit of this quota is clusters. The quota whose ID is `q_security-groups` represents the maximum number of security groups. The unit of this quota is security groups.'."\n",
- 'type' => 'string',
- 'example' => 'Count'."\n",
- ],
- 'Type' => [
- 'description' => 'The category of the quota. Valid values:'."\n"
- ."\n"
- .'* BaseQuota: base quota.'."\n"
- .'* ReservedQuota: reserved quota.'."\n",
- 'type' => 'string',
- 'example' => 'BaseQuota',
- ],
- 'Usage' => [
- 'description' => 'The used quota.'."\n",
- 'type' => 'string',
- 'example' => '26',
- ],
- ],
- ],
- ],
- 'QuotaName' => [
- 'description' => 'The name of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'Maximum Number of Security Groups'."\n",
- ],
- 'QuotaType' => [
- 'description' => 'The type of the quota. Valid values:'."\n"
- ."\n"
- .'* privilege'."\n"
- .'* normal'."\n",
- 'type' => 'string',
- 'example' => 'normal',
- ],
- 'QuotaUnit' => [
- 'description' => 'The unit of the quota.'."\n"
- ."\n"
- .'> The unit of each quota is unique. For example, the quota whose ID is `q_cbdch3` represents the maximum number of Container Service for Kubernetes (ACK) clusters. The unit of this quota is clusters. The quota whose ID is `q_security-groups` represents the maximum number of security groups. The unit of this quota is security groups.'."\n",
- 'type' => 'string',
- 'example' => 'Count'."\n",
- ],
- 'SupportedRange' => [
- 'description' => 'The range of the quota value.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The range of the quota value that can be requested for the current quota item. When you configure a quota template, you can use the range as a reference.'."\n"
- ."\n"
- .'* If the value of the ApplicableType parameter is continuous and the value of the ApplicableRange parameter is \\[802,1000], the quota value ranges from 802 to 1,000.'."\n"
- .'* If the value of the ApplicableType parameter is discontinuous and the value of the ApplicableRange parameter is \\[10,20,50,100], the quota value is 10, 20, 50, or 100.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '[802,1000]',
- ],
- ],
- 'TotalQuota' => [
- 'description' => 'The value of the quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '801',
- ],
- 'TotalUsage' => [
- 'description' => 'The used quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '26',
- ],
- 'UnadjustableDetail' => [
- 'description' => 'The reason why the quota is not adjustable. Valid values:'."\n"
- ."\n"
- .'* nonactivated: The service is not activated.'."\n"
- .'* applicationProcess: The application is being processed.'."\n"
- .'* limitReached: The quota limit is reached.'."\n"
- .'* supportTicketRequired: The quota can be increased only by submitting a ticket.'."\n",
- 'type' => 'string',
- 'example' => 'limitReached',
- ],
- 'UsageMetric' => [
- 'description' => 'The monitoring information of the quota in CloudMonitor.'."\n"
- ."\n"
- .'> If this parameter is empty, no monitoring data of the quota exists in CloudMonitor.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'MetricDimensions' => [
- 'description' => 'The monitoring dimensions.'."\n"
- ."\n"
- .'The value is a collection of `key:value` pairs. Example: `{"productCode":"***","metricKey":"***","regionId":"***","label":"***"}`.'."\n",
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'The value of the monitoring dimension.'."\n",
- 'example' => 'ecs',
- ],
- ],
- 'MetricName' => [
- 'description' => 'The monitoring metric.'."\n",
- 'type' => 'string',
- 'example' => 'Usage',
- ],
- 'MetricNamespace' => [
- 'description' => 'The monitoring namespace.'."\n",
- 'type' => 'string',
- 'example' => 'acs_quotas_flowcontrol',
- ],
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => '8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3',
- ],
+ 'AlarmId' => ['description' => 'The ID of the alert.', 'type' => 'string', 'example' => '18b3be23-b7b0-4d45-91bc-d0c331aa****', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'BD219E2B-E687-45EE-B5F3-61FB730551B1', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'QUOTA.UNSUPPORT.ALARM', 'errorMessage' => 'This quota does not support creating alarm', 'description' => ''],
+ ['errorCode' => 'ALARM.NAME.REPEAT', 'errorMessage' => 'The warning name must be unique.', 'description' => 'The alert name must be unique.'],
+ ['errorCode' => 'QUOTA.ALARM.MAX', 'errorMessage' => 'Quota alarm have reached the upper limit of 100', 'description' => 'The maximum number of quota alerts has been reached.'],
+ ['errorCode' => 'UNSUPPORTED.ALARM.TYPE', 'errorMessage' => 'Unified alarm does not support alarm types for used quantity alarms, and does not support numerical threshold types of quota alarms.', 'description' => 'Unified alarm does not support alarm types for used quantity alarms, and does not support numerical threshold types of quota alarms.'],
+ ['errorCode' => 'THRESHOLD.ILLEGAL', 'errorMessage' => 'The alarm Threshold or ThresholdPercent is either empty or ThresholdPercent not in (0,100].', 'description' => 'The alarm Threshold or ThresholdPercent is either empty or ThresholdPercent not in (0,100].'],
+ ['errorCode' => 'QUOTA.OFFLINE', 'errorMessage' => 'The quota has been offline.', 'description' => 'The quota has been offline.'],
+ ],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Quota\\": {\\n \\"Adjustable\\": true,\\n \\"ApplicableRange\\": [\\n 802\\n ],\\n \\"ApplicableType\\": \\"continuous\\",\\n \\"ApplyReasonTips\\": \\"The business xxx is expected to grow by 50%.\\",\\n \\"Consumable\\": true,\\n \\"Dimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2022-09-28T06:06:00Z\\",\\n \\"ExpireTime\\": \\"2022-09-29T06:06:00Z\\",\\n \\"GlobalQuota\\": true,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"day\\",\\n \\"PeriodValue\\": 1\\n },\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaArn\\": \\"acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be owned by the current account.\\",\\n \\"QuotaItems\\": [\\n {\\n \\"Quota\\": \\"801\\",\\n \\"QuotaUnit\\": \\"Count\\",\\n \\"Type\\": \\"BaseQuota\\",\\n \\"Usage\\": \\"26\\"\\n }\\n ],\\n \\"QuotaName\\": \\"Maximum Number of Security Groups\\",\\n \\"QuotaType\\": \\"normal\\",\\n \\"QuotaUnit\\": \\"Count\\",\\n \\"SupportedRange\\": [\\n 0\\n ],\\n \\"TotalQuota\\": 801,\\n \\"TotalUsage\\": 26,\\n \\"UnadjustableDetail\\": \\"limitReached\\",\\n \\"UsageMetric\\": {\\n \\"MetricDimensions\\": {\\n \\"key\\": \\"ecs\\"\\n },\\n \\"MetricName\\": \\"Usage\\",\\n \\"MetricNamespace\\": \\"acs_quotas_flowcontrol\\"\\n }\\n },\\n \\"RequestId\\": \\"8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3\\"\\n}","errorExample":""},{"type":"xml","example":"<GetProductQuotaResponse>\\r\\n\\t<RequestId>8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3</RequestId>\\r\\n\\t<Quota>\\r\\n\\t\\t<QuotaDescription>当前账户可拥有的安全组的最大数量</QuotaDescription>\\r\\n\\t\\t<Consumable>true</Consumable>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<TotalUsage>26</TotalUsage>\\r\\n\\t\\t<Dimensions>\\r\\n\\t\\t\\t<regionId>cn-hangzhou</regionId>\\r\\n\\t\\t</Dimensions>\\r\\n\\t\\t<Adjustable>true</Adjustable>\\r\\n\\t\\t<QuotaActionCode>q_security-groups</QuotaActionCode>\\r\\n\\t\\t<QuotaName>安全组总数量上限</QuotaName>\\r\\n\\t\\t<QuotaArn>acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/</QuotaArn>\\r\\n\\t\\t<TotalQuota>801</TotalQuota>\\r\\n\\t\\t<ApplicableType>continuous</ApplicableType>\\r\\n\\t\\t<ApplicableRange>802</ApplicableRange>\\r\\n\\t\\t<ApplicableRange>10000</ApplicableRange>\\r\\n\\t</Quota>\\r\\n</GetProductQuotaResponse>\\t","errorExample":""}]',
- 'title' => 'GetProductQuota',
- 'description' => 'In this example, the operation is called to query the details of a quota whose ID is `q_security-groups` and whose name is Maximum Number of Security Groups. This quota belongs to Elastic Compute Service (ECS). The query result shows the details of the quota. The details include the name, ID, description, quota value, used quota, unit, and dimension of the quota. In this example, the quota name is `Maximum Number of Security Groups`. The quota ID is `q_security-groups`. The description is `The maximum number of security groups that can be created for the current account`. The quota value is `801`. The used quota is `26`. The quota unit is `Number of security groups`. The quota dimension is `{"regionId":"cn-hangzhou"}`.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
+ 'title' => 'CreateQuotaAlarm',
+ 'description' => 'This API operation is deprecated because the quota alert feature has been upgraded. Use the Cloud Monitor API operations [PutResourceMetricRules](~~2513316~~) and [PutMetricRuleTargets](~~2513302~~) to create new quota alert rules. For more information, see [Use API operations to manage the new version of quota alerts](~~2863234~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'GetProductQuotaDimension' => [
- 'summary' => 'Queries the details of a quota dimension that is supported by an Alibaba Cloud service.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T02:37:35.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2025-03-20T05:32:23.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-10-12T08:10:22.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2022-08-23T09:52:12.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateQuotaAlarm'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'quotas:CreateQuotaAlarm',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlarmId\\": \\"18b3be23-b7b0-4d45-91bc-d0c331aa****\\",\\n \\"RequestId\\": \\"BD219E2B-E687-45EE-B5F3-61FB730551B1\\"\\n}","type":"json"}]',
+ ],
+ 'CreateQuotaApplication' => [
+ 'summary' => 'Creates a quota increase request.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasF0DSPH',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasF0DSPH'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> For more information, see [Alibaba Cloud services that support Quota Center](~~182368~~).'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ecs-spec',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> For more information, see the `ProductCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ecs'],
],
[
- 'name' => 'DimensionKey',
+ 'name' => 'QuotaActionCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The quota ID.'."\n"
+ ."\n"
+ .'> For more information, see the `QuotaActionCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'q_security-groups'],
+ ],
+ [
+ 'name' => 'DesireValue',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The value for the quota request.'."\n"
+ ."\n"
+ .'> - Set this parameter based on the `TotalUsage` and `ApplicableRange` parameters for the target quota. For more information, see [ListProductQuotas](~~440554~~).'."\n"
+ .'>'."\n"
+ .'> - The technical support team of each Alibaba Cloud service reviews quota increase requests. To improve your chance of success, specify a reasonable value and a detailed reason for your request.', 'type' => 'number', 'format' => 'float', 'required' => true, 'title' => '', 'example' => '804'],
+ ],
+ [
+ 'name' => 'Reason',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The reason for the quota increase request.'."\n"
+ ."\n"
+ .'> The technical support team of each Alibaba Cloud service reviews quota increase requests. To improve your chance of success, specify a reasonable value and a detailed reason for your request.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'Scale Out'],
+ ],
+ [
+ 'name' => 'NoticeType',
'in' => 'formData',
'schema' => [
- 'description' => 'The key of the quota dimension.'."\n",
- 'type' => 'string',
+ 'description' => 'Specifies whether to send a notification for the quota request. Valid values:'."\n"
+ ."\n"
+ .'- 0 (default): no.'."\n"
+ ."\n"
+ .'- 3: yes.',
+ 'type' => 'integer',
+ 'format' => 'int32',
'required' => false,
- 'example' => 'regionId',
+ 'default' => '0',
+ 'enum' => ['0', '1', '2', '3'],
+ 'title' => '',
+ 'example' => '0',
],
],
[
- 'name' => 'DependentDimensions',
+ 'name' => 'Dimensions',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
- 'description' => 'The information about quota dimensions.'."\n",
+ 'description' => 'The quota dimensions.'."\n"
+ .'A quota is uniquely identified by the combination of Dimensions and QuotaActionCode.'."\n"
+ ."\n"
+ .'> This parameter is required for some Alibaba Cloud services. To query the dimensions that an Alibaba Cloud service supports, call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation. The `Requisite` parameter in the response indicates whether a dimension is required.',
'type' => 'array',
'items' => [
- 'description' => 'The information about the quota dimension.'."\n",
+ 'description' => 'The quota dimensions.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => 'The key of the quota dimension on which the quota dimension that you want to query is dependent.'."\n"
- ."\n"
- .'> The value range of N varies based on the number of quota dimensions that are supported by the specified Alibaba Cloud service.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the quota dimension on which the quota dimension that you want to query is dependent.'."\n"
- ."\n"
- .'> The value range of N varies based on the number of quota dimensions that are supported by the specified Alibaba Cloud service.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> You must specify `Dimensions.N.Key` and `Dimensions.N.Value` in pairs. The value of N is determined by the number of dimensions that the Alibaba Cloud service supports. To query the dimensions that an Alibaba Cloud service supports, call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation. The value of N is the number of elements in the returned array.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> You must specify `Dimensions.N.Key` and `Dimensions.N.Value` in pairs. The value of N is determined by the number of dimensions that the Alibaba Cloud service supports. To query the dimensions that an Alibaba Cloud service supports, call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation. The value of N is the number of elements in the returned array.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
'maxItems' => 5,
+ 'title' => '',
+ 'example' => '',
],
],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'description' => 'The details of the quota dimension supported by the Alibaba Cloud service.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'QuotaDimension' => [
- 'description' => 'The details of the quota dimension.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'DependentDimensions' => [
- 'description' => 'The quota dimensions on which the quota dimension that you want to query is dependent.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The quota dimensions on which the quota dimension that you want to query is dependent.'."\n",
- 'type' => 'string',
- 'example' => 'regionId',
- ],
- ],
- 'DimensionKey' => [
- 'description' => 'The key of the quota dimension. Valid values:'."\n"
- ."\n"
- .'* regionId: the region ID.'."\n"
- .'* zoneId: the zone ID.'."\n"
- .'* chargeType: the billing method.'."\n"
- .'* networkType: the network type.'."\n",
- 'type' => 'string',
- 'example' => 'regionId',
- ],
- 'DimensionValueDetail' => [
- 'description' => 'The details of the quota dimension value.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The details of the quota dimension value.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'Name' => [
- 'description' => 'The name of the quota dimension.'."\n",
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- 'Value' => [
- 'description' => 'The value of the quota dimension.'."\n",
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- ],
- ],
- ],
- 'DimensionValues' => [
- 'description' => 'The values of the quota dimension.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The values of the quota dimension.'."\n",
- 'type' => 'string',
- 'example' => '["cn-shenzhen", "cn-beijing", "cn-hangzhou"]',
- ],
- ],
- 'Name' => [
- 'description' => 'The name of the quota dimension.'."\n",
- 'type' => 'string',
- 'example' => 'region',
- ],
- ],
- ],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => '1FA5F0E2-368E-4BA4-A8D0-6060FC6BB8F3',
- ],
- ],
- ],
- ],
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"QuotaDimension\\": {\\n \\"DependentDimensions\\": [\\n \\"regionId\\"\\n ],\\n \\"DimensionKey\\": \\"zoneId\\",\\n \\"DimensionValueDetail\\": [\\n {\\n \\"Name\\": \\"cn-hangzhou-b\\",\\n \\"Value\\": \\"cn-hangzhou-b\\"\\n }\\n ],\\n \\"DimensionValues\\": [\\n \\"[\\\\\\"cn-hangzhou-b\\\\\\", \\\\\\"cn-hangzhou-e\\\\\\", \\\\\\"cn-hangzhou-f\\\\\\", \\\\\\"cn-hangzhou-g\\\\\\", \\\\\\"cn-hangzhou-h\\\\\\", \\\\\\"cn-hangzhou-i\\\\\\", \\\\\\"cn-hangzhou-j\\\\\\", \\\\\\"cn-hangzhou-k\\\\\\"]\\"\\n ],\\n \\"Name\\": \\"Zone\\"\\n },\\n \\"RequestId\\": \\"1FA5F0E2-368E-4BA4-A8D0-6060FC6BB8F3\\"\\n}","errorExample":""},{"type":"xml","example":"<GetProductQuotaDimensionResponse>\\r\\n\\t<RequestId>1FA5F0E2-368E-4BA4-A8D0-6060FC6BB8F3</RequestId>\\r\\n\\t<QuotaDimension>\\r\\n\\t\\t<DimensionKey>regionId</DimensionKey>\\r\\n\\t\\t<DimensionValues>cn-shenzhen</DimensionValues>\\r\\n\\t\\t<DimensionValues>cn-beijing</DimensionValues>\\r\\n\\t\\t<DimensionValues>cn-hangzhou</DimensionValues>\\r\\n\\t\\t<DimensionValueDetail>\\r\\n\\t\\t\\t<Value>cn-shenzhen</Value>\\r\\n\\t\\t\\t<Name>cn-shenzhen</Name>\\r\\n\\t\\t</DimensionValueDetail>\\r\\n\\t\\t<DimensionValueDetail>\\r\\n\\t\\t\\t<Value>cn-beijing</Value>\\r\\n\\t\\t\\t<Name>cn-beijing</Name>\\r\\n\\t\\t</DimensionValueDetail>\\r\\n\\t\\t<DimensionValueDetail>\\r\\n\\t\\t\\t<Value>cn-hangzhou</Value>\\r\\n\\t\\t\\t<Name>cn-hangzhou</Name>\\r\\n\\t\\t</DimensionValueDetail>\\r\\n\\t\\t<Name>region</Name>\\r\\n\\t</QuotaDimension>\\r\\n</GetProductQuotaDimensionResponse>\\t","errorExample":""}]',
- 'title' => 'GetProductQuotaDimension',
- 'description' => 'In this example, the operation is called to query the details of a quota dimension whose key is `regionId`. The quota dimension belongs to Elastic Compute Service (ECS) Quotas by Instance Type whose service code is ecs-spec. The following query results are returned:'."\n"
- ."\n"
- .'* The values of the quota dimension include `cn-shenzhen`, `cn-beijing`, and `cn-hangzhou`.'."\n"
- .'* The name of the quota dimension is `region`.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
- ],
- 'ListProductDimensionGroups' => [
- 'summary' => 'Queries the dimension groups of an Alibaba Cloud service.',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
- 'tenantRelevance' => 'publicInformation',
- ],
- 'parameters' => [
[
- 'name' => 'NextToken',
- 'in' => 'query',
+ 'name' => 'QuotaCategory',
+ 'in' => 'formData',
'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query. If you leave this parameter empty, the query starts from the beginning.'."\n",
+ 'description' => 'The type of the quota.'."\n"
+ ."\n"
+ .'Default value: CommonQuota.',
'type' => 'string',
'required' => false,
- 'example' => '1',
+ 'enumValueTitles' => ['FlowControl' => 'API rate limit', 'WhiteListLabel' => 'privilege', 'CommonQuota' => 'general quota'],
+ 'enum' => ['CommonQuota', 'FlowControl', 'WhiteListLabel'],
+ 'title' => '',
+ 'example' => 'CommonQuota',
],
],
[
- 'name' => 'MaxResults',
- 'in' => 'query',
+ 'name' => 'AuditMode',
+ 'in' => 'formData',
'schema' => [
- 'description' => 'The maximum number of records that can be returned for the query. Valid values: 1 to 200. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
+ 'description' => '><notice>'."\n"
+ ."\n"
+ .'This parameter is deprecated. Do not use it.'."\n"
+ ."\n"
+ .'></notice>'."\n"
+ ."\n"
+ .'The approval mode of the quota.',
+ 'type' => 'string',
'required' => false,
- 'maximum' => '200',
- 'example' => '30',
- 'default' => '30',
+ 'enumValueTitles' => ['Async' => '', 'Sync' => ''],
+ 'default' => 'Async',
+ 'enum' => ['Async', 'Sync'],
+ 'title' => '',
+ 'example' => 'Sync',
],
],
[
- 'name' => 'ProductCode',
- 'in' => 'query',
+ 'name' => 'EnvLanguage',
+ 'in' => 'formData',
'schema' => [
- 'description' => 'The service code.'."\n"
- ."\n"
- .'> For more information, see [Alibaba Cloud services that support Quota Center](~~182368~~).'."\n",
+ 'description' => 'The language of the notification for the quota alert.',
'type' => 'string',
- 'required' => true,
- 'example' => 'oss',
+ 'required' => false,
+ 'enumValueTitles' => ['en' => 'English', 'zh' => 'Chinese'],
+ 'title' => '',
+ 'example' => 'zh',
],
],
+ [
+ 'name' => 'ExpireTime',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The UTC time when the quota expires.'."\n"
+ .'This parameter applies only to privileges (WhiteListLabel).'."\n"
+ ."\n"
+ .'> If you do not specify this parameter, the default value is 99 years after the time specified by \\`EffectiveTime\\`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '2021-01-20T09:25:56Z'],
+ ],
+ [
+ 'name' => 'EffectiveTime',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The UTC time when the quota takes effect.'."\n"
+ .'This parameter applies only to privileges (WhiteListLabel).'."\n"
+ ."\n"
+ .'> If you do not specify this parameter, the quota takes effect at the time of submission.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '2021-01-19T09:25:56Z'],
+ ],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'The information about dimension groups.'."\n",
+ 'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
- 'DimensionGroups' => [
- 'description' => 'The dimension groups.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The code information about the dimension group.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'DimensionKeys' => [
- 'description' => 'The key of the dimension group.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The key of the dimension group.'."\n",
- 'type' => 'string',
- 'example' => 'chargeType',
- ],
- ],
- 'GroupCode' => [
- 'description' => 'The code of the dimension group.'."\n",
- 'type' => 'string',
- 'example' => 'oss_wf1ngqmd7q',
- ],
- 'GroupName' => [
- 'description' => 'The name of the dimension group.'."\n",
- 'type' => 'string',
- 'example' => 'OSS_Group',
- ],
- 'ProductCode' => [
- 'description' => 'The service code.'."\n",
- 'type' => 'string',
- 'example' => 'oss',
- ],
- ],
- ],
- ],
- 'MaxResults' => [
- 'description' => 'The maximum number of records that are returned for the query.'."\n",
+ 'ApplicationId' => ['description' => 'The ID of the quota request.', 'type' => 'string', 'title' => '', 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'],
+ 'ApplyTime' => ['description' => 'The time when the quota increase request was submitted.', 'type' => 'string', 'title' => '', 'example' => '2021-01-19T09:25:56Z'],
+ 'ApproveValue' => ['description' => 'The value of the approved quota.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '804'],
+ 'AuditReason' => ['description' => 'The reason for the approval.', 'type' => 'string', 'title' => '', 'example' => 'Agree'],
+ 'DesireValue' => ['description' => 'The value of the quota increase request.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '804'],
+ 'Dimension' => ['description' => 'The quota dimensions.', 'type' => 'object', 'title' => '', 'example' => '{"regionId":"cn-hangzhou"}'],
+ 'EffectiveTime' => ['description' => 'The time when the quota takes effect.', 'type' => 'string', 'title' => '', 'example' => '2021-01-19T09:25:56Z'],
+ 'ExpireTime' => ['description' => 'The time when the quota expires.', 'type' => 'string', 'title' => '', 'example' => '2021-01-20T09:25:56Z'],
+ 'NoticeType' => [
+ 'description' => 'Indicates whether a notification is sent for the quota increase request. Valid values:'."\n"
+ ."\n"
+ .'- 0: No notification is sent.'."\n"
+ ."\n"
+ .'- 3: A notification is sent.',
'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position at which the query ends. An empty value indicates that all data is returned.'."\n",
- 'type' => 'string',
- 'example' => '1',
+ 'format' => 'int64',
+ 'enumValueTitles' => ['No notification is sent.', 3 => 'A notification is sent.'],
+ 'title' => '',
+ 'example' => '3',
],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'title' => '', 'example' => 'ecs'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_security-groups'],
+ 'QuotaArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.', 'type' => 'string', 'title' => '', 'example' => 'acs:quotas::141339776561****:quota/ecs/q_security-groups'],
+ 'QuotaDescription' => ['description' => 'The description of the quota.', 'type' => 'string', 'title' => '', 'example' => 'The maximum number of security groups that can be owned by the current account.'],
+ 'QuotaName' => ['description' => 'The name of the quota.', 'type' => 'string', 'title' => '', 'example' => 'Maximum Number of Security Groups'],
+ 'QuotaUnit' => ['description' => 'The unit of the quota.', 'type' => 'string', 'title' => '', 'example' => 'AMOUNT'],
+ 'Reason' => ['description' => 'The reason for the quota increase request.', 'type' => 'string', 'title' => '', 'example' => 'Scale Out'],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
+ 'Status' => [
+ 'description' => 'The approval status of the quota increase request.',
'type' => 'string',
- 'example' => '057D210F-F2FC-5329-A536-26C16628BB09',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
+ 'enumValueTitles' => ['Cancel' => 'The request is closed.', 'Agree' => 'The request is approved.', 'Process' => 'The request is being reviewed.', 'Disagree' => 'The request is rejected.'],
+ 'title' => '',
+ 'example' => 'Process',
],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"DimensionGroups\\": [\\n {\\n \\"DimensionKeys\\": [\\n \\"regionId\\"\\n ],\\n \\"GroupCode\\": \\"entconsole_zjzp4d****\\",\\n \\"GroupName\\": \\"Resource sharing\\",\\n \\"ProductCode\\": \\"entconsole\\"\\n }\\n ],\\n \\"MaxResults\\": 3,\\n \\"NextToken\\": \\"21\\",\\n \\"RequestId\\": \\"057D210F-F2FC-5329-A536-26C16628BB09\\",\\n \\"TotalCount\\": 3\\n}","errorExample":""},{"type":"xml","example":"<ListProductDimensionGroupsResponse>\\r\\n\\t<DimensionGroups>\\r\\n\\t\\t<GroupName>OSS_Group</GroupName>\\r\\n\\t\\t<ProductCode>oss</ProductCode>\\r\\n\\t\\t<GroupCode>oss_wf1ngqmd7q</GroupCode>\\r\\n\\t\\t<DimensionKeys>chargeType</DimensionKeys>\\r\\n\\t</DimensionGroups>\\r\\n\\t<TotalCount>1</TotalCount>\\r\\n\\t<RequestId>057D210F-F2FC-5329-A536-26C16628BB09</RequestId>\\r\\n\\t<MaxResults>1</MaxResults>\\r\\n</ListProductDimensionGroupsResponse>\\t","errorExample":""}]',
- 'title' => 'ListProductDimensionGroups',
- 'description' => 'This topic provides an example on how to call the ListProductDimensionGroups operation to query the dimension groups of Object Storage Service (OSS). In this example, a dimension group is returned. The group name is `OSS_Group`, the group code is `oss_wf1ngqmd7q`, and the group key is `chargeType`.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'ACQUIRE.LOCK.FAIL', 'errorMessage' => 'The request is too frequent. Please try again later.', 'description' => 'Too many attempts. Try again later.'],
+ ['errorCode' => 'InvalidNoticeType', 'errorMessage' => 'Invalid NoticeType', 'description' => 'The specified NoticeType parameter is invalid.'],
+ ['errorCode' => 'InvalidDesireValue', 'errorMessage' => 'Invalid DesireValue', 'description' => 'The specified DesireValue parameter is invalid.'],
+ ['errorCode' => 'QUOTA.NOT.ADJUSTABLE', 'errorMessage' => 'Quota is not adjustable', 'description' => 'The quota is not adjustable.'],
+ ['errorCode' => 'QUOTA.NOT.FOUND', 'errorMessage' => 'The quota does not exist.', 'description' => 'The quota does not exist.'],
+ ['errorCode' => 'QUOTA.APPLICATION.PROCESS', 'errorMessage' => 'The quota adjustment application is being processed. Please try again later.', 'description' => 'The quota application is being processed. You cannot submit an application at the time being.'],
+ ['errorCode' => 'QUOTA.DESIREVALUE.ILLEGAL', 'errorMessage' => 'The applied quota value is invalid.', 'description' => ''],
+ ['errorCode' => 'QUOTA.APPLICATION.TIME.ERROE', 'errorMessage' => 'ExpireTime cannot be earlier than the current time or EffectiveTime.', 'description' => 'ExpireTime cannot be earlier than the current time or EffectiveTime.'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"ApplyTime\\": \\"2021-01-19T09:25:56Z\\",\\n \\"ApproveValue\\": 804,\\n \\"AuditReason\\": \\"Agree\\",\\n \\"DesireValue\\": 804,\\n \\"Dimension\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2021-01-19T09:25:56Z\\",\\n \\"ExpireTime\\": \\"2021-01-20T09:25:56Z\\",\\n \\"NoticeType\\": 3,\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaArn\\": \\"acs:quotas::141339776561****:quota/ecs/q_security-groups\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be owned by the current account.\\",\\n \\"QuotaName\\": \\"Maximum Number of Security Groups\\",\\n \\"QuotaUnit\\": \\"AMOUNT\\",\\n \\"Reason\\": \\"Scale Out\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"Status\\": \\"Process\\"\\n}","type":"json"}]',
+ 'title' => 'CreateQuotaApplication',
+ 'description' => '> After you create a quota increase request, you can call the [ListQuotaApplications](~~440568~~) operation to check the approval result. The request is approved if the value of the `Status` parameter is `Agree`.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListProductQuotaDimensions' => [
- 'summary' => 'Queries the quota dimensions that are supported by the specified Alibaba Cloud service.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-20T05:32:23.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2022-12-22T10:33:13.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-08-23T09:52:12.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2021-01-12T08:37:02.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateQuotaApplication'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'quotas:CreateQuotaApplication',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaApplication', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'CreateQuotaApplicationsForTemplate' => [
+ 'summary' => 'When you add a quota to a quota template, quota increase requests are automatically submitted only for new members in the resource directory. Existing members are not affected. To increase the quotas for existing members, you can use a quota template to submit batch requests. Only the administrator account of a resource directory can create batch quota requests.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasRRW33P'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'NextToken',
+ 'name' => 'QuotaCategory',
'in' => 'formData',
'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query. If you leave this parameter empty, the query starts from the beginning.'."\n",
+ 'title' => 'CommonQuota, FlowControl, WhiteListLabel',
+ 'description' => 'The quota category. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota: general quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit quota.'."\n"
+ ."\n"
+ .'- WhiteListLabel: privilege.',
'type' => 'string',
- 'required' => false,
- 'example' => '0',
+ 'required' => true,
+ 'enum' => ['CommonQuota', 'FlowControl', 'WhiteListLabel'],
+ 'enumValueTitles' => [],
+ 'example' => 'CommonQuota',
],
],
[
- 'name' => 'MaxResults',
+ 'name' => 'ProductCode',
+ 'in' => 'formData',
+ 'schema' => ['title' => '', 'description' => 'The abbreviation of the Alibaba Cloud service.'."\n"
+ ."\n"
+ .'> For more information, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => true, 'example' => 'ecs-spec'],
+ ],
+ [
+ 'name' => 'QuotaActionCode',
+ 'in' => 'formData',
+ 'schema' => ['title' => '', 'description' => 'The quota ID.'."\n"
+ ."\n"
+ .'> For more information, see the `QuotaActionCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => true, 'example' => 'ecs.g5.2xlarge'],
+ ],
+ [
+ 'name' => 'Dimensions',
'in' => 'formData',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The maximum number of records that can be returned for the query.'."\n"
- ."\n"
- .'Valid values: 1 to 200. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
+ 'title' => '',
+ 'description' => 'The quota dimensions.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The quota dimensions.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> - The value of N depends on the number of dimensions that are supported by the Alibaba Cloud service.'."\n"
+ .'>'."\n"
+ .'> - If \\`ProductCode\\` is set to a value such as \\`ecs\\`, \\`ecs-spec\\`, \\`actiontrail\\`, or \\`ess\\`, you must specify both the key and value of the quota dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> - The value of N depends on the number of dimensions that are supported by the Alibaba Cloud service.'."\n"
+ .'>'."\n"
+ .'> - If \\`ProductCode\\` is set to a value such as \\`ecs\\`, \\`ecs-spec\\`, \\`actiontrail\\`, or \\`ess\\`, you must specify both the key and value of the quota dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
'required' => false,
- 'maximum' => '200',
- 'example' => '30',
- 'default' => '30',
+ 'maxItems' => 10,
+ 'example' => '',
],
],
[
- 'name' => 'ProductCode',
+ 'name' => 'DesireValue',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> For more information, see [Alibaba Cloud services that support Quota Center](~~182368~~).'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ecs',
- ],
+ 'schema' => ['title' => '', 'description' => 'The requested quota value.'."\n"
+ ."\n"
+ .'> - Set this parameter based on the \\`TotalUsage\\` and \\`ApplicableRange\\` of the target quota in [ListProductQuotas](~~440554~~).'."\n"
+ .'>'."\n"
+ .'> - Quota applications are reviewed by the technical support of each Alibaba Cloud service. To increase the chance of your application being approved, specify a reasonable quota value and a detailed reason.', 'type' => 'number', 'format' => 'double', 'required' => true, 'example' => '12'],
],
[
- 'name' => 'QuotaCategory',
+ 'name' => 'Reason',
+ 'in' => 'formData',
+ 'schema' => ['title' => '', 'description' => 'The reason for the quota application.'."\n"
+ ."\n"
+ .'> Quota applications are reviewed by the technical support of each Alibaba Cloud service. To increase the chance of your application being approved, specify a reasonable quota value and a detailed reason.', 'type' => 'string', 'required' => true, 'example' => 'Scale Out'],
+ ],
+ [
+ 'name' => 'NoticeType',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'Specifies whether to send a notification for the application result. Valid values:'."\n"
+ ."\n"
+ .'- 0 (default): No.'."\n"
+ ."\n"
+ .'- 3: Yes.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '0'],
+ ],
+ [
+ 'name' => 'EnvLanguage',
+ 'in' => 'formData',
+ 'schema' => ['title' => '', 'description' => 'The language of the notification for the application result. Valid values:'."\n"
+ ."\n"
+ .'- zh (default): Chinese.'."\n"
+ ."\n"
+ .'- en: English.', 'type' => 'string', 'required' => false, 'example' => 'zh'],
+ ],
+ [
+ 'name' => 'EffectiveTime',
'in' => 'formData',
+ 'schema' => ['title' => '', 'description' => 'The UTC time when the quota takes effect. This parameter applies only to privileges (WhiteListLabel).'."\n"
+ ."\n"
+ .'> If you do not specify this parameter, the quota takes effect at the time of submission.', 'type' => 'string', 'required' => false, 'example' => '2021-01-19T09:25:56Z'],
+ ],
+ [
+ 'name' => 'ExpireTime',
+ 'in' => 'formData',
+ 'schema' => ['title' => '', 'description' => 'The UTC time when the quota expires. This parameter applies only to privileges (WhiteListLabel).'."\n"
+ ."\n"
+ .'> If you do not specify this parameter, the quota expires 99 years after it takes effect.', 'type' => 'string', 'required' => false, 'example' => '2021-01-20T09:25:56Z'],
+ ],
+ [
+ 'name' => 'AliyunUids',
+ 'in' => 'formData',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The type of the quota. Valid values:'."\n"
+ 'title' => '',
+ 'description' => 'A list of Alibaba Cloud accounts of the members in the resource directory for which you want to request a quota increase.'."\n"
."\n"
- .'* FlowControl: API rate limit.'."\n"
- .'* CommonQuota: general quota. This is the default value.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CommonQuota',
- 'enum' => [
- 'FlowControl',
- 'CommonQuota',
- ],
+ .'> You can submit batch quota increase requests for a maximum of 50 members at a time. For more information about the members of a resource directory, see [ListAccounts](~~604207~~).',
+ 'type' => 'array',
+ 'items' => ['description' => 'The Alibaba Cloud account of a member in the resource directory for which you want to request a quota increase.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '135048337611****'."\n"],
+ 'required' => true,
+ 'maxItems' => 100,
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'None.'."\n",
+ 'title' => 'PopResultDTO<String>',
+ 'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
- 'MaxResults' => [
- 'description' => 'The maximum number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position at which the query ends. An empty value indicates that all data is returned.'."\n",
- 'type' => 'string',
- 'example' => '10',
+ 'AliyunUids' => [
+ 'description' => 'A list of Alibaba Cloud accounts of the members in the resource directory for which the quota increase is requested.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The Alibaba Cloud account of a member in the resource directory for which the quota increase is requested.', 'type' => 'string', 'title' => '', 'example' => '135048337611****'],
+ 'title' => '',
+ 'example' => '',
],
- 'QuotaDimensions' => [
- 'description' => 'The quota dimensions.'."\n",
+ 'BatchQuotaApplicationId' => ['description' => 'The ID of the batch quota application.', 'type' => 'string', 'title' => '', 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'],
+ 'FailResults' => [
+ 'description' => 'A list of Alibaba Cloud accounts of the members for which the application failed and the failure reasons.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'The information about a failed application, including the Alibaba Cloud account of the member and the failure reason.',
'type' => 'object',
'properties' => [
- 'DependentDimensions' => [
- 'description' => 'The quota dimensions on which the quota dimension that you want to query is dependent.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The quota dimension on which the quota dimension that you want to query is dependent.'."\n",
- 'type' => 'string',
- 'example' => 'regionId',
- ],
- ],
- 'DimensionKey' => [
- 'description' => 'The key of the quota dimension. Valid values:'."\n"
- ."\n"
- .'* regionId: the region ID.'."\n"
- .'* zoneId: the zone ID.'."\n"
- .'* chargeType: the billing method.'."\n"
- .'* networkType: the network type.'."\n",
- 'type' => 'string',
- 'example' => 'zoneId',
- ],
- 'DimensionValueDetail' => [
- 'description' => 'The details about the dimension value.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'DependentDimensions' => [
- 'description' => 'The quota dimensions on which the quota dimension that you want to query is dependent.',
- 'type' => 'array',
- 'items' => [
- 'description' => 'The quota dimensions on which the quota dimension that you want to query is dependent.',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => 'The key of the quota dimension on which the quota dimension that you want to query is dependent.',
- 'type' => 'string',
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the quota dimension on which the quota dimension that you want to query is dependent.',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- ],
- ],
- ],
- 'Name' => [
- 'description' => 'The name of the quota dimension.'."\n",
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- 'Value' => [
- 'description' => 'The value of the quota dimension.'."\n",
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- ],
- ],
- ],
- 'DimensionValues' => [
- 'description' => 'The dimension values.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The dimension values.'."\n",
- 'type' => 'string',
- 'example' => '["cn-shenzhen", "cn-beijing", "cn-hangzhou"]',
- ],
- ],
- 'Name' => [
- 'description' => 'The name of the quota dimension.'."\n",
- 'type' => 'string',
- 'example' => 'Zone'."\n",
- ],
- 'Requisite' => [
- 'description' => 'Indicates whether the quota dimension is required when you query quota dimensions. Valid values:'."\n"
- ."\n"
- .'* true'."\n"
- .'* false'."\n",
- 'type' => 'boolean',
- 'example' => 'false',
- ],
+ 'AliyunUid' => ['description' => 'The Alibaba Cloud account of the member for which the application failed.', 'type' => 'string', 'title' => '', 'example' => '135048337611****'],
+ 'Reason' => ['description' => 'The reason for the failure.', 'type' => 'string', 'title' => '', 'example' => 'The quota adjustment application is being processed. Please try again later.'],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => '7ED584FB-ECBF-4A2A-969D-F54D25EFABF9',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3'],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 5,\\n \\"NextToken\\": \\"84\\",\\n \\"QuotaDimensions\\": [\\n {\\n \\"DependentDimensions\\": [\\n \\"regionId\\"\\n ],\\n \\"DimensionKey\\": \\"zoneId\\",\\n \\"DimensionValueDetail\\": [\\n {\\n \\"DependentDimensions\\": [\\n {\\n \\"Key\\": \\"regionId\\",\\n \\"Value\\": \\"cn-hangzhou\\"\\n }\\n ],\\n \\"Name\\": \\"cn-hangzhou-b\\",\\n \\"Value\\": \\"cn-hangzhou-b\\\\n\\"\\n }\\n ],\\n \\"DimensionValues\\": [\\n \\"[\\\\\\"cn-hangzhou-b\\\\\\", \\\\\\"cn-hangzhou-e\\\\\\", \\\\\\"cn-hangzhou-f\\\\\\", \\\\\\"cn-hangzhou-g\\\\\\", \\\\\\"cn-hangzhou-h\\\\\\", \\\\\\"cn-hangzhou-i\\\\\\", \\\\\\"cn-hangzhou-j\\\\\\", \\\\\\"cn-hangzhou-k\\\\\\"]\\"\\n ],\\n \\"Name\\": \\"Zone\\",\\n \\"Requisite\\": false\\n }\\n ],\\n \\"RequestId\\": \\"7ED584FB-ECBF-4A2A-969D-F54D25EFABF9\\",\\n \\"TotalCount\\": 5\\n}","errorExample":""},{"type":"xml","example":"<ListProductQuotaDimensionsResponse>\\n<QuotaDimensions>\\n <DimensionKey>regionId</DimensionKey>\\n <DimensionValues>cn-shenzhen</DimensionValues>\\n <DimensionValues>cn-beijing</DimensionValues>\\n <DimensionValues>cn-wulanchabu</DimensionValues>\\n <DimensionValues>ap-south-1</DimensionValues>\\n <DimensionValues>eu-west-1</DimensionValues>\\n <DimensionValues>ap-northeast-1</DimensionValues>\\n <DimensionValues>me-east-1</DimensionValues>\\n <DimensionValues>cn-chengdu</DimensionValues>\\n <DimensionValues>cn-qingdao</DimensionValues>\\n <DimensionValues>cn-shanghai</DimensionValues>\\n <DimensionValues>cn-guangzhou</DimensionValues>\\n <DimensionValues>cn-hongkong</DimensionValues>\\n <DimensionValues>ap-southeast-1</DimensionValues>\\n <DimensionValues>cn-heyuan</DimensionValues>\\n <DimensionValues>ap-southeast-2</DimensionValues>\\n <DimensionValues>ap-southeast-3</DimensionValues>\\n <DimensionValues>eu-central-1</DimensionValues>\\n <DimensionValues>cn-huhehaote</DimensionValues>\\n <DimensionValues>ap-southeast-5</DimensionValues>\\n <DimensionValues>us-east-1</DimensionValues>\\n <DimensionValues>cn-zhangjiakou</DimensionValues>\\n <DimensionValues>us-west-1</DimensionValues>\\n <DimensionValues>cn-hangzhou</DimensionValues>\\n <Name>region</Name>\\n <Requisite>false</Requisite>\\n</QuotaDimensions>\\n<QuotaDimensions>\\n <DimensionKey>zoneId</DimensionKey>\\n <Name>可用区ID</Name>\\n <Requisite>false</Requisite>\\n <DependentDimensions>regionId</DependentDimensions>\\n</QuotaDimensions>\\n<QuotaDimensions>\\n <DimensionKey>chargeType</DimensionKey>\\n <DimensionValues>Spot</DimensionValues>\\n <DimensionValues>PostPaid</DimensionValues>\\n <DimensionValues>PrePaid</DimensionValues>\\n <Name>付费类型</Name>\\n <Requisite>false</Requisite>\\n</QuotaDimensions>\\n<QuotaDimensions>\\n <DimensionKey>networkType</DimensionKey>\\n <DimensionValues>classic</DimensionValues>\\n <DimensionValues>vpc</DimensionValues>\\n <Name>网络类型</Name>\\n <Requisite>false</Requisite>\\n</QuotaDimensions>\\n<TotalCount>4</TotalCount>\\n<RequestId>7ED584FB-ECBF-4A2A-969D-F54D25EFABF9</RequestId>\\n<MaxResults>4</MaxResults>\\n</ListProductQuotaDimensionsResponse>","errorExample":""}]',
- 'title' => 'ListProductQuotaDimensions',
- 'description' => 'In this example, the operation is called to query the quota dimensions that are supported by Elastic Compute Service (ECS). The query results show all the quota dimensions that are supported by ECS.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
- ],
- 'ListProductQuotas' => [
- 'summary' => 'Queries the quotas of a specific Alibaba Cloud service.',
- 'methods' => [
- 'post',
- 'get',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'QUOTA.APPLICATION.TIME.ERROE', 'errorMessage' => 'ExpireTime cannot be earlier than the current time or EffectiveTime.', 'description' => 'ExpireTime cannot be earlier than the current time or EffectiveTime.'],
+ ['errorCode' => 'TEMPLATE.NOT.RD.MA', 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.', 'description' => 'The current account is not the management account of the resource directory and does not have the permissions to manage the quota template.'],
+ ['errorCode' => 'QUOTA.APPLICATION.PROCESS', 'errorMessage' => 'The quota adjustment application is being processed. Please try again later.', 'description' => 'The quota application is being processed. You cannot submit an application at the time being.'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'CreateQuotaApplicationsForTemplate',
+ 'description' => '### Limits'."\n"
+ ."\n"
+ .'You can request a maximum of 10 quotas at a time.',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T02:37:35.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2025-03-20T12:26:48.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2025-03-20T05:32:23.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-11-22T02:34:25.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateQuotaApplicationsForTemplate'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'quotas:CreateQuotaApplicationsForTemplate',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AliyunUids\\": [\\n \\"135048337611****\\"\\n ],\\n \\"BatchQuotaApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"FailResults\\": [\\n {\\n \\"AliyunUid\\": \\"135048337611****\\",\\n \\"Reason\\": \\"The quota adjustment application is being processed. Please try again later.\\"\\n }\\n ],\\n \\"RequestId\\": \\"8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3\\"\\n}","type":"json"}]',
+ ],
+ 'CreateTemplateQuotaItem' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'NextToken',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n"
- ."\n"
- .'* You do not need to specify this parameter for the first and last requests.'."\n"
- .'* You must specify the token that is obtained from the previous query as the value of NextToken.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'MaxResults',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The maximum number of records that can be returned for the query.'."\n"
- ."\n"
- .'Valid values: 1 to 100. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
- ],
- [
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440555~~) operation and check the value of the `ProductCode` parameter.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ecs-spec',
- ],
+ 'schema' => ['title' => '', 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the abbreviation of an Alibaba Cloud service name, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => true, 'example' => 'ecs'],
],
[
'name' => 'QuotaActionCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs.g5.2xlarge',
- ],
- ],
- [
- 'name' => 'KeyWord',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The keyword that you want to use to search for the quotas.'."\n"
- ."\n"
- .'> This parameter is available only for quotas that belong to ECS Quotas by Instance Type. The keyword is used to match the values of `QuotaName` and `QuotaActionCode`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs-spec',
- ],
+ 'schema' => ['title' => '', 'description' => 'The quota ID.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the quota ID of an Alibaba Cloud service, see the `QuotaActionCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => true, 'example' => 'q_security-groups'],
],
[
- 'name' => 'SortField',
+ 'name' => 'DesireValue',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The field based on which you want to sort the returned records.'."\n"
- ."\n"
- .'> This parameter is available only for quotas that belong to ECS Quotas by Instance Type. You can leave this parameter empty.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* TOTAL: sorts the returned records based on the total quota.'."\n"
- .'* TIME: sorts the returned records based on the time when the quota was last modified.'."\n"
- .'* RESERVED: sorts the returned records based on the reserved quota.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'TOTAL' => '',
- 'TIME' => '',
- 'RESERVED' => '',
- ],
- 'example' => 'TIME',
- ],
+ 'schema' => ['title' => '', 'description' => 'The value of the quota request.'."\n"
+ ."\n"
+ .'> - Set the value of the quota request based on the `TotalUsage` (quota usage) and `ApplicableRange` (adjustable range of the quota) of the target quota in [ListProductQuotas](~~440554~~).'."\n"
+ .'>'."\n"
+ .'> - Quota requests are reviewed by the technical support of each Alibaba Cloud service. To increase the chance of approval, specify a reasonable value and a detailed reason for your request.', 'type' => 'number', 'format' => 'float', 'required' => true, 'example' => '804'],
],
[
- 'name' => 'SortOrder',
+ 'name' => 'NoticeType',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The order in which you want to sort the returned records.'."\n"
- ."\n"
- .'> This parameter is available only for quotas that belong to ECS Quotas by Instance Type. You can leave this parameter empty.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* Descending'."\n"
- .'* Ascending'."\n",
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'Descending' => '',
- 'Ascending' => '',
- ],
- 'example' => 'Ascending',
- 'enum' => [
- 'Ascending',
- 'Descending',
- ],
- ],
+ 'schema' => ['title' => '', 'description' => 'Specifies whether to send a notification for the result of the quota request. Valid values:'."\n"
+ ."\n"
+ .'- 0 (default): No.'."\n"
+ ."\n"
+ .'- 3: Yes.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0'],
],
[
'name' => 'Dimensions',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
- 'description' => 'The quota dimensions.'."\n",
+ 'title' => '',
+ 'description' => 'The quota dimensions.',
'type' => 'array',
'items' => [
- 'description' => 'The quota dimension.'."\n",
+ 'description' => 'The quota dimension.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> - The number of dimensions that you can specify depends on the Alibaba Cloud service.'."\n"
+ .'>'."\n"
+ .'> - If `ProductCode` is `ecs`, `ecs-spec`, `actiontrail`, or `ess`, specify both the key and value of a dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> - The number of dimensions that you can specify depends on the Alibaba Cloud service.'."\n"
+ .'>'."\n"
+ .'> - If `ProductCode` is `ecs`, `ecs-spec`, `actiontrail`, or `ess`, specify both the key and value of a dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
- 'maxItems' => 10,
+ 'maxItems' => 5,
+ 'example' => '',
],
],
[
+ 'name' => 'EnvLanguage',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The language of the notification for a quota alert. Valid values:'."\n"
+ ."\n"
+ .'- zh (default): Chinese.'."\n"
+ ."\n"
+ .'- en: English.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'zh'],
+ ],
+ [
+ 'name' => 'EffectiveTime',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The UTC time when the quota takes effect.'."\n"
+ .'This parameter applies only to privileges (WhiteListLabel).'."\n"
+ ."\n"
+ .'> If this parameter is empty, the quota takes effect immediately.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '2021-01-19T09:25:56Z'],
+ ],
+ [
+ 'name' => 'ExpireTime',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The UTC time when the quota expires.'."\n"
+ .'This parameter applies only to privileges (WhiteListLabel).'."\n"
+ ."\n"
+ .'> If this parameter is empty, no expiration time is specified.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '2021-01-20T09:25:56Z'],
+ ],
+ [
'name' => 'QuotaCategory',
'in' => 'formData',
'schema' => [
- 'description' => 'The type of the quota.'."\n"
+ 'description' => 'The type of the quota. Valid values:'."\n"
."\n"
- .'Default value: CommonQuota.'."\n"
+ .'- CommonQuota: general quota.'."\n"
."\n"
- .'Valid values:'."\n"
+ .'- WhiteListLabel: privilege.'."\n"
."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: privilege'."\n"
- .'* CommonQuota: general quota'."\n",
+ .'- FlowControl: API rate limit.',
'type' => 'string',
'required' => false,
- 'enumValueTitles' => [
- 'FlowControl' => '',
- 'WhiteListLabel' => '',
- 'CommonQuota' => '',
+ 'enum' => ['CommonQuota', 'WhiteListLabel', 'FlowControl'],
+ 'title' => '',
+ 'example' => 'CommonQuota',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'None.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => ['description' => 'The ID of the quota template.', 'type' => 'string', 'title' => '', 'example' => '1****'],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
],
- 'example' => 'FlowControl',
- 'enum' => [
- 'CommonQuota',
- 'FlowControl',
- 'WhiteListLabel',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'TEMPLATE.NOT.RD.MA', 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.', 'description' => 'The current account is not the management account of the resource directory and does not have the permissions to manage the quota template.'],
+ ['errorCode' => 'QUOTA.DESIREVALUE.ILLEGAL', 'errorMessage' => 'DesirValue less than or equal to the current quota value, or that is not within the adjustable range.', 'description' => 'DesirValue less than or equal to the current quota value, or that is not within the adjustable range.'],
+ ['errorCode' => 'QUOTA.NOT.ADJUSTABLE', 'errorMessage' => 'Quota is not adjustable', 'description' => 'The quota is not adjustable.'],
+ ],
+ ],
+ 'title' => 'CreateTemplateQuotaItem',
+ 'summary' => 'After a management account creates a quota template, the template automatically submits a quota increase request for any new member added to the resource directory. Existing members are not affected. Quota templates allow you to request increases for multiple quota items at once, which improves the efficiency and automation of quota management for your entire organization. Only the management account of a resource directory can create quota templates.',
+ 'description' => '### Prerequisites'."\n"
+ ."\n"
+ .'Make sure the quota template service is enabled. The `ServiceStatus` parameter must be `1`.'."\n"
+ ."\n"
+ .'You can call the [GetQuotaTemplateServiceStatus](~~450407~~) operation to query the status of the quota template service. If the `ServiceStatus` is `0` (not set) or `-1` (disabled), you can call the [ModifyQuotaTemplateServiceStatus](~~450406~~) operation to change the status to `1` (enabled).'."\n"
+ ."\n"
+ .'### Usage notes'."\n"
+ ."\n"
+ .'After you create a quota template, you can call the [ListQuotaApplicationsForTemplate](~~2584864~~) operation to view the approval result. If the `Status` parameter is `Agree`, the request is approved.',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T02:37:35.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2025-03-20T12:26:48.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-05-22T11:05:55.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-12-22T10:33:14.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTemplateQuotaItem'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'quotas:CreateTemplateQuotaItem',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'TemplateQuota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Id\\": \\"1****\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteQuotaAlarm' => [
+ 'summary' => 'Deletes a quota usage alert.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'GroupCode',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREquotasC3VMZU'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AlarmId',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The code of the dimension group.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'entconsole_w1j3msbo2g',
- ],
+ 'schema' => ['description' => 'The ID of the quota alert.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the ID of a quota alert, see [ListQuotaAlarms](~~440561~~).', 'type' => 'string', 'required' => true, 'example' => '6b512ab7-da3a-4142-b529-2b2a9294****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'The response parameters.'."\n",
'type' => 'object',
'properties' => [
- 'MaxResults' => [
- 'description' => 'The number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'NextToken' => [
- 'description' => 'The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results.'."\n"
- ."\n"
- .'* If NextToken is empty, no next page exists.'."\n"
- .'* If a value of NextToken is returned, the value indicates the token that is used for the next query.'."\n",
- 'type' => 'string',
- 'example' => 'AAAAAd98/tlL5GF2aM7UMKQGM8LZesIPr0CbfxASQvHV/pwcmVKNfdBbW8OPld3NvG9Cy8+dNcyFzyUttQA3IONfBhRGpXFyiVoTgK+dupBsP2mX',
- ],
- 'Quotas' => [
- 'description' => 'The details of the quotas.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The details of the quota.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'Adjustable' => [
- 'description' => 'Indicates whether the quota is adjustable.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* true'."\n"
- .'* false'."\n",
- 'type' => 'boolean',
- 'enumValueTitles' => [
- 'true' => '',
- 'false' => '',
- ],
- 'example' => 'true',
- ],
- 'ApplicableRange' => [
- 'description' => 'The range of the quota value that can be requested for the quota item.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The range of the quota value that can be requested for the current quota item.'."\n"
- ."\n"
- .'The range excludes the existing quota values of the current Alibaba Cloud account. When you request a quota, you can use the range as a reference. Example: `[1010,10000]`.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '[802,10000]',
- ],
- ],
- 'ApplicableType' => [
- 'description' => 'The type of the adjustable value.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* continuous'."\n"
- .'* discontinuous'."\n",
- 'type' => 'string',
- 'enumValueTitles' => [
- 'continuous' => '',
- 'discontinuous' => '',
- ],
- 'example' => 'discontinuous',
- ],
- 'ApplyReasonTips' => [
- 'description' => 'The reason for submitting a quota increase request.'."\n",
- 'type' => 'string',
- 'example' => 'The business xxx is expected to grow by 50%.'."\n",
- ],
- 'Consumable' => [
- 'description' => 'Indicates whether the system shows the used value of the quota.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* true'."\n"
- .'* false'."\n",
- 'type' => 'boolean',
- 'enumValueTitles' => [
- 'true' => '',
- 'false' => '',
- ],
- 'example' => 'true',
- ],
- 'Dimensions' => [
- 'description' => 'The quota dimension. Format: `{"regionId":"Region"}`.'."\n",
- 'type' => 'object',
- 'example' => '{"regionId":"cn-hangzhou"}',
- ],
- 'EffectiveTime' => [
- 'description' => 'The start time of the validity period of the quota. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2022-09-28T06:07:00Z',
- ],
- 'ExpireTime' => [
- 'description' => 'The end time of the validity period of the quota. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2022-09-29T06:07:00Z',
- ],
- 'GlobalQuota' => [
- 'description' => 'Indicates whether the quota is a global quota.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* true: The quota is shared in all regions.'."\n"
- .'* false: The quota is independently used in a region.'."\n",
- 'type' => 'boolean',
- 'enumValueTitles' => [
- 'true' => '',
- 'false' => '',
- ],
- 'example' => 'true',
- ],
- 'Period' => [
- 'description' => 'The calculation cycle of the quota.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'PeriodUnit' => [
- 'description' => 'The unit of the calculation cycle.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* week'."\n"
- .'* hour'."\n"
- .'* day'."\n"
- .'* second'."\n"
- .'* minute'."\n",
- 'type' => 'string',
- 'enumValueTitles' => [
- 'week' => '',
- 'hour' => '',
- 'day' => '',
- 'second' => '',
- 'minute' => '',
- ],
- 'example' => 'day',
- ],
- 'PeriodValue' => [
- 'description' => 'The value of the calculation cycle.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs-spec',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'example' => 'ecs.g5.2xlarge',
- ],
- 'QuotaArn' => [
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'acs:quotas:cn-hangzhou:107992689699****:quota/ecs/ecs.g5.2xlarge/postpaid/vpc/cn-hangzhou/instancetype/cn-hangzhou-i',
- ],
- 'QuotaCategory' => [
- 'description' => 'The type of the quota.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: whitelist quota'."\n"
- .'* CommonQuota: general quota'."\n",
- 'type' => 'string',
- 'enumValueTitles' => [
- 'FlowControl' => '',
- 'WhiteListLabel' => '',
- 'CommonQuota' => '',
- ],
- 'example' => 'CommonQuota',
- ],
- 'QuotaDescription' => [
- 'description' => 'The description of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'ecs.g5.2xlarge',
- ],
- 'QuotaItems' => [
- 'description' => 'The details of the quotas.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The details of the quota.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'Quota' => [
- 'description' => 'The value of the quota.'."\n",
- 'type' => 'string',
- 'example' => '10',
- ],
- 'QuotaUnit' => [
- 'description' => 'The unit of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'AMOUNT',
- ],
- 'Type' => [
- 'description' => 'The category of the quota.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* BaseQuota: base quota'."\n"
- .'* ReservedQuota: reserved quota'."\n",
- 'type' => 'string',
- 'enumValueTitles' => [
- 'BaseQuota' => '',
- 'ReservedQuota' => '',
- ],
- 'example' => 'BaseQuota',
- ],
- 'Usage' => [
- 'description' => 'The quota usage.'."\n",
- 'type' => 'string',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'QuotaName' => [
- 'description' => 'The name of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'ecs.g5.2xlarge',
- ],
- 'QuotaType' => [
- 'description' => 'The type of the quota.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* normal'."\n"
- .'* privilege'."\n",
- 'type' => 'string',
- 'enumValueTitles' => [
- 'normal' => '',
- 'privilege' => '',
- ],
- 'example' => 'privilege',
- ],
- 'QuotaUnit' => [
- 'description' => 'The unit of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'AMOUNT',
- ],
- 'SupportedRange' => [
- 'description' => 'The range of the quota value that can be requested for the current quota item. When you configure a quota template, you can use the range as a reference.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The range of the quota value that can be requested for the current quota item. When you configure a quota template, you can use the range as a reference.'."\n"
- ."\n"
- .'* If the value of ApplicableType is continuous and the value of ApplicableRange is \\[1009,10000], the quota value ranges from 1009 to 10000.'."\n"
- .'* If the value of ApplicableType is discontinuous and the value of ApplicableRange is \\[10,20,50,100], the quota value is 10, 20, 50, or 100.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '[802,1000]',
- ],
- ],
- 'TotalQuota' => [
- 'description' => 'The value of the quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '200',
- ],
- 'TotalUsage' => [
- 'description' => 'The quota usage.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '1',
- ],
- 'UnadjustableDetail' => [
- 'description' => 'The reason why the quota is not adjustable.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* limitReached: The quota limit is reached.'."\n"
- .'* nonactivated: The service is not activated.'."\n"
- .'* applicationProcess: The application is being processed.'."\n",
- 'type' => 'string',
- 'enumValueTitles' => [
- 'limitReached' => '',
- 'nonactivated' => '',
- 'applicationProcess' => '',
- ],
- 'example' => 'applicationProcess',
- ],
- 'UsageMetric' => [
- 'description' => 'The monitoring information of the quota in CloudMonitor.'."\n"
- ."\n"
- .'> If this parameter is empty, no monitoring data of the quota exists in CloudMonitor.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'MetricDimensions' => [
- 'description' => 'The monitoring dimensions.'."\n"
- ."\n"
- .'The value is a collection of `key:value` pairs. Example: `{"productCode":"***","metricKey":"***","regionId":"***","label":"***"}`.'."\n",
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => 'ecs',
- 'description' => 'The value of the monitoring dimension.'."\n",
- ],
- ],
- 'MetricName' => [
- 'description' => 'The monitoring metric.'."\n",
- 'type' => 'string',
- 'example' => 'Usage',
- ],
- 'MetricNamespace' => [
- 'description' => 'The monitoring namespace.'."\n",
- 'type' => 'string',
- 'example' => 'acs_quotas_flowcontrol',
- ],
- ],
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => 'D0131FD5-5397-44FE-BF5A-4B7165B813CC',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of entries returned.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
- ],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'A95C65B3-7CF4-469E-B1D5-1CA0628A6411', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InvalidSortOrder',
- 'errorMessage' => 'Invalid SortOrder',
- ],
- [
- 'errorCode' => 'INVALID.MAX.RESULTS',
- 'errorMessage' => 'The maxResults parameter is invalid. Use an integer ranging from 1 to 100.',
- ],
- [
- 'errorCode' => 'DIMENSIONGROUP.NOT.FOUND',
- 'errorMessage' => 'Dimension group does not exist.',
- ],
+ ['errorCode' => 'RAM.PERMISSION.DENIED', 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.', 'description' => 'You have no access'],
+ ['errorCode' => 'ALARM.NOT.FOUND', 'errorMessage' => 'The AlarmId provided does not exist in our records.', 'description' => 'The quota alert does not exist.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 1,\\n \\"NextToken\\": \\"AAAAAd****\\",\\n \\"Quotas\\": [\\n {\\n \\"Adjustable\\": true,\\n \\"ApplicableRange\\": [\\n 0\\n ],\\n \\"ApplicableType\\": \\"discontinuous\\",\\n \\"ApplyReasonTips\\": \\"The business xxx is expected to grow by 50%.\\",\\n \\"Consumable\\": true,\\n \\"Dimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2022-09-28T06:07:00Z\\",\\n \\"ExpireTime\\": \\"2022-09-29T06:07:00Z\\",\\n \\"GlobalQuota\\": true,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"day\\",\\n \\"PeriodValue\\": 0\\n },\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaArn\\": \\"acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be owned by the current account.\\",\\n \\"QuotaItems\\": [\\n {\\n \\"Quota\\": \\"1009\\",\\n \\"QuotaUnit\\": \\"Count\\",\\n \\"Type\\": \\"BaseQuota\\",\\n \\"Usage\\": \\"1009\\"\\n }\\n ],\\n \\"QuotaName\\": \\"ecs.g5.2xlarge\\",\\n \\"QuotaType\\": \\"privilege\\",\\n \\"QuotaUnit\\": \\"AMOUNT\\",\\n \\"SupportedRange\\": [\\n 0\\n ],\\n \\"TotalQuota\\": 200,\\n \\"TotalUsage\\": 1009,\\n \\"UnadjustableDetail\\": \\"applicationProcess\\",\\n \\"UsageMetric\\": {\\n \\"MetricDimensions\\": {\\n \\"key\\": \\"ecs\\"\\n },\\n \\"MetricName\\": \\"Usage\\",\\n \\"MetricNamespace\\": \\"acs_quotas_flowcontrol\\"\\n }\\n }\\n ],\\n \\"RequestId\\": \\"D0131FD5-5397-44FE-BF5A-4B7165B813CC\\",\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"<ListProductQuotasResponse>\\n <TotalCount>4</TotalCount>\\n <RequestId>F3A3568B-B01E-4EA7-B3DD-0699B4D319F9</RequestId>\\n <NextToken>AAAAAd98/tlL5GF2aM7UMKQGM8LZesIPr0CbfxASQvHV/pwcmVKNfdBbW8OPld3NvG9Cy8+dNcyFzyUttQA3IONfBhRGpXFyiVoTgK+dupBsP2mX</NextToken>\\n <Quotas>\\n <QuotaDescription>ecs.g5.2xlarge</QuotaDescription>\\n <Consumable>true</Consumable>\\n <TotalUsage>3</TotalUsage>\\n <ProductCode>ecs-spec</ProductCode>\\n <Dimensions>\\n <regionId>cn-hangzhou</regionId>\\n <chargeType>PostPaid</chargeType>\\n <zoneId>cn-hangzhou-i</zoneId>\\n <networkType>vpc</networkType>\\n <resourceType>InstanceType</resourceType>\\n </Dimensions>\\n <QuotaUnit>AMOUNT</QuotaUnit>\\n <Period/>\\n <Adjustable>true</Adjustable>\\n <QuotaActionCode>ecs.g5.2xlarge</QuotaActionCode>\\n <QuotaName>ecs.g5.2xlarge</QuotaName>\\n <QuotaItems>\\n <Usage>0</Usage>\\n <Type>ReservedQuota</Type>\\n <Quota>0</Quota>\\n </QuotaItems>\\n <QuotaItems>\\n <Usage>0</Usage>\\n <Type>BaseQuota</Type>\\n <Quota>0</Quota>\\n </QuotaItems>\\n <QuotaArn>acs:quotas:cn-hangzhou:107992689699****:quota/ecs/ecs.g5.2xlarge/postpaid/vpc/cn-hangzhou/instancetype/cn-hangzhou-i</QuotaArn>\\n <TotalQuota>160</TotalQuota>\\n <ApplicableType>continuous</ApplicableType>\\n </Quotas>\\n <MaxResults>1</MaxResults>\\n</ListProductQuotasResponse>","errorExample":""}]',
- 'title' => 'ListProductQuotas',
- 'description' => 'In this example, the operation is called to query the quotas whose instance type is `ecs.g5.2xlarge`. The quotas belong to Elastic Compute Service (ECS) Quotas by Instance Type. The query result includes the name, ID, unit, dimensions, and cycle of each quota.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
+ 'title' => 'DeleteQuotaAlarm',
+ 'description' => 'The quota alert feature has been upgraded. This API operation is deprecated and deletes only earlier-version quota usage alerts. To delete new-version quota usage alerts, use the Cloud Monitor API operations [DeleteMetricRules](~~2513295~~) and [DeleteMetricRuleTargets](~~2513294~~). For more information, see [Manage new-version quota alerts using API operations](~~2863234~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListProducts' => [
- 'summary' => 'Queries the Alibaba Cloud services that support Quota Center.',
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T02:37:35.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-09-04T03:14:41.000Z', 'description' => 'Error codes changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteQuotaAlarm'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'quotas:DeleteQuotaAlarm',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A95C65B3-7CF4-469E-B1D5-1CA0628A6411\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteTemplateQuotaItem' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREquotasC0TSBQ'],
],
'parameters' => [
[
- 'name' => 'NextToken',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query. If you leave this parameter empty, the query starts from the beginning.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '4',
- ],
- ],
- [
- 'name' => 'MaxResults',
+ 'name' => 'Id',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The maximum number of entries to return.'."\n"
- ."\n"
- .'Valid values: 1 to 200. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'maximum' => '200',
- 'example' => '4',
- 'default' => '20',
- ],
+ 'schema' => ['description' => 'The ID of the quota template.'."\n"
+ ."\n"
+ .'You can call the [ListQuotaApplicationTemplates](~~450403~~) operation to obtain the ID of a quota template.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '1****'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The returned data.',
'type' => 'object',
'properties' => [
- 'MaxResults' => [
- 'description' => 'The maximum number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position at which the query ends. An empty value indicates that all data is returned.'."\n",
- 'type' => 'string',
- 'example' => '4',
- ],
- 'ProductInfo' => [
- 'description' => 'The information about the Alibaba Cloud services.'."\n",
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'CommonQuotaSupport' => [
- 'title' => '通用配额是否支持',
- 'description' => 'Indicates whether the Alibaba Cloud service supports general quotas. Valid values:'."\n"
- ."\n"
- .'* support: The Alibaba Cloud service supports general quotas.'."\n"
- .'* unsupport: The Alibaba Cloud service does not support general quotas.'."\n",
- 'type' => 'string',
- 'example' => 'support',
- ],
- 'Dynamic' => [
- 'description' => '> This parameter is discontinued and is not recommended.'."\n"
- ."\n"
- .'Indicates whether the Alibaba Cloud service supports dynamic quota adjustment. Valid values:'."\n"
- ."\n"
- .'* true'."\n"
- .'* false'."\n",
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'FlowControlSupport' => [
- 'title' => '是否支持流程',
- 'description' => 'Indicates whether the Alibaba Cloud service supports API rate limits. Valid values:'."\n"
- ."\n"
- .'* support: The Alibaba Cloud service supports API rate limits.'."\n"
- .'* unsupport: The Alibaba Cloud service does not support API rate limits.'."\n",
- 'type' => 'string',
- 'example' => 'unsupport',
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'ProductName' => [
- 'description' => 'The name of the Alibaba Cloud service.'."\n",
- 'type' => 'string',
- 'example' => 'Elastic Compute Service (ECS)'."\n",
- ],
- 'ProductNameEn' => [
- 'description' => 'The English name of the Alibaba Cloud service.'."\n",
- 'type' => 'string',
- 'example' => 'Elastic Compute Service',
- ],
- 'SecondCategoryId' => [
- 'description' => 'The ID of the service category.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '5',
- ],
- 'SecondCategoryName' => [
- 'description' => 'The name of the service category.'."\n",
- 'type' => 'string',
- 'example' => 'Elastic Compute'."\n",
- ],
- 'SecondCategoryNameEn' => [
- 'description' => 'The English name of the service category.'."\n",
- 'type' => 'string',
- 'example' => 'Elastic Compute',
- ],
- 'WhiteListLabelQuotaSupport' => [
- 'description' => 'Indicates whether the Alibaba Cloud service supports whitelist quotas. Valid values:'."\n"
- ."\n"
- .'* support: The Alibaba Cloud service supports whitelist quotas.'."\n"
- .'* unsupport: The Alibaba Cloud service does not support whitelist quotas.'."\n",
- 'type' => 'string',
- 'example' => 'support',
- ],
- ],
- 'description' => '',
- ],
- ],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => '1DA9C136-11BC-4C39-ADC6-B86276128072',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'Id' => ['description' => 'The ID of the quota template.', 'type' => 'string', 'example' => '1****', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
],
- 'description' => '',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 4,\\n \\"NextToken\\": \\"4\\",\\n \\"ProductInfo\\": [\\n {\\n \\"CommonQuotaSupport\\": \\"support\\",\\n \\"Dynamic\\": true,\\n \\"FlowControlSupport\\": \\"unsupport\\",\\n \\"ProductCode\\": \\"ecs\\",\\n \\"ProductName\\": \\"Elastic Compute Service (ECS)\\",\\n \\"ProductNameEn\\": \\"Elastic Compute Service\\",\\n \\"SecondCategoryId\\": 5,\\n \\"SecondCategoryName\\": \\"Elastic Compute\\",\\n \\"SecondCategoryNameEn\\": \\"Elastic Compute\\",\\n \\"WhiteListLabelQuotaSupport\\": \\"support\\"\\n }\\n ],\\n \\"RequestId\\": \\"1DA9C136-11BC-4C39-ADC6-B86276128072\\",\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"<ListProductsResponse>\\r\\n\\t<ProductInfo>\\r\\n\\t\\t<SecondCategoryNameEn>Elastic Compute</SecondCategoryNameEn>\\r\\n\\t\\t<Dynamic>true</Dynamic>\\r\\n\\t\\t<CommonQuotaSupport>support</CommonQuotaSupport>\\r\\n\\t\\t<ProductName>云服务器ECS</ProductName>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<SecondCategoryName>弹性计算</SecondCategoryName>\\r\\n\\t\\t<FlowControlSupport>unsupport</FlowControlSupport>\\r\\n\\t\\t<SecondCategoryId>5</SecondCategoryId>\\r\\n\\t\\t<ProductNameEn>Elastic Compute Service</ProductNameEn>\\r\\n\\t</ProductInfo>\\r\\n\\t<ProductInfo>\\r\\n\\t\\t<SecondCategoryNameEn>Elastic Compute</SecondCategoryNameEn>\\r\\n\\t\\t<Dynamic>true</Dynamic>\\r\\n\\t\\t<CommonQuotaSupport>support</CommonQuotaSupport>\\r\\n\\t\\t<ProductName>云服务器ECS规格配额</ProductName>\\r\\n\\t\\t<ProductCode>ecs-spec</ProductCode>\\r\\n\\t\\t<SecondCategoryName>弹性计算</SecondCategoryName>\\r\\n\\t\\t<FlowControlSupport>unsupport</FlowControlSupport>\\r\\n\\t\\t<SecondCategoryId>5</SecondCategoryId>\\r\\n\\t\\t<ProductNameEn>Ecs Quotas by Instance Type</ProductNameEn>\\r\\n\\t</ProductInfo>\\r\\n\\t<ProductInfo>\\r\\n\\t\\t<SecondCategoryNameEn>Elastic Compute</SecondCategoryNameEn>\\r\\n\\t\\t<Dynamic>true</Dynamic>\\r\\n\\t\\t<CommonQuotaSupport>support</CommonQuotaSupport>\\r\\n\\t\\t<ProductName>弹性伸缩</ProductName>\\r\\n\\t\\t<ProductCode>ess</ProductCode>\\r\\n\\t\\t<SecondCategoryName>弹性计算</SecondCategoryName>\\r\\n\\t\\t<FlowControlSupport>unsupport</FlowControlSupport>\\r\\n\\t\\t<SecondCategoryId>5</SecondCategoryId>\\r\\n\\t\\t<ProductNameEn>Auto Scaling</ProductNameEn>\\r\\n\\t</ProductInfo>\\r\\n\\t<ProductInfo>\\r\\n\\t\\t<SecondCategoryNameEn>Security Management</SecondCategoryNameEn>\\r\\n\\t\\t<Dynamic>true</Dynamic>\\r\\n\\t\\t<CommonQuotaSupport>support</CommonQuotaSupport>\\r\\n\\t\\t<ProductName>操作审计</ProductName>\\r\\n\\t\\t<ProductCode>actiontrail</ProductCode>\\r\\n\\t\\t<SecondCategoryName>安全管理</SecondCategoryName>\\r\\n\\t\\t<FlowControlSupport>unsupport</FlowControlSupport>\\r\\n\\t\\t<SecondCategoryId>21</SecondCategoryId>\\r\\n\\t\\t<ProductNameEn>ActionTrail</ProductNameEn>\\r\\n\\t</ProductInfo>\\r\\n\\t<TotalCount>22</TotalCount>\\r\\n\\t<RequestId>16AD05A1-10E4-4048-AD9D-03BC6B9D5CDA</RequestId>\\r\\n\\t<NextToken>4</NextToken>\\r\\n\\t<MaxResults>4</MaxResults>\\r\\n</ListProductsResponse>\\t","errorExample":""}]',
- 'title' => 'ListProducts',
- 'description' => 'The services in the query result are the same as the services listed in [Alibaba Cloud services that support Quota Center](~~182368~~).'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
- ],
- 'ListDependentQuotas' => [
- 'summary' => 'Queries the quotas on which a specified quota depends.',
- 'methods' => [
- 'get',
- 'post',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'RAM.PERMISSION.DENIED', 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.', 'description' => 'You have no access'],
+ ['errorCode' => 'TEMPLATE.NOT.RD.MA', 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.', 'description' => 'The current account is not the management account of the resource directory and does not have the permissions to manage the quota template.'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'DeleteTemplateQuotaItem',
+ 'summary' => 'Deletes a quota template by using the management account of a resource directory. After you delete a quota template, if a member is added to the resource directory, the quota template no longer automatically submits a quota increase request for the member. Only the management account of a resource directory can delete quota templates.',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-20T12:26:48.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-09-04T03:14:40.000Z', 'description' => 'Error codes changed'],
],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTemplateQuotaItem'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'quotas:DeleteTemplateQuotaItem',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'TemplateQuota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Id\\": \\"1****\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\"\\n}","type":"json"}]',
+ ],
+ 'GetProductQuota' => [
+ 'summary' => 'Queries the details of a quota for a specified Alibaba Cloud product.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1692,582 +1028,649 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'formData',
'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ 'description' => 'The abbreviation of the Alibaba Cloud product name.'."\n"
."\n"
- .'> For more information, see [Alibaba Cloud services that support Quota Center](~~182368~~).'."\n",
+ .'> For more information, see the ProductCode parameter in [ListProducts](~~440555~~).',
'type' => 'string',
'required' => true,
- 'example' => 'csk',
+ 'enumValueTitles' => [],
+ 'title' => '',
+ 'example' => 'ecs',
],
],
[
'name' => 'QuotaActionCode',
'in' => 'formData',
+ 'schema' => ['description' => 'The quota ID.'."\n"
+ ."\n"
+ .'> For more information, see the QuotaActionCode parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'q_security-groups'],
+ ],
+ [
+ 'name' => 'Dimensions',
+ 'in' => 'formData',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'q_i5uzm3',
+ 'description' => 'The quota dimensions.'."\n"
+ .'A quota dimension is a property of a quota. The combination of Dimensions and QuotaActionCode uniquely identifies a quota.'."\n"
+ ."\n"
+ .'> Dimensions are required for some Alibaba Cloud products. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the dimensions of a quota and check whether the dimensions are required. The Requisite parameter in the response indicates whether a dimension is required.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The quota dimensions.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> Dimensions.N.Key and Dimensions.N.Value must be specified at the same time. The value of N is determined by the number of dimensions that the Alibaba Cloud product supports. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the supported dimensions. The value of N is the length of the returned array.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> Dimensions.N.Key and Dimensions.N.Value must be specified at the same time. The value of N is determined by the number of dimensions that the Alibaba Cloud product supports. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the supported dimensions. The value of N is the length of the returned array.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'example' => '{\\"regionId\\":\\"cn-beijing\\"}',
+ 'maxItems' => 10,
+ 'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'None.'."\n",
+ 'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
- 'Quotas' => [
- 'description' => 'The quotas on which the specified quota depends.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Dimensions' => [
- 'description' => 'The dimensions of the quotas on which the specified quota depends.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'DependentDimension' => [
- 'description' => 'The dimensions of the quotas on which the specified quota depends.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The dimensions of the quotas on which the specified quota depends.'."\n",
- 'type' => 'string',
- 'example' => 'regionId',
- ],
- ],
- 'DimensionKey' => [
- 'description' => 'The key of the quota dimension.'."\n",
- 'type' => 'string',
- 'example' => 'regionId',
- ],
- 'DimensionValues' => [
- 'description' => 'The dimension values.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The dimension values.'."\n",
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- ],
- ],
- ],
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs',
+ 'Quota' => [
+ 'description' => 'The details of the quota.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Adjustable' => ['description' => 'Indicates whether the quota is adjustable. Valid values:'."\n"
+ ."\n"
+ .'- true: The quota is adjustable.'."\n"
+ ."\n"
+ .'- false: The quota is not adjustable.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
+ 'ApplicableRange' => [
+ 'description' => 'The adjustable range of the quota.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The adjustable range of the quota. For example: `[802,10000]`.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '802'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ApplicableType' => ['description' => 'The type of the adjustable quota. Valid values:'."\n"
+ ."\n"
+ .'- continuous: The quota value is continuous.'."\n"
+ ."\n"
+ .'- discontinuous: The quota value is discontinuous.', 'type' => 'string', 'title' => '', 'example' => 'continuous'],
+ 'ApplyReasonTips' => ['description' => 'An example of the reason for a quota increase request.', 'type' => 'string', 'title' => '', 'example' => 'The business xxx is expected to grow by 50%.'],
+ 'Consumable' => ['description' => 'Indicates whether the used quota is displayed. Valid values:'."\n"
+ ."\n"
+ .'- true: The used quota is displayed.'."\n"
+ ."\n"
+ .'- false: The used quota is not displayed.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
+ 'Dimensions' => ['description' => 'The quota dimensions. Format: `{"regionId":"The region ID"}`.', 'type' => 'object', 'title' => '', 'example' => '{"regionId":"cn-hangzhou"}'],
+ 'EffectiveTime' => ['description' => 'The UTC time when the quota takes effect.', 'type' => 'string', 'title' => '', 'example' => '2022-09-28T06:06:00Z'],
+ 'ExpireTime' => ['description' => 'The UTC time when the quota expires.', 'type' => 'string', 'title' => '', 'example' => '2022-09-29T06:06:00Z'],
+ 'GlobalQuota' => ['description' => 'Indicates whether the quota is a global quota. Valid values:'."\n"
+ ."\n"
+ .'- true: The quota is shared across all regions.'."\n"
+ ."\n"
+ .'- false: The quota is independent for each region.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
+ 'Period' => [
+ 'description' => 'The calculation period of the quota.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PeriodUnit' => ['description' => 'The unit of the calculation period. Valid values:'."\n"
+ ."\n"
+ .'- second'."\n"
+ ."\n"
+ .'- minute'."\n"
+ ."\n"
+ .'- hour'."\n"
+ ."\n"
+ .'- day'."\n"
+ ."\n"
+ .'- week', 'type' => 'string', 'title' => '', 'example' => 'day'],
+ 'PeriodValue' => ['description' => 'The value of the calculation period.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
],
- 'QuotaActionCode' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'example' => 'q_elastic-network-interfaces',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud product name.', 'type' => 'string', 'title' => '', 'example' => 'ecs'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_security-groups'],
+ 'QuotaArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.', 'type' => 'string', 'title' => '', 'example' => 'acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/'],
+ 'QuotaCategory' => ['description' => 'The category of the quota. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota: general quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit.'."\n"
+ ."\n"
+ .'- WhiteListLabel: privilege.', 'type' => 'string', 'title' => '', 'example' => 'CommonQuota'],
+ 'QuotaDescription' => ['description' => 'The description of the quota.', 'type' => 'string', 'title' => '', 'example' => 'The maximum number of security groups that can be owned by the current account.'],
+ 'QuotaItems' => [
+ 'description' => 'The details of the quota.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The quota type.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Quota' => ['description' => 'The quota value.', 'type' => 'string', 'title' => '', 'example' => '801'],
+ 'QuotaUnit' => ['description' => 'The unit of the quota.'."\n"
+ ."\n"
+ .'> The units of quotas vary. For example, the unit of the `q_cbdch3` quota, which is the maximum number of clusters, for Container Service for Kubernetes (ACK) is Cluster. The unit of the `q_security-groups` quota, which is the maximum number of security groups, for Elastic Compute Service (ECS) is Count.', 'type' => 'string', 'title' => '', 'example' => 'Count'],
+ 'Type' => ['description' => 'The quota type. Valid values:'."\n"
+ ."\n"
+ .'- BaseQuota'."\n"
+ ."\n"
+ .'- ReservedQuota', 'type' => 'string', 'title' => '', 'example' => 'BaseQuota'],
+ 'Usage' => ['description' => 'The used quota.', 'type' => 'string', 'title' => '', 'example' => '26'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
- 'Scale' => [
- 'description' => 'The relationship percentage between the specified quota and the quotas on which the specified quota depends.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '50',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'QuotaName' => ['description' => 'The name of the quota.', 'type' => 'string', 'title' => '', 'example' => 'Maximum Number of Security Groups'],
+ 'QuotaType' => ['description' => 'The type of the quota. Valid values:'."\n"
+ ."\n"
+ .'- privilege'."\n"
+ ."\n"
+ .'- normal', 'type' => 'string', 'title' => '', 'example' => 'normal'],
+ 'QuotaUnit' => ['description' => 'The unit of the quota.'."\n"
+ ."\n"
+ .'> The units of quotas vary. For example, the unit of the `q_cbdch3` quota, which is the maximum number of clusters, for Container Service for Kubernetes (ACK) is Cluster. The unit of the `q_security-groups` quota, which is the maximum number of security groups, for Elastic Compute Service (ECS) is Count.', 'type' => 'string', 'title' => '', 'example' => 'Count'],
+ 'SupportedRange' => [
+ 'description' => 'The range of the quota value that is supported by the quota. You can refer to this range when you configure a quota template.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The range of the quota value that is supported by the quota. You can refer to this range when you configure a quota template.'."\n"
+ ."\n"
+ .'- If ApplicableType is set to continuous and the value of this parameter is \\[802,1000], the quota value can be any integer from 802 to 1000.'."\n"
+ ."\n"
+ .'- If ApplicableType is set to discontinuous and the value of this parameter is \\[10,20,50,100], the quota value can be 10, 20, 50, or 100.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '[802,1000]'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'TotalQuota' => ['description' => 'The quota value.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '801'],
+ 'TotalUsage' => ['description' => 'The used quota.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '26'],
+ 'UnadjustableDetail' => ['description' => 'The reason why the quota is not adjustable. Valid values:'."\n"
+ ."\n"
+ .'- nonactivated: The service is not activated.'."\n"
+ ."\n"
+ .'- applicationProcess: The quota increase request is being processed.'."\n"
+ ."\n"
+ .'- limitReached: The quota limit is reached.'."\n"
+ ."\n"
+ .'- supportTicketRequired: You must submit a ticket to request a quota increase.', 'type' => 'string', 'title' => '', 'example' => 'limitReached'],
+ 'UsageMetric' => [
+ 'description' => 'The information about the monitoring of the quota usage in CloudMonitor.'."\n"
+ ."\n"
+ .'> If this parameter is empty, no monitoring data is available in CloudMonitor.',
+ 'type' => 'object',
+ 'properties' => [
+ 'MetricDimensions' => [
+ 'description' => 'The dimensions for monitoring the quota usage in CloudMonitor.'."\n"
+ ."\n"
+ .'Format: a collection of key-value pairs. For example:'."\n"
+ .'`{"productCode":"***","metricKey":"***","regionId":"***","label":"***"}`.',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'The value of a dimension for monitoring the quota usage in CloudMonitor.', 'title' => '', 'example' => 'ecs'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'MetricName' => ['description' => 'The name of the metric for monitoring the quota usage in CloudMonitor.', 'type' => 'string', 'title' => '', 'example' => 'Usage'],
+ 'MetricNamespace' => ['description' => 'The namespace of the metric for monitoring the quota usage in CloudMonitor.', 'type' => 'string', 'title' => '', 'example' => 'acs_quotas_flowcontrol'],
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => '920D8A47-26BB-49FA-A09F-F98D7DAA55F3',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Quotas\\": [\\n {\\n \\"Dimensions\\": [\\n {\\n \\"DependentDimension\\": [\\n \\"[]\\"\\n ],\\n \\"DimensionKey\\": \\"[]\\",\\n \\"DimensionValues\\": [\\n \\"[]\\"\\n ]\\n }\\n ],\\n \\"ProductCode\\": \\"ram\\",\\n \\"QuotaActionCode\\": \\"q_laxtn4\\",\\n \\"Scale\\": 100\\n }\\n ],\\n \\"RequestId\\": \\"920D8A47-26BB-49FA-A09F-F98D7DAA55F3\\"\\n}","errorExample":""},{"type":"xml","example":"<ListDependentQuotasResponse>\\r\\n\\t<RequestId>B871952D-ACA9-4641-B21A-713B08A5270A</RequestId>\\r\\n\\t<Quotas>\\r\\n\\t\\t<QuotaActionCode>q_fh20b0</QuotaActionCode>\\r\\n\\t\\t<ProductCode>slb</ProductCode>\\r\\n\\t</Quotas>\\r\\n\\t<Quotas>\\r\\n\\t\\t<QuotaActionCode>q_3mmbsp</QuotaActionCode>\\r\\n\\t\\t<ProductCode>slb</ProductCode>\\r\\n\\t</Quotas>\\r\\n\\t<Quotas>\\r\\n\\t\\t<QuotaActionCode>q_elastic-network-interfaces</QuotaActionCode>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<Dimensions>\\r\\n\\t\\t\\t<DimensionKey>regionId</DimensionKey>\\r\\n\\t\\t\\t<DimensionValues>cn-shenzhen</DimensionValues>\\r\\n\\t\\t\\t<DimensionValues>cn-beijing</DimensionValues>\\r\\n\\t\\t\\t<DimensionValues>cn-hangzhou</DimensionValues>\\r\\n\\t\\t</Dimensions>\\r\\n\\t</Quotas>\\r\\n</ListDependentQuotasResponse>\\t","errorExample":""}]',
- 'title' => 'ListDependentQuotas',
- 'description' => 'In this example, the operation is called to query the quotas on which a Container Service for Kubernetes (ACK) quota whose ID is `q_i5uzm3` depends. This quota is the maximum number of nodes that can be created in an ACK cluster. The query result indicates that the specified quota depends on the following three quotas:'."\n"
- ."\n"
- .'* An Elastic Compute Service (ECS) quota whose ID is `q_elastic-network-interfaces`. This quota is the maximum number of ENIs (Secondary ENIs) that can be owned by an Alibaba Cloud account. The quota is available in the following regions: `cn-shenzhen`, `cn-beijing`, and `cn-hangzhou`.'."\n"
- .'* A Server Load Balancer (SLB) quota whose ID is `q_fh20b0`. This quota is the number of servers that can be attached to the backend of an SLB instance.'."\n"
- .'* An SLB quota whose ID is `q_3mmbsp`. This quota is the number of SLB instances that can be owned by an Alibaba Cloud account.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
+ 'errorCodes' => [],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Quota\\": {\\n \\"Adjustable\\": true,\\n \\"ApplicableRange\\": [\\n 802\\n ],\\n \\"ApplicableType\\": \\"continuous\\",\\n \\"ApplyReasonTips\\": \\"The business xxx is expected to grow by 50%.\\",\\n \\"Consumable\\": true,\\n \\"Dimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2022-09-28T06:06:00Z\\",\\n \\"ExpireTime\\": \\"2022-09-29T06:06:00Z\\",\\n \\"GlobalQuota\\": true,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"day\\",\\n \\"PeriodValue\\": 1\\n },\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaArn\\": \\"acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be owned by the current account.\\",\\n \\"QuotaItems\\": [\\n {\\n \\"Quota\\": \\"801\\",\\n \\"QuotaUnit\\": \\"Count\\",\\n \\"Type\\": \\"BaseQuota\\",\\n \\"Usage\\": \\"26\\"\\n }\\n ],\\n \\"QuotaName\\": \\"Maximum Number of Security Groups\\",\\n \\"QuotaType\\": \\"normal\\",\\n \\"QuotaUnit\\": \\"Count\\",\\n \\"SupportedRange\\": [\\n 0\\n ],\\n \\"TotalQuota\\": 801,\\n \\"TotalUsage\\": 26,\\n \\"UnadjustableDetail\\": \\"limitReached\\",\\n \\"UsageMetric\\": {\\n \\"MetricDimensions\\": {\\n \\"key\\": \\"ecs\\"\\n },\\n \\"MetricName\\": \\"Usage\\",\\n \\"MetricNamespace\\": \\"acs_quotas_flowcontrol\\"\\n }\\n },\\n \\"RequestId\\": \\"8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3\\"\\n}","type":"json"}]',
+ 'title' => 'GetProductQuota',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CreateQuotaAlarm' => [
- 'summary' => 'Creates a quota alert.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2024-09-29T05:47:00.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-06-24T01:53:09.000Z', 'description' => 'Error codes changed, Request parameters changed, Response parameters changed'],
+ ['createdAt' => '2023-11-07T11:22:06.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-06-28T09:32:22.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-03-17T10:05:24.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-12-22T10:33:14.000Z', 'description' => 'Response parameters changed, Response parameters changed'],
+ ['createdAt' => '2022-12-07T07:59:47.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '15', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProductQuota'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetProductQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'Quota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
],
+ ],
+ 'GetProductQuotaDimension' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC3VMZU',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasF0DSPH'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, check the `ProductCode` parameter that is described in [ListProductQuotas](~~440554~~).'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'config',
- ],
- ],
- [
- 'name' => 'QuotaActionCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota ID.'."\n"
- ."\n"
- .'> To obtain the quota ID of an Alibaba Cloud service, call the [ListProductQuotas](~~440554~~) operation and check the value of `QuotaActionCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'q_hvnoqv',
- ],
- ],
- [
- 'name' => 'AlarmName',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'Quota alarm name',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'q_344t4 alarm',
- ],
- ],
- [
- 'name' => 'ThresholdType',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The type of the quota alert. Valid values:'."\n"
- ."\n"
- .'* used (default): The alert is created for the used quota.'."\n"
- .'* usable: The alert is created for the available quota.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'used',
- 'default' => 'used',
- 'enum' => [
- 'used',
- 'usable',
- ],
- ],
- ],
- [
- 'name' => 'Threshold',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The numerical value of the quota alarm threshold. Value settings:'."\n"
- .'- When `ThresholdType` is set to `used`, an alarm notification will be sent if the used amount of the quota is greater than or equal to the preset value. The quota alarm threshold must be greater than the used amount of the quota.'."\n"
- .'- When `ThresholdType` is set to `usable`, an alarm notification will be sent if the remaining available amount of the quota is less than or equal to the preset value. The quota alarm threshold must be less than the remaining available amount of the quota.'."\n"
- .'> One of this parameter and ThresholdPercent must be set.',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'minimum' => '1',
- 'example' => '150',
- ],
- ],
- [
- 'name' => 'ThresholdPercent',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The percentage of the quota alert threshold. Values:'."\n"
- .'- When `ThresholdType` is set to `used`, you will receive an alert notification if the used amount of the quota is greater than or equal to the preset percentage. The value range is (50%, 100%].'."\n"
- .'- When `ThresholdType` is set to `usable`, you will receive an alert notification if the remaining available amount of the quota is less than or equal to the preset percentage. The value range is (0%, 50%].'."\n"
- .'> One of this parameter and Threshold must be set.',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'maximum' => '100',
- 'minimum' => '50',
- 'example' => '50',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service.'."\n"
+ ."\n"
+ .'> For more information, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'disk'],
],
[
- 'name' => 'WebHook',
+ 'name' => 'DimensionKey',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota center sends alert information to the specified public URL address via a POST request using the HTTP protocol.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://alert.aliyun.com/callback',
- ],
+ 'schema' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> If the quota dimension has dependencies, specify both the key and value for each dependent dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'zoneId'],
],
[
- 'name' => 'QuotaDimensions',
+ 'name' => 'DependentDimensions',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
- 'description' => 'The quota dimensions. A quota item is uniquely identified by the values of `Dimensions` and `QuotaActionCode`.'."\n"
- ."\n"
- .'> This parameter is required for specific Alibaba Cloud services. You can call the [ListProductQuotaDimensions](~~440553~~) operation to query the quota dimensions that are supported by an Alibaba Cloud service. The value of `Requisite` in the response indicates whether a dimension is required.'."\n",
+ 'description' => 'The dependent quota dimensions.',
'type' => 'array',
'items' => [
- 'description' => 'N/A.'."\n",
+ 'description' => 'The dependent quota dimensions.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> You must configure `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. You can call the [ListProductQuotaDimensions](~~440553~~) operation to query the dimensions that are supported by an Alibaba Cloud service. The number of items in the returned array is N.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> You must configure `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. You can call the [ListProductQuotaDimensions](~~440553~~) operation to query the dimensions that are supported by an Alibaba Cloud service. The number of items in the returned array is N.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'Key' => ['description' => 'The key of the dependent quota dimension.'."\n"
+ ."\n"
+ .'> - The value of N depends on the number of dependent dimensions.'."\n"
+ .'>'."\n"
+ .'> - You must specify both the key and value for a dependent dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the dependent quota dimension.'."\n"
+ ."\n"
+ .'> - The value of N depends on the number of dependent dimensions.'."\n"
+ .'>'."\n"
+ .'> - You must specify both the key and value for a dependent dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
'maxItems' => 5,
- ],
- ],
- [
- 'name' => 'OriginalContext',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
+ 'description' => 'The details of the quota dimensions that the product supports.',
'type' => 'object',
'properties' => [
- 'AlarmId' => [
- 'description' => 'Alarm ID.',
- 'type' => 'string',
- 'example' => '18b3be23-b7b0-4d45-91bc-d0c331aa****',
- ],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => 'BD219E2B-E687-45EE-B5F3-61FB730551B1',
+ 'QuotaDimension' => [
+ 'description' => 'The details of the quota dimension.',
+ 'type' => 'object',
+ 'properties' => [
+ 'DependentDimensions' => [
+ 'description' => 'The quota dimensions on which the target quota dimension depends.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The quota dimensions on which the target quota dimension depends.', 'type' => 'string', 'title' => '', 'example' => 'regionId'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DimensionKey' => ['description' => 'The key of the quota dimension. Valid values:'."\n"
+ ."\n"
+ .'- regionId'."\n"
+ ."\n"
+ .'- zoneId'."\n"
+ ."\n"
+ .'- chargeType: billing method.'."\n"
+ ."\n"
+ .'- networkType'."\n"
+ ."\n"
+ .'- resourceType', 'type' => 'string', 'title' => '', 'example' => 'zoneId'],
+ 'DimensionValueDetail' => [
+ 'description' => 'The details of the quota dimension value.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the quota dimension value.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => ['description' => 'The name of the quota dimension value.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou-b'],
+ 'Value' => ['description' => 'The value of the quota dimension value.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou-b'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DimensionValues' => [
+ 'description' => 'A list of quota dimension values.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A list of quota dimension values.', 'type' => 'string', 'title' => '', 'example' => '["cn-hangzhou-b", "cn-hangzhou-e", "cn-hangzhou-f", "cn-hangzhou-g", "cn-hangzhou-h", "cn-hangzhou-i", "cn-hangzhou-j", "cn-hangzhou-k"]'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Name' => ['description' => 'The name of the quota dimension.', 'type' => 'string', 'title' => '', 'example' => 'Zone'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '1FA5F0E2-368E-4BA4-A8D0-6060FC6BB8F3'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'QUOTA.UNSUPPORT.ALARM',
- 'errorMessage' => 'This quota does not support creating alarm',
- ],
- [
- 'errorCode' => 'ALARM.NAME.REPEAT',
- 'errorMessage' => 'The warning name must be unique.',
- ],
- [
- 'errorCode' => 'QUOTA.ALARM.MAX',
- 'errorMessage' => 'Quota alarm have reached the upper limit of 100',
- ],
- [
- 'errorCode' => 'UNSUPPORTED.ALARM.TYPE',
- 'errorMessage' => 'Unified alarm does not support alarm types for used quantity alarms, and does not support numerical threshold types of quota alarms.',
- ],
- [
- 'errorCode' => 'THRESHOLD.ILLEGAL',
- 'errorMessage' => 'The alarm Threshold or ThresholdPercent is either empty or ThresholdPercent not in (0,100].',
- ],
- [
- 'errorCode' => 'QUOTA.OFFLINE',
- 'errorMessage' => 'The quota has been offline.',
+ 'title' => 'GetProductQuotaDimension',
+ 'summary' => 'Queries the details of quota dimensions for a specific Alibaba Cloud service.',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProductQuotaDimension'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetProductQuotaDimension',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"AlarmId\\": \\"18b3be23-b7b0-4d45-91bc-d0c331aa****\\",\\n \\"RequestId\\": \\"BD219E2B-E687-45EE-B5F3-61FB730551B1\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateQuotaAlarmResponse>\\n\\t\\t<AlarmId>a2efa7fc-832f-47bb-8054-39e28012****</AlarmId>\\n\\t\\t<RequestId>88BAD9A9-0C47-4139-8531-08CB333F3384</RequestId>\\n</CreateQuotaAlarmResponse>","errorExample":""}]',
- 'title' => 'CreateQuotaAlarm',
- 'description' => 'The quota alerting feature has been upgraded and this API operation will be deprecated. If you want to create a quota alert of the new version, call CloudMonitor API operations. For more information, see [Use API operations to manage new quota alert rules](~~2863234~~).'."\n",
- 'requestParamsDescription' => 'The ID of the request.'."\n",
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
- 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QuotaDimension\\": {\\n \\"DependentDimensions\\": [\\n \\"regionId\\"\\n ],\\n \\"DimensionKey\\": \\"zoneId\\",\\n \\"DimensionValueDetail\\": [\\n {\\n \\"Name\\": \\"cn-hangzhou-b\\",\\n \\"Value\\": \\"cn-hangzhou-b\\"\\n }\\n ],\\n \\"DimensionValues\\": [\\n \\"[\\\\\\"cn-hangzhou-b\\\\\\", \\\\\\"cn-hangzhou-e\\\\\\", \\\\\\"cn-hangzhou-f\\\\\\", \\\\\\"cn-hangzhou-g\\\\\\", \\\\\\"cn-hangzhou-h\\\\\\", \\\\\\"cn-hangzhou-i\\\\\\", \\\\\\"cn-hangzhou-j\\\\\\", \\\\\\"cn-hangzhou-k\\\\\\"]\\"\\n ],\\n \\"Name\\": \\"Zone\\"\\n },\\n \\"RequestId\\": \\"1FA5F0E2-368E-4BA4-A8D0-6060FC6BB8F3\\"\\n}","type":"json"}]',
],
- 'DeleteQuotaAlarm' => [
- 'summary' => 'Deletes a quota alert.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetQuotaAlarm' => [
+ 'summary' => 'Queries the details of a specific quota alert.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC3VMZU',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasC3VMZU'],
],
'parameters' => [
[
'name' => 'AlarmId',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The ID of the quota alert.'."\n"
- ."\n"
- .'> You can call the [ListQuotaAlarms](~~440561~~) operation to obtain the ID of a quota alert.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => '6b512ab7-da3a-4142-b529-2b2a9294****',
- ],
+ 'schema' => ['description' => 'The ID of the quota alert.'."\n"
+ ."\n"
+ .'For more information about how to get the ID of a quota alert, see [ListQuotaAlarms](~~184348~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '78d7e436-4b25-4897-84b5-d7b656bb****'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'description' => 'None.',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => 'A95C65B3-7CF4-469E-B1D5-1CA0628A6411',
+ 'QuotaAlarm' => [
+ 'description' => 'The details of the quota alert.',
+ 'type' => 'object',
+ 'properties' => [
+ 'AlarmId' => ['description' => 'The ID of the quota alert.', 'type' => 'string', 'title' => '', 'example' => '78d7e436-4b25-4897-84b5-d7b656bb****'],
+ 'AlarmName' => ['description' => 'The name of the quota alert.', 'type' => 'string', 'title' => '', 'example' => 'q_security-groups alarm'],
+ 'CreateTime' => ['description' => 'The time when the quota alert was created.', 'type' => 'string', 'title' => '', 'example' => '2021-01-21T03:47:28Z'],
+ 'NotifyChannels' => [
+ 'description' => 'The notification channels for the alert.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A notification channel. Valid values:'."\n"
+ ."\n"
+ .'- sms: text message.'."\n"
+ ."\n"
+ .'- email: email.', 'type' => 'string', 'title' => '', 'example' => '["sms", "email"]'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NotifyTarget' => ['description' => 'The notification object for the quota alert.', 'type' => 'string', 'title' => '', 'example' => 'accountContact'],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'title' => '', 'example' => 'ecs'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_security-groups'],
+ 'QuotaDimension' => ['description' => 'The quota dimension.', 'type' => 'object', 'title' => '', 'example' => '{"regionId":"cn-hangzhou"}'],
+ 'QuotaUsage' => ['description' => 'The quota usage.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '28'],
+ 'QuotaValue' => ['description' => 'The quota value.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '804'],
+ 'Threshold' => ['description' => 'The numeric value of the alert threshold.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '29'],
+ 'ThresholdPercent' => ['description' => 'The percentage of the alert threshold.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '50'],
+ 'ThresholdType' => ['description' => 'The type of the quota alert. Valid values:'."\n"
+ ."\n"
+ .'- used: The alert is based on the used quota.'."\n"
+ ."\n"
+ .'- usable: The alert is based on the available quota.', 'type' => 'string', 'title' => '', 'example' => 'used'],
+ 'Webhook' => ['description' => 'The webhook URL to which Quota Center sends alert information using an HTTP POST request.', 'type' => 'string', 'title' => '', 'example' => 'https://alert.aliyun.com/callback'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '81B9D511-F3DD-43B1-9A81-1795DDB52ADF'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'RAM.PERMISSION.DENIED',
- 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.',
- ],
- [
- 'errorCode' => 'ALARM.NOT.FOUND',
- 'errorMessage' => 'The AlarmId provided does not exist in our records.',
- ],
+ ['errorCode' => 'RAM.PERMISSION.DENIED', 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.', 'description' => 'You have no access'],
+ ['errorCode' => 'ALARM.NOT.FOUND', 'errorMessage' => 'The AlarmId provided does not exist in our records.', 'description' => 'The quota alert does not exist.'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A95C65B3-7CF4-469E-B1D5-1CA0628A6411\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteQuotaAlarmResponse>\\r\\n<RequestId>A95C65B3-7CF4-469E-B1D5-1CA0628A6411</RequestId>\\r\\n</DeleteQuotaAlarmResponse>","errorExample":""}]',
- 'title' => 'DeleteQuotaAlarm',
- 'description' => '* The quota alerting feature has been upgraded and this API operation will be deprecated. You can call this operation only to delete a quota alert rule of the old version. If you want to delete a quota alert rule of the new version, call the CloudMonitor API operation [DeleteMetricRules](~~2513295~~) or [DeleteMetricRuleTargets](~~2513294~~). For more information about how to call API operations to manage quota alert rules of the new version, see [Manage quota alerts of the new version by calling API operations](~~2863234~~).'."\n"
- .'* In this example, the API operation is called to delete a quota alert rule whose ID is `6b512ab7-da3a-4142-b529-2b2a9294****`.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [API Reference](~~171299~~).'."\n",
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QuotaAlarm\\": {\\n \\"AlarmId\\": \\"78d7e436-4b25-4897-84b5-d7b656bb****\\",\\n \\"AlarmName\\": \\"q_security-groups alarm\\",\\n \\"CreateTime\\": \\"2021-01-21T03:47:28Z\\",\\n \\"NotifyChannels\\": [\\n \\"[\\\\\\"sms\\\\\\", \\\\\\"email\\\\\\"]\\"\\n ],\\n \\"NotifyTarget\\": \\"accountContact\\",\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaDimension\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"QuotaUsage\\": 28,\\n \\"QuotaValue\\": 804,\\n \\"Threshold\\": 29,\\n \\"ThresholdPercent\\": 50,\\n \\"ThresholdType\\": \\"used\\",\\n \\"Webhook\\": \\"https://alert.aliyun.com/callback\\"\\n },\\n \\"RequestId\\": \\"81B9D511-F3DD-43B1-9A81-1795DDB52ADF\\"\\n}","type":"json"}]',
+ 'title' => 'GetQuotaAlarm',
+ 'description' => 'The quota alert feature has been upgraded. This API operation is deprecated. This operation queries the details of legacy quota usage alerts only. To query the details of new quota usage alerts, call the Cloud Monitor API operation [DescribeMetricRuleList](~~2513291~~). For more information about managing new quota alerts using API operations, see [Manage new quota alerts using API operations](~~2863234~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'UpdateQuotaAlarm' => [
- 'summary' => 'Modifies a quota alert rule.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T02:37:35.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-09-04T03:14:41.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-05-06T02:39:41.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetQuotaAlarm'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetQuotaAlarm',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'GetQuotaApplication' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC3VMZU',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotas29QQRO'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'AlarmId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The ID of the quota alert.'."\n"
- ."\n"
- .'> You can call the [ListQuotaAlarms](~~440561~~) operation to obtain the ID of a quota alert.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'a2efa7fc-832f-47bb-8054-39e28012****',
- ],
- ],
- [
- 'name' => 'AlarmName',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The name of the quota alert.'."\n"
- ."\n"
- .'> You can call the [ListQuotaAlarms](~~440561~~) operation to obtain the name of a quota alert.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rules'."\n",
- ],
- ],
- [
- 'name' => 'ThresholdType',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The type of the quota alert. Valid values:'."\n"
- ."\n"
- .'* used (default): The alert is created for the used quota.'."\n"
- .'* usable: The alert is created for the available quota.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'usable',
- 'default' => 'used',
- 'enum' => [
- 'used',
- 'usable',
- ],
- ],
- ],
- [
- 'name' => 'Threshold',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The numeric value of the alert threshold. Valid values:'."\n"
- ."\n"
- .'* If you set the `ThresholdType` parameter to `used`, you will receive an alert notification when the used quota is greater than or equal to the preset alert threshold. The alert threshold must be greater than the current used quota.'."\n"
- .'* If you set the `ThresholdType` parameter to `usable`, you will receive an alert notification when the available quota is less than or equal to the preset alert threshold. The alert threshold must be less than the current available quota.'."\n"
- ."\n"
- .'> You must set one of the Threshold and ThresholdPercent parameters.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'minimum' => '1',
- 'example' => '160',
- ],
- ],
- [
- 'name' => 'ThresholdPercent',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The percentage of the alert threshold. Valid values:'."\n"
- ."\n"
- .'* If you set `ThresholdType` to `used`, you receive an alert notification when the used quota is greater than or equal to the preset percentage of the alert threshold. Value range: (50%, 100%].'."\n"
- .'* If you set `ThresholdType` to `usable`, you receive an alert notification when the available quota is less than or equal to the preset percentage of the alert threshold. Value range: (0%, 50%].'."\n"
- ."\n"
- .'> You must set one of Threshold and ThresholdPercent.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'maximum' => '100',
- 'minimum' => '50',
- 'example' => '51',
- ],
- ],
- [
- 'name' => 'WebHook',
+ 'name' => 'ApplicationId',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The webhook URL. Quota Center sends alert notifications to the specified URL by using HTTP POST requests.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://alert.aliyun.com/callback',
- ],
+ 'schema' => ['description' => 'The ID of the quota increase application.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'description' => 'N/A.',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => 'A95C65B3-7CF4-469E-B1D5-1CA0628A6411',
+ 'QuotaApplication' => [
+ 'description' => 'The details of the quota increase application.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ApplicationId' => ['description' => 'The ID of the quota increase application.', 'type' => 'string', 'title' => '', 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'],
+ 'ApplyTime' => ['description' => 'The time when the application was submitted.', 'type' => 'string', 'title' => '', 'example' => '2021-01-19T09:25:56Z'],
+ 'ApproveValue' => ['description' => 'The approved quota value.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '10'],
+ 'AuditReason' => ['description' => 'The approval comments.', 'type' => 'string', 'title' => '', 'example' => 'Agree'],
+ 'DesireValue' => ['description' => 'The requested quota value.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '804'],
+ 'Dimension' => ['description' => 'The quota dimensions.'."\n"
+ ."\n"
+ .'Format: `{"regionId":"Region"}`.', 'type' => 'object', 'title' => '', 'example' => '["cn-shanghai","cn-hangzhou"]'],
+ 'EffectiveTime' => ['description' => 'The time when the new quota takes effect.', 'type' => 'string', 'title' => '', 'example' => '2021-01-19 15:30:00'],
+ 'ExpireTime' => ['description' => 'The time when the new quota expires.', 'type' => 'string', 'title' => '', 'example' => '2023-06-29 15:30:00'],
+ 'NoticeType' => ['description' => 'The notification method. Valid values:'."\n"
+ ."\n"
+ .'- 0: No notification is sent.'."\n"
+ ."\n"
+ .'- 1: An email notification is sent.'."\n"
+ ."\n"
+ .'- 2: An SMS notification is sent.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '0'],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'title' => '', 'example' => 'ecs'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_security-groups'],
+ 'QuotaArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.', 'type' => 'string', 'title' => '', 'example' => 'acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/'],
+ 'QuotaDescription' => ['description' => 'The description of the quota.', 'type' => 'string', 'title' => '', 'example' => 'The maximum number of security groups that can be owned by the current account.'],
+ 'QuotaName' => ['description' => 'The name of the quota.', 'type' => 'string', 'title' => '', 'example' => 'Maximum Number of Security Groups'],
+ 'QuotaUnit' => ['description' => 'The unit of the quota.', 'type' => 'string', 'title' => '', 'example' => 'AMOUNT'],
+ 'Reason' => ['description' => 'The reason for the quota increase application.', 'type' => 'string', 'title' => '', 'example' => 'Scale Out'],
+ 'Status' => ['description' => 'The approval status of the application. Valid values:'."\n"
+ ."\n"
+ .'- Disagree: The application is rejected.'."\n"
+ ."\n"
+ .'- Agree: The application is approved.'."\n"
+ ."\n"
+ .'- Process: The application is pending approval.'."\n"
+ ."\n"
+ .'- Cancel: The application is closed.', 'type' => 'string', 'title' => '', 'example' => 'Agree'],
+ 'QuotaCategory' => ['description' => 'The quota type. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota: General quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit.'."\n"
+ ."\n"
+ .'- WhiteListLabel: Privilege.', 'type' => 'string', 'title' => '', 'example' => 'CommonQuota'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '7BBD1D37-094C-4485-8B7D-64682F82BC18'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'RAM.PERMISSION.DENIED',
- 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.',
- ],
- [
- 'errorCode' => 'UNSUPPORTED.ALARM.TYPE',
- 'errorMessage' => 'Unified alarm does not support alarm types for used quantity alarms, and does not support numerical threshold types of quota alarms.',
- ],
- [
- 'errorCode' => 'THRESHOLD.ILLEGAL',
- 'errorMessage' => 'The alarm Threshold or ThresholdPercent is either empty or ThresholdPercent not in (0,100].',
- ],
- [
- 'errorCode' => 'ALARM.NAME.REPEAT',
- 'errorMessage' => 'The warning name must be unique.',
- ],
- [
- 'errorCode' => 'ALARM.NOT.FOUND',
- 'errorMessage' => 'The AlarmId provided does not exist in our records.',
- ],
- [
- 'errorCode' => 'THRESHOLD.MAx.ILLEGAL',
- 'errorMessage' => 'The quota warning threshold cannot be greater than the current quota.',
- ],
+ ['errorCode' => 'QUOTA.APPLICATION.NOT.FOUND', 'errorMessage' => 'Quota application does not exist', 'description' => 'The quota application does not exist.'],
+ ['errorCode' => 'RAM.PERMISSION.DENIED', 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.', 'description' => 'You have no access'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A95C65B3-7CF4-469E-B1D5-1CA0628A6411\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateQuotaAlarmResponse>\\r\\n\\t<RequestId>2542826A-B67E-42C7-B1CB-2F5B52CDE9A8</RequestId>\\r\\n</UpdateQuotaAlarmResponse>","errorExample":""}]',
- 'title' => 'UpdateQuotaAlarm',
- 'description' => '* The quota alerting feature has been upgraded and this API operation will be deprecated. If you want to modify the information about a specific quota alert rule of the new version, call the CloudMonitor API operation [PutResourceMetricRules](~~2513316~~) or [PutMetricRuleTargets](~~2513302~~). For more information about how to call API operations to manage quota alert rules of the new version, see [Manage quota alerts of the new version by calling API operations](~~2863234~~).'."\n"
- .'* In this example, the API operation is called to modify the information about a quota alert rule whose ID is `a2efa7fc-832f-47bb-8054-39e28012****` and whose name is `rules`. The alert threshold is changed from `150` to `160`.'."\n",
+ 'title' => 'GetQuotaApplication',
+ 'summary' => 'Queries the details of a quota increase application.',
+ 'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListQuotaAlarms' => [
- 'summary' => 'Queries quota alerts.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2024-08-30T06:22:29.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-09-22T07:20:05.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-09-04T03:14:41.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2022-08-23T09:52:12.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetQuotaApplication'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetQuotaApplication',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaApplication', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QuotaApplication\\": {\\n \\"ApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"ApplyTime\\": \\"2021-01-19T09:25:56Z\\",\\n \\"ApproveValue\\": 10,\\n \\"AuditReason\\": \\"Agree\\",\\n \\"DesireValue\\": 804,\\n \\"Dimension\\": [\\n \\"cn-shanghai\\",\\n \\"cn-hangzhou\\"\\n ],\\n \\"EffectiveTime\\": \\"2021-01-19 15:30:00\\",\\n \\"ExpireTime\\": \\"2023-06-29 15:30:00\\",\\n \\"NoticeType\\": 0,\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaArn\\": \\"acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be owned by the current account.\\",\\n \\"QuotaName\\": \\"Maximum Number of Security Groups\\",\\n \\"QuotaUnit\\": \\"AMOUNT\\",\\n \\"Reason\\": \\"Scale Out\\",\\n \\"Status\\": \\"Agree\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\"\\n },\\n \\"RequestId\\": \\"7BBD1D37-094C-4485-8B7D-64682F82BC18\\"\\n}","type":"json"}]',
+ ],
+ 'GetQuotaApplicationApproval' => [
+ 'summary' => 'Queries the approval details for a quota increase application, including the average approval time, whether approval reminders are supported, and the reminder interval.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2279,275 +1682,105 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC3VMZU',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
],
'parameters' => [
[
- 'name' => 'NextToken',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query.'."\n"
- ."\n"
- .'> An empty value indicates that the query starts from the beginning.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'MaxResults',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The maximum number of records that you want to return for the query.'."\n"
- ."\n"
- .'Valid values: 1 to 200. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'maximum' => '200',
- 'example' => '20',
- 'default' => '20',
- ],
- ],
- [
- 'name' => 'ProductCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440554~~) operation and check the value of `ProductCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
- ],
- [
- 'name' => 'AlarmName',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The name of the alert.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rules'."\n",
- ],
- ],
- [
- 'name' => 'QuotaActionCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota ID.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* To obtain the quota ID of a cloud service, call the [ListProductQuotas](~~440554~~) operation and check the value of `QuotaActionCode` in the response.'."\n"
- ."\n"
- .'* If you specify this parameter, you must specify `ProductCode`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'q_hvnoqv',
- ],
- ],
- [
- 'name' => 'QuotaDimensions',
+ 'name' => 'ApplicationId',
'in' => 'formData',
- 'style' => 'repeatList',
- 'schema' => [
- 'description' => 'The quota dimensions.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The quota dimension.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
- ."\n"
- .'* This parameter is required if you set the `ProductCode` parameter to `ecs`, `ecs-spec`, `actiontrail`, or `ess`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
- ."\n"
- .'* This parameter is required if you set the `ProductCode` parameter to `ecs`, `ecs-spec`, `actiontrail`, or `ess`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- 'maxItems' => 5,
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the quota increase application.'."\n"
+ ."\n"
+ .'For more information, see [ListQuotaApplications](~~440568~~).', 'type' => 'string', 'required' => false, 'example' => 'd314d6ae-867d-484c-9009-3d42****'],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'The response parameters.'."\n",
+ 'title' => 'PopResultDTO<QuotaApplicationApprovalVO>',
+ 'description' => 'The response object.',
'type' => 'object',
'properties' => [
- 'MaxResults' => [
- 'description' => 'The maximum number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position at which the query ends.'."\n"
- ."\n"
- .'> An empty value indicates that all data is returned.'."\n",
- 'type' => 'string',
- 'example' => '1',
- ],
- 'QuotaAlarms' => [
- 'description' => 'The details about the quota alert rules.'."\n",
+ 'AllowRetry' => ['description' => 'Indicates whether the request can be retried. Valid values:'."\n"
+ ."\n"
+ .'- false: The request cannot be retried.'."\n"
+ ."\n"
+ .'- true: The request can be retried.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
+ 'DynamicCode' => ['description' => 'The dynamic error code.', 'type' => 'string', 'title' => '', 'example' => 'PARAMETER.ILLEGALL'],
+ 'DynamicMessage' => ['description' => 'The dynamic error message.', 'type' => 'string', 'title' => '', 'example' => 'Parameter[%s] is required.'],
+ 'ErrorArgs' => [
+ 'description' => 'The array of error parameters.',
'type' => 'array',
- 'items' => [
- 'description' => 'The details about the quota alert rule.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'AlarmId' => [
- 'description' => 'The ID of the alert.'."\n",
- 'type' => 'string',
- 'example' => 'a2efa7fc-832f-47bb-8054-39e28012****',
- ],
- 'AlarmName' => [
- 'description' => 'The name of the alert event.'."\n",
- 'type' => 'string',
- 'example' => 'rules'."\n",
- ],
- 'CreateTime' => [
- 'description' => 'The time when the quota alert was created.'."\n",
- 'type' => 'string',
- 'example' => '2020-11-27T07:23:34Z',
- ],
- 'ExceedThreshold' => [
- 'description' => 'Indicates whether the alert threshold was reached. Valid values:'."\n"
- ."\n"
- .'* false'."\n"
- .'* true'."\n",
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'NotifyChannels' => [
- 'description' => 'The alert notification methods.',
- 'type' => 'array',
- 'items' => [
- 'description' => 'The alert notification methods. Valid values:'."\n"
- ."\n"
- .'* sms '."\n"
- .'* email',
- 'type' => 'string',
- 'example' => 'sms',
- ],
- ],
- 'NotifyTarget' => [
- 'description' => 'The alert contact.'."\n"
- ."\n"
- .'> Valid value: accountContact. Only the account contact is supported.'."\n",
- 'type' => 'string',
- 'example' => 'accountContact',
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'config',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The ID of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'q_hvnoqv',
- ],
- 'QuotaDimensions' => [
- 'description' => 'The quota dimensions.'."\n",
- 'type' => 'object',
- 'example' => '{"regionId":"cn-hangzhou"}',
- ],
- 'QuotaUsage' => [
- 'description' => 'The used quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '73',
- ],
- 'QuotaValue' => [
- 'description' => 'The value of the quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '200',
- ],
- 'Threshold' => [
- 'description' => 'The numeric value of the alert threshold.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '160',
- ],
- 'ThresholdPercent' => [
- 'description' => 'The percentage of the alert threshold.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '80',
- ],
- 'ThresholdType' => [
- 'description' => 'The type of the quota alert. Valid values:'."\n"
- ."\n"
- .'* used: The alert is created for the used quota.'."\n"
- .'* usable: The alert is created for the available quota.'."\n",
- 'type' => 'string',
- 'example' => 'used',
- ],
- 'WebHook' => [
- 'description' => 'The webhook URL.'."\n",
- 'type' => 'string',
- 'example' => 'https://www.aliyun.com/webhook',
- ],
- ],
- ],
+ 'items' => ['description' => 'The error parameter.', 'type' => 'any', 'title' => '', 'example' => 'ApplicationId'],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => '87F3B755-3BD2-4C76-B36A-93247002918C',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of quota alerts.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
+ 'ErrorCode' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'RAM.PERMISSION.DENIED'],
+ 'ErrorMsg' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'You are not authorized to do this action or the API input parameter is invalid.'],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
+ 'Module' => [
+ 'description' => 'The returned object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ApprovalHours' => ['description' => 'The average approval time of the quota increase application. Unit: hours.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '24'],
+ 'ReminderIntervalHours' => ['description' => 'The interval for sending approval reminders for the quota increase application. Unit: hours.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '24'],
+ 'SupportReminder' => ['title' => '', 'description' => 'Indicates whether approval reminders are supported for the quota increase application. Valid values:'."\n"
+ ."\n"
+ .'- false: Not supported.'."\n"
+ ."\n"
+ .'- true: Supported.', 'type' => 'boolean', 'example' => 'false'],
+ 'UnsupportReminderReason' => ['description' => 'The reason why approval reminders are not supported for the quota increase application.', 'type' => 'string', 'title' => '', 'example' => 'can only be remind once within the interval'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '7ED584FB-ECBF-4A2A-969D-F54D25EFABF9'],
+ 'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
+ ."\n"
+ .'- true: The call was successful.'."\n"
+ ."\n"
+ .'- false: The call failed.', 'type' => 'boolean', 'title' => '', 'example' => 'True'],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 1,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaAlarms\\": [\\n {\\n \\"AlarmId\\": \\"a2efa7fc-832f-47bb-8054-39e28012****\\",\\n \\"AlarmName\\": \\"q_hvnoqv alarm\\",\\n \\"CreateTime\\": \\"2020-11-27T07:23:34Z\\",\\n \\"ExceedThreshold\\": false,\\n \\"NotifyChannels\\": [\\n \\"sms\\"\\n ],\\n \\"NotifyTarget\\": \\"accountContact\\",\\n \\"ProductCode\\": \\"config\\",\\n \\"QuotaActionCode\\": \\"q_hvnoqv\\",\\n \\"QuotaDimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"QuotaUsage\\": 73,\\n \\"QuotaValue\\": 200,\\n \\"Threshold\\": 160,\\n \\"ThresholdPercent\\": 80,\\n \\"ThresholdType\\": \\"used\\",\\n \\"WebHook\\": \\"https://www.aliyun.com/webhook\\"\\n }\\n ],\\n \\"RequestId\\": \\"87F3B755-3BD2-4C76-B36A-93247002918C\\",\\n \\"TotalCount\\": 2\\n}","errorExample":""},{"type":"xml","example":"<ListQuotaAlarmsResponse>\\r\\n\\t<TotalCount>2</TotalCount>\\r\\n\\t<QuotaAlarms>\\r\\n\\t\\t<AlarmId>a2efa7fc-832f-47bb-8054-39e28012****</AlarmId>\\r\\n\\t\\t<QuotaActionCode>q_hvnoqv</QuotaActionCode>\\r\\n\\t\\t<NotifyChannels>sms</NotifyChannels>\\r\\n\\t\\t<QuotaValue>200</QuotaValue>\\r\\n\\t\\t<QuotaDimensions/>\\r\\n\\t\\t<AlarmName>规则创建数量告警</AlarmName>\\r\\n\\t\\t<ProductCode>config</ProductCode>\\r\\n\\t\\t<NotifyTarget>accountContact</NotifyTarget>\\r\\n\\t\\t<CreateTime>2020-11-27T07:23:34Z</CreateTime>\\r\\n\\t\\t<QuotaUsage>73</QuotaUsage>\\r\\n\\t\\t<ExceedThreshold>false</ExceedThreshold>\\r\\n\\t\\t<Threshold>160</Threshold>\\r\\n\\t</QuotaAlarms>\\r\\n\\t<QuotaAlarms>\\r\\n\\t\\t<AlarmId>3f42ae59-edd0-44ad-aed1-b7aa36ff****</AlarmId>\\r\\n\\t\\t<QuotaActionCode>q_elastic-network-interfaces</QuotaActionCode>\\r\\n\\t\\t<NotifyChannels>sms</NotifyChannels>\\r\\n\\t\\t<NotifyChannels>email</NotifyChannels>\\r\\n\\t\\t<QuotaValue>50000</QuotaValue>\\r\\n\\t\\t<QuotaDimensions>\\r\\n\\t\\t\\t<regionId>cn-hangzhou</regionId>\\r\\n\\t\\t</QuotaDimensions>\\r\\n\\t\\t<AlarmName>test123</AlarmName>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<NotifyTarget>accountContact</NotifyTarget>\\r\\n\\t\\t<CreateTime>2020-11-27T06:51:35Z</CreateTime>\\r\\n\\t\\t<QuotaUsage>1</QuotaUsage>\\r\\n\\t\\t<ExceedThreshold>false</ExceedThreshold>\\r\\n\\t\\t<Threshold>5</Threshold>\\r\\n\\t</QuotaAlarms>\\r\\n\\t<RequestId>87F3B755-3BD2-4C76-B36A-93247002918C</RequestId>\\r\\n\\t<MaxResults>2</MaxResults>\\r\\n</ListQuotaAlarmsResponse>\\t","errorExample":""}]',
- 'title' => 'ListQuotaAlarms',
- 'description' => 'The quota alerting feature has been upgraded and this API operation will be deprecated. You can call this operation only to query quota alert rules of the old version. If you want to query quota alert rules of the new version, call the CloudMonitor API operation [DescribeMetricRuleList](~~2513291~~). For more information about how to call API operations to manage quota alert rules of the new version, see [Manage quota alerts of the new version by calling API operations](~~2863234~~).'."\n",
- 'requestParamsDescription' => ' ',
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
- ],
- 'GetQuotaAlarm' => [
- 'summary' => 'In this example, the operation is called to query the details of a quota alert. The details of the alert are returned. The query results include the alert ID, alert name, alert contact, and time when the quota alert was created.',
- 'methods' => [
- 'post',
- 'get',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'QUOTA.APPLICATION.NOT.FOUND', 'errorMessage' => 'Quota application does not exist', 'description' => 'The quota application does not exist.'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AllowRetry\\": false,\\n \\"DynamicCode\\": \\"PARAMETER.ILLEGALL\\",\\n \\"DynamicMessage\\": \\"Parameter[%s] is required.\\",\\n \\"ErrorArgs\\": [\\n \\"ApplicationId\\"\\n ],\\n \\"ErrorCode\\": \\"RAM.PERMISSION.DENIED\\",\\n \\"ErrorMsg\\": \\"You are not authorized to do this action or the API input parameter is invalid.\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Module\\": {\\n \\"ApprovalHours\\": 24,\\n \\"ReminderIntervalHours\\": 24,\\n \\"SupportReminder\\": false,\\n \\"UnsupportReminderReason\\": \\"can only be remind once within the interval\\"\\n },\\n \\"RequestId\\": \\"7ED584FB-ECBF-4A2A-969D-F54D25EFABF9\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'GetQuotaApplicationApproval',
+ 'description' => '### Prerequisites'."\n"
+ ."\n"
+ .'Make sure that you have created a quota increase application. For more information, see [CreateQuotaApplication](~~440566~~).',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-20T12:26:48.000Z', 'description' => 'Error codes changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '6', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetQuotaApplicationApproval'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetQuotaApplicationApproval',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetQuotaTemplateServiceStatus' => [
+ 'summary' => 'Queries the status of a quota template.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2559,158 +1792,79 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC3VMZU',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasC0TSBQ'],
],
'parameters' => [
[
- 'name' => 'AlarmId',
+ 'name' => 'ResourceDirectoryId',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The ID of the quota alert.'."\n"
- ."\n"
- .'For more information about how to query the ID of a quota alert, see [ListQuotaAlarms](~~184348~~).'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '78d7e436-4b25-4897-84b5-d7b656bb****',
- ],
+ 'schema' => ['description' => 'The ID of the resource directory.', 'type' => 'string', 'required' => false, 'example' => 'rd-pG****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => '',
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
- 'QuotaAlarm' => [
- 'description' => 'The details of the quota alert.'."\n",
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
+ 'TemplateServiceStatus' => [
+ 'description' => 'The status of the quota template.',
'type' => 'object',
'properties' => [
- 'AlarmId' => [
- 'description' => 'The ID of the quota alert.'."\n",
- 'type' => 'string',
- 'example' => '78d7e436-4b25-4897-84b5-d7b656bb****',
- ],
- 'AlarmName' => [
- 'description' => 'The name of the quota alert.'."\n",
- 'type' => 'string',
- 'example' => 'tf-testacccn-hangzhouquotasquotaalarm81611',
- ],
- 'CreateTime' => [
- 'description' => 'The time when the quota alert was created.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-21T03:47:28Z',
- ],
- 'NotifyChannels' => [
- 'description' => 'The alert notification methods.',
- 'type' => 'array',
- 'items' => [
- 'description' => 'The notification methods of the quota alert. Valid values:'."\n"
- ."\n"
- .'* sms: SMS messages'."\n"
- .'* email: emails',
- 'type' => 'string',
- 'example' => '["sms", "email"]',
- ],
- ],
- 'NotifyTarget' => [
- 'description' => 'The alert contact.'."\n",
- 'type' => 'string',
- 'example' => 'accountContact',
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The ID of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'q_security-groups',
- ],
- 'QuotaDimension' => [
- 'description' => 'The quota dimension.'."\n",
- 'type' => 'object',
- 'example' => '{"regionId":"cn-hangzhou"}',
- ],
- 'QuotaUsage' => [
- 'description' => 'The used quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '28',
- ],
- 'QuotaValue' => [
- 'description' => 'The quota value.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '804',
- ],
- 'Threshold' => [
- 'description' => 'The numeric value of the alert threshold.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '29',
- ],
- 'ThresholdPercent' => [
- 'description' => 'The percentage of the alert threshold.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '50',
- ],
- 'ThresholdType' => [
- 'description' => 'The type of the quota alert. Valid values:'."\n"
- ."\n"
- .'* used: The alert is created for the used quota.'."\n"
- .'* usable: The alert is created for the available quota.'."\n",
- 'type' => 'string',
- 'example' => 'used',
- ],
- 'Webhook' => [
- 'description' => 'The webhook URL. Quota Center sends alert notifications to the specified URL by using HTTP POST requests.',
- 'type' => 'string',
- 'example' => 'https://alert.aliyun.com/callback',
- ],
+ 'ResourceDirectoryId' => ['description' => 'The ID of the resource directory.', 'type' => 'string', 'example' => 'rd-pG****', 'title' => ''],
+ 'ServiceStatus' => ['description' => 'The status of the quota template. Valid values:'."\n"
+ ."\n"
+ .'- -1: The quota template is disabled.'."\n"
+ ."\n"
+ .'- 1: The quota template is enabled.'."\n"
+ ."\n"
+ .'- 0: No quota template is specified.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
- ],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => '81B9D511-F3DD-43B1-9A81-1795DDB52ADF',
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'RAM.PERMISSION.DENIED',
- 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.',
- ],
- [
- 'errorCode' => 'ALARM.NOT.FOUND',
- 'errorMessage' => 'The AlarmId provided does not exist in our records.',
+ ['errorCode' => 'TEMPLATE.RDID.INVALID', 'errorMessage' => 'RdId invalid', 'description' => 'The resource ID is invalid.'],
+ ],
+ ],
+ 'title' => 'GetQuotaTemplateServiceStatus',
+ 'description' => 'By default, the value of `ServiceStatus` is `0`, which indicates that no quota template is specified. If you want to use a quota template, make sure that the quota template is enabled. In this case, the value of `ServiceStatus` is `1`.',
+ 'changeSet' => [
+ ['createdAt' => '2022-09-05T01:53:21.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetQuotaTemplateServiceStatus'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'quotas:GetQuotaTemplateServiceStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"QuotaAlarm\\": {\\n \\"AlarmId\\": \\"78d7e436-4b25-4897-84b5-d7b656bb****\\",\\n \\"AlarmName\\": \\"q_security-groups alarm\\",\\n \\"CreateTime\\": \\"2021-01-21T03:47:28Z\\",\\n \\"NotifyChannels\\": [\\n \\"[\\\\\\"sms\\\\\\", \\\\\\"email\\\\\\"]\\"\\n ],\\n \\"NotifyTarget\\": \\"accountContact\\",\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaDimension\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"QuotaUsage\\": 28,\\n \\"QuotaValue\\": 804,\\n \\"Threshold\\": 29,\\n \\"ThresholdPercent\\": 50,\\n \\"ThresholdType\\": \\"used\\",\\n \\"Webhook\\": \\"https://alert.aliyun.com/callback\\"\\n },\\n \\"RequestId\\": \\"81B9D511-F3DD-43B1-9A81-1795DDB52ADF\\"\\n}","errorExample":""},{"type":"xml","example":"<GetQuotaAlarmResponse>\\r\\n\\t<RequestId>81B9D511-F3DD-43B1-9A81-1795DDB52ADF</RequestId>\\r\\n\\t<QuotaAlarm>\\r\\n\\t\\t<AlarmId>78d7e436-4b25-4897-84b5-d7b656bb****</AlarmId>\\r\\n\\t\\t<QuotaActionCode>q_security-groups</QuotaActionCode>\\r\\n\\t\\t<NotifyChannels>sms</NotifyChannels>\\r\\n\\t\\t<NotifyChannels>email</NotifyChannels>\\r\\n\\t\\t<QuotaValue>804</QuotaValue>\\r\\n\\t\\t<AlarmName> 安全组总数量上限</AlarmName>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<NotifyTarget>accountContact</NotifyTarget>\\r\\n\\t\\t<CreateTime>2021-01-21T03:47:28Z</CreateTime>\\r\\n\\t\\t<QuotaDimension>\\r\\n\\t\\t\\t<regionId>cn-hangzhou</regionId>\\r\\n\\t\\t</QuotaDimension>\\r\\n\\t\\t<QuotaUsage>28</QuotaUsage>\\r\\n\\t\\t<Threshold>29</Threshold>\\r\\n <ThresholdType>used</ThresholdType>\\r\\n\\t</QuotaAlarm>\\r\\n</GetQuotaAlarmResponse>\\t","errorExample":""}]',
- 'title' => 'GetQuotaAlarm',
- 'description' => '* The quota alerting feature has been upgraded and this API operation will be deprecated. You can call this operation only to query the details about the quota alert rules of the old version. If you want to query the details about the quota alert rules of the new version, call CloudMonitor API operations. For more information, see [Use API operations to manage new quota alert rules](~~2863234~~).'."\n"
- .'* In this example, the operation is called to query the details of a quota alert rule whose ID is `78d7e436-4b25-4897-84b5-d7b656bb****`. The details of the alert rule are returned. The query result includes the alert ID, alert name, alert contact, and the time when the quota alert rule was created.'."\n",
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TemplateServiceStatus\\": {\\n \\"ResourceDirectoryId\\": \\"rd-pG****\\",\\n \\"ServiceStatus\\": 1\\n }\\n}","type":"json"}]',
],
'ListAlarmHistories' => [
- 'summary' => 'Queries the alert records.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => 'Queries the history of quota alerts.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2722,615 +1876,358 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC3VMZU',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasC3VMZU'],
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query. If you leave this parameter empty, the query starts from the beginning.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The token that specifies the position from which the query starts. If you leave this parameter empty, the query starts from the beginning.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'],
],
[
'name' => 'MaxResults',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The maximum number of records that can be returned for the query.'."\n"
- ."\n"
- .'Valid values: 1 to 200. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The maximum number of entries to return for a single query.'."\n"
+ ."\n"
+ .'Valid values: 1 to 200. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '30'],
],
[
'name' => 'Keyword',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The keyword that is used for the query.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Quantity'."\n",
- ],
+ 'schema' => ['description' => 'The keyword for the query.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'Quantity'],
],
[
'name' => 'StartTime',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The beginning of the time range to query.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '20201020',
- ],
+ 'schema' => ['description' => 'The beginning of the time range to query.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => '20201020'],
],
[
'name' => 'EndTime',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The end of the time range to query.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '20201024',
- ],
+ 'schema' => ['description' => 'The end of the time range to query.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => '20201024'],
],
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> For more information, see [Alibaba Cloud services that support Quota Center](~~182368~~).'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> For more information about the Alibaba Cloud services that support Quota Center, see [Alibaba Cloud services that support Quota Center](~~182368~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ecs'],
],
[
'name' => 'AlarmId',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The ID of the alert.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '18b3be23-b7b0-4d45-91bc-d0c331aa****',
- ],
+ 'schema' => ['description' => 'The ID of the alert.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '18b3be23-b7b0-4d45-91bc-d0c331aa****'],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'None.'."\n",
+ 'description' => 'None.',
'type' => 'object',
'properties' => [
'AlarmHistories' => [
- 'description' => 'The details of the quota alert records.'."\n",
+ 'description' => 'The details of the quota alert history.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'The details of the quota alert history.',
'type' => 'object',
'properties' => [
- 'AlarmName' => [
- 'description' => 'The name of the quota alert.'."\n",
- 'type' => 'string',
- 'example' => 'security_groups'."\n",
- ],
- 'CreateTime' => [
- 'description' => 'The time when the quota alert rule was created.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-24T09:20:09Z',
- ],
+ 'AlarmName' => ['description' => 'The name of the quota alert.', 'type' => 'string', 'title' => '', 'example' => 'q_security-groups alarm'],
+ 'CreateTime' => ['description' => 'The time when the quota alert was created.', 'type' => 'string', 'title' => '', 'example' => '2021-01-24T09:20:09Z'],
'NotifyChannels' => [
- 'description' => 'The notification methods of the quota alert.'."\n",
+ 'description' => 'The notification channels for the quota alert.',
'type' => 'array',
- 'items' => [
- 'description' => 'The notification methods of the quota alert. Valid values:'."\n"
- ."\n"
- .'* sms: text messages'."\n"
- .'* email: emails'."\n",
- 'type' => 'string',
- 'example' => '["sms", "email"]',
- ],
- ],
- 'NotifyTarget' => [
- 'description' => 'The quota alert contact.'."\n",
- 'type' => 'string',
- 'example' => 'accountContact',
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'example' => 'q_security-groups',
- ],
- 'QuotaUsage' => [
- 'description' => 'The used quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '31',
- ],
- 'Threshold' => [
- 'description' => 'The threshold to trigger quota alerts.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '29',
- ],
- 'ThresholdPercent' => [
- 'description' => 'The percentage of the quota alert threshold.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '80',
- ],
+ 'items' => ['description' => 'The notification channel. Valid values:'."\n"
+ ."\n"
+ .'- sms: text message'."\n"
+ ."\n"
+ .'- email: email', 'type' => 'string', 'title' => '', 'example' => '["sms", "email"]'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NotifyTarget' => ['description' => 'The recipient of the alert notification.', 'type' => 'string', 'title' => '', 'example' => 'accountContact'],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'title' => '', 'example' => 'ecs'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_security-groups'],
+ 'QuotaUsage' => ['description' => 'The used quota.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '31'],
+ 'Threshold' => ['description' => 'The numeric value of the alert threshold.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '29'],
+ 'ThresholdPercent' => ['description' => 'The percentage of the alert threshold.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '80'],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'MaxResults' => [
- 'description' => 'The maximum number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position at which the query ends. An empty value indicates that all data is returned.'."\n",
- 'type' => 'string',
- 'example' => '1',
- ],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => 'CB38DDF9-B1E0-48C1-9966-19C443C2841E',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
- ],
+ 'MaxResults' => ['description' => 'The maximum number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '4'],
+ 'NextToken' => ['description' => 'The token to retrieve the next page of results. If this parameter is not returned, it indicates that all results have been returned.', 'type' => 'string', 'title' => '', 'example' => '1'],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'CB38DDF9-B1E0-48C1-9966-19C443C2841E'],
+ 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '4'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InvalidStartTime',
- 'errorMessage' => 'Invalid StartTime',
- ],
- [
- 'errorCode' => 'InvalidEndTime',
- 'errorMessage' => 'Invalid EndTime',
- ],
+ ['errorCode' => 'InvalidStartTime', 'errorMessage' => 'Invalid StartTime', 'description' => 'The specified start time is invalid.'],
+ ['errorCode' => 'InvalidEndTime', 'errorMessage' => 'Invalid EndTime', 'description' => 'The specified end time is invalid.'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"AlarmHistories\\": [\\n {\\n \\"AlarmName\\": \\"q_security-groups alarm\\",\\n \\"CreateTime\\": \\"2021-01-24T09:20:09Z\\",\\n \\"NotifyChannels\\": [\\n \\"[\\\\\\"sms\\\\\\", \\\\\\"email\\\\\\"]\\"\\n ],\\n \\"NotifyTarget\\": \\"accountContact\\",\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaUsage\\": 31,\\n \\"Threshold\\": 29,\\n \\"ThresholdPercent\\": 80\\n }\\n ],\\n \\"MaxResults\\": 4,\\n \\"NextToken\\": \\"1\\",\\n \\"RequestId\\": \\"CB38DDF9-B1E0-48C1-9966-19C443C2841E\\",\\n \\"TotalCount\\": 4\\n}","errorExample":""},{"type":"xml","example":"<ListAlarmHistoriesResponse>\\r\\n\\t<TotalCount>4</TotalCount>\\r\\n\\t<RequestId>CB38DDF9-B1E0-48C1-9966-19C443C2841E</RequestId>\\r\\n\\t<MaxResults>4</MaxResults>\\r\\n\\t<AlarmHistories>\\r\\n\\t\\t<QuotaActionCode>q_security-groups</QuotaActionCode>\\r\\n\\t\\t<NotifyChannels>sms</NotifyChannels>\\r\\n\\t\\t<NotifyChannels>email</NotifyChannels>\\r\\n\\t\\t<AlarmName>安全组总数量上限</AlarmName>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<NotifyTarget>accountContact</NotifyTarget>\\r\\n\\t\\t<CreateTime>2021-01-24T09:20:09Z</CreateTime>\\r\\n\\t\\t<QuotaUsage>31</QuotaUsage>\\r\\n\\t\\t<Threshold>29</Threshold>\\r\\n\\t</AlarmHistories>\\r\\n\\t<AlarmHistories>\\r\\n\\t\\t<QuotaActionCode>q_security-groups</QuotaActionCode>\\r\\n\\t\\t<NotifyChannels>sms</NotifyChannels>\\r\\n\\t\\t<NotifyChannels>email</NotifyChannels>\\r\\n\\t\\t<AlarmName>安全组总数量上限</AlarmName>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<NotifyTarget>accountContact</NotifyTarget>\\r\\n\\t\\t<CreateTime>2021-01-23T09:20:07Z</CreateTime>\\r\\n\\t\\t<QuotaUsage>31</QuotaUsage>\\r\\n\\t\\t<Threshold>29</Threshold>\\r\\n\\t</AlarmHistories>\\r\\n\\t<AlarmHistories>\\r\\n\\t\\t<QuotaActionCode>q_security-groups</QuotaActionCode>\\r\\n\\t\\t<NotifyChannels>sms</NotifyChannels>\\r\\n\\t\\t<NotifyChannels>email</NotifyChannels>\\r\\n\\t\\t<AlarmName>安全组总数量上限</AlarmName>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<NotifyTarget>accountContact</NotifyTarget>\\r\\n\\t\\t<CreateTime>2021-01-22T09:10:08Z</CreateTime>\\r\\n\\t\\t<QuotaUsage>30</QuotaUsage>\\r\\n\\t\\t<Threshold>29</Threshold>\\r\\n\\t</AlarmHistories>\\r\\n\\t<AlarmHistories>\\r\\n\\t\\t<QuotaActionCode>q_security-groups</QuotaActionCode>\\r\\n\\t\\t<NotifyChannels>sms</NotifyChannels>\\r\\n\\t\\t<NotifyChannels>email</NotifyChannels>\\r\\n\\t\\t<AlarmName>安全组总数量上限</AlarmName>\\r\\n\\t\\t<ProductCode>ecs</ProductCode>\\r\\n\\t\\t<NotifyTarget>accountContact</NotifyTarget>\\r\\n\\t\\t<CreateTime>2021-01-21T09:10:08Z</CreateTime>\\r\\n\\t\\t<QuotaUsage>29</QuotaUsage>\\r\\n\\t\\t<Threshold>29</Threshold>\\r\\n\\t</AlarmHistories>\\r\\n</ListAlarmHistoriesResponse>\\t","errorExample":""}]',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlarmHistories\\": [\\n {\\n \\"AlarmName\\": \\"q_security-groups alarm\\",\\n \\"CreateTime\\": \\"2021-01-24T09:20:09Z\\",\\n \\"NotifyChannels\\": [\\n \\"[\\\\\\"sms\\\\\\", \\\\\\"email\\\\\\"]\\"\\n ],\\n \\"NotifyTarget\\": \\"accountContact\\",\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaUsage\\": 31,\\n \\"Threshold\\": 29,\\n \\"ThresholdPercent\\": 80\\n }\\n ],\\n \\"MaxResults\\": 4,\\n \\"NextToken\\": \\"1\\",\\n \\"RequestId\\": \\"CB38DDF9-B1E0-48C1-9966-19C443C2841E\\",\\n \\"TotalCount\\": 4\\n}","type":"json"}]',
'title' => 'ListAlarmHistories',
- 'description' => 'The quota alerting feature has been upgraded and this API operation will be deprecated. You can call this operation only to query the historical records of quota alert rules of the old version. If you want to query the historical records of quota alert rules of the new version, call the CloudMonitor API operation [DescribeAlertLogCount](~~2513275~~) or [DescribeAlertLogList](~~2513276~~). For more information about how to call API operations to manage quota alert rules of the new version, see [Manage quota alerts of the new version by calling API operations](~~2863234~~).'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
+ 'description' => 'This API is deprecated because the quota alert feature has been upgraded. It queries only the alert history for the previous version of Quota Center. To query the alert history for the current version, use the Cloud Monitor APIs [DescribeAlertLogCount](~~2513275~~) and [DescribeAlertLogList](~~2513276~~). For more information, see [Use APIs to manage alerts for the current version of Quota Center](~~2863234~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CreateQuotaApplication' => [
- 'summary' => 'Submits an application to increase a quota.',
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2024-01-31T08:20:56.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-08-23T09:52:12.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAlarmHistories'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListAlarmHistories',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ListDependentQuotas' => [
+ 'summary' => 'Some quotas are dependent on others and must be increased together. This operation lists the quotas that a specified quota depends on.',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasF0DSPH',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, check the `ProductCode` parameter that is described in [ListProductQuotas](~~440554~~).'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => 'The service code of the Alibaba Cloud service.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the service code, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cloudsso'],
],
[
'name' => 'QuotaActionCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota ID.'."\n"
- ."\n"
- .'> To query the quota ID of an Alibaba Cloud service, check the `QuotaActionCode` parameter that is described in [ListProductQuotas](~~440554~~).'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'q_security-groups',
- ],
- ],
- [
- 'name' => 'DesireValue',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The requested value of the quota.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* You can specify the DesireValue parameter based on the values of the `TotalUsage` and `ApplicableRange` parameters that are returned by the [ListProductQuotas](~~440554~~) operation.'."\n"
- ."\n"
- .'* Applications are reviewed by the technical support team of each Alibaba Cloud service. To increase the success rate of your application, you must specify a reasonable quota value and detailed reasons when you submit an application to increase the value of the quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '804',
- ],
- ],
- [
- 'name' => 'Reason',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The reason for the application.'."\n"
- ."\n"
- .'> Applications are reviewed by the technical support team of each Alibaba Cloud service. To increase the success rate of your application, you must specify a reasonable quota value and detailed reasons when you submit an application to increase the value of the quota.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Scale Out'."\n",
- ],
- ],
- [
- 'name' => 'NoticeType',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'Specifies whether to send a notification about the application result. Valid values:'."\n"
- ."\n"
- .'* 0 (default): no'."\n"
- .'* 3: sends a notification.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '0',
- 'default' => '0',
- 'enum' => [
- '0',
- '1',
- '2',
- '3',
- ],
- ],
+ 'schema' => ['description' => 'The quota ID.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the quota ID, see the `QuotaActionCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'q_system-policy-per-access-configuration'],
],
- [
- 'name' => 'Dimensions',
- 'in' => 'formData',
- 'style' => 'repeatList',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The quota dimensions. A quota item is uniquely determined by the values of Dimensions and QuotaActionCode.'."\n"
- ."\n"
- .'> Some dimensions are required. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the quota dimensions that are supported by an Alibaba Cloud service. The value of `Requisite` in the response indicates whether a dimension is required.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The quota dimension.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> You must configure `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the dimensions that are supported by an Alibaba Cloud service. The number of elements in the returned array is N.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> You must configure `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the dimensions that are supported by an Alibaba Cloud service. The number of elements in the returned array is N.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
+ 'description' => 'None.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Quotas' => [
+ 'description' => 'The list of quotas on which the target quota depends.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The list of quotas on which the target quota depends.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Dimensions' => [
+ 'description' => 'The dimensions of the dependent quota.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The dimensions of the dependent quota.',
+ 'type' => 'object',
+ 'properties' => [
+ 'DependentDimension' => [
+ 'description' => 'The dimensions on which the dimension of the dependent quota depends.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The dimensions on which the dimension of the dependent quota depends.', 'type' => 'string', 'title' => '', 'example' => '[]'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DimensionKey' => ['description' => 'The key of the dimension of the dependent quota.', 'type' => 'string', 'title' => '', 'example' => '[]'],
+ 'DimensionValues' => [
+ 'description' => 'The value of the dimension on which the dimension of the dependent quota depends.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The value of the dimension on which the dimension of the dependent quota depends.', 'type' => 'string', 'title' => '', 'example' => '[]'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ProductCode' => ['description' => 'The service code of the Alibaba Cloud service.', 'type' => 'string', 'title' => '', 'example' => 'ram'],
+ 'QuotaActionCode' => ['description' => 'The ID of the dependent quota.', 'type' => 'string', 'title' => '', 'example' => 'q_laxtn4'],
+ 'Scale' => ['description' => 'The ratio of the target quota to the dependent quota.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '100'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'required' => false,
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '920D8A47-26BB-49FA-A09F-F98D7DAA55F3'],
],
- 'required' => false,
- 'maxItems' => 5,
+ 'title' => '',
+ 'example' => '',
],
],
- [
- 'name' => 'QuotaCategory',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The type of the quota. Valid values:'."\n"
- ."\n"
- .'Default value: CommonQuota.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: whitelist quota'."\n"
- .'* CommonQuota: general quota'."\n",
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'FlowControl' => '',
- 'WhiteListLabel' => '',
- 'CommonQuota' => '',
- ],
- 'example' => 'CommonQuota',
- 'enum' => [
- 'CommonQuota',
- 'FlowControl',
- 'WhiteListLabel',
+ ],
+ 'title' => 'ListDependentQuotas',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDependentQuotas'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListDependentQuotas',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Quotas\\": [\\n {\\n \\"Dimensions\\": [\\n {\\n \\"DependentDimension\\": [\\n \\"[]\\"\\n ],\\n \\"DimensionKey\\": \\"[]\\",\\n \\"DimensionValues\\": [\\n \\"[]\\"\\n ]\\n }\\n ],\\n \\"ProductCode\\": \\"ram\\",\\n \\"QuotaActionCode\\": \\"q_laxtn4\\",\\n \\"Scale\\": 100\\n }\\n ],\\n \\"RequestId\\": \\"920D8A47-26BB-49FA-A09F-F98D7DAA55F3\\"\\n}","type":"json"}]',
+ ],
+ 'ListProductDimensionGroups' => [
+ 'summary' => 'This operation queries the dimension groups of a specified Alibaba Cloud service.',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'AuditMode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '> This parameter is deprecated and is not recommended.'."\n"
- ."\n"
- .'The mode in which you want the application to be reviewed.'."\n"
- ."\n"
- .'Valid values: '."\n"
- .'* Async'."\n"
- .'* Sync',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'Async' => '',
- 'Sync' => '',
- ],
- 'example' => 'Sync',
- 'default' => 'Async',
- 'enum' => [
- 'Async',
- 'Sync',
- ],
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
[
- 'name' => 'EnvLanguage',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The language of the quota alert notification.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* en: English'."\n"
- .'* zh: Chinese'."\n",
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'en' => '',
- 'zh' => '',
- ],
- 'example' => 'zh',
- ],
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The token that marks the position from which to start the query. If you leave this parameter empty, the query starts from the beginning.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'],
],
[
- 'name' => 'ExpireTime',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The start time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel.'."\n"
- ."\n"
- .'> If you do not specify a start time, the default start time is the time when the quota application is submitted.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '2021-01-20T09:25:56Z',
- ],
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The maximum number of records to return for the query.'."\n"
+ .'Valid values: 1 to 200. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '200', 'default' => '30', 'title' => '', 'example' => '3'],
],
[
- 'name' => 'EffectiveTime',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The end time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel.'."\n"
- ."\n"
- .'> If you do not specify an end time, the default end time is 99 years after the quota application is submitted.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '2021-01-19T09:25:56Z',
- ],
+ 'name' => 'ProductCode',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> For information about how to obtain the abbreviation of an Alibaba Cloud service name, see the \\`ProductCode\\` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'entconsole'],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'The response parameters.'."\n",
+ 'description' => 'The dimension groups.',
'type' => 'object',
'properties' => [
- 'ApplicationId' => [
- 'description' => 'The ID of the application.'."\n",
- 'type' => 'string',
- 'example' => 'd314d6ae-867d-484c-9009-3d421a80****',
- ],
- 'ApplyTime' => [
- 'description' => 'The time when the application was submitted.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-19T09:25:56Z',
- ],
- 'ApproveValue' => [
- 'description' => 'The quota value that is approved.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '804',
- ],
- 'AuditReason' => [
- 'description' => 'The result of the application.'."\n",
- 'type' => 'string',
- 'example' => 'Agree'."\n",
- ],
- 'DesireValue' => [
- 'description' => 'The requested value of the quota.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '12',
- ],
- 'Dimension' => [
- 'description' => 'The quota dimension.'."\n",
- 'type' => 'object',
- 'example' => '{"regionId":"cn-hangzhou"}',
- ],
- 'EffectiveTime' => [
- 'description' => 'The time when the new quota value takes effect.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-19T09:25:56Z',
- ],
- 'ExpireTime' => [
- 'description' => 'The time when the new quota expires.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-20T09:25:56Z',
- ],
- 'NoticeType' => [
- 'description' => 'Indicates whether the notification about the application result is sent. Valid values:'."\n"
- ."\n"
- .'* 0: The notification is not sent.'."\n"
- .'* 3: The notification is sent.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'enumValueTitles' => [
- '',
- 3 => '',
- ],
- 'example' => '3',
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs-spec',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'example' => 'ecs.c5.large',
- ],
- 'QuotaArn' => [
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'acs:quotas:cn-hangzhou:*:quota/ecs/ecs.m2.medium/prepaid/classic/instancetype/cn-hangzhou-b',
- ],
- 'QuotaDescription' => [
- 'description' => 'The description of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'ecs.c5.large',
- ],
- 'QuotaName' => [
- 'description' => 'The name of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'ecs.c5.large',
- ],
- 'QuotaUnit' => [
- 'description' => 'The unit of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'AMOUNT',
- ],
- 'Reason' => [
- 'description' => 'The reason for the application.'."\n",
- 'type' => 'string',
- 'example' => 'Scale Out'."\n",
- ],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
- ],
- 'Status' => [
- 'description' => 'The approval state of the quota increase application.'."\n"
- ."\n"
- .'Valid values:'."\n"
- ."\n"
- .'* Cancel: The application is canceled.'."\n"
- .'* Agree: The application is approved.'."\n"
- .'* Process: The application is in review.'."\n"
- .'* Disagree: The application is rejected.'."\n",
- 'type' => 'string',
- 'enumValueTitles' => [
- 'Cancel' => '',
- 'Agree' => '',
- 'Process' => '',
- 'Disagree' => '',
+ 'DimensionGroups' => [
+ 'description' => 'The dimension groups.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The code of the dimension group.',
+ 'type' => 'object',
+ 'properties' => [
+ 'DimensionKeys' => [
+ 'description' => 'The keys of the dimension group.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A key of the dimension group.', 'type' => 'string', 'title' => '', 'example' => 'regionId'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'GroupCode' => ['description' => 'The code of the dimension group.', 'type' => 'string', 'title' => '', 'example' => 'entconsole_zjzp4d****'],
+ 'GroupName' => ['description' => 'The name of the dimension group.', 'type' => 'string', 'title' => '', 'example' => 'Resource sharing'],
+ 'ProductCode' => ['description' => 'The code of the Alibaba Cloud service.', 'type' => 'string', 'title' => '', 'example' => 'entconsole'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
- 'example' => 'Process',
+ 'title' => '',
+ 'example' => '',
],
+ 'MaxResults' => ['description' => 'The maximum number of entries returned on each page.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '3'],
+ 'NextToken' => ['description' => 'The token that marks the position where the returned query results end. An empty value indicates that all data is returned.', 'type' => 'string', 'title' => '', 'example' => '21'],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '057D210F-F2FC-5329-A536-26C16628BB09'],
+ 'TotalCount' => ['description' => 'The total number of entries that match the query.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '3'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'ACQUIRE.LOCK.FAIL',
- 'errorMessage' => 'The request is too frequent. Please try again later.',
- ],
- [
- 'errorCode' => 'InvalidNoticeType',
- 'errorMessage' => 'Invalid NoticeType',
- ],
- [
- 'errorCode' => 'InvalidDesireValue',
- 'errorMessage' => 'Invalid DesireValue',
- ],
- [
- 'errorCode' => 'QUOTA.NOT.ADJUSTABLE',
- 'errorMessage' => 'Quota is not adjustable',
- ],
- [
- 'errorCode' => 'QUOTA.NOT.FOUND',
- 'errorMessage' => 'The quota does not exist.',
- ],
- [
- 'errorCode' => 'QUOTA.APPLICATION.PROCESS',
- 'errorMessage' => 'The quota adjustment application is being processed. Please try again later.',
- ],
- [
- 'errorCode' => 'QUOTA.DESIREVALUE.ILLEGAL',
- 'errorMessage' => 'The applied quota value is invalid.',
- ],
- [
- 'errorCode' => 'QUOTA.APPLICATION.TIME.ERROE',
- 'errorMessage' => 'ExpireTime cannot be earlier than the current time or EffectiveTime.',
+ 'title' => 'ListProductDimensionGroups',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '3', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProductDimensionGroups'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListProductDimensionGroups',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"ApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"ApplyTime\\": \\"2021-01-19T09:25:56Z\\",\\n \\"ApproveValue\\": 804,\\n \\"AuditReason\\": \\"Agree\\",\\n \\"DesireValue\\": 804,\\n \\"Dimension\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2021-01-19T09:25:56Z\\",\\n \\"ExpireTime\\": \\"2021-01-20T09:25:56Z\\",\\n \\"NoticeType\\": 3,\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaArn\\": \\"acs:quotas::141339776561****:quota/ecs/q_security-groups\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be owned by the current account.\\",\\n \\"QuotaName\\": \\"Maximum Number of Security Groups\\",\\n \\"QuotaUnit\\": \\"AMOUNT\\",\\n \\"Reason\\": \\"Scale Out\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"Status\\": \\"Process\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateQuotaApplicationResponse>\\n\\t<Status>Process</Status>\\n\\t<ApplyTime>2021-11-11T03:24:39Z</ApplyTime>\\n\\t<QuotaDescription>当前账户可拥有的安全组的最大数量</QuotaDescription>\\n\\t<RequestId>D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053</RequestId>\\n\\t<ProductCode>ecs</ProductCode>\\n\\t<Dimension>\\n\\t\\t<regionId>cn-hangzhou</regionId>\\n\\t</Dimension>\\n\\t<ApproveValue>1007</ApproveValue>\\n\\t<Reason>扩容</Reason>\\n\\t<QuotaActionCode>q_security-groups</QuotaActionCode>\\n\\t<QuotaName>安全组总数量上限</QuotaName>\\n\\t<QuotaArn>acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/</QuotaArn>\\n\\t<NoticeType>0</NoticeType>\\n\\t<ApplicationId>d314d6ae-867d-484c-9009-3d421a80****</ApplicationId>\\n\\t<DesireValue>804</DesireValue>\\n</CreateQuotaApplicationResponse>\\t","errorExample":""}]',
- 'title' => 'CreateQuotaApplication',
- 'description' => 'In this example, the operation is called to submit an application to increase the value of a quota whose ID is `q_security-groups` and whose name is Maximum Number of Security Groups. The quota belongs to Elastic Compute Service (ECS). The expected value of the quota is `804`, the application reason is `Scale Out`, and the ID of the region to which the quota belongs is `cn-hangzhou`.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
- 'responseParamsDescription' => ' ',
- 'extraInfo' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DimensionGroups\\": [\\n {\\n \\"DimensionKeys\\": [\\n \\"regionId\\"\\n ],\\n \\"GroupCode\\": \\"entconsole_zjzp4d****\\",\\n \\"GroupName\\": \\"Resource sharing\\",\\n \\"ProductCode\\": \\"entconsole\\"\\n }\\n ],\\n \\"MaxResults\\": 3,\\n \\"NextToken\\": \\"21\\",\\n \\"RequestId\\": \\"057D210F-F2FC-5329-A536-26C16628BB09\\",\\n \\"TotalCount\\": 3\\n}","type":"json"}]',
],
- 'GetQuotaApplication' => [
- 'summary' => 'Queries the details about a specified application that is submitted to increase a quota.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListProductQuotaDimensions' => [
+ 'summary' => 'Queries the quota dimensions supported by a specified Alibaba Cloud service.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -3342,181 +2239,172 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotas29QQRO',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ApplicationId',
+ 'name' => 'NextToken',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The token that marks the position from which to start the query. If you leave this parameter empty, the query starts from the beginning.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The maximum number of records to return for a single query.'."\n"
+ ."\n"
+ .'Valid values: 1 to 200. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '200', 'default' => '30', 'title' => '', 'example' => '5'],
+ ],
+ [
+ 'name' => 'ProductCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the abbreviation of an Alibaba Cloud service name, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'disk'],
+ ],
+ [
+ 'name' => 'QuotaCategory',
'in' => 'formData',
'schema' => [
- 'description' => 'The ID of the application.'."\n",
+ 'description' => 'The quota category. Valid values:'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit quotas.'."\n"
+ ."\n"
+ .'- CommonQuota (default): general quotas.'."\n"
+ ."\n"
+ .'> Privileges (WhiteListLabel) do not have quota dimensions.',
'type' => 'string',
'required' => false,
- 'example' => 'd314d6ae-867d-484c-9009-3d421a80****',
+ 'enum' => ['FlowControl', 'CommonQuota'],
+ 'title' => '',
+ 'enumValueTitles' => [],
+ 'example' => 'CommonQuota',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'The response parameters.'."\n",
+ 'description' => 'None.',
'type' => 'object',
'properties' => [
- 'QuotaApplication' => [
- 'description' => 'The details of the quota application.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'ApplicationId' => [
- 'description' => 'The ID of the application.'."\n",
- 'type' => 'string',
- 'example' => 'd314d6ae-867d-484c-9009-3d421a80****',
- ],
- 'ApplyTime' => [
- 'description' => 'The time when the application was submitted.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-19T09:25:56Z',
- ],
- 'ApproveValue' => [
- 'description' => 'The approved quota value.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '10',
- ],
- 'AuditReason' => [
- 'description' => 'The result of the application.'."\n",
- 'type' => 'string',
- 'example' => 'Agree'."\n",
- ],
- 'DesireValue' => [
- 'description' => 'The expected value of the quota.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '804',
- ],
- 'Dimension' => [
- 'description' => 'The dimension.'."\n"
+ 'MaxResults' => ['description' => 'The maximum number of records returned for a single query.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '5'],
+ 'NextToken' => ['description' => 'The token that marks the position of the next query. If this parameter is not returned, it indicates that all data has been queried.', 'type' => 'string', 'title' => '', 'example' => '84'],
+ 'QuotaDimensions' => [
+ 'description' => 'The quota dimensions.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The quota dimension.',
+ 'type' => 'object',
+ 'properties' => [
+ 'DependentDimensions' => [
+ 'description' => 'The quota dimensions on which the quota dimension depends.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The quota dimension on which the quota dimension depends.', 'type' => 'string', 'title' => '', 'example' => 'regionId'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DimensionKey' => ['description' => 'The key of the quota dimension. Valid values:'."\n"
."\n"
- .'Format: `{"regionId":"Region"}`.'."\n",
- 'type' => 'object',
- 'example' => '["cn-shanghai","cn-hangzhou"]',
- ],
- 'EffectiveTime' => [
- 'description' => 'The time when the new quota value takes effect.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-19 15:30:00',
- ],
- 'ExpireTime' => [
- 'description' => 'The time when the new quota expires.'."\n",
- 'type' => 'string',
- 'example' => '2023-06-29 15:30:00',
- ],
- 'NoticeType' => [
- 'description' => 'The method of that is used to send alert notifications. Valid values:'."\n"
+ .'- regionId: the region ID.'."\n"
."\n"
- .'* 0: Quota Center does not send a notification.'."\n"
- .'* 1: Quota Center sends an email notification.'."\n"
- .'* 2: Quota Center sends an SMS notification.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The ID of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'q_security-groups',
- ],
- 'QuotaArn' => [
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/',
- ],
- 'QuotaDescription' => [
- 'description' => 'The description of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'The maximum number of security groups that can be owned by the current account'."\n",
- ],
- 'QuotaName' => [
- 'description' => 'The name of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'Maximum Number of Security Groups'."\n",
- ],
- 'QuotaUnit' => [
- 'description' => 'The unit of the new quota value.'."\n",
- 'type' => 'string',
- 'example' => 'Count'."\n",
- ],
- 'Reason' => [
- 'description' => 'The reason for the application.'."\n",
- 'type' => 'string',
- 'example' => 'Scale Out'."\n",
- ],
- 'Status' => [
- 'description' => 'The status of the application. Valid values:'."\n"
+ .'- zoneId: the zone ID.'."\n"
."\n"
- .'* Disagree: The application is rejected.'."\n"
- .'* Agree: The application is approved.'."\n"
- .'* Process: The application is being reviewed.'."\n"
- .'* Cancel: The application is closed.'."\n",
- 'type' => 'string',
- 'example' => 'Agree',
- ],
- 'QuotaCategory' => [
- 'description' => 'The quota type. Valid values:'."\n"
+ .'- chargeType: the billing method.'."\n"
+ ."\n"
+ .'- networkType: the network type.'."\n"
+ ."\n"
+ .'- resourceType: the resource type.', 'type' => 'string', 'title' => '', 'example' => 'zoneId'],
+ 'DimensionValueDetail' => [
+ 'description' => 'The details of the quota dimension value.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the quota dimension value.',
+ 'type' => 'object',
+ 'properties' => [
+ 'DependentDimensions' => [
+ 'description' => 'The quota dimensions on which the quota dimension depends.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The quota dimension on which the quota dimension depends.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The key of the dependent quota dimension.', 'type' => 'string', 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the dependent quota dimension.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Name' => ['description' => 'The name of the quota dimension value.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou-b'],
+ 'Value' => ['description' => 'The value of the quota dimension.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou-b'."\n"],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DimensionValues' => [
+ 'description' => 'The list of quota dimension values.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The list of quota dimension values.', 'type' => 'string', 'title' => '', 'example' => '["cn-hangzhou-b", "cn-hangzhou-e", "cn-hangzhou-f", "cn-hangzhou-g", "cn-hangzhou-h", "cn-hangzhou-i", "cn-hangzhou-j", "cn-hangzhou-k"]'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Name' => ['description' => 'The name of the quota dimension.', 'type' => 'string', 'title' => '', 'example' => 'Zone'],
+ 'Requisite' => ['description' => 'Indicates whether the quota dimension is required when you query the quota. Valid values:'."\n"
+ ."\n"
+ .'- true: The quota dimension is required.'."\n"
."\n"
- .'* CommonQuota: general quota.'."\n"
- .'* FlowControl: API rate limit.'."\n"
- .'* WhiteListLabel: whitelist quota.'."\n",
- 'type' => 'string',
- 'example' => 'CommonQuota',
+ .'- false: The quota dimension is not required.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => '7BBD1D37-094C-4485-8B7D-64682F82BC18',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '7ED584FB-ECBF-4A2A-969D-F54D25EFABF9'],
+ 'TotalCount' => ['description' => 'The total number of records returned for the request.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '5'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'QUOTA.APPLICATION.NOT.FOUND',
- 'errorMessage' => 'Quota application does not exist',
- ],
- [
- 'errorCode' => 'RAM.PERMISSION.DENIED',
- 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.',
- ],
- ],
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"QuotaApplication\\": {\\n \\"ApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"ApplyTime\\": \\"2021-01-19T09:25:56Z\\",\\n \\"ApproveValue\\": 10,\\n \\"AuditReason\\": \\"Agree\\",\\n \\"DesireValue\\": 804,\\n \\"Dimension\\": [\\n \\"cn-shanghai\\",\\n \\"cn-hangzhou\\"\\n ],\\n \\"EffectiveTime\\": \\"2021-01-19 15:30:00\\",\\n \\"ExpireTime\\": \\"2023-06-29 15:30:00\\",\\n \\"NoticeType\\": 0,\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaArn\\": \\"acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be owned by the current account.\\",\\n \\"QuotaName\\": \\"Maximum Number of Security Groups\\",\\n \\"QuotaUnit\\": \\"AMOUNT\\",\\n \\"Reason\\": \\"Scale Out\\",\\n \\"Status\\": \\"Agree\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\"\\n },\\n \\"RequestId\\": \\"7BBD1D37-094C-4485-8B7D-64682F82BC18\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateQuotaApplicationResponse>\\r\\n\\t<Status>Process</Status>\\r\\n\\t<ApplyTime>2021-11-11T03:24:39Z</ApplyTime>\\r\\n\\t<QuotaDescription>当前账户可拥有的安全组的最大数量</QuotaDescription>\\r\\n\\t<RequestId>D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053</RequestId>\\r\\n\\t<ProductCode>ecs</ProductCode>\\r\\n\\t<Dimension>\\r\\n\\t\\t<regionId>cn-hangzhou</regionId>\\r\\n\\t</Dimension>\\r\\n\\t<ApproveValue>1007</ApproveValue>\\r\\n\\t<Reason>扩容</Reason>\\r\\n\\t<QuotaActionCode>q_security-groups</QuotaActionCode>\\r\\n\\t<QuotaName>安全组总数量上限</QuotaName>\\r\\n\\t<QuotaArn>acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/</QuotaArn>\\r\\n\\t<NoticeType>0</NoticeType>\\r\\n\\t<ApplicationId>d314d6ae-867d-484c-9009-3d421a80****</ApplicationId>\\r\\n\\t<DesireValue>804</DesireValue>\\r\\n</CreateQuotaApplicationResponse>\\t","errorExample":""}]',
- 'title' => 'GetQuotaApplication',
- 'description' => 'In this example, the operation is called to query the details about an application whose ID is `d314d6ae-867d-484c-9009-3d421a80****`. The query result shows the details about the application. The details include the application ID, application time, expected quota value, and application result.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
+ 'title' => 'ListProductQuotaDimensions',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListQuotaApplications' => [
- 'summary' => 'Queries the details of an application that is submitted to increase a quota.',
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [
+ ['createdAt' => '2024-02-01T08:17:18.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProductQuotaDimensions'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListProductQuotaDimensions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 5,\\n \\"NextToken\\": \\"84\\",\\n \\"QuotaDimensions\\": [\\n {\\n \\"DependentDimensions\\": [\\n \\"regionId\\"\\n ],\\n \\"DimensionKey\\": \\"zoneId\\",\\n \\"DimensionValueDetail\\": [\\n {\\n \\"DependentDimensions\\": [\\n {\\n \\"Key\\": \\"regionId\\",\\n \\"Value\\": \\"cn-hangzhou\\"\\n }\\n ],\\n \\"Name\\": \\"cn-hangzhou-b\\",\\n \\"Value\\": \\"cn-hangzhou-b\\\\n\\"\\n }\\n ],\\n \\"DimensionValues\\": [\\n \\"[\\\\\\"cn-hangzhou-b\\\\\\", \\\\\\"cn-hangzhou-e\\\\\\", \\\\\\"cn-hangzhou-f\\\\\\", \\\\\\"cn-hangzhou-g\\\\\\", \\\\\\"cn-hangzhou-h\\\\\\", \\\\\\"cn-hangzhou-i\\\\\\", \\\\\\"cn-hangzhou-j\\\\\\", \\\\\\"cn-hangzhou-k\\\\\\"]\\"\\n ],\\n \\"Name\\": \\"Zone\\",\\n \\"Requisite\\": false\\n }\\n ],\\n \\"RequestId\\": \\"7ED584FB-ECBF-4A2A-969D-F54D25EFABF9\\",\\n \\"TotalCount\\": 5\\n}","type":"json"}]',
+ ],
+ 'ListProductQuotas' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -3525,89 +2413,75 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotas29QQRO',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query. If you leave this parameter empty, the query starts from the beginning.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The token that is used to initiate the next query.'."\n"
+ ."\n"
+ .'- Leave this parameter empty for the first query or if no subsequent query is needed.'."\n"
+ ."\n"
+ .'- If a subsequent query is needed, set the value to the NextToken value that is returned from the last API call.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'AAAAAd****'],
],
[
'name' => 'MaxResults',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The maximum number of entries to return.'."\n"
- ."\n"
- .'Valid values: 1 to 200. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'maximum' => '200',
- 'example' => '1',
- 'default' => '20',
- ],
+ 'schema' => ['description' => 'The maximum number of records to return for the query.'."\n"
+ ."\n"
+ .'Valid values: 1 to 100. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '30'],
],
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'csk',
- ],
+ 'schema' => ['description' => 'The abbreviation of the cloud product.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the abbreviation of a cloud product, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ecs'],
],
[
'name' => 'QuotaActionCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The ID of the quota.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'q_i5uzm3',
- ],
+ 'schema' => ['description' => 'The quota ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'q_security-groups'],
],
[
- 'name' => 'Status',
+ 'name' => 'KeyWord',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The keyword to use for searching quotas.'."\n"
+ ."\n"
+ .'> This parameter is applicable only to instance type quotas of Elastic Compute Service (ECS). The search is performed on `QuotaName` and `QuotaActionCode`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'security'],
+ ],
+ [
+ 'name' => 'SortField',
'in' => 'formData',
'schema' => [
- 'description' => 'The approval state of the quota increase application. Valid values:'."\n"
+ 'description' => 'The field to use for sorting the quotas.'."\n"
."\n"
- .'* Disagree: The application is rejected.'."\n"
- .'* Agree: The application is approved.'."\n"
- .'* Process: The application is in review.'."\n"
- .'* Cancel: The application is canceled.'."\n",
+ .'> This parameter is applicable only to instance type quotas of ECS. If you do not set this parameter, the query results are not sorted.',
'type' => 'string',
'required' => false,
- 'example' => 'Agree',
- 'enum' => [
- 'Agree',
- 'Disagree',
- 'Process',
- 'Cancel',
- ],
+ 'enumValueTitles' => ['TOTAL' => 'Sorts by total quota usage.', 'TIME' => 'Sorts by the last update time.', 'RESERVED' => 'Sorts by reserved quota usage.'],
+ 'title' => '',
+ 'example' => 'TIME',
],
],
[
- 'name' => 'KeyWord',
+ 'name' => 'SortOrder',
'in' => 'formData',
'schema' => [
- 'description' => 'The keyword that you want to use to search for the application.'."\n",
+ 'description' => 'The order to sort the results.'."\n"
+ ."\n"
+ .'> This parameter is applicable only to instance type quotas of ECS. If you do not set this parameter, the query results are not sorted.',
'type' => 'string',
'required' => false,
- 'example' => 'Cluster'."\n",
+ 'enumValueTitles' => ['Descending' => 'Sorts in descending order.', 'Ascending' => 'Sorts in ascending order.'],
+ 'enum' => ['Ascending', 'Descending'],
+ 'title' => '',
+ 'example' => 'Ascending',
],
],
[
@@ -3615,254 +2489,274 @@
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
- 'description' => 'The quota dimensions.'."\n",
+ 'description' => 'The quota dimensions.',
'type' => 'array',
'items' => [
- 'description' => 'The quota dimension.'."\n",
+ 'description' => 'The quota dimensions.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> The value of N depends on the number of dimensions that are supported by the cloud product.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> The value of N depends on the number of dimensions that are supported by the cloud product.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
- 'maxItems' => 5,
+ 'maxItems' => 10,
+ 'title' => '',
+ 'example' => '',
],
],
[
'name' => 'QuotaCategory',
'in' => 'formData',
'schema' => [
- 'description' => 'The quota type. Valid values:'."\n"
+ 'description' => 'The quota category.'."\n"
."\n"
- .'* CommonQuota: general quota'."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: whitelist quota'."\n",
+ .'Default value: CommonQuota.',
'type' => 'string',
'required' => false,
- 'example' => 'CommonQuota',
- 'enum' => [
- 'CommonQuota',
- 'FlowControl',
- 'WhiteListLabel',
- ],
+ 'enumValueTitles' => ['FlowControl' => 'API rate limit quotas', 'WhiteListLabel' => 'Privilege quotas', 'CommonQuota' => 'General quotas'],
+ 'enum' => ['CommonQuota', 'FlowControl', 'WhiteListLabel'],
+ 'title' => '',
+ 'example' => 'FlowControl',
],
],
+ [
+ 'name' => 'GroupCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The code of the dimension group.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'entconsole_w1j3ms****'],
+ ],
],
'responses' => [
200 => [
'schema' => [
- 'description' => 'The response parameters.'."\n",
+ 'description' => 'The returned result.',
'type' => 'object',
'properties' => [
- 'MaxResults' => [
- 'description' => 'The maximum number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position at which the query ends. An empty value indicates that all data is returned.'."\n",
- 'type' => 'string',
- 'example' => '1',
- ],
- 'QuotaApplications' => [
- 'description' => 'The details of the quota increase applications.'."\n",
+ 'MaxResults' => ['description' => 'The maximum number of records returned for the query.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
+ 'NextToken' => ['description' => 'The token that is used to initiate the next query.'."\n"
+ ."\n"
+ .'- If this parameter is empty, no subsequent query is to be initiated.'."\n"
+ ."\n"
+ .'- If a value is returned, the value is the token that is used for the next query.', 'type' => 'string', 'title' => '', 'example' => 'AAAAAd****'],
+ 'Quotas' => [
+ 'description' => 'The details of the quotas.',
'type' => 'array',
'items' => [
- 'description' => 'The details of a quota increase application.'."\n",
+ 'description' => 'The details of the quota.',
'type' => 'object',
'properties' => [
- 'ApplicationId' => [
- 'description' => 'The ID of the application.'."\n",
- 'type' => 'string',
- 'example' => 'b926571d-cc09-4711-b547-58a615f0****',
- ],
- 'ApplyTime' => [
- 'description' => 'The time when the application was submitted.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-15T09:13:53Z',
- ],
- 'ApproveValue' => [
- 'description' => 'The quota value that is approved.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '101',
- ],
- 'AuditReason' => [
- 'description' => 'The result of the application.'."\n",
- 'type' => 'string',
- 'example' => 'Agree'."\n",
- ],
- 'Comment' => [
- 'description' => 'The remarks of the application.'."\n",
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'DesireValue' => [
- 'description' => 'The quota value that is approved.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '101',
+ 'Adjustable' => [
+ 'description' => 'Indicates whether the quota is adjustable.',
+ 'type' => 'boolean',
+ 'enumValueTitles' => ['true' => 'The quota is adjustable.', 'false' => 'The quota is not adjustable.'],
+ 'title' => '',
+ 'example' => 'true',
],
- 'Dimension' => [
- 'description' => 'The dimension of the application.'."\n",
- 'type' => 'object',
- 'example' => '{"regionId":"cn-hangzhou"}',
+ 'ApplicableRange' => [
+ 'description' => 'The range of the quota value that you can request for the quota. This can be used as a reference for quota increase requests.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The range of the quota value that you can request.'."\n"
+ ."\n"
+ .'This range does not include the existing quota of the user. You can use this as a reference when you request a quota increase. For example, `[1010,10000]`.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '[1010,10000]'],
+ 'title' => '',
+ 'example' => '',
],
- 'EffectiveTime' => [
- 'description' => 'The time when the application took effect.'."\n",
+ 'ApplicableType' => [
+ 'description' => 'The type of the quota adjustment.',
'type' => 'string',
- 'example' => '2021-01-15T11:46:25Z',
+ 'enumValueTitles' => ['continuous' => 'The quota value is continuous.', 'discontinuous' => 'The quota value is discontinuous.'],
+ 'title' => '',
+ 'example' => 'discontinuous',
],
- 'ExpireTime' => [
- 'description' => 'The time when the application expired.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-17T11:46:25Z',
+ 'ApplyReasonTips' => ['description' => 'An example of the reason for a quota increase request.', 'type' => 'string', 'title' => '', 'example' => 'The business xxx is expected to grow by 50%.'],
+ 'Consumable' => [
+ 'description' => 'Indicates whether the used quota is displayed.',
+ 'type' => 'boolean',
+ 'enumValueTitles' => ['true' => 'The used quota is displayed.', 'false' => 'The used quota is not displayed.'],
+ 'title' => '',
+ 'example' => 'true',
],
- 'NoticeType' => [
- 'description' => 'Indicates whether Quota Center sends a notification about the application result. Valid values:'."\n"
- ."\n"
- .'* 0: A notification about the application result is not sent.'."\n"
- .'* 3: A notification about the application result is sent.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3',
+ 'Dimensions' => ['description' => 'The quota dimensions. Format: `{"regionId":"Region"}`.', 'type' => 'object', 'title' => '', 'example' => '{"regionId":"cn-hangzhou"}'],
+ 'EffectiveTime' => ['description' => 'The UTC time when the quota takes effect.', 'type' => 'string', 'title' => '', 'example' => '2022-09-28T06:07:00Z'],
+ 'ExpireTime' => ['description' => 'The UTC time when the quota expires.', 'type' => 'string', 'title' => '', 'example' => '2022-09-29T06:07:00Z'],
+ 'GlobalQuota' => [
+ 'description' => 'Indicates whether the quota is a global quota.',
+ 'type' => 'boolean',
+ 'enumValueTitles' => ['true' => 'The quota is shared by all regions.', 'false' => 'The quota is independent for each region.'],
+ 'title' => '',
+ 'example' => 'true',
],
'Period' => [
- 'description' => 'The calculation cycle of the quota.'."\n",
+ 'description' => 'The calculation cycle of the quota.',
'type' => 'object',
'properties' => [
'PeriodUnit' => [
- 'description' => 'The unit of the calculation cycle. Valid values:'."\n"
- ."\n"
- .'* second'."\n"
- .'* minute'."\n"
- .'* hour'."\n"
- .'* day'."\n"
- .'* week'."\n",
+ 'description' => 'The unit of the calculation cycle.',
'type' => 'string',
- 'example' => 'second',
- ],
- 'PeriodValue' => [
- 'description' => 'The value of the calculation cycle.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
+ 'enumValueTitles' => ['week' => 'Week', 'hour' => 'Hour', 'day' => 'Day', 'second' => 'Seconds', 'minute' => 'minutes'],
+ 'title' => '',
+ 'example' => 'day',
],
+ 'PeriodValue' => ['description' => 'The value of the calculation cycle.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '{}'],
],
+ 'title' => '',
+ 'example' => '',
],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'csk',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The ID of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'q_i5uzm3',
- ],
- 'QuotaArn' => [
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'acs:quotas:*:120886317861****:quota/csk/q_i5uzm3',
- ],
+ 'ProductCode' => ['description' => 'The abbreviation of the cloud product.', 'type' => 'string', 'title' => '', 'example' => 'ecs'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_security-groups'],
+ 'QuotaArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.', 'type' => 'string', 'title' => '', 'example' => 'acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups'],
'QuotaCategory' => [
- 'description' => 'The quota type. Valid values:'."\n"
- ."\n"
- .'* CommonQuota (default): general quota.'."\n"
- .'* WhiteListLabel: whitelist quota.'."\n"
- .'* FlowControl: API rate limit.'."\n",
+ 'description' => 'The quota category.',
'type' => 'string',
+ 'enumValueTitles' => ['FlowControl' => 'API rate limit quotas', 'WhiteListLabel' => 'Privilege quotas', 'CommonQuota' => 'General quotas'],
+ 'title' => '',
'example' => 'CommonQuota',
],
- 'QuotaDescription' => [
- 'description' => 'The description of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'The maximum number of nodes in a cluster'."\n",
+ 'QuotaDescription' => ['description' => 'The description of the quota.', 'type' => 'string', 'title' => '', 'example' => 'The maximum number of security groups that can be owned by the current account.'],
+ 'QuotaItems' => [
+ 'description' => 'The details of the quota.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the quota.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Quota' => ['description' => 'The quota value.', 'type' => 'string', 'title' => '', 'example' => '1009'],
+ 'QuotaUnit' => ['description' => 'The unit of the quota.', 'type' => 'string', 'title' => '', 'example' => 'Count'],
+ 'Type' => [
+ 'description' => 'The quota type.',
+ 'type' => 'string',
+ 'enumValueTitles' => ['BaseQuota' => 'Guaranteed quota', 'ReservedQuota' => 'Reserved quota'],
+ 'title' => '',
+ 'example' => 'BaseQuota',
+ ],
+ 'Usage' => ['description' => 'The quota usage.', 'type' => 'string', 'title' => '', 'example' => '1009'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
- 'QuotaName' => [
- 'description' => 'The name of the quota.'."\n",
+ 'QuotaName' => ['description' => 'The name of the quota.', 'type' => 'string', 'title' => '', 'example' => 'ecs.g5.2xlarge'],
+ 'QuotaType' => [
+ 'description' => 'The quota type.',
'type' => 'string',
- 'example' => 'Maximum Number of Nodes'."\n",
+ 'enumValueTitles' => ['normal' => 'Standard', 'privilege' => 'Privileges'],
+ 'title' => '',
+ 'example' => 'privilege',
],
- 'QuotaUnit' => [
- 'description' => 'The unit of the new quota value.'."\n",
- 'type' => 'string',
- 'example' => 'Node',
+ 'QuotaUnit' => ['description' => 'The unit of the quota.', 'type' => 'string', 'title' => '', 'example' => 'AMOUNT'],
+ 'SupportedRange' => [
+ 'description' => 'The range of the quota value that is supported by the quota. This can be used as a reference when you configure a quota template.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The range of the quota value that is supported by the quota. This can be used as a reference when you configure a quota template.'."\n"
+ ."\n"
+ .'- If ApplicableType is continuous, and the value is \\[1009,10000], it indicates that all values from 1009 to 10000 are supported.'."\n"
+ ."\n"
+ .'- If ApplicableType is discontinuous, and the value is \\[10,20,50,100], it indicates that only the values 10, 20, 50, and 100 are supported.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '[1009,10000]'],
+ 'title' => '',
+ 'example' => '',
],
- 'Reason' => [
- 'description' => 'The reason for the application.'."\n",
+ 'TotalQuota' => ['description' => 'The quota value.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '200'],
+ 'TotalUsage' => ['description' => 'The quota usage.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '1009'],
+ 'UnadjustableDetail' => [
+ 'description' => 'The reason why the quota is not adjustable.',
'type' => 'string',
- 'example' => 'Business expansion'."\n",
+ 'enumValueTitles' => ['limitReached' => 'The quota limit is reached.', 'nonactivated' => 'The service is not activated.', 'applicationProcess' => 'A quota increase request is being processed.'],
+ 'title' => '',
+ 'example' => 'applicationProcess',
],
- 'Status' => [
- 'description' => 'The status of the application. Valid values:'."\n"
+ 'UsageMetric' => [
+ 'description' => 'The monitoring information of the quota usage in CloudMonitor.'."\n"
."\n"
- .'* Disagree: The application is rejected.'."\n"
- .'* Agree: The application is approved.'."\n"
- .'* Process: The application is being reviewed.'."\n"
- .'* Cancel: The application is canceled.'."\n",
- 'type' => 'string',
- 'example' => 'Agree',
+ .'> An empty value indicates that no monitoring data is available for the quota in CloudMonitor.',
+ 'type' => 'object',
+ 'properties' => [
+ 'MetricDimensions' => [
+ 'description' => 'The dimensions for CloudMonitor.'."\n"
+ ."\n"
+ .'Format: a collection of key-value pairs. For example:'."\n"
+ .'`{"productCode":"***","metricKey":"***","regionId":"***","label":"***"}`.',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'The value of the dimension for CloudMonitor.', 'title' => '', 'example' => 'ecs'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'MetricName' => ['description' => 'The name of the CloudMonitor metric.', 'type' => 'string', 'title' => '', 'example' => 'Usage'],
+ 'MetricNamespace' => ['description' => 'The namespace of the metric for CloudMonitor.', 'type' => 'string', 'title' => '', 'example' => 'acs_quotas_flowcontrol'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => '730925FB-0BD0-40AC-AF3A-A6C6E9716879',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of applications.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D0131FD5-5397-44FE-BF5A-4B7165B813CC'],
+ 'TotalCount' => ['description' => 'The total number of records returned for the request.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InvalidStatus',
- 'errorMessage' => 'Invalid Status',
- ],
+ ['errorCode' => 'InvalidSortOrder', 'errorMessage' => 'Invalid SortOrder', 'description' => 'The specified SortOrder parameter is invalid.'],
+ ['errorCode' => 'INVALID.MAX.RESULTS', 'errorMessage' => 'The maxResults parameter is invalid. Use an integer ranging from 1 to 100.', 'description' => 'The maxResults value is invalid. It must be an integer within the range of 1 to 100.'],
+ ['errorCode' => 'DIMENSIONGROUP.NOT.FOUND', 'errorMessage' => 'Dimension group does not exist.', 'description' => 'Dimension group parameter is incorrect'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 1,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaApplications\\": [\\n {\\n \\"ApplicationId\\": \\"b926571d-cc09-4711-b547-58a615f0****\\",\\n \\"ApplyTime\\": \\"2021-01-15T09:13:53Z\\",\\n \\"ApproveValue\\": 101,\\n \\"AuditReason\\": \\"Agree\\",\\n \\"Comment\\": \\"test\\",\\n \\"DesireValue\\": 101,\\n \\"Dimension\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2021-01-15T11:46:25Z\\",\\n \\"ExpireTime\\": \\"2021-01-17T11:46:25Z\\",\\n \\"NoticeType\\": 3,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"second\\",\\n \\"PeriodValue\\": 1\\n },\\n \\"ProductCode\\": \\"csk\\",\\n \\"QuotaActionCode\\": \\"q_i5uzm3\\",\\n \\"QuotaArn\\": \\"acs:quotas:*:120886317861****:quota/csk/q_i5uzm3\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of nodes in a cluster.\\",\\n \\"QuotaName\\": \\"Maximum Number of Nodes\\",\\n \\"QuotaUnit\\": \\"Node\\",\\n \\"Reason\\": \\"Business expansion\\",\\n \\"Status\\": \\"Agree\\"\\n }\\n ],\\n \\"RequestId\\": \\"730925FB-0BD0-40AC-AF3A-A6C6E9716879\\",\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"<ListQuotaApplicationsResponse>\\r\\n\\t<TotalCount>1</TotalCount>\\r\\n\\t<QuotaApplications>\\r\\n\\t\\t<Status>Agree</Status>\\r\\n\\t\\t<ApplyTime>2021-01-15T09:13:53Z</ApplyTime>\\r\\n\\t\\t<QuotaDescription>集群最大节点数</QuotaDescription>\\r\\n\\t\\t<ProductCode>csk</ProductCode>\\r\\n\\t\\t<AuditReason>同意</AuditReason>\\r\\n\\t\\t<QuotaUnit>Node</QuotaUnit>\\r\\n\\t\\t<Period />\\r\\n\\t\\t<Dimension>{\\\\\\"regionId\\\\\\":\\\\\\"cn-hangzhou\\\\\\"}</Dimension>\\r\\n\\t\\t<ApproveValue>101</ApproveValue>\\r\\n\\t\\t<Reason>业务扩张</Reason>\\r\\n\\t\\t<QuotaActionCode>q_i5uzm3</QuotaActionCode>\\r\\n\\t\\t<QuotaName>集群最大节点数</QuotaName>\\r\\n\\t\\t<QuotaArn>acs:quotas:*:120886317861****:quota/csk/q_i5uzm3</QuotaArn>\\r\\n\\t\\t<NoticeType>3</NoticeType>\\r\\n\\t\\t<ApplicationId>b926571d-cc09-4711-b547-58a615f0****</ApplicationId>\\r\\n\\t\\t<DesireValue>101</DesireValue>\\r\\n\\t</QuotaApplications>\\r\\n\\t<RequestId>730925FB-0BD0-40AC-AF3A-A6C6E9716879</RequestId>\\r\\n\\t<MaxResults>1</MaxResults>\\r\\n</ListQuotaApplicationsResponse>\\t","errorExample":""}]',
- 'title' => 'ListQuotaApplications',
- 'description' => 'In this example, the operation is called to query the details of an application that is submitted to increase a quota whose ID is `q_i5uzm3` and whose name is Maximum Number of Nodes. This quota belongs to Container Service for Kubernetes (ACK). The query result shows the details of the application. The details include the application ID, application time, requested quota, and application result. In this example, the application ID is `b926571d-cc09-4711-b547-58a615f0****`. The application time is `2021-01-15T09:13:53Z`. The expected quota value is `101`. The application result is `Agree`.'."\n",
- 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~171299~~).'."\n",
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'ListProductQuotas',
+ 'summary' => 'Queries a list of quotas for a specified cloud product.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'GetQuotaApplicationApproval' => [
- 'summary' => 'Queries the information about quota application approval, such as the average amount of time required for approval, whether approval reminders are supported, and the interval between two consecutive approval reminders.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-20T05:32:23.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2024-09-29T05:47:00.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-06-24T01:53:09.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
+ ['createdAt' => '2023-11-07T11:22:06.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-06-28T09:32:21.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-12-22T10:33:14.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
+ ['createdAt' => '2022-12-02T01:53:14.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-08-26T08:12:02.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '15', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProductQuotas'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'quotas:ListProductQuotas',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'Quota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/*'],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 1,\\n \\"NextToken\\": \\"AAAAAd****\\",\\n \\"Quotas\\": [\\n {\\n \\"Adjustable\\": true,\\n \\"ApplicableRange\\": [\\n 0\\n ],\\n \\"ApplicableType\\": \\"discontinuous\\",\\n \\"ApplyReasonTips\\": \\"The business xxx is expected to grow by 50%.\\",\\n \\"Consumable\\": true,\\n \\"Dimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2022-09-28T06:07:00Z\\",\\n \\"ExpireTime\\": \\"2022-09-29T06:07:00Z\\",\\n \\"GlobalQuota\\": true,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"day\\",\\n \\"PeriodValue\\": 0\\n },\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaArn\\": \\"acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be owned by the current account.\\",\\n \\"QuotaItems\\": [\\n {\\n \\"Quota\\": \\"1009\\",\\n \\"QuotaUnit\\": \\"Count\\",\\n \\"Type\\": \\"BaseQuota\\",\\n \\"Usage\\": \\"1009\\"\\n }\\n ],\\n \\"QuotaName\\": \\"ecs.g5.2xlarge\\",\\n \\"QuotaType\\": \\"privilege\\",\\n \\"QuotaUnit\\": \\"AMOUNT\\",\\n \\"SupportedRange\\": [\\n 0\\n ],\\n \\"TotalQuota\\": 200,\\n \\"TotalUsage\\": 1009,\\n \\"UnadjustableDetail\\": \\"applicationProcess\\",\\n \\"UsageMetric\\": {\\n \\"MetricDimensions\\": {\\n \\"key\\": \\"ecs\\"\\n },\\n \\"MetricName\\": \\"Usage\\",\\n \\"MetricNamespace\\": \\"acs_quotas_flowcontrol\\"\\n }\\n }\\n ],\\n \\"RequestId\\": \\"D0131FD5-5397-44FE-BF5A-4B7165B813CC\\",\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ ],
+ 'ListProducts' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -3874,275 +2768,285 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ApplicationId',
+ 'name' => 'NextToken',
'in' => 'formData',
- 'schema' => [
- 'title' => '申请单 id',
- 'description' => 'The quota application ID.'."\n"
- ."\n"
- .'For more information about how to obtain the ID of a quota application, see [ListQuotaApplications](~~440568~~).'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'd314d6ae-867d-484c-9009-3d42****',
- ],
+ 'schema' => ['description' => 'The token that marks the position to start the query. If this parameter is empty, the query starts from the beginning.', 'type' => 'string', 'required' => false, 'example' => '4', 'title' => ''],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The maximum number of records to return for the query.'."\n"
+ ."\n"
+ .'Valid values: 1 to 200. Default: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '200', 'default' => '20', 'example' => '4', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'PopResultDTO<QuotaApplicationApprovalVO>',
- 'description' => 'The response parameters.'."\n",
'type' => 'object',
'properties' => [
- 'AllowRetry' => [
- 'description' => 'Indicates whether retries are allowed. Valid values:'."\n"
- ."\n"
- .'* false'."\n"
- .'* true'."\n",
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'DynamicCode' => [
- 'description' => 'The dynamic error code.'."\n",
- 'type' => 'string',
- 'example' => 'PARAMETER.ILLEGALL',
- ],
- 'DynamicMessage' => [
- 'description' => 'The dynamic error message.'."\n",
- 'type' => 'string',
- 'example' => 'Parameter[%s] is required.',
- ],
- 'ErrorArgs' => [
- 'description' => 'The parameters whose values are invalid.'."\n",
+ 'MaxResults' => ['description' => 'The maximum number of entries returned on each page.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''],
+ 'NextToken' => ['description' => 'The token that is used to start the next query. If this parameter is empty, all data is returned.', 'type' => 'string', 'example' => '4', 'title' => ''],
+ 'ProductInfo' => [
+ 'description' => 'The information about the cloud products.',
'type' => 'array',
'items' => [
- 'description' => 'The parameter whose value is invalid.'."\n",
- 'type' => 'any',
- 'example' => 'ApplicationId',
- ],
- ],
- 'ErrorCode' => [
- 'description' => 'The error code.'."\n",
- 'type' => 'string',
- 'example' => 'RAM.PERMISSION.DENIED',
- ],
- 'ErrorMsg' => [
- 'description' => 'The error message.'."\n",
- 'type' => 'string',
- 'example' => 'You are not authorized to do this action or the API input parameter is invalid.',
- ],
- 'HttpStatusCode' => [
- 'description' => 'The HTTP status code.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Module' => [
- 'description' => 'The information about quota application approval.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'ApprovalHours' => [
- 'description' => 'The average amount of time required to approve quota applications. Unit: hour.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '24',
- ],
- 'ReminderIntervalHours' => [
- 'description' => 'The interval between two consecutive approval reminders. Unit: hour.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '24',
- ],
- 'SupportReminder' => [
- 'title' => '是否支持审批提醒',
- 'description' => 'Indicates whether approval reminders are supported for quota applications. Valid values:'."\n"
+ 'type' => 'object',
+ 'properties' => [
+ 'CommonQuotaSupport' => ['description' => 'Indicates whether general quotas are supported. Valid values:'."\n"
."\n"
- .'* false'."\n"
- .'* true'."\n",
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'UnsupportReminderReason' => [
- 'description' => 'The reason why approval reminders are not supported for quota applications.'."\n",
- 'type' => 'string',
- 'example' => 'can only be remind once within the interval',
+ .'- support'."\n"
+ ."\n"
+ .'- unsupport', 'type' => 'string', 'title' => '', 'example' => 'support'],
+ 'Dynamic' => ['description' => '><notice>'."\n"
+ ."\n"
+ .'This parameter is deprecated. Do not use it.'."\n"
+ ."\n"
+ .'></notice>'."\n"
+ ."\n"
+ .'Indicates whether quotas can be dynamically adjusted. Valid values:'."\n"
+ ."\n"
+ .'- true'."\n"
+ ."\n"
+ .'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'FlowControlSupport' => ['description' => 'Indicates whether API rate limits are supported. Valid values:'."\n"
+ ."\n"
+ .'- support'."\n"
+ ."\n"
+ .'- unsupport', 'type' => 'string', 'title' => '', 'example' => 'unsupport'],
+ 'ProductCode' => ['description' => 'The code of the cloud product.', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
+ 'ProductName' => ['description' => 'The name of the cloud product.', 'type' => 'string', 'example' => 'Elastic Compute Service (ECS)', 'title' => ''],
+ 'ProductNameEn' => ['description' => 'The English name of the cloud product.', 'type' => 'string', 'example' => 'Elastic Compute Service', 'title' => ''],
+ 'SecondCategoryId' => ['description' => 'The ID of the product category.', 'type' => 'integer', 'format' => 'int64', 'example' => '5', 'title' => ''],
+ 'SecondCategoryName' => ['description' => 'The name of the product category.', 'type' => 'string', 'example' => 'Elastic Compute', 'title' => ''],
+ 'SecondCategoryNameEn' => ['description' => 'The English name of the product category.', 'type' => 'string', 'example' => 'Elastic Compute', 'title' => ''],
+ 'WhiteListLabelQuotaSupport' => ['description' => 'Indicates whether privilege quotas are supported. Valid values:'."\n"
+ ."\n"
+ .'- support'."\n"
+ ."\n"
+ .'- unsupport', 'type' => 'string', 'example' => 'support', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => '7ED584FB-ECBF-4A2A-969D-F54D25EFABF9',
- ],
- 'Success' => [
- 'description' => 'Indicates whether the request was successful. Valid values:'."\n"
- ."\n"
- .'* true'."\n"
- .'* false'."\n",
- 'type' => 'boolean',
- 'example' => 'True',
- ],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '1DA9C136-11BC-4C39-ADC6-B86276128072', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'QUOTA.APPLICATION.NOT.FOUND',
- 'errorMessage' => 'Quota application does not exist',
- ],
+ 'title' => 'ListProducts',
+ 'summary' => 'Queries the cloud products supported by Quota Center.',
+ 'description' => 'This operation returns the products described in [Cloud products supported by Quota Center](~~182368~~).',
+ 'changeSet' => [
+ ['createdAt' => '2022-12-22T10:33:14.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProducts'],
],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AllowRetry\\": false,\\n \\"DynamicCode\\": \\"PARAMETER.ILLEGALL\\",\\n \\"DynamicMessage\\": \\"Parameter[%s] is required.\\",\\n \\"ErrorArgs\\": [\\n \\"ApplicationId\\"\\n ],\\n \\"ErrorCode\\": \\"RAM.PERMISSION.DENIED\\",\\n \\"ErrorMsg\\": \\"You are not authorized to do this action or the API input parameter is invalid.\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Module\\": {\\n \\"ApprovalHours\\": 24,\\n \\"ReminderIntervalHours\\": 24,\\n \\"SupportReminder\\": false,\\n \\"UnsupportReminderReason\\": \\"can only be remind once within the interval\\"\\n },\\n \\"RequestId\\": \\"7ED584FB-ECBF-4A2A-969D-F54D25EFABF9\\",\\n \\"Success\\": true\\n}","type":"json"}]',
- 'title' => 'GetQuotaApplicationApproval',
- 'description' => '### [](#)Prerequisites'."\n"
- ."\n"
- .'Make sure that you have created an application for quota increase. For more information, see [CreateQuotaApplication](~~440566~~).'."\n",
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 4,\\n \\"NextToken\\": \\"4\\",\\n \\"ProductInfo\\": [\\n {\\n \\"CommonQuotaSupport\\": \\"support\\",\\n \\"Dynamic\\": true,\\n \\"FlowControlSupport\\": \\"unsupport\\",\\n \\"ProductCode\\": \\"ecs\\",\\n \\"ProductName\\": \\"Elastic Compute Service (ECS)\\",\\n \\"ProductNameEn\\": \\"Elastic Compute Service\\",\\n \\"SecondCategoryId\\": 5,\\n \\"SecondCategoryName\\": \\"Elastic Compute\\",\\n \\"SecondCategoryNameEn\\": \\"Elastic Compute\\",\\n \\"WhiteListLabelQuotaSupport\\": \\"support\\"\\n }\\n ],\\n \\"RequestId\\": \\"1DA9C136-11BC-4C39-ADC6-B86276128072\\",\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ 'extraInfo' => ' ',
],
- 'RemindQuotaApplicationApproval' => [
- 'summary' => 'Reminds the approver of a quota application to review the application. This operation is applicable to quota applications that support the approval reminding feature.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListQuotaAlarms' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasC3VMZU'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ApplicationId',
+ 'name' => 'NextToken',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The token that specifies the start point of the query.'."\n"
+ ."\n"
+ .'> If you do not specify this parameter, the query starts from the beginning.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'],
+ ],
+ [
+ 'name' => 'MaxResults',
'in' => 'formData',
+ 'schema' => ['description' => 'The maximum number of records to return.'."\n"
+ ."\n"
+ .'Valid values: 1 to 200. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '200', 'default' => '20', 'title' => '', 'example' => '20'],
+ ],
+ [
+ 'name' => 'ProductCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> To obtain the abbreviation of an Alibaba Cloud service name, see the `ProductCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ecs'],
+ ],
+ [
+ 'name' => 'AlarmName',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The name of the quota usage alert.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'q_hvnoqv alarm'],
+ ],
+ [
+ 'name' => 'QuotaActionCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The quota ID.'."\n"
+ ."\n"
+ .'> - To obtain the quota ID of an Alibaba Cloud service, see the `QuotaActionCode` parameter in [ListProductQuotas](~~440554~~).'."\n"
+ .'>'."\n"
+ .'> - If you specify this parameter, you must also specify `ProductCode`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'q_hvnoqv'],
+ ],
+ [
+ 'name' => 'QuotaDimensions',
+ 'in' => 'formData',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '申请单 id',
- 'description' => 'The quota application ID.'."\n"
- ."\n"
- .'For more information about how to obtain the ID of a quota application, see [ListQuotaApplications](~~440568~~).'."\n",
- 'type' => 'string',
+ 'description' => 'The quota dimensions.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The quota dimensions.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> - The number of key-value pairs that you can specify for the quota dimensions varies based on the Alibaba Cloud service.'."\n"
+ .'>'."\n"
+ .'> - If you set `ProductCode` to `ecs`, `ecs-spec`, `actiontrail`, or `ess`, you must specify both the key and value for the quota dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> - The number of key-value pairs that you can specify for the quota dimensions varies based on the Alibaba Cloud service.'."\n"
+ .'>'."\n"
+ .'> - If you set `ProductCode` to `ecs`, `ecs-spec`, `actiontrail`, or `ess`, you must specify both the key and value for the quota dimension.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
'required' => false,
- 'example' => '219f1ff6-6205-495f-bda7-90d2fe945e****',
+ 'maxItems' => 5,
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'PopResultDTO<String>',
- 'description' => 'The response parameters.'."\n",
+ 'description' => 'None.',
'type' => 'object',
'properties' => [
- 'AllowRetry' => [
- 'description' => 'Indicates whether retries are allowed. Valid values:'."\n"
- ."\n"
- .'* false'."\n"
- .'* true'."\n",
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'DynamicCode' => [
- 'description' => 'The dynamic error code.'."\n",
- 'type' => 'string',
- 'example' => 'PARAMETER.ILLEGALL',
- ],
- 'DynamicMessage' => [
- 'description' => 'The dynamic error message.'."\n",
- 'type' => 'string',
- 'example' => 'Parameter[%s] is required.',
- ],
- 'ErrorArgs' => [
- 'description' => 'The parameters whose values are invalid.'."\n",
+ 'MaxResults' => ['description' => 'The maximum number of records returned for the current query.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
+ 'NextToken' => ['description' => 'A pagination token. It can be used in the next request to retrieve a new page of results.'."\n"
+ ."\n"
+ .'> If this parameter is empty, all results have been returned.', 'type' => 'string', 'title' => '', 'example' => '1'],
+ 'QuotaAlarms' => [
+ 'description' => 'The details of the quota usage alerts.',
'type' => 'array',
'items' => [
- 'description' => 'The parameter whose value is invalid.'."\n",
- 'type' => 'any',
- 'example' => 'ApplicationId',
+ 'description' => 'The details of the quota usage alert.',
+ 'type' => 'object',
+ 'properties' => [
+ 'AlarmId' => ['description' => 'The alert ID.', 'type' => 'string', 'title' => '', 'example' => 'a2efa7fc-832f-47bb-8054-39e28012****'],
+ 'AlarmName' => ['description' => 'The alert name.', 'type' => 'string', 'title' => '', 'example' => 'q_hvnoqv alarm'],
+ 'CreateTime' => ['description' => 'The time when the quota usage alert was created.', 'type' => 'string', 'title' => '', 'example' => '2020-11-27T07:23:34Z'],
+ 'ExceedThreshold' => ['description' => 'Indicates whether the quota usage exceeds the alert threshold. Valid values:'."\n"
+ ."\n"
+ .'- false'."\n"
+ ."\n"
+ .'- true', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
+ 'NotifyChannels' => [
+ 'description' => 'The notification channels of the quota alert.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The notification channel of the alert. Valid values:'."\n"
+ ."\n"
+ .'- sms: text message.'."\n"
+ ."\n"
+ .'- email: email.', 'type' => 'string', 'title' => '', 'example' => 'sms'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NotifyTarget' => ['description' => 'The notification object of the alert.'."\n"
+ ."\n"
+ .'> The value can only be accountContact, which specifies the contacts of the account.', 'type' => 'string', 'title' => '', 'example' => 'accountContact'],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'title' => '', 'example' => 'config'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_hvnoqv'],
+ 'QuotaDimensions' => ['description' => 'The quota dimensions.', 'type' => 'object', 'title' => '', 'example' => '{"regionId":"cn-hangzhou"}'],
+ 'QuotaUsage' => ['description' => 'The used quota.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '73'],
+ 'QuotaValue' => ['description' => 'The quota value.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '200'],
+ 'Threshold' => ['description' => 'The numeric value of the alert threshold.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '160'],
+ 'ThresholdPercent' => ['description' => 'The percentage of the alert threshold.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '80'],
+ 'ThresholdType' => ['description' => 'The type of the quota alert. Valid values:'."\n"
+ ."\n"
+ .'- used: an alert for the used quota.'."\n"
+ ."\n"
+ .'- usable: an alert for the available quota.', 'type' => 'string', 'title' => '', 'example' => 'used'],
+ 'WebHook' => ['description' => 'The webhook URL.', 'type' => 'string', 'title' => '', 'example' => 'https://www.aliyun.com/webhook'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'ErrorCode' => [
- 'description' => 'The error code.'."\n",
- 'type' => 'string',
- 'example' => 'RAM.PERMISSION.DENIED'."\n",
- ],
- 'ErrorMsg' => [
- 'description' => 'The error message.'."\n",
- 'type' => 'string',
- 'example' => 'You are not authorized to do this action or the API input parameter is invalid.',
- ],
- 'HttpStatusCode' => [
- 'description' => 'The HTTP status code.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Module' => [
- 'description' => 'The quota application ID.'."\n",
- 'type' => 'string',
- 'example' => '219f1ff6-6205-495f-bda7-90d2fe945e****',
- ],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
- ],
- 'Success' => [
- 'description' => 'Indicates whether the request was successful. Valid values:'."\n"
- ."\n"
- .'* true'."\n"
- .'* false'."\n",
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '87F3B755-3BD2-4C76-B36A-93247002918C'],
+ 'TotalCount' => ['description' => 'The total number of quota usage alerts.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'QUOTA.APPLICATION.NOT.FOUND',
- 'errorMessage' => 'Quota application does not exist',
- ],
- [
- 'errorCode' => 'REMIND.APPLICATION.LIMIT',
- 'errorMessage' => 'Quota application do not support reminders or reminder interval exceeds the limit.',
+ 'title' => 'ListQuotaAlarms',
+ 'summary' => 'Queries quota usage alerts.',
+ 'description' => 'The quota alert feature has been upgraded. This API operation is scheduled for deprecation and queries only earlier-version quota usage alerts. To query new-version quota usage alerts, call the CloudMonitor API operation [DescribeMetricRuleList](~~2513291~~). For more information about how to manage new-version quota alerts using API operations, see [Use API operations to manage new-version quota alerts](~~2863234~~).',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaAlarms'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaAlarms',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AllowRetry\\": false,\\n \\"DynamicCode\\": \\"PARAMETER.ILLEGALL\\",\\n \\"DynamicMessage\\": \\"Parameter[%s] is required.\\",\\n \\"ErrorArgs\\": [\\n \\"ApplicationId\\"\\n ],\\n \\"ErrorCode\\": \\"RAM.PERMISSION.DENIED\\\\n\\",\\n \\"ErrorMsg\\": \\"You are not authorized to do this action or the API input parameter is invalid.\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Module\\": \\"219f1ff6-6205-495f-bda7-90d2fe945e****\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"Success\\": true\\n}","type":"json"}]',
- 'title' => 'RemindQuotaApplicationApproval',
- 'description' => '> You can call this operation to enable the approval reminder feature for quota applications that support this feature. To check whether this feature is supported, you can view the value of `SupportReminder` in the GetQuotaApplicationApproval operation. If the value of SupportReminder is `true`, this feature is supported.'."\n",
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 1,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaAlarms\\": [\\n {\\n \\"AlarmId\\": \\"a2efa7fc-832f-47bb-8054-39e28012****\\",\\n \\"AlarmName\\": \\"q_hvnoqv alarm\\",\\n \\"CreateTime\\": \\"2020-11-27T07:23:34Z\\",\\n \\"ExceedThreshold\\": false,\\n \\"NotifyChannels\\": [\\n \\"sms\\"\\n ],\\n \\"NotifyTarget\\": \\"accountContact\\",\\n \\"ProductCode\\": \\"config\\",\\n \\"QuotaActionCode\\": \\"q_hvnoqv\\",\\n \\"QuotaDimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"QuotaUsage\\": 73,\\n \\"QuotaValue\\": 200,\\n \\"Threshold\\": 160,\\n \\"ThresholdPercent\\": 80,\\n \\"ThresholdType\\": \\"used\\",\\n \\"WebHook\\": \\"https://www.aliyun.com/webhook\\"\\n }\\n ],\\n \\"RequestId\\": \\"87F3B755-3BD2-4C76-B36A-93247002918C\\",\\n \\"TotalCount\\": 2\\n}","type":"json"}]',
],
- 'GetQuotaTemplateServiceStatus' => [
- 'summary' => 'Queries the status of a quota template.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListQuotaApplicationTemplates' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4151,109 +3055,93 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREquotasC0TSBQ'],
],
'parameters' => [
[
- 'name' => 'ResourceDirectoryId',
+ 'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The ID of the resource directory.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rd-pG****',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440555~~) operation and check the value of `ProductCode` in the response.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ecs'],
],
- ],
- 'responses' => [
- 200 => [
+ [
+ 'name' => 'Dimensions',
+ 'in' => 'formData',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'The response parameters.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
- ],
- 'TemplateServiceStatus' => [
- 'description' => 'The status of the quota template.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'ResourceDirectoryId' => [
- 'description' => 'The ID of the resource directory.'."\n",
- 'type' => 'string',
- 'example' => 'rd-pG****',
- ],
- 'ServiceStatus' => [
- 'description' => 'The status of the quota template. Valid values:'."\n"
- ."\n"
- .'* \\-1: The quota template is disabled.'."\n"
- .'* 1: The quota template is enabled.'."\n"
- .'* 0: No quota template is specified.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
+ 'title' => '',
+ 'description' => 'The quota dimensions.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about the array object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The key of the dimension.'."\n"
+ ."\n"
+ .'>'."\n"
+ ."\n"
+ .'- The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
+ ."\n"
+ .'- You must specify both Key and Value for each quota dimension.', 'type' => 'string', 'required' => false, 'example' => 'regionId', 'title' => ''],
+ 'Value' => ['description' => 'The value of the dimension.'."\n"
+ ."\n"
+ .'>'."\n"
+ ."\n"
+ .'- The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
+ ."\n"
+ .'- You must specify both Key and Value for each quota dimension.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
+ 'required' => false,
+ 'maxItems' => 5,
+ 'example' => '',
],
],
- ],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'TEMPLATE.RDID.INVALID',
- 'errorMessage' => 'RdId invalid',
- ],
+ [
+ 'name' => 'QuotaActionCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The ID of the quota.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'q_security-groups'],
],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TemplateServiceStatus\\": {\\n \\"ResourceDirectoryId\\": \\"rd-pG****\\",\\n \\"ServiceStatus\\": 1\\n }\\n}","type":"json"}]',
- 'title' => 'GetQuotaTemplateServiceStatus',
- 'description' => 'By default, the value of `ServiceStatus` is `0`, which indicates that no quota template is specified. If you want to use a quota template, make sure that the quota template is enabled. In this case, the value of `ServiceStatus` is `1`.'."\n",
- ],
- 'ModifyQuotaTemplateServiceStatus' => [
- 'summary' => 'Changes the status of a quota template. By default, the quota template is not configured. If the management account of a resource directory uses a quota template for the first time, you must enable the quota template. Only the management account of a resource directory can change the status of quota templates.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'Id',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The ID of the quota item.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '1****'],
],
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC0TSBQ',
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The maximum number of records that can be returned for the query. Valid values: 1 to 100. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '30'],
],
- ],
- 'parameters' => [
[
- 'name' => 'ServiceStatus',
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The token that marks the position from which you want to start the query.'."\n"
+ ."\n"
+ .'> If you leave this parameter empty, the query starts from the beginning.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'QuotaCategory',
'in' => 'formData',
'schema' => [
- 'description' => 'The status of the quota template. Valid values:'."\n"
+ 'description' => 'The quota type. Valid values:'."\n"
."\n"
- .'* \\-1: The quota template is disabled.'."\n"
- .'* 1: The quota template is enabled.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
+ .'- CommonQuota: general quota.'."\n"
+ ."\n"
+ .'- WhiteListLabel: whitelist quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit.',
+ 'type' => 'string',
+ 'enum' => ['CommonQuota', 'WhiteListLabel', 'FlowControl'],
+ 'required' => false,
+ 'example' => 'CommonQuota',
+ 'title' => '',
],
],
],
@@ -4261,511 +3149,589 @@
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => 'The response parameters.'."\n",
+ 'description' => 'None.',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
- ],
- 'TemplateServiceStatus' => [
- 'description' => 'The status of the quota template.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'ResourceDirectoryId' => [
- 'description' => 'The ID of the resource directory.'."\n",
- 'type' => 'string',
- 'example' => 'rd-pG****',
- ],
- 'ServiceStatus' => [
- 'description' => 'The status of the quota template. Valid values:'."\n"
+ 'MaxResults' => ['description' => 'The maximum number of records returned for the query.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'NextToken' => ['description' => 'The token that marks the position at which the query ends.'."\n"
+ ."\n"
+ .'> An empty value indicates that all data is returned.', 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'QuotaApplicationTemplates' => [
+ 'description' => 'The information about quota templates.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about a quota template.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ApplicableRange' => [
+ 'description' => 'None.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The range of the quota value that can be requested for the quota item.'."\n"
+ ."\n"
+ .'> This parameter is deprecated. For more information about the range, see the value of `SupportedRange` in the response of the [GetProductQuota](~~GetProductQuota~~) or [ListProductQuotas](~~ListProductQuotas~~) operation.'."\n"
+ ."\n"
+ .'- If the value of `ApplicableType` is `continuous` and the value of this parameter is `[802,1000]`, the range contains all integers from 802 to 1000.'."\n"
+ ."\n"
+ .'- If the value of `ApplicableType` is `discontinuous` and the value of this parameter is `[10,20,50,100]`, the range contains only 10,20,50, and 100.', 'type' => 'number', 'format' => 'float', 'example' => '[802,1000]', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ApplicableType' => ['description' => 'The type of the adjustable value. Valid values:'."\n"
+ ."\n"
+ .'- continuous'."\n"
+ ."\n"
+ .'- discontinuous', 'type' => 'string', 'example' => 'continuous', 'title' => ''],
+ 'DesireValue' => ['description' => 'The requested value of the quota.', 'type' => 'number', 'format' => 'float', 'example' => '802', 'title' => ''],
+ 'Dimensions' => ['description' => 'The quota dimensions.'."\n"
+ ."\n"
+ .'Format: {"regionId":"Region"}.', 'type' => 'object', 'example' => '{"regionId":"cn-hangzhou"}', 'title' => ''],
+ 'EffectiveTime' => ['description' => 'The start time of the validity period of the quota. The value is displayed in UTC.', 'type' => 'string', 'example' => '2022-09-28T06:07:00Z', 'title' => ''],
+ 'EnvLanguage' => ['description' => 'The language of the quota alert notification. Valid values:'."\n"
+ ."\n"
+ .'- zh: Chinese'."\n"
+ ."\n"
+ .'- en: English', 'type' => 'string', 'example' => 'zh', 'title' => ''],
+ 'ExpireTime' => ['description' => 'The end time of the validity period of the quota. The value is displayed in UTC.', 'type' => 'string', 'example' => '2022-09-29T06:07:00Z', 'title' => ''],
+ 'Id' => ['description' => 'The ID of the quota template.', 'type' => 'string', 'example' => '1****', 'title' => ''],
+ 'NoticeType' => ['description' => 'Indicates whether Quota Center sends a notification about the application result. Valid values:'."\n"
+ ."\n"
+ .'- 0: no'."\n"
+ ."\n"
+ .'- 3: yes', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'Period' => [
+ 'description' => 'The calculation cycle of the quota.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PeriodUnit' => ['description' => 'The unit of the calculation cycle. Valid values:'."\n"
+ ."\n"
+ .'- second'."\n"
+ ."\n"
+ .'- minute'."\n"
+ ."\n"
+ .'- hour'."\n"
+ ."\n"
+ .'- day'."\n"
+ ."\n"
+ .'- week', 'type' => 'string', 'example' => 'day', 'title' => ''],
+ 'PeriodValue' => ['description' => 'The value of the calculation cycle.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
+ 'QuotaActionCode' => ['description' => 'The ID of the quota.', 'type' => 'string', 'example' => 'q_security-groups', 'title' => ''],
+ 'QuotaCategory' => ['description' => 'The type of the quota. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota: general quota'."\n"
."\n"
- .'* \\-1: The quota template is disabled.'."\n"
- .'* 1: The quota template is enabled.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
+ .'- FlowControl: API rate limit'."\n"
+ ."\n"
+ .'- WhiteListLabel: privilege', 'type' => 'string', 'example' => 'CommonQuota', 'title' => ''],
+ 'QuotaDescription' => ['description' => 'The description of the quota.', 'type' => 'string', 'example' => 'The maximum number of security groups that can be created by the current account.'."\n", 'title' => ''],
+ 'QuotaName' => ['description' => 'The name of the quota.', 'type' => 'string', 'example' => 'Maximum Number of Security Groups'."\n", 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
+ 'TotalCount' => ['description' => 'The total number of records returned for the query.', 'type' => 'integer', 'format' => 'int32', 'example' => '40', 'title' => ''],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'TEMPLATE.NOT.RD.MA',
- 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.',
+ ['errorCode' => 'TEMPLATE.ITEM.NOT.FOUND', 'errorMessage' => 'Quota template item does not exist.', 'description' => 'The quota template item does not exist.'],
+ ],
+ ],
+ 'title' => 'ListQuotaApplicationTemplates',
+ 'summary' => 'Queries quota templates by using the management account of a resource directory.',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-19T10:54:57.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-03-08T11:16:00.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-12-22T10:33:14.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
+ ['createdAt' => '2022-11-15T09:57:01.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-11-15T08:59:09.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-08-31T10:32:59.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaApplicationTemplates'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaApplicationTemplates',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TemplateServiceStatus\\": {\\n \\"ResourceDirectoryId\\": \\"rd-pG****\\",\\n \\"ServiceStatus\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"<ModifyQuotaTemplateServiceStatusResponse>\\n <RequestId>D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053</RequestId>\\n <TemplateServiceStatus>\\n <ServiceStatus>1</ServiceStatus>\\n <ResourceDirectoryId>rd-pG****</ResourceDirectoryId>\\n </TemplateServiceStatus>\\n</ModifyQuotaTemplateServiceStatusResponse>","errorExample":""}]',
- 'title' => 'ModifyQuotaTemplateServiceStatus',
- 'description' => '### [](#)Prerequisites'."\n"
- ."\n"
- .'A resource directory is enabled. For more information, see [EnableResourceDirectory](~~604185~~).'."\n"
- ."\n"
- .'### [](#)Usage notes'."\n"
- ."\n"
- .'If the `ServiceStatus` parameter is set to `0` or `-1`, you can call this operation to set the parameter to `1`. Then, you can call the [CreateTemplateQuotaItem](~~450615~~) operation to create a quota template.'."\n",
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 30,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaApplicationTemplates\\": [\\n {\\n \\"ApplicableRange\\": [\\n 0\\n ],\\n \\"ApplicableType\\": \\"continuous\\",\\n \\"DesireValue\\": 802,\\n \\"Dimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2022-09-28T06:07:00Z\\",\\n \\"EnvLanguage\\": \\"zh\\",\\n \\"ExpireTime\\": \\"2022-09-29T06:07:00Z\\",\\n \\"Id\\": \\"1****\\",\\n \\"NoticeType\\": 0,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"day\\",\\n \\"PeriodValue\\": 1\\n },\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be created by the current account.\\\\n\\",\\n \\"QuotaName\\": \\"Maximum Number of Security Groups\\\\n\\"\\n }\\n ],\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TotalCount\\": 40\\n}","type":"json"}]',
],
- 'CreateTemplateQuotaItem' => [
- 'summary' => 'Creates a quota template by using the management account of a resource directory. After you create a quota template, if a member is added to the resource directory, the quota template automatically submits a quota increase request for the member. The quota values for existing members remain unchanged. You can use a quota template to apply for increases on multiple quotas at the same time. This automated approach improves the efficiency of quota management across your organization. Only the management account of a resource directory can create quota templates.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListQuotaApplications' => [
+ 'summary' => 'Queries a list of applications for quota increases.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasVP27J0',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotas29QQRO'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
+ 'name' => 'NextToken',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The token that specifies the start of the query. Leave this parameter empty to start from the beginning.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The maximum number of records to return for the query.'."\n"
+ ."\n"
+ .'Valid values: 1 to 200. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '200', 'default' => '20', 'title' => '', 'example' => '1'],
+ ],
+ [
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'title' => '云服务名称缩写。',
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440555~~) operation and check the value of `ProductCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'csk'],
],
[
'name' => 'QuotaActionCode',
'in' => 'formData',
- 'schema' => [
- 'title' => '配额ID。',
- 'description' => 'The quota ID.'."\n"
- ."\n"
- .'> To obtain the quota ID of an Alibaba Cloud service, call the [ListProductQuotas](~~440554~~) operation and check the value of `QuotaActionCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'q_security-groups',
- ],
+ 'schema' => ['description' => 'The quota ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'q_i5uzm3'],
],
[
- 'name' => 'DesireValue',
+ 'name' => 'Status',
'in' => 'formData',
'schema' => [
- 'title' => '配额申请的值。',
- 'description' => 'The requested value of the quota.'."\n"
+ 'description' => 'The approval status of the quota increase application. Valid values:'."\n"
."\n"
- .'> '."\n"
+ .'- Disagree: The application is denied.'."\n"
."\n"
- .'* You can specify DesireValue based on the values of `TotalUsage` and `ApplicableRange` in the response to the [ListProductQuotas](~~440554~~) operation.'."\n"
+ .'- Agree: The application is approved.'."\n"
."\n"
- .'* Applications are reviewed by the technical support team for each cloud service. To increase the success rate of your application, specify a reasonable quota value and a detailed reason.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'required' => true,
- 'example' => '804',
+ .'- Process: The application is in review.'."\n"
+ ."\n"
+ .'- Cancel: The application is closed.',
+ 'type' => 'string',
+ 'required' => false,
+ 'enum' => ['Agree', 'Disagree', 'Process', 'Cancel'],
+ 'title' => '',
+ 'enumValueTitles' => [],
+ 'example' => 'Agree',
],
],
[
- 'name' => 'NoticeType',
+ 'name' => 'KeyWord',
'in' => 'formData',
- 'schema' => [
- 'title' => '配额申请结果是否发送通知',
- 'description' => 'Specifies whether to send a notification about the application result. Valid values:'."\n"
- ."\n"
- .'* 0 (default value): no'."\n"
- .'* 3: yes'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => 'The keyword used to search for the quota increase application.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'Cluster'],
],
[
'name' => 'Dimensions',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
- 'title' => '配额维度。',
- 'description' => 'The quota dimensions.'."\n",
+ 'description' => 'The quota dimensions. A quota dimension is an attribute of a quota. The combination of Dimensions and QuotaActionCode uniquely identifies a quota.'."\n"
+ ."\n"
+ .'> This parameter is required for some Alibaba Cloud services. To query the supported quota dimensions, call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation. The `Requisite` parameter in the response indicates whether a dimension is required.',
'type' => 'array',
'items' => [
- 'description' => 'The quota dimension.'."\n",
+ 'description' => 'The quota dimension.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
- ."\n"
- .'* This parameter is required if you set the `ProductCode` parameter to `ecs`, `ecs-spec`, `actiontrail`, or `ess`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
- ."\n"
- .'* This parameter is required if you set the `ProductCode` parameter to `ecs`, `ecs-spec`, `actiontrail`, or `ess`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> Specify `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value of N depends on the number of dimensions that the Alibaba Cloud service supports. To query the supported dimensions, call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation. The value of N is the number of elements in the returned array.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'regionId'],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> Specify `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value of N depends on the number of dimensions that the Alibaba Cloud service supports. To query the supported dimensions, call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation. The value of N is the number of elements in the returned array.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
'maxItems' => 5,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'EnvLanguage',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The language of the quota alert notification. Valid values:'."\n"
- ."\n"
- .'* zh (default value): Chinese'."\n"
- .'* en: English'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh',
- ],
- ],
- [
- 'name' => 'EffectiveTime',
+ 'name' => 'QuotaCategory',
'in' => 'formData',
'schema' => [
- 'description' => 'The start time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel.'."\n"
+ 'description' => 'The category of the quota. Valid values:'."\n"
."\n"
- .'> If you leave this parameter empty, the quota takes effect immediately.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '2021-01-19T09:25:56Z',
- ],
- ],
- [
- 'name' => 'ExpireTime',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The end time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel.'."\n"
+ .'- CommonQuota: general quota.'."\n"
."\n"
- .'> If you leave this parameter empty, no end time is specified.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '2021-01-20T09:25:56Z',
- ],
- ],
- [
- 'name' => 'QuotaCategory',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota type. Valid values:'."\n"
+ .'- FlowControl: API rate limit.'."\n"
."\n"
- .'* CommonQuota: general quota'."\n"
- .'* WhiteListLabel: privilege'."\n"
- .'* FlowControl: API rate limit'."\n",
+ .'- WhiteListLabel: privilege quota.',
'type' => 'string',
'required' => false,
+ 'enum' => ['CommonQuota', 'FlowControl', 'WhiteListLabel'],
+ 'title' => '',
+ 'enumValueTitles' => [],
'example' => 'CommonQuota',
- 'enum' => [
- 'CommonQuota',
- 'WhiteListLabel',
- 'FlowControl',
- ],
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'None.'."\n",
+ 'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
- 'Id' => [
- 'description' => 'The ID of the quota template.'."\n",
- 'type' => 'string',
- 'example' => '1****',
- ],
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
+ 'MaxResults' => ['description' => 'The maximum number of records returned for the query.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
+ 'NextToken' => ['description' => 'The token that marks the position of the returned data. An empty value indicates that all data is returned.', 'type' => 'string', 'title' => '', 'example' => '1'],
+ 'QuotaApplications' => [
+ 'description' => 'The details of the quota increase applications.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the quota increase application.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ApplicationId' => ['description' => 'The ID of the quota increase application.', 'type' => 'string', 'title' => '', 'example' => 'b926571d-cc09-4711-b547-58a615f0****'],
+ 'ApplyTime' => ['description' => 'The time when the application was submitted.', 'type' => 'string', 'title' => '', 'example' => '2021-01-15T09:13:53Z'],
+ 'ApproveValue' => ['description' => 'The approved quota value.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '101'],
+ 'AuditReason' => ['description' => 'The approval comment for the application.', 'type' => 'string', 'title' => '', 'example' => 'Agree'],
+ 'Comment' => ['description' => 'The remarks of the application.', 'type' => 'string', 'title' => '', 'example' => 'test'],
+ 'DesireValue' => ['description' => 'The requested quota value.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '101'],
+ 'Dimension' => ['description' => 'The dimensions of the quota.', 'type' => 'object', 'title' => '', 'example' => '{"regionId":"cn-hangzhou"}'],
+ 'EffectiveTime' => ['description' => 'The time when the new quota takes effect.', 'type' => 'string', 'title' => '', 'example' => '2021-01-15T11:46:25Z'],
+ 'ExpireTime' => ['description' => 'The time when the new quota expires.', 'type' => 'string', 'title' => '', 'example' => '2021-01-17T11:46:25Z'],
+ 'NoticeType' => ['description' => 'Indicates whether a notification is sent for the application result. Valid values:'."\n"
+ ."\n"
+ .'- 0: No.'."\n"
+ ."\n"
+ .'- 3: Yes.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '3'],
+ 'Period' => [
+ 'description' => 'The calculation period of the quota.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PeriodUnit' => ['description' => 'The unit of the calculation period. Valid values:'."\n"
+ ."\n"
+ .'- second'."\n"
+ ."\n"
+ .'- minute'."\n"
+ ."\n"
+ .'- hour'."\n"
+ ."\n"
+ .'- day'."\n"
+ ."\n"
+ .'- week', 'type' => 'string', 'title' => '', 'example' => 'second'],
+ 'PeriodValue' => ['description' => 'The value of the calculation period.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'title' => '', 'example' => 'csk'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_i5uzm3'],
+ 'QuotaArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.', 'type' => 'string', 'title' => '', 'example' => 'acs:quotas:*:120886317861****:quota/csk/q_i5uzm3'],
+ 'QuotaCategory' => ['description' => 'The category of the quota. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota (default): general quota.'."\n"
+ ."\n"
+ .'- WhiteListLabel: privilege quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit.', 'type' => 'string', 'title' => '', 'example' => 'CommonQuota'],
+ 'QuotaDescription' => ['description' => 'The description of the quota.', 'type' => 'string', 'title' => '', 'example' => 'The maximum number of nodes in a cluster.'],
+ 'QuotaName' => ['description' => 'The name of the quota.', 'type' => 'string', 'title' => '', 'example' => 'Maximum Number of Nodes'],
+ 'QuotaUnit' => ['description' => 'The unit of the quota.', 'type' => 'string', 'title' => '', 'example' => 'Node'],
+ 'Reason' => ['description' => 'The reason for the application.', 'type' => 'string', 'title' => '', 'example' => 'Business expansion'],
+ 'Status' => ['description' => 'The approval status of the application. Valid values:'."\n"
+ ."\n"
+ .'- Disagree: The application is denied.'."\n"
+ ."\n"
+ .'- Agree: The application is approved.'."\n"
+ ."\n"
+ .'- Process: The application is in review.'."\n"
+ ."\n"
+ .'- Cancel: The application is closed.', 'type' => 'string', 'title' => '', 'example' => 'Agree'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '730925FB-0BD0-40AC-AF3A-A6C6E9716879'],
+ 'TotalCount' => ['description' => 'The total number of applications.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'TEMPLATE.NOT.RD.MA',
- 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.',
- ],
- [
- 'errorCode' => 'QUOTA.DESIREVALUE.ILLEGAL',
- 'errorMessage' => 'DesirValue less than or equal to the current quota value, or that is not within the adjustable range.',
- ],
- [
- 'errorCode' => 'QUOTA.NOT.ADJUSTABLE',
- 'errorMessage' => 'Quota is not adjustable',
+ ['errorCode' => 'InvalidStatus', 'errorMessage' => 'Invalid Status', 'description' => 'The specified Status parameter is invalid.'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 1,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaApplications\\": [\\n {\\n \\"ApplicationId\\": \\"b926571d-cc09-4711-b547-58a615f0****\\",\\n \\"ApplyTime\\": \\"2021-01-15T09:13:53Z\\",\\n \\"ApproveValue\\": 101,\\n \\"AuditReason\\": \\"Agree\\",\\n \\"Comment\\": \\"test\\",\\n \\"DesireValue\\": 101,\\n \\"Dimension\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2021-01-15T11:46:25Z\\",\\n \\"ExpireTime\\": \\"2021-01-17T11:46:25Z\\",\\n \\"NoticeType\\": 3,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"second\\",\\n \\"PeriodValue\\": 1\\n },\\n \\"ProductCode\\": \\"csk\\",\\n \\"QuotaActionCode\\": \\"q_i5uzm3\\",\\n \\"QuotaArn\\": \\"acs:quotas:*:120886317861****:quota/csk/q_i5uzm3\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of nodes in a cluster.\\",\\n \\"QuotaName\\": \\"Maximum Number of Nodes\\",\\n \\"QuotaUnit\\": \\"Node\\",\\n \\"Reason\\": \\"Business expansion\\",\\n \\"Status\\": \\"Agree\\"\\n }\\n ],\\n \\"RequestId\\": \\"730925FB-0BD0-40AC-AF3A-A6C6E9716879\\",\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ 'title' => 'ListQuotaApplications',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [
+ ['createdAt' => '2024-08-30T06:22:29.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-01-16T11:20:50.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-01-12T02:41:38.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-09-22T07:20:05.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-12-22T10:33:13.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-08-23T09:52:11.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '6', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaApplications'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaApplications',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Id\\": \\"1****\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateTemplateQuotaItemResponse>\\n <RequestId>D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053</RequestId>\\n <Id>1****</Id>\\n</CreateTemplateQuotaItemResponse>","errorExample":""}]',
- 'title' => 'CreateTemplateQuotaItem',
- 'description' => '### [](#)Usage notes'."\n"
- ."\n"
- .'You must set the `ServiceStatus` parameter to `1`. This ensures that the quota template is enabled.'."\n"
- ."\n"
- .'You can call the [GetQuotaTemplateServiceStatus](~~450407~~) operation to query the status of a quota template. If the value of the `ServiceStatus` parameter in the response is `0` or `-1`, you must call the [ModifyQuotaTemplateServiceStatus](~~450406~~) operation to modify the value to `1`. A value of 0 indicates that the quota template is not configured. A value of -1 indicates that the quota template is disabled. A value of 1 indicates that the quota template is enabled.'."\n"
- ."\n"
- .'### [](#)'."\n"
- ."\n"
- .'After you create a quota template, you can call the [ListQuotaApplicationsForTemplate](~~2584864~~) operation to view the approval result. If the value of the `Status` parameter in the response is `Agree`, the quota template is approved.'."\n",
],
- 'ModifyTemplateQuotaItem' => [
- 'summary' => 'Modifies a quota template by using the management account of a resource directory. After you modify a quota template, the modification takes effect only for the members that are added to the resource directory by the management account. The quota values for existing members remain unchanged. Only the management account of a resource directory can be used to modify quota templates.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListQuotaApplicationsDetailForTemplate' => [
+ 'summary' => 'Queries the details of quota increase applications for a member in a resource directory.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC0TSBQ',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotas29QQRO'],
],
'parameters' => [
[
- 'name' => 'Id',
+ 'name' => 'AliyunUid',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1****',
- ],
+ 'schema' => ['description' => 'The Alibaba Cloud account for which the quota increase is requested.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '135048337611****'],
],
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the abbreviation of an Alibaba Cloud service name, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ecs'],
],
[
'name' => 'QuotaActionCode',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'q_security-groups',
- ],
- ],
- [
- 'name' => 'Dimensions',
- 'in' => 'formData',
- 'style' => 'repeatList',
- 'schema' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- 'maxItems' => 5,
- ],
+ 'schema' => ['description' => 'The quota ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ecs.c5.large'],
],
[
- 'name' => 'DesireValue',
+ 'name' => 'Status',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'example' => '804',
- ],
+ 'schema' => ['title' => 'Agree, Disagree, Process, Cancel, ModifyQuotaProcess', 'description' => 'The approval status of the quota increase request. Valid values:'."\n"
+ ."\n"
+ .'- Disagree: The request is rejected.'."\n"
+ ."\n"
+ .'- Agree: The request is approved.'."\n"
+ ."\n"
+ .'- Process: The request is in review.'."\n"
+ ."\n"
+ .'- Cancel: The request is closed.', 'type' => 'string', 'required' => false, 'example' => 'Agree'],
],
[
- 'name' => 'NoticeType',
+ 'name' => 'BatchQuotaApplicationId',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => 'The ID of the quota application batch.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'."\n"],
],
[
- 'name' => 'EnvLanguage',
+ 'name' => 'QuotaCategory',
'in' => 'formData',
'schema' => [
- 'description' => '',
+ 'title' => 'CommonQuota, FlowControl, WhiteListLabel',
+ 'description' => 'The quota type. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota: General quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit quota.'."\n"
+ ."\n"
+ .'- WhiteListLabel: Privilege quota.',
'type' => 'string',
'required' => false,
- 'example' => 'zh',
+ 'enum' => ['CommonQuota', 'FlowControl', 'WhiteListLabel'],
+ 'enumValueTitles' => [],
+ 'example' => 'CommonQuota',
],
],
[
- 'name' => 'EffectiveTime',
+ 'name' => 'NextToken',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2021-01-19T09:25:56Z',
- ],
+ 'schema' => ['description' => 'The token that marks the position from which the query starts.'."\n"
+ ."\n"
+ .'> If you do not specify this parameter, the query starts from the beginning.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '4'],
],
[
- 'name' => 'ExpireTime',
+ 'name' => 'MaxResults',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2021-01-20T09:25:56Z',
- ],
- ],
- [
- 'name' => 'QuotaCategory',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CommonQuota',
- 'enum' => [
- 'WhiteListLabel',
- 'CommonQuota',
- 'FlowControl',
- ],
- ],
+ 'schema' => ['description' => 'The maximum number of records to return for the current query.'."\n"
+ ."\n"
+ .'Valid values: 1 to 100. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '30'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => '',
+ 'title' => 'ResultList<QuotaBatchApplicationVo>',
+ 'description' => 'A list of quota application details.',
'type' => 'object',
'properties' => [
- 'Id' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '1****',
- ],
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
+ 'MaxResults' => ['description' => 'The maximum number of records returned for the current query.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '30'],
+ 'NextToken' => ['description' => 'The token that marks the position from which the next query starts.', 'type' => 'string', 'title' => '', 'example' => '1'],
+ 'QuotaApplications' => [
+ 'description' => 'A list of quota application details.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A list of quota application details.',
+ 'type' => 'object',
+ 'properties' => [
+ 'AliyunUid' => ['description' => 'The Alibaba Cloud account.', 'type' => 'string', 'title' => '', 'example' => '175376458581****'],
+ 'ApplicationId' => ['description' => 'The ID of the quota increase request.', 'type' => 'string', 'title' => '', 'example' => 'b926571d-cc09-4711-b547-58a615f0****'],
+ 'ApplyTime' => ['description' => 'The UTC time when the quota increase request was submitted.', 'type' => 'string', 'title' => '', 'example' => '2021-01-15T09:13:53Z'],
+ 'ApproveValue' => ['description' => 'The approved quota value.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '101'],
+ 'AuditReason' => ['description' => 'The reason for the approval.', 'type' => 'string', 'title' => '', 'example' => 'Agree'],
+ 'BatchQuotaApplicationId' => ['description' => 'The ID of the quota application batch.', 'type' => 'string', 'title' => '', 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'],
+ 'DesireValue' => ['description' => 'The requested quota value.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '60'],
+ 'EffectiveTime' => ['description' => 'The UTC time when the new quota value takes effect.', 'type' => 'string', 'title' => '', 'example' => '2021-01-15T11:46:25Z'],
+ 'EnvLanguage' => ['description' => 'The language of the alert notification. Valid values:'."\n"
+ ."\n"
+ .'- zh: Chinese.'."\n"
+ ."\n"
+ .'- en: English.', 'type' => 'string', 'title' => '', 'example' => 'zh'],
+ 'ExpireTime' => ['description' => 'The UTC time when the new quota value expires.', 'type' => 'string', 'title' => '', 'example' => '2021-01-17T11:46:25Z'],
+ 'NoticeType' => ['description' => 'Indicates whether a notification is sent for the quota increase request. Valid values:'."\n"
+ ."\n"
+ .'- 0: No.'."\n"
+ ."\n"
+ .'- 3: Yes.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '3'],
+ 'Period' => [
+ 'description' => 'The calculation cycle of the quota.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PeriodUnit' => ['title' => '', 'description' => 'The unit of the calculation cycle.', 'type' => 'string', 'example' => 'second'],
+ 'PeriodValue' => ['title' => '', 'description' => 'The value of the calculation cycle.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'title' => '', 'example' => 'ecs'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'ecs.n1.large'],
+ 'QuotaArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.', 'type' => 'string', 'title' => '', 'example' => 'acs:quotas:*:120886317861****:quota/csk/q_i5uzm3'],
+ 'QuotaCategory' => ['description' => 'The quota type. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota (default): General quota.'."\n"
+ ."\n"
+ .'- WhiteListLabel: Privilege quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit quota.', 'type' => 'string', 'title' => '', 'example' => 'CommonQuota'],
+ 'QuotaDescription' => ['description' => 'The description of the quota.', 'type' => 'string', 'title' => '', 'example' => 'The maximum number of nodes in a cluster'],
+ 'QuotaDimension' => [
+ 'description' => 'The quota dimensions.',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'The quota dimensions.'."\n"
+ ."\n"
+ .'Format: `{"regionId":"cn-hangzhou"}`.', 'title' => '', 'example' => '{"regionId":"cn-hangzhou"}'],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'QuotaName' => ['description' => 'The name of the quota.', 'type' => 'string', 'title' => '', 'example' => 'Maximum Number of Nodes'],
+ 'QuotaUnit' => ['description' => 'The unit of the quota.', 'type' => 'string', 'title' => '', 'example' => 'GiB'],
+ 'Reason' => ['description' => 'The reason for the quota increase request.', 'type' => 'string', 'title' => '', 'example' => 'Maximum Number of Nodes'],
+ 'Status' => ['description' => 'The approval status of the quota increase request. Valid values:'."\n"
+ ."\n"
+ .'- Disagree: The request is rejected.'."\n"
+ ."\n"
+ .'- Agree: The request is approved.'."\n"
+ ."\n"
+ .'- Process: The request is in review.'."\n"
+ ."\n"
+ .'- Cancel: The request is closed.', 'type' => 'string', 'title' => '', 'example' => 'Agree'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
+ 'TotalCount' => ['description' => 'The total number of records returned for the request.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '9'],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'TEMPLATE.NOT.FOUND',
- 'errorMessage' => 'Quota template does not exist.',
- ],
- [
- 'errorCode' => 'UNSUPPORT.UPDATE.PRODUCTCODE.QUOTACODE',
- 'errorMessage' => 'Modification of product name, quota code and dimension data is not supported',
- ],
- [
- 'errorCode' => 'RAM.PERMISSION.DENIED',
- 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.',
- ],
- [
- 'errorCode' => 'TEMPLATE.NOT.RD.MA',
- 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.',
- ],
- [
- 'errorCode' => 'QUOTA.DESIREVALUE.ILLEGAL',
- 'errorMessage' => 'DesirValue less than or equal to the current quota value, or that is not within the adjustable range.',
- ],
- [
- 'errorCode' => 'UNSUPPORT.UPDATE.DIMENSIONS',
- 'errorMessage' => 'The Quota dimension don\'t support be modified when you update quota template.',
- ],
- [
- 'errorCode' => 'TEMPLATE.ITEM.NOT.FOUND',
- 'errorMessage' => 'Quota template item does not exist.',
- ],
+ ['errorCode' => 'TEMPLATE.NOT.RD.MA', 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.', 'description' => 'The current account is not the management account of the resource directory and does not have the permissions to manage the quota template.'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Id\\": \\"1****\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\"\\n}","errorExample":""},{"type":"xml","example":"<ModifyTemplateQuotaItemResponse>\\n <RequestId>D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053</RequestId>\\n <Id>1****</Id>\\n</ModifyTemplateQuotaItemResponse>","errorExample":""}]',
- 'title' => 'ModifyTemplateQuotaItem',
- ],
- 'ListQuotaApplicationTemplates' => [
- 'summary' => 'Queries quota templates by using the management account of a resource directory.',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 30,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaApplications\\": [\\n {\\n \\"AliyunUid\\": \\"175376458581****\\",\\n \\"ApplicationId\\": \\"b926571d-cc09-4711-b547-58a615f0****\\",\\n \\"ApplyTime\\": \\"2021-01-15T09:13:53Z\\",\\n \\"ApproveValue\\": 101,\\n \\"AuditReason\\": \\"Agree\\",\\n \\"BatchQuotaApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"DesireValue\\": 60,\\n \\"EffectiveTime\\": \\"2021-01-15T11:46:25Z\\",\\n \\"EnvLanguage\\": \\"zh\\",\\n \\"ExpireTime\\": \\"2021-01-17T11:46:25Z\\",\\n \\"NoticeType\\": 3,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"second\\",\\n \\"PeriodValue\\": 1\\n },\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"ecs.n1.large\\",\\n \\"QuotaArn\\": \\"acs:quotas:*:120886317861****:quota/csk/q_i5uzm3\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of nodes in a cluster\\",\\n \\"QuotaDimension\\": {\\n \\"key\\": \\"{\\\\\\"regionId\\\\\\":\\\\\\"cn-hangzhou\\\\\\"}\\"\\n },\\n \\"QuotaName\\": \\"Maximum Number of Nodes\\",\\n \\"QuotaUnit\\": \\"GiB\\",\\n \\"Reason\\": \\"Maximum Number of Nodes\\",\\n \\"Status\\": \\"Agree\\"\\n }\\n ],\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TotalCount\\": 9\\n}","type":"json"}]',
+ 'title' => 'ListQuotaApplicationsDetailForTemplate',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-20T12:26:48.000Z', 'description' => 'Error codes changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaApplicationsDetailForTemplate'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaApplicationsDetailForTemplate',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ListQuotaApplicationsForTemplate' => [
+ 'summary' => 'Queries the history of batch requests for member quotas submitted using a quota template.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4777,319 +3743,187 @@
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC0TSBQ',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotas29QQRO'],
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'title' => '产品名称',
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440555~~) operation and check the value of `ProductCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the abbreviation of an Alibaba Cloud service, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ecs-spec'],
],
[
- 'name' => 'Dimensions',
+ 'name' => 'QuotaActionCode',
'in' => 'formData',
- 'style' => 'repeatList',
- 'schema' => [
- 'title' => '配额维度',
- 'description' => 'The quota dimensions.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The information about the array object.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
- ."\n"
- .'* You must specify both Key and Value for each quota dimension.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
- ."\n"
- .'* You must specify both Key and Value for each quota dimension.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- 'maxItems' => 5,
- ],
+ 'schema' => ['description' => 'The quota ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ecs.g5.2xlarge'],
],
[
- 'name' => 'QuotaActionCode',
+ 'name' => 'BatchQuotaApplicationId',
'in' => 'formData',
- 'schema' => [
- 'title' => '配额操作code',
- 'description' => 'The ID of the quota.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'q_security-groups',
- ],
+ 'schema' => ['description' => 'The ID of the batch quota application.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'],
],
[
- 'name' => 'Id',
+ 'name' => 'QuotaCategory',
'in' => 'formData',
'schema' => [
- 'title' => '模版配额项ID',
- 'description' => 'The ID of the quota item.'."\n",
+ 'title' => 'CommonQuota, FlowControl, WhiteListLabel',
+ 'description' => 'The type of the quota. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota: general quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit.'."\n"
+ ."\n"
+ .'- WhiteListLabel: privilege.',
'type' => 'string',
'required' => false,
- 'example' => '1****',
+ 'enum' => ['CommonQuota', 'FlowControl', 'WhiteListLabel'],
+ 'enumValueTitles' => [],
+ 'example' => 'CommonQuota',
],
],
[
+ 'name' => 'NextToken',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The token that marks the start of the data to read.'."\n"
+ ."\n"
+ .'> If you do not set this parameter, the query starts from the beginning.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '4'],
+ ],
+ [
'name' => 'MaxResults',
'in' => 'formData',
- 'schema' => [
- 'title' => '最大记录条数',
- 'description' => 'The maximum number of records that can be returned for the query. Valid values: 1 to 100. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The maximum number of results to return for a single request.'."\n"
+ ."\n"
+ .'Valid values: 1 to 100. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '30'],
],
[
- 'name' => 'NextToken',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query.'."\n"
- ."\n"
- .'> If you leave this parameter empty, the query starts from the beginning.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'name' => 'ApplyStartTime',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The beginning of the time range to query. The value is in UTC.'."\n"
+ ."\n"
+ .'> The interval between `ApplyStartTime` and `ApplyEndTime` must be 7 days or less. If you do not set these two parameters, quota applications submitted within the last 7 days are queried.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '2023-05-22T16:00:00Z'."\n"],
],
[
- 'name' => 'QuotaCategory',
+ 'name' => 'ApplyEndTime',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota type. Valid values:'."\n"
- ."\n"
- .'* CommonQuota: general quota.'."\n"
- .'* WhiteListLabel: whitelist quota.'."\n"
- .'* FlowControl: API rate limit.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CommonQuota',
- 'enum' => [
- 'CommonQuota',
- 'WhiteListLabel',
- 'FlowControl',
- ],
- ],
+ 'schema' => ['description' => 'The end of the time range to query. The value is in UTC.'."\n"
+ ."\n"
+ .'> The interval between `ApplyStartTime` and `ApplyEndTime` must be 7 days or less. If you do not set these two parameters, quota applications submitted within the last 7 days are queried.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '2023-05-22T16:00:00Z'."\n"],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'None.'."\n",
+ 'title' => 'PopResultDTO<ResultList<QuotaBatchApplicationVo>>',
+ 'description' => 'None.',
'type' => 'object',
'properties' => [
- 'MaxResults' => [
- 'description' => 'The maximum number of records returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position at which the query ends.'."\n"
- ."\n"
- .'> An empty value indicates that all data is returned.'."\n",
- 'type' => 'string',
- 'example' => '1',
- ],
- 'QuotaApplicationTemplates' => [
- 'description' => 'The information about quota templates.'."\n",
+ 'MaxResults' => ['description' => 'The maximum number of records returned for the query.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '30'],
+ 'NextToken' => ['description' => 'The token that marks the start of the data to read.', 'type' => 'string', 'title' => '', 'example' => '1'],
+ 'QuotaBatchApplications' => [
+ 'description' => 'The list of historical quota applications.',
'type' => 'array',
'items' => [
- 'description' => 'The information about a quota template.'."\n",
+ 'description' => 'The list of historical quota applications.',
'type' => 'object',
'properties' => [
- 'ApplicableRange' => [
- 'description' => 'None.'."\n",
+ 'AliyunUids' => [
+ 'description' => 'The list of Alibaba Cloud accounts of the members in a resource directory for which the quota applications are submitted.',
'type' => 'array',
- 'items' => [
- 'description' => 'The range of the quota value that can be requested for the quota item.'."\n"
- ."\n"
- .'> This parameter is deprecated. For more information about the range, see the value of `SupportedRange` in the response of the [GetProductQuota](~~GetProductQuota~~) or [ListProductQuotas](~~ListProductQuotas~~) operation.'."\n"
- ."\n"
- .'* If the value of `ApplicableType` is `continuous` and the value of this parameter is `[802,1000]`, the range contains all integers from 802 to 1000.'."\n"
- .'* If the value of `ApplicableType` is `discontinuous` and the value of this parameter is `[10,20,50,100]`, the range contains only 10,20,50, and 100.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '[802,1000]',
- ],
- ],
- 'ApplicableType' => [
- 'description' => 'The type of the adjustable value. Valid values:'."\n"
- ."\n"
- .'* continuous'."\n"
- .'* discontinuous'."\n",
- 'type' => 'string',
- 'example' => 'continuous',
- ],
- 'DesireValue' => [
- 'description' => 'The requested value of the quota.'."\n",
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '802',
- ],
- 'Dimensions' => [
- 'description' => 'The quota dimensions.'."\n"
- ."\n"
- .'Format: {"regionId":"Region"}.'."\n",
- 'type' => 'object',
- 'example' => '{"regionId":"cn-hangzhou"}',
- ],
- 'EffectiveTime' => [
- 'description' => 'The start time of the validity period of the quota. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2022-09-28T06:07:00Z',
- ],
- 'EnvLanguage' => [
- 'description' => 'The language of the quota alert notification. Valid values:'."\n"
- ."\n"
- .'* zh: Chinese'."\n"
- .'* en: English'."\n",
- 'type' => 'string',
- 'example' => 'zh',
- ],
- 'ExpireTime' => [
- 'description' => 'The end time of the validity period of the quota. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2022-09-29T06:07:00Z',
- ],
- 'Id' => [
- 'description' => 'The ID of the quota template.'."\n",
- 'type' => 'string',
- 'example' => '1****',
+ 'items' => ['description' => 'The Alibaba Cloud account of a member in a resource directory for which a quota application is submitted.', 'type' => 'string', 'title' => '', 'example' => '14468026070****'],
+ 'title' => '',
+ 'example' => '',
],
- 'NoticeType' => [
- 'description' => 'Indicates whether Quota Center sends a notification about the application result. Valid values:'."\n"
- ."\n"
- .'* 0: no'."\n"
- .'* 3: yes'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'Period' => [
- 'description' => 'The calculation cycle of the quota.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'PeriodUnit' => [
- 'description' => 'The unit of the calculation cycle. Valid values:'."\n"
+ 'ApplyTime' => ['description' => 'The UTC time when the quota increase application was submitted.', 'type' => 'string', 'title' => '', 'example' => '2022-09-23T02:38:18Z'],
+ 'AuditStatusVos' => [
+ 'description' => 'The number of applications in different approval states.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The number of applications in different approval states.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Count' => ['description' => 'The number of applications.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '4'],
+ 'Status' => ['title' => 'Agree, Disagree, Process, Cancel', 'description' => 'The approval status of the quota increase application. Valid values:'."\n"
."\n"
- .'* second'."\n"
- .'* minute'."\n"
- .'* hour'."\n"
- .'* day'."\n"
- .'* week'."\n",
- 'type' => 'string',
- 'example' => 'day',
- ],
- 'PeriodValue' => [
- 'description' => 'The value of the calculation cycle.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
+ .'- Disagree: denied.'."\n"
+ ."\n"
+ .'- Agree: approved.'."\n"
+ ."\n"
+ .'- Process: pending approval.'."\n"
+ ."\n"
+ .'- Cancel: closed.', 'type' => 'string', 'example' => 'Agree'],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The ID of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'q_security-groups',
- ],
- 'QuotaCategory' => [
- 'description' => 'The type of the quota. Valid values:'."\n"
- ."\n"
- .'* CommonQuota: general quota'."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: privilege'."\n",
- 'type' => 'string',
- 'example' => 'CommonQuota',
- ],
- 'QuotaDescription' => [
- 'description' => 'The description of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'The maximum number of security groups that can be created by the current account.'."\n",
- ],
- 'QuotaName' => [
- 'description' => 'The name of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'Maximum Number of Security Groups'."\n",
- ],
+ 'BatchQuotaApplicationId' => ['description' => 'The ID of the batch quota application.', 'type' => 'string', 'title' => '', 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'],
+ 'DesireValue' => ['description' => 'The requested quota value.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '105'],
+ 'Dimensions' => ['description' => 'The quota dimensions.'."\n"
+ ."\n"
+ .'Format: {"regionId":"cn-hangzhou"}.', 'type' => 'object', 'title' => '', 'example' => '{"regionId":"cn-hangzhou"}'],
+ 'EffectiveTime' => ['description' => 'The UTC time when the quota takes effect.', 'type' => 'string', 'title' => '', 'example' => '2023-05-22T16:00:00Z'],
+ 'ExpireTime' => ['description' => 'The UTC time when the quota expires.', 'type' => 'string', 'title' => '', 'example' => '2024-05-14T02:08:56Z'],
+ 'ProductCode' => ['description' => 'The abbreviation of the Alibaba Cloud service.', 'type' => 'string', 'title' => '', 'example' => 'vpc'],
+ 'QuotaActionCode' => ['description' => 'The quota ID.', 'type' => 'string', 'title' => '', 'example' => 'q_fhoz4k'],
+ 'QuotaCategory' => ['description' => 'The type of the quota. Valid values:'."\n"
+ ."\n"
+ .'- CommonQuota: general quota.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit.'."\n"
+ ."\n"
+ .'- WhiteListLabel: privilege.', 'type' => 'string', 'title' => '', 'example' => 'CommonQuota'],
+ 'Reason' => ['description' => 'The reason for the quota increase application.', 'type' => 'string', 'title' => '', 'example' => 'Business expansion'],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of records returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '40',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
+ 'TotalCount' => ['description' => 'The total number of records returned for the request.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '67'],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'TEMPLATE.ITEM.NOT.FOUND',
- 'errorMessage' => 'Quota template item does not exist.',
- ],
+ ['errorCode' => 'TEMPLATE.NOT.RD.MA', 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.', 'description' => 'The current account is not the management account of the resource directory and does not have the permissions to manage the quota template.'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 30,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaApplicationTemplates\\": [\\n {\\n \\"ApplicableRange\\": [\\n 0\\n ],\\n \\"ApplicableType\\": \\"continuous\\",\\n \\"DesireValue\\": 802,\\n \\"Dimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2022-09-28T06:07:00Z\\",\\n \\"EnvLanguage\\": \\"zh\\",\\n \\"ExpireTime\\": \\"2022-09-29T06:07:00Z\\",\\n \\"Id\\": \\"1****\\",\\n \\"NoticeType\\": 0,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"day\\",\\n \\"PeriodValue\\": 1\\n },\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"q_security-groups\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of security groups that can be created by the current account.\\\\n\\",\\n \\"QuotaName\\": \\"Maximum Number of Security Groups\\\\n\\"\\n }\\n ],\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TotalCount\\": 40\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
- 'title' => 'ListQuotaApplicationTemplates',
- ],
- 'DeleteTemplateQuotaItem' => [
- 'summary' => 'Deletes a quota template by using the management account of a resource directory. After you delete a quota template, if a member is added to the resource directory, the quota template no longer automatically submits a quota increase request for the member. Only the management account of a resource directory can delete quota templates.',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 30,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaBatchApplications\\": [\\n {\\n \\"AliyunUids\\": [\\n \\"14468026070****\\"\\n ],\\n \\"ApplyTime\\": \\"2022-09-23T02:38:18Z\\",\\n \\"AuditStatusVos\\": [\\n {\\n \\"Count\\": 4,\\n \\"Status\\": \\"Agree\\"\\n }\\n ],\\n \\"BatchQuotaApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"DesireValue\\": 105,\\n \\"Dimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2023-05-22T16:00:00Z\\",\\n \\"ExpireTime\\": \\"2024-05-14T02:08:56Z\\",\\n \\"ProductCode\\": \\"vpc\\",\\n \\"QuotaActionCode\\": \\"q_fhoz4k\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"Reason\\": \\"Business expansion\\"\\n }\\n ],\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TotalCount\\": 67\\n}","type":"json"}]',
+ 'title' => 'ListQuotaApplicationsForTemplate',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-20T12:26:48.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-12-13T07:18:28.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaApplicationsForTemplate'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaApplicationsForTemplate',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ModifyQuotaTemplateServiceStatus' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5098,74 +3932,91 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasC0TSBQ',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasC0TSBQ'],
],
'parameters' => [
[
- 'name' => 'Id',
+ 'name' => 'ServiceStatus',
'in' => 'formData',
- 'schema' => [
- 'title' => '配额项ID',
- 'description' => 'The ID of the quota template.'."\n"
- ."\n"
- .'You can call the [ListQuotaApplicationTemplates](~~450403~~) operation to obtain the ID of a quota template.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => '1****',
- ],
+ 'schema' => ['description' => 'The status of the quota template. Valid values:'."\n"
+ ."\n"
+ .'- -1: The quota template is disabled.'."\n"
+ ."\n"
+ .'- 1: The quota template is enabled.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => 'The returned data.'."\n",
+ 'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
- 'Id' => [
- 'description' => 'The ID of the quota template.'."\n",
- 'type' => 'string',
- 'example' => '1****',
- ],
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'The ID of the request.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
+ 'TemplateServiceStatus' => [
+ 'description' => 'The status of the quota template.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceDirectoryId' => ['description' => 'The ID of the resource directory.', 'type' => 'string', 'example' => 'rd-pG****', 'title' => ''],
+ 'ServiceStatus' => ['description' => 'The status of the quota template. Valid values:'."\n"
+ ."\n"
+ .'- -1: The quota template is disabled.'."\n"
+ ."\n"
+ .'- 1: The quota template is enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'RAM.PERMISSION.DENIED',
- 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.',
- ],
- [
- 'errorCode' => 'TEMPLATE.NOT.RD.MA',
- 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.',
- ],
+ ['errorCode' => 'TEMPLATE.NOT.RD.MA', 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.', 'description' => 'The current account is not the management account of the resource directory and does not have the permissions to manage the quota template.'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Id\\": \\"1****\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteTemplateQuotaItemResponse>\\n <RequestId>D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053</RequestId>\\n <Id>1****</Id>\\n</DeleteTemplateQuotaItemResponse>","errorExample":""}]',
- 'title' => 'DeleteTemplateQuotaItem',
- ],
- 'CreateQuotaApplicationsForTemplate' => [
- 'summary' => 'Submits a quota increase application. After you add a quota item to a quota template, the system automatically submits quota applications only for new members of the resource directory. The quota values for existing members remain unchanged. If you want to increase the quota values of existing members, you can submit a quota application for the members by applying quota templates to the members. Only the management account of a resource directory can create multiple quota applications at a time.',
- 'methods' => [
- 'post',
+ 'title' => 'ModifyQuotaTemplateServiceStatus',
+ 'summary' => 'Changes the status of a quota template. By default, the quota template is not configured. If the management account of a resource directory uses a quota template for the first time, you must enable the quota template. Only the management account of a resource directory can change the status of quota templates.',
+ 'description' => '### [](#)Prerequisites'."\n"
+ ."\n"
+ .'A resource directory is enabled. For more information, see [EnableResourceDirectory](~~604185~~).'."\n"
+ ."\n"
+ .'### [](#)Usage notes'."\n"
+ ."\n"
+ .'If the `ServiceStatus` parameter is set to `0` or `-1`, you can call this operation to set the parameter to `1`. Then, you can call the [CreateTemplateQuotaItem](~~450615~~) operation to create a quota template.',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-20T12:26:48.000Z', 'description' => 'Error codes changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyQuotaTemplateServiceStatus'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'quotas:ModifyQuotaTemplateServiceStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TemplateServiceStatus\\": {\\n \\"ResourceDirectoryId\\": \\"rd-pG****\\",\\n \\"ServiceStatus\\": 1\\n }\\n}","type":"json"}]',
+ ],
+ 'ModifyTemplateQuotaItem' => [
+ 'summary' => 'Only the administrator account of a resource directory can modify a quota template. Modifications to a quota template apply only to new members that are added to the resource directory and do not affect existing members.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5174,972 +4025,1096 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotasRRW33P',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREquotasC0TSBQ'],
],
'parameters' => [
[
- 'name' => 'QuotaCategory',
+ 'name' => 'Id',
'in' => 'formData',
- 'schema' => [
- 'title' => 'CommonQuota, FlowControl, WhiteListLabel',
- 'description' => 'The quota type. Valid values:'."\n"
- ."\n"
- .'* CommonQuota: general quota'."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: privilege'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'CommonQuota',
- 'enum' => [
- 'CommonQuota',
- 'FlowControl',
- 'WhiteListLabel',
- ],
- ],
+ 'schema' => ['description' => 'The ID of the quota template.'."\n"
+ .'For more information about how to obtain the ID of a quota template, see [ListQuotaApplicationTemplates](~~450403~~).', 'type' => 'string', 'required' => true, 'example' => '1****', 'title' => ''],
],
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'title' => '产品code',
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440555~~) operation and check the value of `ProductCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ecs-spec',
- ],
+ 'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the abbreviation of an Alibaba Cloud service name, see the `ProductCode` parameter in [ListProducts](~~440555~~).', 'type' => 'string', 'required' => false, 'example' => 'ecs', 'title' => ''],
],
[
'name' => 'QuotaActionCode',
'in' => 'formData',
- 'schema' => [
- 'title' => 'quota的code',
- 'description' => 'The quota ID.'."\n"
- ."\n"
- .'> To query the quota ID of an Alibaba Cloud service, call the [ListProductQuotas](~~440554~~) and check the value of `QuotaActionCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ecs.g5.2xlarge',
- ],
+ 'schema' => ['description' => 'The quota ID.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the quota ID of an Alibaba Cloud service, see the `QuotaActionCode` parameter in [ListProductQuotas](~~440554~~).', 'type' => 'string', 'required' => false, 'example' => 'q_security-groups', 'title' => ''],
],
[
'name' => 'Dimensions',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
- 'title' => '配额维度',
- 'description' => 'The quota dimensions.'."\n",
+ 'description' => 'The quota dimensions.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'The quota dimension.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => 'The key of the dimension.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
- ."\n"
- .'* This parameter is required if you set the `ProductCode` parameter to `ecs`, `ecs-spec`, `actiontrail`, or `ess`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'regionId',
- ],
- 'Value' => [
- 'description' => 'The value of the dimension.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.'."\n"
- ."\n"
- .'* This parameter is required if you set the `ProductCode` parameter to `ecs`, `ecs-spec`, `actiontrail`, or `ess`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'Key' => ['description' => 'The key of the quota dimension.'."\n"
+ ."\n"
+ .'> - The value of N depends on the number of dimensions that are supported by the Alibaba Cloud service.'."\n"
+ .'>'."\n"
+ .'> - If you set `ProductCode` to a value such as `ecs`, `ecs-spec`, `actiontrail`, or `ess`, you must specify both the key and value of the quota dimension.', 'type' => 'string', 'required' => false, 'example' => 'regionId', 'title' => ''],
+ 'Value' => ['description' => 'The value of the quota dimension.'."\n"
+ ."\n"
+ .'> - The value of N depends on the number of dimensions that are supported by the Alibaba Cloud service.'."\n"
+ .'>'."\n"
+ .'> - If you set `ProductCode` to a value such as `ecs`, `ecs-spec`, `actiontrail`, or `ess`, you must specify both the key and value of the quota dimension.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
- 'maxItems' => 10,
+ 'maxItems' => 5,
+ 'title' => '',
+ 'example' => '',
],
],
[
'name' => 'DesireValue',
'in' => 'formData',
- 'schema' => [
- 'title' => '申请的配额量',
- 'description' => 'The requested value of the quota.'."\n"
- ."\n"
- .'> '."\n"
- ."\n"
- .'* You can specify DesireValue based on the values of `TotalUsage` and `ApplicableRange` in the response to the [ListProductQuotas](~~440554~~) operation.'."\n"
- ."\n"
- .'* Applications are reviewed by the technical support team of each Alibaba Cloud service. To increase the success rate of your application, specify a reasonable quota value and a detailed reason.'."\n",
- 'type' => 'number',
- 'format' => 'double',
- 'required' => true,
- 'example' => '12',
- ],
- ],
- [
- 'name' => 'Reason',
- 'in' => 'formData',
- 'schema' => [
- 'title' => '申请理由',
- 'description' => 'The reason for the quota application.'."\n"
- ."\n"
- .'> Applications are reviewed by the technical support team of each Alibaba Cloud service. To increase the success rate of your application, you must specify a reasonable quota value and detailed reasons when you submit the application.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Scale Out',
- ],
+ 'schema' => ['description' => 'The value of the quota that you want to apply for.'."\n"
+ ."\n"
+ .'> - You can set this parameter based on the `TotalUsage` (quota usage) and `ApplicableRange` (the range of values for the quota) parameters of the target quota in [ListProductQuotas](~~440554~~).'."\n"
+ .'>'."\n"
+ .'> - The quota application is reviewed by the technical support of each Alibaba Cloud service. To increase the success rate of your application, you must specify a reasonable quota value and a detailed reason when you submit the application.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '804', 'title' => ''],
],
[
'name' => 'NoticeType',
'in' => 'formData',
- 'schema' => [
- 'description' => 'Specifies whether to send a notification about the application result. Valid values:'."\n"
- ."\n"
- .'* 0 (default): no'."\n"
- .'* 3: yes'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => 'Specifies whether to send a notification about the application result. Valid values:'."\n"
+ ."\n"
+ .'- 0 (default): no.'."\n"
+ ."\n"
+ .'- 3: yes.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'EnvLanguage',
'in' => 'formData',
- 'schema' => [
- 'title' => '环境 语种,如',
- 'description' => 'The language of the notification about the application result. Valid values:'."\n"
- ."\n"
- .'* zh (default): Chinese'."\n"
- .'* en: English'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh',
- ],
+ 'schema' => ['description' => 'The language of the notification for a quota alert. Valid values:'."\n"
+ ."\n"
+ .'- zh (default): Chinese.'."\n"
+ ."\n"
+ .'- en: English.', 'type' => 'string', 'required' => false, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'EffectiveTime',
'in' => 'formData',
- 'schema' => [
- 'title' => '生效时间',
- 'description' => 'The start time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel.'."\n"
- ."\n"
- .'> If you do not specify a start time, the value is the time when the quota application is submitted.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '2021-01-19T09:25:56Z',
- ],
+ 'schema' => ['description' => 'The UTC time when the quota takes effect.'."\n"
+ .'This parameter is applicable only to privileges (WhiteListLabel).'."\n"
+ ."\n"
+ .'> If you do not specify this parameter, the quota takes effect immediately.', 'type' => 'string', 'required' => false, 'example' => '2021-01-19T09:25:56Z', 'title' => ''],
],
[
'name' => 'ExpireTime',
'in' => 'formData',
- 'schema' => [
- 'title' => '过期时间(UTC 格式)',
- 'description' => 'The end time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel.'."\n"
- ."\n"
- .'> If you do not specify an end time, the value is 99 years after the start time of the validity period.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '2021-01-20T09:25:56Z',
- ],
+ 'schema' => ['description' => 'The UTC time when the quota expires.'."\n"
+ .'This parameter is applicable only to privileges (WhiteListLabel).'."\n"
+ ."\n"
+ .'> If you do not specify this parameter, the quota does not expire.', 'type' => 'string', 'required' => false, 'example' => '2021-01-20T09:25:56Z', 'title' => ''],
],
[
- 'name' => 'AliyunUids',
- 'in' => 'formData',
- 'style' => 'repeatList',
+ 'name' => 'QuotaCategory',
+ 'in' => 'query',
'schema' => [
- 'title' => '批量调整账号',
- 'description' => 'The Alibaba Cloud accounts that correspond to the resource directory members for which the quotas are applied.'."\n"
+ 'description' => 'The quota type. Valid values:'."\n"
."\n"
- .'> You can submit a quota increase application for a maximum of 50 members at a time. For more information about the members of a resource directory, see [ListAccounts](~~604207~~).'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The Alibaba Cloud account that corresponds to the resource directory member for which the quotas are applied.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '135048337611****'."\n",
- ],
- 'required' => true,
- 'maxItems' => 100,
+ .'- CommonQuota (default): general quota.'."\n"
+ ."\n"
+ .'- WhiteListLabel: privilege.'."\n"
+ ."\n"
+ .'- FlowControl: API rate limit.',
+ 'type' => 'string',
+ 'enum' => ['WhiteListLabel', 'CommonQuota', 'FlowControl'],
+ 'required' => false,
+ 'example' => 'CommonQuota',
+ 'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'PopResultDTO<String>',
- 'description' => 'The request result.'."\n",
+ 'title' => 'Schema of Response',
+ 'description' => 'None.',
'type' => 'object',
'properties' => [
- 'AliyunUids' => [
- 'description' => 'The Alibaba Cloud accounts for which the quotas are applied.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The Alibaba Cloud account for which the quotas are applied.'."\n",
- 'type' => 'string',
- 'example' => '135048337611****',
- ],
- ],
- 'BatchQuotaApplicationId' => [
- 'description' => 'The ID of the quota application batch.'."\n",
- 'type' => 'string',
- 'example' => 'd314d6ae-867d-484c-9009-3d421a80****',
- ],
- 'FailResults' => [
- 'description' => 'The Alibaba Cloud accounts of the members in a resource directory whose quota increase request is rejected, and the reason for the rejection.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'AliyunUid' => [
- 'description' => 'The Alibaba Cloud account of the members in a resource directory whose quota increase request is rejected.'."\n",
- 'type' => 'string',
- 'example' => '135048337611****',
- ],
- 'Reason' => [
- 'description' => 'The reason for the rejection.'."\n",
- 'type' => 'string',
- 'example' => 'The quota adjustment application is being processed. Please try again later.',
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => '8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3',
- ],
+ 'Id' => ['description' => 'The ID of the quota template.', 'type' => 'string', 'example' => '1****', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'QUOTA.APPLICATION.TIME.ERROE',
- 'errorMessage' => 'ExpireTime cannot be earlier than the current time or EffectiveTime.',
- ],
- [
- 'errorCode' => 'TEMPLATE.NOT.RD.MA',
- 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.',
- ],
- [
- 'errorCode' => 'QUOTA.APPLICATION.PROCESS',
- 'errorMessage' => 'The quota adjustment application is being processed. Please try again later.',
+ ['errorCode' => 'TEMPLATE.NOT.FOUND', 'errorMessage' => 'Quota template does not exist.', 'description' => 'The quota template information does not exist.'],
+ ['errorCode' => 'UNSUPPORT.UPDATE.PRODUCTCODE.QUOTACODE', 'errorMessage' => 'Modification of product name, quota code and dimension data is not supported', 'description' => 'The product name, quota code, and dimension cannot be modified.'],
+ ['errorCode' => 'RAM.PERMISSION.DENIED', 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.', 'description' => 'You have no access'],
+ ['errorCode' => 'TEMPLATE.NOT.RD.MA', 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.', 'description' => 'The current account is not the management account of the resource directory and does not have the permissions to manage the quota template.'],
+ ['errorCode' => 'QUOTA.DESIREVALUE.ILLEGAL', 'errorMessage' => 'DesirValue less than or equal to the current quota value, or that is not within the adjustable range.', 'description' => 'DesirValue less than or equal to the current quota value, or that is not within the adjustable range.'],
+ ['errorCode' => 'UNSUPPORT.UPDATE.DIMENSIONS', 'errorMessage' => 'The Quota dimension don\'t support be modified when you update quota template.', 'description' => 'Quota template changes do not support the modification of quota dimensions.'],
+ ['errorCode' => 'TEMPLATE.ITEM.NOT.FOUND', 'errorMessage' => 'Quota template item does not exist.', 'description' => 'The quota template item does not exist.'],
+ ],
+ ],
+ 'title' => 'ModifyTemplateQuotaItem',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T02:37:35.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2025-03-20T12:26:48.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-09-04T03:14:40.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-07-19T04:01:09.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-12-22T10:33:14.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-09-05T01:53:21.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyTemplateQuotaItem'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'quotas:ModifyTemplateQuotaItem',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'TemplateQuota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AliyunUids\\": [\\n \\"135048337611****\\"\\n ],\\n \\"BatchQuotaApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"FailResults\\": [\\n {\\n \\"AliyunUid\\": \\"135048337611****\\",\\n \\"Reason\\": \\"The quota adjustment application is being processed. Please try again later.\\"\\n }\\n ],\\n \\"RequestId\\": \\"8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3\\"\\n}","type":"json"}]',
- 'title' => 'CreateQuotaApplicationsForTemplate',
- 'description' => '### [](#)QPS limit'."\n"
- ."\n"
- .'You can add a maximum of 10 quota items to a quota template at a time.'."\n",
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Id\\": \\"1****\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\"\\n}","type":"json"}]',
],
- 'ListQuotaApplicationsDetailForTemplate' => [
- 'summary' => 'Queries the details of a quota increase application for member accounts in a resource directory.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'RemindQuotaApplicationApproval' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotas29QQRO',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasVP27J0'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'AliyunUid',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The Alibaba Cloud account that is used to submit the quota increase application.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '135048337611****',
- ],
- ],
- [
- 'name' => 'ProductCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440555~~) operation and check the value of `ProductCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
- ],
- [
- 'name' => 'QuotaActionCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs.c5.large',
- ],
- ],
- [
- 'name' => 'Status',
- 'in' => 'formData',
- 'schema' => [
- 'title' => 'Agree, Disagree, Process, Cancel',
- 'description' => 'The approval state of the quota increase application. Valid values:'."\n"
- ."\n"
- .'* Disagree: The application is rejected.'."\n"
- .'* Agree: The application is approved.'."\n"
- .'* Process: The application is in review.'."\n"
- .'* Cancel: The application is canceled.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Agree',
- ],
- ],
- [
- 'name' => 'BatchQuotaApplicationId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The ID of the quota application batch.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'd314d6ae-867d-484c-9009-3d421a80****'."\n",
- ],
- ],
- [
- 'name' => 'QuotaCategory',
- 'in' => 'formData',
- 'schema' => [
- 'title' => 'CommonQuota, FlowControl, WhiteListLabel',
- 'description' => 'The type of the quota. Valid values:'."\n"
- ."\n"
- .'* CommonQuota: general quota'."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: privilege'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CommonQuota',
- 'enum' => [
- 'CommonQuota',
- 'FlowControl',
- 'WhiteListLabel',
- ],
- ],
- ],
- [
- 'name' => 'NextToken',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query.'."\n"
- ."\n"
- .'> An empty value indicates that the query starts from the beginning.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '4',
- ],
- ],
- [
- 'name' => 'MaxResults',
+ 'name' => 'ApplicationId',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The maximum number of records that can be returned for the query.'."\n"
- ."\n"
- .'Valid values: 1 to 100. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the quota application.'."\n"
+ ."\n"
+ .'For more information, see [ListQuotaApplications](~~440568~~).', 'type' => 'string', 'required' => false, 'example' => '219f1ff6-6205-495f-bda7-90d2fe945e****'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'ResultList<QuotaBatchApplicationVo>',
- 'description' => 'The details of the quota increase application.'."\n",
+ 'title' => 'PopResultDTO<String>',
+ 'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
- 'MaxResults' => [
- 'description' => 'The maximum number of records that can be returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position from which you want to start the query.'."\n",
- 'type' => 'string',
- 'example' => '1',
- ],
- 'QuotaApplications' => [
- 'description' => 'The details of the quota increase application.'."\n",
+ 'AllowRetry' => ['description' => 'Indicates whether the request can be retried. Valid values:'."\n"
+ ."\n"
+ .'- false: The request cannot be retried.'."\n"
+ ."\n"
+ .'- true: The request can be retried.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
+ 'DynamicCode' => ['description' => 'The dynamic error code.', 'type' => 'string', 'title' => '', 'example' => 'PARAMETER.ILLEGALL'],
+ 'DynamicMessage' => ['description' => 'The dynamic error message.', 'type' => 'string', 'title' => '', 'example' => 'Parameter[%s] is required.'],
+ 'ErrorArgs' => [
+ 'description' => 'The array of error parameters.',
'type' => 'array',
- 'items' => [
- 'description' => 'The details of the quota increase application.',
- 'type' => 'object',
- 'properties' => [
- 'AliyunUid' => [
- 'description' => 'The ID of the Alibaba Cloud account.'."\n",
- 'type' => 'string',
- 'example' => '175376458581****',
- ],
- 'ApplicationId' => [
- 'description' => 'The ID of the quota increase application.'."\n",
- 'type' => 'string',
- 'example' => 'b926571d-cc09-4711-b547-58a615f0****',
- ],
- 'ApplyTime' => [
- 'description' => 'The time when the quota increase application was submitted. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-15T09:13:53Z',
- ],
- 'ApproveValue' => [
- 'description' => 'The quota value that is approved.'."\n",
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '101',
- ],
- 'AuditReason' => [
- 'description' => 'The approval result of the quota increase application.'."\n",
- 'type' => 'string',
- 'example' => 'Agree',
- ],
- 'BatchQuotaApplicationId' => [
- 'description' => 'The ID of the quota application batch.'."\n",
- 'type' => 'string',
- 'example' => 'd314d6ae-867d-484c-9009-3d421a80****',
- ],
- 'DesireValue' => [
- 'description' => 'The requested value of the quota.'."\n",
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '60',
- ],
- 'EffectiveTime' => [
- 'description' => 'The start time of the validity period of the quota. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-15T11:46:25Z',
- ],
- 'EnvLanguage' => [
- 'description' => 'The language of the quota alert notification. Valid values:'."\n"
- ."\n"
- .'* zh: Chinese'."\n"
- .'* en: English'."\n",
- 'type' => 'string',
- 'example' => 'zh',
- ],
- 'ExpireTime' => [
- 'description' => 'The end time of the validity period of the quota. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2021-01-17T11:46:25Z',
- ],
- 'NoticeType' => [
- 'description' => 'Indicates whether Quota Center sends a notification about the application result. Valid values:'."\n"
- ."\n"
- .'* 0: no'."\n"
- .'* 3: yes'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3',
- ],
- 'Period' => [
- 'description' => 'The calculation cycle of the quota.'."\n",
- 'type' => 'object',
- 'properties' => [
- 'PeriodUnit' => [
- 'title' => '配额计算周期单位',
- 'description' => 'The unit of the calculation cycle of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'second',
- ],
- 'PeriodValue' => [
- 'title' => '配额计算周期值',
- 'description' => 'The value of the calculation cycle of the quota.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'example' => 'ecs.n1.large',
- ],
- 'QuotaArn' => [
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'acs:quotas:*:120886317861****:quota/csk/q_i5uzm3',
- ],
- 'QuotaCategory' => [
- 'description' => 'The quota type. Valid values:'."\n"
- ."\n"
- .'* CommonQuota (default): general quota'."\n"
- .'* WhiteListLabel: privilege'."\n"
- .'* FlowControl: API rate limit'."\n",
- 'type' => 'string',
- 'example' => 'CommonQuota',
- ],
- 'QuotaDescription' => [
- 'description' => 'The description of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'The maximum number of nodes in a cluster',
- ],
- 'QuotaDimension' => [
- 'description' => 'The quota dimensions.'."\n",
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{"regionId":"cn-hangzhou"}',
- 'description' => 'The quota dimension.'."\n"
- ."\n"
- .'Format: `{"regionId":"cn-hangzhou"}`.'."\n",
- ],
- ],
- 'QuotaName' => [
- 'description' => 'The quota name.'."\n",
- 'type' => 'string',
- 'example' => 'Maximum Number of Nodes',
- ],
- 'QuotaUnit' => [
- 'description' => 'The unit of the quota.'."\n",
- 'type' => 'string',
- 'example' => 'GiB',
- ],
- 'Reason' => [
- 'description' => 'The reason for the quota increase application.'."\n",
- 'type' => 'string',
- 'example' => 'Business expansion',
- ],
- 'Status' => [
- 'description' => 'The approval status of the quota increase application. Valid values:'."\n"
- ."\n"
- .'* Disagree: The application is rejected.'."\n"
- .'* Agree: The application is approved.'."\n"
- .'* Process: The application is pending approval.'."\n"
- .'* Cancel: The application is canceled.'."\n",
- 'type' => 'string',
- 'example' => 'Agree',
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '9',
+ 'items' => ['description' => 'The error parameter.', 'type' => 'any', 'title' => '', 'example' => 'ApplicationId'],
+ 'title' => '',
+ 'example' => '',
],
+ 'ErrorCode' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'RAM.PERMISSION.DENIED'."\n"],
+ 'ErrorMsg' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'You are not authorized to do this action or the API input parameter is invalid.'],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
+ 'Module' => ['description' => 'The ID of the quota application.', 'type' => 'string', 'title' => '', 'example' => '219f1ff6-6205-495f-bda7-90d2fe945e****'],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053'],
+ 'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
+ ."\n"
+ .'- true: The request was successful.'."\n"
+ ."\n"
+ .'- false: The request failed.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'TEMPLATE.NOT.RD.MA',
- 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.',
+ ['errorCode' => 'QUOTA.APPLICATION.NOT.FOUND', 'errorMessage' => 'Quota application does not exist', 'description' => 'The quota application does not exist.'],
+ ['errorCode' => 'REMIND.APPLICATION.LIMIT', 'errorMessage' => 'Quota application do not support reminders or reminder interval exceeds the limit.', 'description' => 'Quota application do not support reminders or reminder interval exceeds the limit.'],
+ ],
+ ],
+ 'title' => 'RemindQuotaApplicationApproval',
+ 'summary' => 'Sends a reminder for a quota application that is pending approval.',
+ 'description' => '> This operation applies only to quota applications that support reminders. In the GetQuotaApplicationApproval response, the `SupportReminder` parameter for these applications is `true`.',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T02:37:35.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2025-03-20T12:26:47.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemindQuotaApplicationApproval'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'quotas:RemindQuotaApplicationApproval',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 30,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaApplications\\": [\\n {\\n \\"AliyunUid\\": \\"175376458581****\\",\\n \\"ApplicationId\\": \\"b926571d-cc09-4711-b547-58a615f0****\\",\\n \\"ApplyTime\\": \\"2021-01-15T09:13:53Z\\",\\n \\"ApproveValue\\": 101,\\n \\"AuditReason\\": \\"Agree\\",\\n \\"BatchQuotaApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"DesireValue\\": 60,\\n \\"EffectiveTime\\": \\"2021-01-15T11:46:25Z\\",\\n \\"EnvLanguage\\": \\"zh\\",\\n \\"ExpireTime\\": \\"2021-01-17T11:46:25Z\\",\\n \\"NoticeType\\": 3,\\n \\"Period\\": {\\n \\"PeriodUnit\\": \\"second\\",\\n \\"PeriodValue\\": 1\\n },\\n \\"ProductCode\\": \\"ecs\\",\\n \\"QuotaActionCode\\": \\"ecs.n1.large\\",\\n \\"QuotaArn\\": \\"acs:quotas:*:120886317861****:quota/csk/q_i5uzm3\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"QuotaDescription\\": \\"The maximum number of nodes in a cluster\\",\\n \\"QuotaDimension\\": {\\n \\"key\\": \\"{\\\\\\"regionId\\\\\\":\\\\\\"cn-hangzhou\\\\\\"}\\"\\n },\\n \\"QuotaName\\": \\"Maximum Number of Nodes\\",\\n \\"QuotaUnit\\": \\"GiB\\",\\n \\"Reason\\": \\"Maximum Number of Nodes\\",\\n \\"Status\\": \\"Agree\\"\\n }\\n ],\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TotalCount\\": 9\\n}","type":"json"}]',
- 'title' => 'ListQuotaApplicationsDetailForTemplate',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AllowRetry\\": false,\\n \\"DynamicCode\\": \\"PARAMETER.ILLEGALL\\",\\n \\"DynamicMessage\\": \\"Parameter[%s] is required.\\",\\n \\"ErrorArgs\\": [\\n \\"ApplicationId\\"\\n ],\\n \\"ErrorCode\\": \\"RAM.PERMISSION.DENIED\\\\n\\",\\n \\"ErrorMsg\\": \\"You are not authorized to do this action or the API input parameter is invalid.\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Module\\": \\"219f1ff6-6205-495f-bda7-90d2fe945e****\\",\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
- 'ListQuotaApplicationsForTemplate' => [
- 'summary' => 'Queries the application records of a quota template that is used to apply for quotas for member accounts.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateQuotaAlarm' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREquotas29QQRO',
- ],
+ 'abilityTreeNodes' => ['FEATUREquotasC3VMZU'],
],
'parameters' => [
[
- 'name' => 'ProductCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
- ."\n"
- .'> To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](~~440555~~) operation and check the value of `ProductCode` in the response.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs-spec',
- ],
- ],
- [
- 'name' => 'QuotaActionCode',
+ 'name' => 'AlarmId',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs.g5.2xlarge',
- ],
+ 'schema' => ['description' => 'The ID of the quota alert.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the ID of a quota alert, see [ListQuotaAlarms](~~440561~~).', 'type' => 'string', 'required' => true, 'example' => 'a2efa7fc-832f-47bb-8054-39e28012****', 'title' => ''],
],
[
- 'name' => 'BatchQuotaApplicationId',
+ 'name' => 'AlarmName',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The ID of the quota application batch.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'd314d6ae-867d-484c-9009-3d421a80****',
- ],
+ 'schema' => ['description' => 'The name of the quota alert.'."\n"
+ ."\n"
+ .'> For more information about how to obtain the name of a quota alert, see [ListQuotaAlarms](~~440561~~).', 'type' => 'string', 'required' => true, 'example' => 'rules', 'title' => ''],
],
[
- 'name' => 'QuotaCategory',
+ 'name' => 'ThresholdType',
'in' => 'formData',
'schema' => [
- 'title' => 'CommonQuota, FlowControl, WhiteListLabel',
- 'description' => 'The type of the quota. Valid values:'."\n"
+ 'description' => 'The type of the quota alert. Valid values:'."\n"
."\n"
- .'* CommonQuota: general quota'."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: privilege'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CommonQuota',
- 'enum' => [
- 'CommonQuota',
- 'FlowControl',
- 'WhiteListLabel',
- ],
- ],
- ],
- [
- 'name' => 'NextToken',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'The token that marks the position from which you want to start the query.'."\n"
+ .'- used (default): The alert is triggered based on the used quota.'."\n"
."\n"
- .'> An empty value indicates that the query starts from the beginning.'."\n",
+ .'- usable: The alert is triggered based on the usable quota.',
'type' => 'string',
+ 'default' => 'used',
+ 'enum' => ['used', 'usable'],
'required' => false,
- 'example' => '4',
+ 'example' => 'usable',
+ 'title' => '',
],
],
[
- 'name' => 'MaxResults',
+ 'name' => 'Threshold',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The maximum number of entries to return for a single request.'."\n"
- ."\n"
- .'Valid values: 1 to 100. Default value: 30.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The numeric value of the alert threshold. Valid values:'."\n"
+ ."\n"
+ .'- If you set `ThresholdType` to `used`, an alert is triggered when the used quota is greater than or equal to this value. The alert threshold must be greater than the current used quota.'."\n"
+ ."\n"
+ .'- If you set `ThresholdType` to `usable`, an alert is triggered when the usable quota is less than or equal to this value. The alert threshold must be less than the current usable quota.'."\n"
+ ."\n"
+ .'> You must set either Threshold or ThresholdPercent.', 'type' => 'number', 'format' => 'float', 'required' => false, 'minimum' => '1', 'example' => '160', 'title' => ''],
],
[
- 'name' => 'ApplyStartTime',
+ 'name' => 'ThresholdPercent',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The UTC time when the quota application starts.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-05-22T16:00:00Z'."\n",
- ],
+ 'schema' => ['description' => 'The percentage of the alert threshold. Valid values:'."\n"
+ ."\n"
+ .'- If you set `ThresholdType` to `used`, an alert is triggered when the percentage of the used quota is greater than or equal to this value. The value must be in the range of (50%, 100%].'."\n"
+ ."\n"
+ .'- If you set `ThresholdType` to `usable`, an alert is triggered when the percentage of the usable quota is less than or equal to this value. The value must be in the range of (0%, 50%].'."\n"
+ ."\n"
+ .'> You must set either Threshold or ThresholdPercent.', 'type' => 'number', 'format' => 'float', 'required' => false, 'maximum' => '100', 'minimum' => '50', 'example' => '51', 'title' => ''],
],
[
- 'name' => 'ApplyEndTime',
+ 'name' => 'WebHook',
'in' => 'formData',
- 'schema' => [
- 'description' => 'The UTC time when the quota application ends.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-05-22T16:00:00Z'."\n",
- ],
+ 'schema' => ['description' => 'The webhook URL. Quota Center sends alert notifications to this URL using an HTTP POST request.', 'type' => 'string', 'required' => false, 'example' => 'https://alert.aliyun.com/callback', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'PopResultDTO<ResultList<QuotaBatchApplicationVo>>',
- 'description' => 'The response parameters.'."\n",
'type' => 'object',
'properties' => [
- 'MaxResults' => [
- 'description' => 'The maximum number of records that can be returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- ],
- 'NextToken' => [
- 'description' => 'The token that marks the position from which you want to start the query.'."\n",
- 'type' => 'string',
- 'example' => '1',
- ],
- 'QuotaBatchApplications' => [
- 'description' => 'The queried quota application records.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'AliyunUids' => [
- 'description' => 'The Alibaba Cloud accounts that correspond to the resource directory members for which the quotas are applied.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The Alibaba Cloud account that corresponds to the resource directory member for which the quotas are applied.'."\n",
- 'type' => 'string',
- 'example' => '14468026070****',
- ],
- ],
- 'ApplyTime' => [
- 'description' => 'The time when the quota increase application was submitted. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2022-09-23T02:38:18Z',
- ],
- 'AuditStatusVos' => [
- 'description' => 'The number of applications in different approval states.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Count' => [
- 'description' => 'The number of approval tickets.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
- ],
- 'Status' => [
- 'title' => 'Agree, Disagree, Process, Cancel',
- 'description' => 'The approval state of the quota increase application. Valid values:'."\n"
- ."\n"
- .'* Disagree: The application is rejected.'."\n"
- .'* Agree: The application is approved.'."\n"
- .'* Process: The application is in review.'."\n"
- .'* Cancel: The application is canceled.'."\n",
- 'type' => 'string',
- 'example' => 'Agree',
- ],
- ],
- ],
- ],
- 'BatchQuotaApplicationId' => [
- 'description' => 'The ID of the quota application batch.'."\n",
- 'type' => 'string',
- 'example' => 'd314d6ae-867d-484c-9009-3d421a80****',
- ],
- 'DesireValue' => [
- 'description' => 'The requested value of the quota.'."\n",
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '105',
- ],
- 'Dimensions' => [
- 'description' => 'The quota dimensions.'."\n"
- ."\n"
- .'Format example: {"regionId":"cn-hangzhou"}.'."\n",
- 'type' => 'object',
- 'example' => '{"regionId":"cn-hangzhou"}',
- ],
- 'EffectiveTime' => [
- 'description' => 'The start time of the validity period of the quota. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2023-05-22T16:00:00Z',
- ],
- 'ExpireTime' => [
- 'description' => 'The end time of the validity period of the quota. The value is displayed in UTC.'."\n",
- 'type' => 'string',
- 'example' => '2024-05-14T02:08:56Z',
- ],
- 'ProductCode' => [
- 'description' => 'The abbreviation of the Alibaba Cloud service name.'."\n",
- 'type' => 'string',
- 'example' => 'vpc',
- ],
- 'QuotaActionCode' => [
- 'description' => 'The quota ID.'."\n",
- 'type' => 'string',
- 'example' => 'q_fhoz4k',
- ],
- 'QuotaCategory' => [
- 'description' => 'The quota type. Valid values:'."\n"
- ."\n"
- .'* CommonQuota: general quota'."\n"
- .'* FlowControl: API rate limit'."\n"
- .'* WhiteListLabel: privilege'."\n",
- 'type' => 'string',
- 'example' => 'CommonQuota',
- ],
- 'Reason' => [
- 'description' => 'The reason for the quota increase application.'."\n",
- 'type' => 'string',
- 'example' => 'Business expansion',
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => 'D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053',
- ],
- 'TotalCount' => [
- 'description' => 'The total number of records that are returned for the query.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '67',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A95C65B3-7CF4-469E-B1D5-1CA0628A6411', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'TEMPLATE.NOT.RD.MA',
- 'errorMessage' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.',
+ ['errorCode' => 'RAM.PERMISSION.DENIED', 'errorMessage' => 'You are not authorized to do this action or the API input parameter is invalid.', 'description' => 'You have no access'],
+ ['errorCode' => 'UNSUPPORTED.ALARM.TYPE', 'errorMessage' => 'Unified alarm does not support alarm types for used quantity alarms, and does not support numerical threshold types of quota alarms.', 'description' => 'Unified alarm does not support alarm types for used quantity alarms, and does not support numerical threshold types of quota alarms.'],
+ ['errorCode' => 'THRESHOLD.ILLEGAL', 'errorMessage' => 'The alarm Threshold or ThresholdPercent is either empty or ThresholdPercent not in (0,100].', 'description' => 'The alarm Threshold or ThresholdPercent is either empty or ThresholdPercent not in (0,100].'],
+ ['errorCode' => 'ALARM.NAME.REPEAT', 'errorMessage' => 'The warning name must be unique.', 'description' => 'The alert name must be unique.'],
+ ['errorCode' => 'ALARM.NOT.FOUND', 'errorMessage' => 'The AlarmId provided does not exist in our records.', 'description' => 'The quota alert does not exist.'],
+ ['errorCode' => 'THRESHOLD.MAx.ILLEGAL', 'errorMessage' => 'The quota warning threshold cannot be greater than the current quota.', 'description' => 'The threshold for triggering quota alerts cannot be greater than the current quota.'],
+ ],
+ ],
+ 'title' => 'UpdateQuotaAlarm',
+ 'summary' => 'Modifies quota alert information.',
+ 'description' => 'This API operation is deprecated because the quota alert feature has been upgraded. To modify information about new quota usage alerts, use the CloudMonitor API operations [PutResourceMetricRules](~~2513316~~) and [PutMetricRuleTargets](~~2513302~~). For more information about using API operations to manage new quota alerts, see [Use API operations to manage new quota alerts](~~2863234~~).',
+ 'extraInfo' => ' ',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T02:37:35.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2025-03-20T05:32:23.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-10-12T08:10:22.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2023-09-04T03:14:40.000Z', 'description' => 'Error codes changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateQuotaAlarm'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => '配额中心'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'quotas:UpdateQuotaAlarm',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MaxResults\\": 30,\\n \\"NextToken\\": \\"1\\",\\n \\"QuotaBatchApplications\\": [\\n {\\n \\"AliyunUids\\": [\\n \\"14468026070****\\"\\n ],\\n \\"ApplyTime\\": \\"2022-09-23T02:38:18Z\\",\\n \\"AuditStatusVos\\": [\\n {\\n \\"Count\\": 4,\\n \\"Status\\": \\"Agree\\"\\n }\\n ],\\n \\"BatchQuotaApplicationId\\": \\"d314d6ae-867d-484c-9009-3d421a80****\\",\\n \\"DesireValue\\": 105,\\n \\"Dimensions\\": {\\n \\"regionId\\": \\"cn-hangzhou\\"\\n },\\n \\"EffectiveTime\\": \\"2023-05-22T16:00:00Z\\",\\n \\"ExpireTime\\": \\"2024-05-14T02:08:56Z\\",\\n \\"ProductCode\\": \\"vpc\\",\\n \\"QuotaActionCode\\": \\"q_fhoz4k\\",\\n \\"QuotaCategory\\": \\"CommonQuota\\",\\n \\"Reason\\": \\"Business expansion\\"\\n }\\n ],\\n \\"RequestId\\": \\"D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053\\",\\n \\"TotalCount\\": 67\\n}","type":"json"}]',
- 'title' => 'ListQuotaApplicationsForTemplate',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A95C65B3-7CF4-469E-B1D5-1CA0628A6411\\"\\n}","type":"json"}]',
],
],
'endpoints' => [
+ ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => 'quotas-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => 'quotas-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => 'quotas-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'me-east-1', 'regionName' => 'UAE (Dubai)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => 'China South 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-hangzhou-finance', 'regionName' => 'China East 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'quotas.aliyuncs.com', 'endpoint' => 'quotas.aliyuncs.com', 'vpc' => ''],
+ ],
+ 'errorCodes' => [
+ ['code' => '500', 'message' => 'Service error. Please contact the technical support team if the error persists after retrying.', 'http_code' => 400, 'description' => 'Service error. Please contact the technical support team if the error persists after retrying.'],
+ ['code' => 'ACQUIRE.LOCK.FAIL', 'message' => 'The request is too frequent. Please try again later.', 'http_code' => 400, 'description' => 'Too many attempts. Try again later.'],
+ ['code' => 'ALARM.NAME.REPEAT', 'message' => 'The warning name must be unique.', 'http_code' => 400, 'description' => 'The alert name must be unique.'],
+ ['code' => 'ALARM.NOT.FOUND', 'message' => 'The AlarmId provided does not exist in our records.', 'http_code' => 400, 'description' => 'The quota alert does not exist.'],
+ ['code' => 'Alert.Name.Repeat', 'message' => 'The alert name must not be duplicated.', 'http_code' => 400, 'description' => 'The alert name must be unique.'],
+ ['code' => 'Alert.Not.Found', 'message' => 'The quota alert does not exist.', 'http_code' => 400, 'description' => 'The quota alert does not exist.'],
+ ['code' => 'BUSINESS.ERROR', 'message' => 'Internal error, please try again or contact the technical staff for help.', 'http_code' => 400, 'description' => 'Business exception, please try again or contact technician for help.'],
+ ['code' => 'CATEGORY.NOT.SUPPORTED', 'message' => 'Quota category does not supported yet.', 'http_code' => 400, 'description' => 'Quota category does not supported yet.'],
+ ['code' => 'DIMENSIONGROUP.NOT.FOUND', 'message' => 'Dimension group does not exist.', 'http_code' => 400, 'description' => 'Dimension group parameter is incorrect'],
+ ['code' => 'INVALID.APPLY.TIME', 'message' => 'The query time is out of range, please query data for up to 7 days at most.', 'http_code' => 400, 'description' => 'The query time is out of range, please query data for up to 7 days at most.'],
+ ['code' => 'INVALID.MA.RESULTS', 'message' => 'The maxResults parameter is invalid. Use an integer ranging from 1 to 100.', 'http_code' => 400, 'description' => 'The specified maxResults parameter is invalid. Specify an integer in the range of 1 to 100.'],
+ ['code' => 'INVALID.MAX.RESULTS', 'message' => 'The maxResults parameter is invalid. Use an integer ranging from 1 to 100.', 'http_code' => 400, 'description' => 'The maxResults value is invalid. It must be an integer within the range of 1 to 100.'],
+ ['code' => 'InvalidAccessKeyId', 'message' => 'The AccessKey Id you provided is not exist.', 'http_code' => 404, 'description' => 'The specified AccessId parameter is invalid.'],
+ ['code' => 'InvalidAccessKeyId.Inactive', 'message' => 'The specified AccessKey is disabled. Only enabled AccessKey can be used.', 'http_code' => 400, 'description' => 'The AccessKey ID is disabled. Check whether the AccessKey pair is available for use. Use an AccessKey pair that is in the Enabled state.'],
+ ['code' => 'InvalidAccessKeyId.NotFound', 'message' => 'The Access Key ID provided does not exist in our records.', 'http_code' => 404, 'description' => 'The specified AccessKey pair is invalid.'],
+ ['code' => 'InvalidDesireValue', 'message' => 'Invalid DesireValue', 'http_code' => 400, 'description' => 'The specified DesireValue parameter is invalid.'],
+ ['code' => 'InvalidEndTime', 'message' => 'Invalid EndTime', 'http_code' => 400, 'description' => 'The specified end time is invalid.'],
+ ['code' => 'InvalidMaxResults', 'message' => 'The MaxResults is invalid.', 'http_code' => 400, 'description' => 'The specified MaxResults parameter is invalid.'],
+ ['code' => 'InvalidNoticeType', 'message' => 'Invalid NoticeType', 'http_code' => 400, 'description' => 'The specified NoticeType parameter is invalid.'],
+ ['code' => 'InvalidQuotaCategory', 'message' => 'The QuotaCategory is invalid.', 'http_code' => 400, 'description' => 'The specified QuotaCategory parameter is invalid.'],
+ ['code' => 'InvalidSecurityToken.Expired', 'message' => 'The security token expires. Check your security token. We recommend that you apply for a security token again.', 'http_code' => 400, 'description' => 'The security token expires. Please check your security token. We recommend that you apply for a security token again.'],
+ ['code' => 'InvalidSortOrder', 'message' => 'Invalid SortOrder', 'http_code' => 400, 'description' => 'The specified SortOrder parameter is invalid.'],
+ ['code' => 'InvalidStartTime', 'message' => 'Invalid StartTime', 'http_code' => 400, 'description' => 'The specified start time is invalid.'],
+ ['code' => 'InvalidStatus', 'message' => 'Invalid Status', 'http_code' => 400, 'description' => 'The specified Status parameter is invalid.'],
+ ['code' => 'InvalidThreshold', 'message' => 'The Threshold is invalid.', 'http_code' => 400, 'description' => 'The specified Threshold parameter is invalid.'],
+ ['code' => 'InvalidThresholdType', 'message' => 'The ThresholdType is invalid.', 'http_code' => 400, 'description' => 'The specified ThresholdType parameter is invalid.'],
+ ['code' => 'InvalidTimeStamp.Expired', 'message' => 'Specified time stamp or date value is expired.', 'http_code' => 400, 'description' => 'The difference between the timestamp at the client side and the timestamp at the server side exceeds 15 minutes. Check your timestamp settings and make sure that the difference between the timestamp at the client side and the timestamp at the server side is less than 15 minutes.'],
+ ['code' => 'MissingAccessKeyId', 'message' => 'AccessKeyId is mandatory for this action', 'http_code' => 400, 'description' => 'The AccessKeyId parameter must be specified.'],
+ ['code' => 'MissingProductCode', 'message' => 'ProductCode is missing', 'http_code' => 400, 'description' => 'The ProductCode parameter must be specified.'],
+ ['code' => 'MissingQuotaActionCode', 'message' => 'QuotaActionCode Is Miss', 'http_code' => 400, 'description' => 'The QuotaActionCode parameter must be specified.'],
+ ['code' => 'NOT.RD.ACCOUNT', 'message' => '配额申请的阿里云账号存在不是该资源目录的成员的账号', 'http_code' => 400, 'description' => 'The Alibaba Cloud account used to apply for the quota has a member account that does not belong to the resource directory.'],
+ ['code' => 'NOT.RD.ACCOUNT', 'message' => 'The account that needs to apply for a quota is not a member account of the Resource Directory (RD).', 'http_code' => 400, 'description' => 'The account that needs to apply for a quota is not a member account of the Resource Directory (RD).'],
+ ['code' => 'PARAMETER.ILLEGALL', 'message' => 'The specified parameter is invalid.', 'http_code' => 400, 'description' => 'The specified parameter value is invalid.'],
+ ['code' => 'QUOTA.ALARM.MAX', 'message' => 'Quota alarm have reached the upper limit of 100', 'http_code' => 400, 'description' => 'The maximum number of quota alerts has been reached.'],
+ ['code' => 'Quota.Alert.Max', 'message' => 'The maximum number of quota alerts is exceeded.', 'http_code' => 400, 'description' => 'The maximum number of quota alerts has been reached.'],
+ ['code' => 'QUOTA.APPLICATION.NOT.FOUND', 'message' => 'The quota adjustment application does not exist.', 'http_code' => 400, 'description' => 'The quota adjustment application does not exist.'],
+ ['code' => 'QUOTA.APPLICATION.NOT.FOUND', 'message' => 'Quota application does not exist', 'http_code' => 400, 'description' => 'The quota application does not exist.'],
+ ['code' => 'QUOTA.APPLICATION.PROCESS', 'message' => 'The quota adjustment application is being processed. Please try again later.', 'http_code' => 400, 'description' => 'The quota application is being processed. You cannot submit an application at the time being.'],
+ ['code' => 'QUOTA.APPLICATION.TIME.ERROE', 'message' => 'ExpireTime cannot be earlier than the current time or EffectiveTime.', 'http_code' => 400, 'description' => 'ExpireTime cannot be earlier than the current time or EffectiveTime.'],
+ ['code' => 'QUOTA.DESIREVALUE.ILLEGAL', 'message' => 'DesirValue less than or equal to the current quota value, or that is not within the adjustable range.', 'http_code' => 400, 'description' => 'DesirValue less than or equal to the current quota value, or that is not within the adjustable range.'],
+ ['code' => 'QUOTA.DIMENSION.MISS', 'message' => 'The specified parameter is invalid. Please try again later.', 'http_code' => 400, 'description' => 'An input parameter is invalid. Submit the application again later.'],
+ ['code' => 'QUOTA.DIMENSION.MISS', 'message' => 'The entered quota dimension is incomplete,Please complete the dimension.', 'http_code' => 400, 'description' => 'The specified quota dimension is incomplete. Specify a complete dimension.'],
+ ['code' => 'QUOTA.DIMENSION.UNSUPPORT', 'message' => 'The entered quota dimension key is not supported.', 'http_code' => 400, 'description' => 'The specified dimension key is invalid.'],
+ ['code' => 'QUOTA.DIMENSION.VALUE.UNSUPPORT', 'message' => 'The entered quota dimension value is not supported.', 'http_code' => 400, 'description' => 'The specified dimension value is invalid.'],
+ ['code' => 'QUOTA.IS.OFFLINE.QUIET.PERIOD', 'message' => 'This quota is offline quiet period. Do not support creating alarm or templates and applying for quotas.', 'http_code' => 400, 'description' => 'This quota is offline quiet period. Do not support creating alarm or templates and applying for quotas.'],
+ ['code' => 'QUOTA.NOT.ADJUSTABLE', 'message' => 'The quota cannot be adjusted.', 'http_code' => 400, 'description' => 'The quota is not adjustable.'],
+ ['code' => 'QUOTA.NOT.ADJUSTABLE', 'message' => 'Quota is not adjustable', 'http_code' => 400, 'description' => 'The quota is not adjustable.'],
+ ['code' => 'QUOTA.NOT.FOUND', 'message' => 'The quota does not exist.', 'http_code' => 400, 'description' => 'The quota does not exist.'],
+ ['code' => 'Quota.Not.Support.Alert', 'message' => 'You cannot create an alert for the specified quota.', 'http_code' => 400, 'description' => 'You cannot create an alert for this quota item.'],
+ ['code' => 'QUOTA.OFFLINE', 'message' => 'The quota has been offline.', 'http_code' => 400, 'description' => 'The quota has been offline.'],
+ ['code' => 'QUOTA.UNSUPPORT.ALARM', 'message' => 'Quotas without values or without usage display are not supported for configuring alerts.', 'http_code' => 400, 'description' => 'Quotas without values or without usage display are not supported for configuring alerts.'],
+ ['code' => 'RAM.PERMISSION.DENIED', 'message' => 'You do not have access.', 'http_code' => 400, 'description' => 'You do not have the permissions to access.'],
+ ['code' => 'RAM.PERMISSION.DENIED', 'message' => 'You are not authorized to do this action or the API input parameter is invalid.', 'http_code' => 400, 'description' => 'You have no access'],
+ ['code' => 'RAM.VERIFICATION.ERROR', 'message' => 'Verify permission service network error, please try again later.', 'http_code' => 400, 'description' => 'Verify permission service network error, please try again later.'],
+ ['code' => 'RD.NOT.EXIST', 'message' => 'Resource directory is not exist.', 'http_code' => 400, 'description' => 'The account does not have the corresponding resource directory information.'],
+ ['code' => 'RD.REMOTE.ERROR', 'message' => 'Resource directory service exception, please try again later.', 'http_code' => 400, 'description' => 'The resource directory service is abnormal. Try again later.'],
+ ['code' => 'REMIND.APPLICATION.LIMIT', 'message' => 'Quota application do not support reminders or reminder interval exceeds the limit.', 'http_code' => 400, 'description' => 'Quota application do not support reminders or reminder interval exceeds the limit.'],
+ ['code' => 'REMOTE.REQUEST.ERROR', 'message' => 'Service error. Please contact the technical support team if the error persists after retrying.', 'http_code' => 400, 'description' => 'Service error. Please contact the technical support team if the error persists after retrying.'],
+ ['code' => 'RISK.USER.RISK', 'message' => 'The account is at risk, please contact customer service or submit a ticket to solve it.', 'http_code' => 400, 'description' => 'The account is at risk, please contact customer service or submit a ticket to solve it.'],
+ ['code' => 'SignatureDoesNotMatch', 'message' => 'The signature we calculated does not match the one you provided. Please refer to the API reference about authentication for details.', 'http_code' => 400, 'description' => 'The signature is invalid.'],
+ ['code' => 'SYSTEM.ERROR', 'message' => 'Service error. Please contact the technical support team if the error persists after retrying.', 'http_code' => 400, 'description' => 'Service error. Please contact the technical support team if the error persists after retrying.'],
+ ['code' => 'TEMPLATE.ITEM.NOT.FOUND', 'message' => 'Quota template item does not exist.', 'http_code' => 400, 'description' => 'The quota template item does not exist.'],
+ ['code' => 'TEMPLATE.NOT.FOUND', 'message' => 'Quota template does not exist.', 'http_code' => 400, 'description' => 'The quota template information does not exist.'],
+ ['code' => 'TEMPLATE.NOT.RD.MA', 'message' => 'The requested account is not the MA master account of RD and does not have permission to operate quota templates.', 'http_code' => 400, 'description' => 'The current account is not the management account of the resource directory and does not have the permissions to manage the quota template.'],
+ ['code' => 'TEMPLATE.RDID.INVALID', 'message' => 'RdId invalid', 'http_code' => 400, 'description' => 'The resource ID is invalid.'],
+ ['code' => 'THRESHOLD.ILLEGAL', 'message' => 'The alarm Threshold or ThresholdPercent is either empty or ThresholdPercent not in (0,100].', 'http_code' => 400, 'description' => 'The alarm Threshold or ThresholdPercent is either empty or ThresholdPercent not in (0,100].'],
+ ['code' => 'THRESHOLD.MAx.ILLEGAL', 'message' => 'The quota warning threshold cannot be greater than the current quota.', 'http_code' => 400, 'description' => 'The threshold for triggering quota alerts cannot be greater than the current quota.'],
+ ['code' => 'THRESHOLD.MIN.ILLEGAL', 'message' => 'The quota warning threshold cannot be smaller than the currently consumed quota', 'http_code' => 400, 'description' => 'The threshold for triggering quota alerts cannot be less than the currently consumed amount.'],
+ ['code' => 'Throttling.User', 'message' => 'Request was denied due to user flow control.', 'http_code' => 400, 'description' => 'The request is rejected because the request frequency has exceeded the upper limit. Please try again later.'],
+ ['code' => 'UNSUPPORT.UPDATE.DIMENSIONS', 'message' => 'The Quota dimension don\'t support be modified when you update quota template.', 'http_code' => 400, 'description' => 'Quota template changes do not support the modification of quota dimensions.'],
+ ['code' => 'UNSUPPORT.UPDATE.PRODUCTCODE.QUOTACODE', 'message' => 'Modification of product name, quota code and dimension data is not supported', 'http_code' => 400, 'description' => 'The product name, quota code, and dimension cannot be modified.'],
+ ['code' => 'UNSUPPORTED.ALARM.TYPE', 'message' => 'Unified alarm does not support alarm types for used quantity alarms, and does not support numerical threshold types of quota alarms.', 'http_code' => 400, 'description' => 'Unified alarm does not support alarm types for used quantity alarms, and does not support numerical threshold types of quota alarms.'],
+ ],
+ 'changeSet' => [
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListProductQuotaDimensions'],
+ ],
+ 'createdAt' => '2024-02-01T08:17:24.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListAlarmHistories'],
+ ],
+ 'createdAt' => '2024-01-31T08:21:05.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotaApplications'],
+ ],
+ 'createdAt' => '2024-01-16T11:20:55.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotaApplications'],
+ ],
+ 'createdAt' => '2024-01-12T02:41:45.000Z',
+ 'description' => '',
+ ],
[
- 'regionId' => 'cn-qingdao',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListQuotaApplicationsForTemplate'],
+ ],
+ 'createdAt' => '2023-12-13T07:18:34.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'CreateQuotaApplicationsForTemplate'],
+ ],
+ 'createdAt' => '2023-11-22T02:34:31.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-zhangjiakou',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetProductQuota'],
+ ['description' => 'Response parameters changed', 'api' => 'ListProductQuotas'],
+ ],
+ 'createdAt' => '2023-11-07T11:22:13.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-huhehaote',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Error codes changed', 'api' => 'CreateQuotaAlarm'],
+ ['description' => 'Error codes changed', 'api' => 'UpdateQuotaAlarm'],
+ ],
+ 'createdAt' => '2023-10-12T08:10:29.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-wulanchabu',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Error codes changed', 'api' => 'GetQuotaApplication'],
+ ],
+ 'createdAt' => '2023-09-22T07:29:50.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Error codes changed', 'api' => 'DeleteQuotaAlarm'],
+ ['description' => 'Error codes changed', 'api' => 'DeleteTemplateQuotaItem'],
+ ['description' => 'Error codes changed', 'api' => 'GetQuotaAlarm'],
+ ['description' => 'Error codes changed', 'api' => 'GetQuotaApplication'],
+ ['description' => 'Error codes changed', 'api' => 'ModifyTemplateQuotaItem'],
+ ['description' => 'Error codes changed', 'api' => 'UpdateQuotaAlarm'],
+ ],
+ 'createdAt' => '2023-09-04T03:14:50.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ModifyTemplateQuotaItem'],
+ ],
+ 'createdAt' => '2023-07-19T04:01:22.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetProductQuota'],
+ ['description' => 'Response parameters changed', 'api' => 'ListProductQuotas'],
+ ],
+ 'createdAt' => '2023-06-28T09:32:25.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-chengdu',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'CreateTemplateQuotaItem'],
+ ],
+ 'createdAt' => '2023-05-22T11:06:00.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-hongkong',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetQuotaAlarm'],
+ ],
+ 'createdAt' => '2023-05-06T02:47:28.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-northeast-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListQuotaApplicationTemplates'],
+ ],
+ 'createdAt' => '2023-03-24T08:23:59.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetProductQuota'],
+ ],
+ 'createdAt' => '2023-03-24T08:21:20.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-southeast-3',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateQuotaApplication'],
+ ['description' => 'Request parameters changed', 'api' => 'CreateTemplateQuotaItem'],
+ ['description' => 'Response parameters changed, Response parameters changed', 'api' => 'GetProductQuota'],
+ ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'ListProductQuotas'],
+ ['description' => 'Response parameters changed', 'api' => 'ListProducts'],
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotaApplications'],
+ ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'ListQuotaApplicationTemplates'],
+ ['description' => 'Request parameters changed', 'api' => 'ModifyTemplateQuotaItem'],
+ ],
+ 'createdAt' => '2022-12-22T10:46:06.000Z',
+ 'description' => '支持权益配额(WhiteListLabel)',
],
[
- 'regionId' => 'ap-southeast-5',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetProductQuota'],
+ ],
+ 'createdAt' => '2022-12-07T10:07:03.000Z',
+ 'description' => '新增SupportedRange,表示当前配额项支持的配额值区间。用于配置配额模板时进行参考。',
],
[
- 'regionId' => 'us-east-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListProductQuotas'],
+ ],
+ 'createdAt' => '2022-12-02T01:57:25.000Z',
+ 'description' => '应答中新增SupportedRange字段,该字段表示当前配额项支持的所有可能的配额值,一般用于配额模板配置时进行参考。不同于已有的ApplicableRange,ApplicableRange表示当前用户可申请的配额值,排除了当前用户已有的配额区间,一般用于申请配额时进行参考。',
],
[
- 'regionId' => 'us-west-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotaApplicationTemplates'],
+ ],
+ 'createdAt' => '2022-12-02T01:33:18.000Z',
+ 'description' => 'API ListProductQuotas 在应答中新增SupportedRange字段,该字段标识所有的可能的配额值,一般用户配额模板场景。同现有的ApplicableRange不同,ApplicableRange会排除当前账号已有的配额值,一般用于用户自己提升配额值。',
],
[
- 'regionId' => 'eu-west-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotaApplicationTemplates'],
+ ],
+ 'createdAt' => '2022-11-15T09:00:44.000Z',
+ 'description' => '新增根据ID查询的参数',
],
[
- 'regionId' => 'eu-central-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Error codes changed', 'api' => 'GetQuotaTemplateServiceStatus'],
+ ['description' => 'Error codes changed', 'api' => 'ModifyTemplateQuotaItem'],
+ ],
+ 'createdAt' => '2022-09-05T01:54:26.000Z',
+ 'description' => '增加错误码',
],
[
- 'regionId' => 'me-east-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListQuotaApplicationTemplates'],
+ ],
+ 'createdAt' => '2022-08-31T10:33:32.000Z',
+ 'description' => '配额模板列表支持返回配额名称和描述',
],
[
- 'regionId' => 'cn-hangzhou-finance',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Error codes changed', 'api' => 'ListProductQuotas'],
+ ],
+ 'createdAt' => '2022-08-26T08:12:32.000Z',
+ 'description' => '新增分页参数错误码',
],
[
- 'regionId' => 'cn-shanghai-finance-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Error codes changed', 'api' => 'CreateQuotaAlarm'],
+ ['description' => 'Error codes changed', 'api' => 'CreateQuotaApplication'],
+ ['description' => 'Error codes changed', 'api' => 'GetQuotaApplication'],
+ ['description' => 'Error codes changed', 'api' => 'ListAlarmHistories'],
+ ['description' => 'Error codes changed', 'api' => 'ListQuotaApplications'],
+ ],
+ 'createdAt' => '2022-08-23T09:52:42.000Z',
+ 'description' => '新增 API 维度错误码信息',
],
[
- 'regionId' => 'cn-shenzhen-finance-1',
- 'endpoint' => 'quotas.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateQuotaApplication'],
+ ],
+ 'createdAt' => '2022-04-13T08:14:55.000Z',
+ 'description' => '配额申请时,支持获取环境语种',
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAlarmHistories'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaApplicationTemplates'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProductQuotaDimension'],
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProductQuotaDimensions'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyTemplateQuotaItem'],
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateQuotaApplication'],
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetQuotaTemplateServiceStatus'],
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProducts'],
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetQuotaApplication'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTemplateQuotaItem'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDependentQuotas'],
+ ['threshold' => '6', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaApplications'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetQuotaAlarm'],
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemindQuotaApplicationApproval'],
+ ['threshold' => '4', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTemplateQuotaItem'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateQuotaApplicationsForTemplate'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaAlarms'],
+ ['threshold' => '15', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProductQuota'],
+ ['threshold' => '15', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProductQuotas'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyQuotaTemplateServiceStatus'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaApplicationsForTemplate'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateQuotaAlarm'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteQuotaAlarm'],
+ ['threshold' => '3', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProductDimensionGroups'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateQuotaAlarm'],
+ ['threshold' => '6', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetQuotaApplicationApproval'],
+ ['threshold' => '2', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListQuotaApplicationsDetailForTemplate'],
+ ],
+ 'product' => ['code' => 'quotas', 'title' => 'quotas'],
+ ],
+ 'ram' => [
+ 'productCode' => 'Quotas',
+ 'productName' => 'Quota Center',
+ 'ramCodes' => ['quotas'],
+ 'ramLevel' => 'RESOURCE',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'DeleteTemplateQuotaItem',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'quotas:DeleteTemplateQuotaItem',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'TemplateQuota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetQuotaAlarm',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetQuotaAlarm',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListProductQuotaDimensions',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListProductQuotaDimensions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListQuotaApplications',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaApplications',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListQuotaApplicationsDetailForTemplate',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaApplicationsDetailForTemplate',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyTemplateQuotaItem',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'quotas:ModifyTemplateQuotaItem',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'TemplateQuota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RemindQuotaApplicationApproval',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'quotas:RemindQuotaApplicationApproval',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetProductQuotaDimension',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetProductQuotaDimension',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListProductQuotas',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'quotas:ListProductQuotas',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'Quota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteQuotaAlarm',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'quotas:DeleteQuotaAlarm',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateQuotaApplicationsForTemplate',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'quotas:CreateQuotaApplicationsForTemplate',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListQuotaApplicationsForTemplate',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaApplicationsForTemplate',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetProductQuota',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'quotas:GetProductQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'Quota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListQuotaAlarms',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaAlarms',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateTemplateQuotaItem',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'quotas:CreateTemplateQuotaItem',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'TemplateQuota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetQuotaTemplateServiceStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'quotas:GetQuotaTemplateServiceStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModifyQuotaTemplateServiceStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'quotas:ModifyQuotaTemplateServiceStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetQuotaApplicationApproval',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetQuotaApplicationApproval',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateQuotaApplication',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'quotas:CreateQuotaApplication',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaApplication', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAlarmHistories',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListAlarmHistories',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateQuotaAlarm',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'quotas:UpdateQuotaAlarm',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetQuotaApplication',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:GetQuotaApplication',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaApplication', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateQuotaAlarm',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'quotas:CreateQuotaAlarm',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListProductDimensionGroups',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListProductDimensionGroups',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDependentQuotas',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'quotas:ListDependentQuotas',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListQuotaApplicationTemplates',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'quotas:ListQuotaApplicationTemplates',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Quotas', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'TemplateQuota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ['validationType' => 'always', 'resourceType' => 'QuotaAlarm', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ['validationType' => 'always', 'resourceType' => 'Quota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/*'],
+ ['validationType' => 'always', 'resourceType' => 'Quota', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
+ ['validationType' => 'always', 'resourceType' => 'QuotaApplication', 'arn' => 'acs:quotas:{#regionId}:{#accountId}:quota/{#ProductCode}/{#QuotaActionCode}'],
],
],
];