From ddea3e6016b2b9ba16a51806d73b6b7b9df0b182 Mon Sep 17 00:00:00 2001 From: Diane Fleming Date: Thu, 19 Mar 2015 10:10:44 -0500 Subject: [PATCH] Add definitions of absolute and rate limits. Change-Id: I043c7cb83f43459a898d5930c04f55a4362d3bd4 Closes-Bug: #1416914 --- .../src/wadls/compute-api/src/v2/common.ent | 225 ++++++++++++++++++ .../src/v2/ext/os-used-limits-for-admins.wadl | 16 +- .../src/v2/ext/os-used-limits.wadl | 16 +- .../compute-api/src/v2/wadl/os-compute-2.wadl | 5 +- 4 files changed, 253 insertions(+), 9 deletions(-) diff --git a/api-ref/src/wadls/compute-api/src/v2/common.ent b/api-ref/src/wadls/compute-api/src/v2/common.ent index 566c8583b..a4cf969d6 100644 --- a/api-ref/src/wadls/compute-api/src/v2/common.ent +++ b/api-ref/src/wadls/compute-api/src/v2/common.ent @@ -1780,3 +1780,228 @@ '> + + + + The maximum number of key-value pairs per image for the + project. + + + + + + The maximum number of file path and content pairs that can be + supplied on server build and rebuild for the project. + + + + + + The maximum size, in bytes, for each personality file that is + guaranteed to apply to all images in the project. Providers can + set additional per-image personality limits. + + + + + + The maximum number of security group rules per security group for + the project. + + + + + + The maximum number of security groups per server for the project. + + + + + + The maximum number of metadata key-value pairs that can be supplied + per server for the project. + + + + + + The maximum number of cores for the project. + + + + + The maximum number of floating IP addresses for the project. + + + These IPs must be allocated from the central pool before they can + be used. To allocate a floating IP to a project, see Associate floating IP + addresses. + + + + + + + The maximum number of servers at any one time for the project. + + + + + + The maximum number of key pairs per server for the project. + + + + + The maximum total amount of RAM, in MB, for all servers at any one + time for the project. + + + + + + The maximun number of server groups per server for the project. + + + + + + + The maximum number of server group members per server group for the project. + + +'> + + + + Total cores used. + + + + + + + Total instances used. + + + + + + + Total RAM, in MB, used for all servers at any one + time. + + + + + + + Total security groups used. + + + + + + + Total cores used. + + + + + + + Total floating IP addresses used. + + +'> + + + + Current rate limits. + + +'> diff --git a/api-ref/src/wadls/compute-api/src/v2/ext/os-used-limits-for-admins.wadl b/api-ref/src/wadls/compute-api/src/v2/ext/os-used-limits-for-admins.wadl index 0e14e6e85..336a39e57 100644 --- a/api-ref/src/wadls/compute-api/src/v2/ext/os-used-limits-for-admins.wadl +++ b/api-ref/src/wadls/compute-api/src/v2/ext/os-used-limits-for-admins.wadl @@ -1,10 +1,17 @@ - + %common; + + %common_project; +]> + + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wadl="http://wadl.dev.java.net/2009/02" + xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:db="http://docbook.org/ns/docbook" + xmlns:common="http://docs.openstack.org/common/api/v1.0" + xmlns:csapi="http://docs.openstack.org/compute/api/v2"> @@ -61,6 +68,7 @@ href="../api_samples/os-used-limits-for-admin/usedlimitsforadmin-get-resp.xml" /> + &absoluteLimits; &totalUsedLimits; &rateLimits; diff --git a/api-ref/src/wadls/compute-api/src/v2/ext/os-used-limits.wadl b/api-ref/src/wadls/compute-api/src/v2/ext/os-used-limits.wadl index 08079cc62..640e2af25 100644 --- a/api-ref/src/wadls/compute-api/src/v2/ext/os-used-limits.wadl +++ b/api-ref/src/wadls/compute-api/src/v2/ext/os-used-limits.wadl @@ -1,10 +1,17 @@ - + %common; + + %common_project; +]> + + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wadl="http://wadl.dev.java.net/2009/02" + xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:db="http://docbook.org/ns/docbook" + xmlns:common="http://docs.openstack.org/common/api/v1.0" + xmlns:csapi="http://docs.openstack.org/compute/api/v2"> @@ -45,6 +52,7 @@ href="../api_samples/os-used-limits/usedlimits-get-resp.xml" /> + &absoluteLimits; &totalUsedLimits; &rateLimits; diff --git a/api-ref/src/wadls/compute-api/src/v2/wadl/os-compute-2.wadl b/api-ref/src/wadls/compute-api/src/v2/wadl/os-compute-2.wadl index bddef8a49..1244706c2 100644 --- a/api-ref/src/wadls/compute-api/src/v2/wadl/os-compute-2.wadl +++ b/api-ref/src/wadls/compute-api/src/v2/wadl/os-compute-2.wadl @@ -278,7 +278,9 @@ - Lists the current limits for the account. + + Lists the current absolute and rate limits for a specified project. + @@ -290,6 +292,7 @@ + &absoluteLimits; &rateLimits; &commonFaults;