api-ref: limits.inc validate parameters

Part of blueprint api-ref-in-rst

Change-Id: I1b39ef719aa9dfcaec83b0d444baf41bb27ee813
This commit is contained in:
Augustina Ragwitz
2016-05-11 11:57:09 -07:00
committed by Sean Dague
parent 6a39fad56c
commit 8e0d8b7f9f
2 changed files with 49 additions and 1 deletions

View File

@@ -1,5 +1,4 @@
.. -*- rst -*-
.. needs:parameter_verification
.. needs:example_verification
.. needs:body_verification
@@ -30,6 +29,25 @@ Request
Response
--------
.. rest_parameters:: parameters.yaml
- limits: limits
- absolute: limits_absolutes
- maxImageMeta: metadata_items
- maxPersonality: injected_files
- maxPersonalitySize: injected_file_content_bytes
- maxSecurityGroupRules: security_group_rules
- maxSecurityGroups: security_groups
- maxServerGroupMembers: server_group_members
- maxServerGroups: server_groups
- maxServerMeta: metadata_items
- maxTotalCores: cores
- maxTotalFloatingIps: floating_ips
- maxTotalInstances: instances
- maxTotalKeypairs: key_pairs
- maxTotalRAMSize: ram
- rate: limits_rates
**Example Show Rate And Absolute Limits: JSON response**
.. literalinclude:: ../../doc/api_samples/limits/limit-get-resp.json

View File

@@ -1497,6 +1497,36 @@ limit_1:
in: body
required: true
type: integer
limits:
description: |
Data structure that contains both absolute limits within a deployment.
in: body
required: true
type: object
limits_absolutes:
description: |
Name/value pairs that set quota limits within a deployment.
in: body
required: true
type: object
limits_rate_regex:
description: |
A regular expression defining the URI path to apply the limit to.
in: body
required: true
type: string
limits_rate_uri:
description: |
A human readable URI that is used as a friendly description of where the api rate limit is applied.
in: body
required: true
type: string
limits_rates:
description: |
An empty list for backwards compatibility purposes.
in: body
required: true
type: array
links:
description: |
Links to the resources in question. See `API Guide / Links and