Merge "api-ref: limits.inc validate parameters"

This commit is contained in:
Jenkins
2016-05-23 15:52:06 +00:00
committed by Gerrit Code Review
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

@@ -1721,6 +1721,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