CmdID

CmdID / aws / aws service-quotas

aws service-quotas get-service-quota

Retrieves the applied quota value for the specified account-level or resource-level quota. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To describe a service quota

The following get-service-quota example displays details about the specified quota.

aws service-quotas get-service-quota --service-code ec2 --quota-code L-1216C47AIdentify
--service-codeSpecifies the service identifier.
--quota-codeSpecifies the quota identifier.
Its output
{
    "Quota": {
        "ServiceCode": "ec2",
        "ServiceName": "Amazon Elastic Compute Cloud (Amazon EC2)",
        "QuotaArn": "arn:aws:servicequotas:us-west-2:123456789012:ec2/L-1216C47A",
        "QuotaCode": "L-1216C47A",
        "QuotaName": "Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances",
        "Value": 1920.0,
        "Unit": "None",
        "Adjustable": true,
        "GlobalQuota": false,
        "UsageMetric": {
            "MetricNamespace": "AWS/Usage",
            "MetricName": "ResourceCount",
            "MetricDimensions": {
                "Class": "Standard/OnDemand",
                "Resource": "vCPU",
                "Service": "EC2",
                "Type": "Resource"
            },
            "MetricStatisticRecommendation": "Maximum"
        }
    }
}

For more information, see Viewing service quotas in the Service Quotas User Guide.

Options

3 in the AWS CLI reference
--context-idSpecifies the resource with an Amazon Resource Name (ARN).
--quota-codeSpecifies the quota identifier.
--service-codeSpecifies the service identifier.