Skip to content

List the organization's quotas, sorted by ID

Every active quota, with its value and usage. For a quota narrower than the organization, the value is what a scope key without its own override gets, usage is null and usageSummary sums its scope keys up, unless scopeKey picks one scope key. regions lists the platform's regions.

GET
https://quotas.ezghcloud.com/v1/organizations/{orgId}/quotas

Authorization

  • apiKeyoptionalHTTP
  • sessionCookieoptionalAPI key in cookie
  • oauthoptionalHTTP

Path parameters

  • orgIdstringrequired
    format: uuid

Query parameters

  • serviceoptionalstring

    Only this product's quotas: its namespace.

    pattern: ^[a-z]{2,32}$
  • scopeoptionalorganizationorprojectorresource

    Only quotas per organization, per project or per resource.

  • scopeKeyoptionalstring

    A project's or resource's ID: each quota's value, source and usage are then that scope key's. With scope project or resource, only those quotas; without scope, a project's view: the organization's quotas and that project's.

    pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
  • regionoptionalstring

    The region of perRegion quotas' values and usage.

    pattern: ^([a-z]{2}-[a-z]+-[0-9]+)?$
  • limitoptionalinteger

    The page size. Out of range is 400, never a clamp.

    maximum: 100, minimum: 1
    Default: 20
  • cursoroptionalstring

    The previous page's nextCursor. Bound to the organization and every filter.

Returns

200

A page of quotas.

JSON
  • nextCursorstring | nullrequired
  • quotasarray ofobjectrequired
    20 properties
    • adjustablebooleanrequired
    • capacityinteger | nullrequired

      rate quotas: the bucket's capacity for value (what usage.used is out of), else null.

      minimum: 0
    • defaultintegerrequired

      The default for the organization's tier.

      minimum: 0
    • descriptionstringrequired
    • displayNamestringrequired
    • idstringrequired

      . or ...

      maxLength: 96, pattern: ^[a-z]{2,32}\.[a-z][A-Za-z0-9]{2,63}(\.[a-z][A-Za-z0-9]{1,63})?$
    • kindallocationorrateorusageorconcurrencyrequired
    • perRegionbooleanrequired
    • regionstringrequired

      A region (us-west-1), or "" for what isn't regional.

      pattern: ^([a-z]{2}-[a-z]+-[0-9]+)?$
    • resourceTypestring | nullrequired
    • scopeorganizationorprojectorresourcerequired
    • servicestringrequired

      The owning product's namespace.

    • serviceNamestring | nullrequired

      The owning product's name, from its registration (Widgets), or null.

    • sourceoverrideororganizationOverrideortierordefaultrequired

      Which value applied: an override for the scope key, one for the whole organization, the tier's default, or the quota's default.

    • tierstring | nullrequired

      The organization's tier when source is tier, else null.

    • unitstringrequired
    • usagenullorUsagerequired

      null for narrower scopes without ?scopeKey= (see usageSummary and the quota's scopes), and for a perRegion quota without ?region=.

      2 variants

      One of the following:

      • null
      • Usage
        4 properties
        • periodStartnullorInstantrequired

          usage quotas only.

          2 variants

          One of the following:

        • resetsAtnullorInstantrequired

          usage quotas only.

          2 variants

          One of the following:

        • stateavailableorunavailablerequired

          unavailable: the product (allocation) or Quotas' Redis didn't answer in time; never a stale number.

        • usedinteger | nullrequired

          allocation: in use; usage: this billing period; concurrency: in flight; rate: tokens in use of the bucket's capacity (capacity minus whole tokens available), never above capacity. null when unavailable.

          minimum: 0
    • usageSummarynullorUsageSummaryrequired

      When usage is null: where the scope keys (and regions) stand. Else null.

      2 variants

      One of the following:

      • null
      • 7 properties
        • maxLimitinteger | nullrequired

          …its limit.

          minimum: 0
        • maxRegionnullorRegionrequired

          …its region.

          2 variants

          One of the following:

        • maxScopeKeynullorUuidrequired

          …its scope key.

          2 variants

          One of the following:

        • maxUsedinteger | nullrequired

          The row using the largest share of its limit: its usage.

          minimum: 0
        • scopeKeysintegerrequired

          Rows (scope key and region) with known usage.

          minimum: 0
        • scopeKeysNearintegerrequired

          Rows at 80% of their limit (the value; a rate quota's capacity) or more.

          minimum: 0
        • stateavailableorunavailablerequired

          unavailable: some usage couldn't be read; the counts are of what could be.

    • valueintegerrequired

      The value that applies: the organization's, a scope key without its own override's, or with ?scopeKey= that scope key's.

      minimum: 0
    • windowstring | nullrequired

      rate quotas: PT1S to PT1H.

  • regionsarray ofstringrequired

    The platform's regions: a perRegion quota's ?region= choices.

    pattern: ^([a-z]{2}-[a-z]+-[0-9]+)?$

400

invalid_request (with issues), invalid_cursor, or the endpoint's own 400 codes.

JSON
  • errorobjectrequired
    4 properties
    • codestringrequired
      maxLength: 64, pattern: ^[a-z][a-z0-9_]*$
    • messagestringrequired
      maxLength: 1024
    • issuesoptionalarray ofobject

      invalid_request: one entry per problem, at a dotted path.

      2 properties
      • messagestringrequired
      • pathstringrequired
    • quotaoptionalobject

      quota_exceeded: the quota that refused the request (contracts/quotas.md, "When a quota is exceeded"). Never with Retry-After.

      11 properties
      • idstringrequired
      • kindallocationorrateorusageorconcurrencyrequired
      • limitintegerrequired
        minimum: 0
      • scopeorganizationorprojectorresourcerequired
      • inFlightoptionalinteger
        minimum: 0
      • periodStartoptionalstring
        format: date-time
      • regionoptionalstring
      • resetsAtoptionalstring
        format: date-time
      • scopeResourceNameoptionalstring
      • usedoptionalinteger
        minimum: 0
      • windowoptionalstring

        rate only: an ISO 8601 duration, PT1S to PT1H.

401

unauthenticated: no credential, or one that doesn't check out.

JSON
  • errorobjectrequired
    4 properties
    • codestringrequired
      maxLength: 64, pattern: ^[a-z][a-z0-9_]*$
    • messagestringrequired
      maxLength: 1024
    • issuesoptionalarray ofobject

      invalid_request: one entry per problem, at a dotted path.

      2 properties
      • messagestringrequired
      • pathstringrequired
    • quotaoptionalobject

      quota_exceeded: the quota that refused the request (contracts/quotas.md, "When a quota is exceeded"). Never with Retry-After.

      11 properties
      • idstringrequired
      • kindallocationorrateorusageorconcurrencyrequired
      • limitintegerrequired
        minimum: 0
      • scopeorganizationorprojectorresourcerequired
      • inFlightoptionalinteger
        minimum: 0
      • periodStartoptionalstring
        format: date-time
      • regionoptionalstring
      • resetsAtoptionalstring
        format: date-time
      • scopeResourceNameoptionalstring
      • usedoptionalinteger
        minimum: 0
      • windowoptionalstring

        rate only: an ISO 8601 duration, PT1S to PT1H.

403

access_denied: the caller's policies don't allow the action; forbidden_origin: a cookie-authenticated write from an origin that isn't allowed; spend_limit_reached.

JSON
  • errorobjectrequired
    4 properties
    • codestringrequired
      maxLength: 64, pattern: ^[a-z][a-z0-9_]*$
    • messagestringrequired
      maxLength: 1024
    • issuesoptionalarray ofobject

      invalid_request: one entry per problem, at a dotted path.

      2 properties
      • messagestringrequired
      • pathstringrequired
    • quotaoptionalobject

      quota_exceeded: the quota that refused the request (contracts/quotas.md, "When a quota is exceeded"). Never with Retry-After.

      11 properties
      • idstringrequired
      • kindallocationorrateorusageorconcurrencyrequired
      • limitintegerrequired
        minimum: 0
      • scopeorganizationorprojectorresourcerequired
      • inFlightoptionalinteger
        minimum: 0
      • periodStartoptionalstring
        format: date-time
      • regionoptionalstring
      • resetsAtoptionalstring
        format: date-time
      • scopeResourceNameoptionalstring
      • usedoptionalinteger
        minimum: 0
      • windowoptionalstring

        rate only: an ISO 8601 duration, PT1S to PT1H.

404

not_found: unknown, malformed, or in an organization the caller isn't in.

JSON
  • errorobjectrequired
    4 properties
    • codestringrequired
      maxLength: 64, pattern: ^[a-z][a-z0-9_]*$
    • messagestringrequired
      maxLength: 1024
    • issuesoptionalarray ofobject

      invalid_request: one entry per problem, at a dotted path.

      2 properties
      • messagestringrequired
      • pathstringrequired
    • quotaoptionalobject

      quota_exceeded: the quota that refused the request (contracts/quotas.md, "When a quota is exceeded"). Never with Retry-After.

      11 properties
      • idstringrequired
      • kindallocationorrateorusageorconcurrencyrequired
      • limitintegerrequired
        minimum: 0
      • scopeorganizationorprojectorresourcerequired
      • inFlightoptionalinteger
        minimum: 0
      • periodStartoptionalstring
        format: date-time
      • regionoptionalstring
      • resetsAtoptionalstring
        format: date-time
      • scopeResourceNameoptionalstring
      • usedoptionalinteger
        minimum: 0
      • windowoptionalstring

        rate only: an ISO 8601 duration, PT1S to PT1H.

429

too_many_requests, with Retry-After; or quota_exceeded (a rate, usage or concurrency quota, with quota), never with Retry-After.

JSON
  • errorobjectrequired
    4 properties
    • codestringrequired
      maxLength: 64, pattern: ^[a-z][a-z0-9_]*$
    • messagestringrequired
      maxLength: 1024
    • issuesoptionalarray ofobject

      invalid_request: one entry per problem, at a dotted path.

      2 properties
      • messagestringrequired
      • pathstringrequired
    • quotaoptionalobject

      quota_exceeded: the quota that refused the request (contracts/quotas.md, "When a quota is exceeded"). Never with Retry-After.

      11 properties
      • idstringrequired
      • kindallocationorrateorusageorconcurrencyrequired
      • limitintegerrequired
        minimum: 0
      • scopeorganizationorprojectorresourcerequired
      • inFlightoptionalinteger
        minimum: 0
      • periodStartoptionalstring
        format: date-time
      • regionoptionalstring
      • resetsAtoptionalstring
        format: date-time
      • scopeResourceNameoptionalstring
      • usedoptionalinteger
        minimum: 0
      • windowoptionalstring

        rate only: an ISO 8601 duration, PT1S to PT1H.

500

internal_error: a bug; the details are in the logs, under the request ID.

JSON
  • errorobjectrequired
    4 properties
    • codestringrequired
      maxLength: 64, pattern: ^[a-z][a-z0-9_]*$
    • messagestringrequired
      maxLength: 1024
    • issuesoptionalarray ofobject

      invalid_request: one entry per problem, at a dotted path.

      2 properties
      • messagestringrequired
      • pathstringrequired
    • quotaoptionalobject

      quota_exceeded: the quota that refused the request (contracts/quotas.md, "When a quota is exceeded"). Never with Retry-After.

      11 properties
      • idstringrequired
      • kindallocationorrateorusageorconcurrencyrequired
      • limitintegerrequired
        minimum: 0
      • scopeorganizationorprojectorresourcerequired
      • inFlightoptionalinteger
        minimum: 0
      • periodStartoptionalstring
        format: date-time
      • regionoptionalstring
      • resetsAtoptionalstring
        format: date-time
      • scopeResourceNameoptionalstring
      • usedoptionalinteger
        minimum: 0
      • windowoptionalstring

        rate only: an ISO 8601 duration, PT1S to PT1H.

503

unavailable: a dependency the request needs is down. Retry after Retry-After.

JSON
  • errorobjectrequired
    4 properties
    • codestringrequired
      maxLength: 64, pattern: ^[a-z][a-z0-9_]*$
    • messagestringrequired
      maxLength: 1024
    • issuesoptionalarray ofobject

      invalid_request: one entry per problem, at a dotted path.

      2 properties
      • messagestringrequired
      • pathstringrequired
    • quotaoptionalobject

      quota_exceeded: the quota that refused the request (contracts/quotas.md, "When a quota is exceeded"). Never with Retry-After.

      11 properties
      • idstringrequired
      • kindallocationorrateorusageorconcurrencyrequired
      • limitintegerrequired
        minimum: 0
      • scopeorganizationorprojectorresourcerequired
      • inFlightoptionalinteger
        minimum: 0
      • periodStartoptionalstring
        format: date-time
      • regionoptionalstring
      • resetsAtoptionalstring
        format: date-time
      • scopeResourceNameoptionalstring
      • usedoptionalinteger
        minimum: 0
      • windowoptionalstring

        rate only: an ISO 8601 duration, PT1S to PT1H.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close