Getting started with Yandex Cloud Quota Manager
Cloud Quota Manager allows you to manage quotas of your Yandex Cloud services using different interfaces.
Quotas: Resource usage limits. Quotas can be increased upon request within Yandex Cloud's technical limits.
Quota management interfaces:
- Cloud Center
: Organization level. - Management console
: Cloud level. - CLI and API: Organization and cloud level. To manage quota update requests via the CLI and API, contact support
.
In most services, quotas apply at the cloud level. In Resource Manager, Cloud Video, and some other services quotas apply at the organization level. IAM has quotas at both levels.
Getting started
Make sure the user or service account has the appropriate role for the cloud or organization:
- quota-manager.viewer: To view quotas.
- quota-manager.requestOperator: To view quotas and create quota update requests.
No additional preparations are required.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id.
If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
-
Install cURL
. -
Create a service account and assign it one of the roles listed above.
-
Get an IAM token for the created service account.
-
Save the IAM token you got in the environment variable:
export IAM_TOKEN=<IAM_token>
-
Install the gRPCurl
utility. -
Create a service account and assign it one of the roles listed above.
-
Get an IAM token for the created service account.
-
Save the IAM token you got in the environment variable:
export IAM_TOKEN=<IAM_token>
Getting quota info
Quotas apply at the cloud or organization level. If the level is unknown, look at both levels and find the required service.
-
Select a cloud in the management console
or an organization in Cloud Center . -
In the left-hand panel, open
Quotas. -
On the List of quotas tab, enter the service name and the quota name or ID in the search bar.
-
Expand the service in question in one of the groups:
- Services with usage: Consumption of at least one quota is greater than zero.
- Services without usage: Consumption across all quotas is zero.
-
View the quota value in the Usage column:
- Numbers mean quota usage / quota value.
- Quota not allocated: Quota value not set.
-
To only show services whose quotas are close to being used up, click Almost expired above.
If quotas are close to being exhausted or have not been allocated, you can request an update on the same page.
-
View the list of services with cloud-level quotas:
yc quota-manager quota-limit list-services --resource-type resource-manager.cloudThe
--resource-typeparameter (resource type) determines the scope at which quotas are viewed. For the organization level, specifyorganization-manager.organization. -
View the
iam.accessKeys.countquota value and usage info:yc quota-manager quota-limit get \ --quota-id iam.accessKeys.count \ --resource-id <cloud_ID> \ --resource-type resource-manager.cloudWhere:
--resource-id: Cloud or organization ID.--quota-id: Quota ID from the reference. In the example,  is the number of static access keys in the cloud.--resource-type: Resource type that determines the scope at which quotas are viewed. For the organization level, specifyorganization-manager.organization.
In the response,
limitstands for the quota value, andusage, for quota usage. Compare these values to assess the remaining share of the quota.To find other quotas, view the list of quotas for the service in question.
-
Get the list of services with cloud-level quotas using the listServices method:
curl \ --request GET \ --header "Authorization: Bearer ${IAM_TOKEN?}" \ 'https://quota-manager.api.cloud.yandex.net/quota-manager/v1/quotaLimits/services?resourceType=resource-manager.cloud'The
resourceTypeparameter (resource type) determines the scope at which quotas are viewed. For the organization level, specifyorganization-manager.organization.If the response contains a non-empty
nextPageTokenfield, provide its value in thepageTokenparameter of the next request. Repeat your requests until you have retrieved all services. -
Get the
iam.accessKeys.countquota value and usage info using the get method for the QuotaLimit resource:curl \ --request GET \ --header "Authorization: Bearer ${IAM_TOKEN?}" \ 'https://quota-manager.api.cloud.yandex.net/quota-manager/v1/quotaLimits/iam.accessKeys.count?resource.id=<cloud_ID>&resource.type=resource-manager.cloud'Where:
resource.id: Cloud or organization ID.iam.accessKeys.count: ID of the quota for the number of static access key in the cloud. For a different quota, use the ID from the reference.resource.type: Resource type that determines the scope at which quotas are viewed. For the organization level, specifyorganization-manager.organization.
In the response,
limitstands for the quota value, andusage, for quota usage. Compare these values to assess the remaining share of the quota.To find other quotas, view the list of quotas for the service in question.
-
Get the list of services with cloud-level quotas using the QuotaLimitService/ListServices method:
grpcurl \ -H "Authorization: Bearer ${IAM_TOKEN?}" \ -d '{"resource_type": "resource-manager.cloud"}' \ quota-manager.api.cloud.yandex.net:443 yandex.cloud.quotamanager.v1.QuotaLimitService/ListServicesThe
resource_typefield (resource type) determines the scope at which quotas are viewed. For the organization level, specifyorganization-manager.organization.If the response contains a non-empty
nextPageTokenfield, provide its value in thepage_tokenfield of the next request. Repeat your requests until you have retrieved all services. -
Get the
iam.accessKeys.countquota value and usage info using the QuotaLimitService/Get method:grpcurl \ -H "Authorization: Bearer ${IAM_TOKEN?}" \ -d '{"resource": {"id": "<cloud_ID>", "type": "resource-manager.cloud"}, "quota_id": "iam.accessKeys.count"}' \ quota-manager.api.cloud.yandex.net:443 yandex.cloud.quotamanager.v1.QuotaLimitService/GetWhere:
resource.id: Cloud or organization ID.quota_id: Quota ID from the reference. In the example,iam.accessKeys.countis the number of static access keys in the cloud.resource.type: Resource type that determines the scope at which quotas are viewed. For the organization level, specifyorganization-manager.organization.
In the response,
limitstands for the quota value, andusage, for quota usage. Compare these values to assess the remaining share of the quota.To find other quotas, view the list of quotas for the service in question.
Requesting quota changes
-
Select a cloud in the management console
or an organization in Cloud Center . -
In the left-hand panel, open
Quotas. -
On the List of quotas tab:
-
In the search bar, enter the service name and the quota name or ID.
-
In the Services with usage or Services without usage group, expand the appropriate section.
-
-
Mark the quotas you want increased and click Change.
-
Specify new quota values and click Submit.
-
Wait until your request has been reviewed.
-
Create a quota update request:
yc quota-manager quota-request create \ --resource-id <cloud_ID> \ --resource-type resource-manager.cloud \ --desired-limit quota-id=iam.accessKeys.count,value=1001In the example, a new value for the
1001quota is requested. You can replace it with another one.Save the value of the
idfield from the response, which is the request ID. -
Check the request status:
yc quota-manager quota-request get \ --id <request_ID>In the response, the
statusfield shows the request status. The result of updating each quota is provided in thequota_limitslist.
Wait for your request to be reviewed, then check its status and the outcome for each quota. Once approved, check the quota value again.
To locate a previously submitted request, view the request list. For detailed examples, see Examples of requests for quota management.
-
Create a request using the create method for the QuotaRequest resource:
curl \ --request POST \ --header "Authorization: Bearer ${IAM_TOKEN?}" \ --header "Content-Type: application/json" \ --data '{"resource": {"id": "<cloud_ID>", "type": "resource-manager.cloud"}, "desiredQuotaLimits": [{"quotaId": "iam.accessKeys.count", "desiredLimit": "1001"}]}' \ 'https://quota-manager.api.cloud.yandex.net/quota-manager/v1/quotaRequests'In the example, the final value of the
1001quota is requested. Replace it with the required value.Save the value of the
idfield from the response, which is the request ID. Theidanddonefields relate to the request creation operation, not to its review. -
Check the request status using the get method:
curl \ --request GET \ --header "Authorization: Bearer ${IAM_TOKEN?}" \ 'https://quota-manager.api.cloud.yandex.net/quota-manager/v1/quotaRequests/<request_ID>'In the response, the
statusfield shows the request status. The result of updating each quota is provided in thequotaLimitslist.
Wait for your request to be reviewed, then check its status and the outcome for each quota. Once approved, check the quota value again.
To locate a previously submitted request, view the request list. For detailed examples, see Examples of requests for quota management.
-
Create a request using the QuotaRequestService/Create method:
grpcurl \ -H "Authorization: Bearer ${IAM_TOKEN?}" \ -d '{"resource": {"id": "<cloud_ID>", "type": "resource-manager.cloud"}, "desired_quota_limits": [{"quota_id": "iam.accessKeys.count", "desired_limit": "1001"}]}' \ quota-manager.api.cloud.yandex.net:443 yandex.cloud.quotamanager.v1.QuotaRequestService/CreateIn the example, the final value of the
1001quota is requested. Replace it with the required value.Save the value of the
idfield from the response, which is the request ID. Theidanddonefields relate to the request creation operation, not to its review. -
Check the request status using the QuotaRequestService/Get method:
grpcurl \ -H "Authorization: Bearer ${IAM_TOKEN?}" \ -d '{"quota_request_id": "<request_ID>"}' \ quota-manager.api.cloud.yandex.net:443 yandex.cloud.quotamanager.v1.QuotaRequestService/GetIn the response, the
statusfield shows the request status. The result of updating each quota is provided in thequotaLimitslist.
Wait for your request to be reviewed, then check its status and the outcome for each quota. Once approved, check the quota value again.
To locate a previously submitted request, view the request list. For detailed examples, see Examples of requests for quota management.
You can also contact support
Quota usage: Amount of the resource actually in use. For details, see Concepts Cloud Quota Manager.
Quota limit: Current limit in place for a resource. For details, see Concepts Cloud Quota Manager.