Commit Graph

9 Commits

Author SHA1 Message Date
Rodolfo Alonso Hernandez
14df80519c Add API shim extension "quota-check-limit"
This extension indicates if Neutron supports checking the resource
usage before applying a new quota limit.

Change-Id: I94baf069624da4e4009eb8c0820f91b4d9e6738f
Related-Bug: #1936408
2021-09-09 14:33:28 +00:00
Hirofumi Ichihara
7c5b02d59a api-ref: some quota APIs don't return 404
Some quota APIs don't return 404 even if wrong project_id is passed.
This is a correct behavior of quota API. In Nova api-ref, it's shown
as well[1].

[1]: https://developer.openstack.org/api-ref/compute/?expanded=#show-a-quota

Change-Id: Ib793593bff31eaf0c8d237cf374e5cbf8ae5f52b
2017-03-09 22:28:16 +09:00
Hirofumi Ichihara
4f71837e41 api-ref: Cleanup quotas API
The tags for neutron-in-tree-api-ref remain there.
This patch makes quotas api-ref cler more and then removes the tags.

Change-Id: If43a8a5c82f08925703cbd4500abbea2c043fe25
2017-02-24 10:50:57 -05:00
YAMAMOTO Takashi
ab39764fec Add a space after comma
For consistency.

Also,
- Sort codes in "Error responce codes"
- Remove 5xx from "Error response codes"
- Move 2xx to "Normal response codes"

This is mechanically done by applying the following on each *.inc:

    gawk -F": " 'function p(h,a){r=s="";asort(a);
    for(i in a){r=r s a[i];s=", "};print h ": " r}
    /^Error response codes:/{split($2,a,/[, ]*/);
    delete n;ni=1;delete e;ei=1;
    for(i in a){x=a[i];v=x-x%100;if(v==200)n[ni++]=x;
    else if(v!=500)e[ei++]=x};
    if(ni>1){p("Normal response codes",n);
    print ""};p($1,e);next}//{print}'

Change-Id: I5447e660117e56b057d2b2cf509666a1d56e63bf
2017-02-06 09:09:38 +09:00
Akihiro Motoki
318a6b606b api-ref: project_id in req/resp body should be "body"
project_id and tenant_id field in request/response body are
marked as "path" now. It should be "body".

- "project_id-path" already exists and it can be used
  for "project_id" in URL path.
- "project_id" is now used for body.
- "project_id-body" is now duplicated, so it was removed.
  fwaas.inc is the only user of project_id-body and
   it is updated accordingly.
- quotas.inc is updated to use 'project_id-path'.
  Also project_id and tenant_id in response body of a quotas operation
  have been dropped as they do not exist.

Note that project_id/tenant_id in request body should be marked
as "optional" in most resources but this patch does not touch them
to avoid unnecessary merge conflicts.
They will be fixed in separate patches.

Change-Id: Ic5a4f55b837ee0a51b7186c3342a94c8c00f6c97
Closes-Bug: #1650174
2016-12-26 03:28:25 +09:00
Henry Gessau
429e5c2c95 api-ref: Update to current state of Keystone V3 support
Use 'project' instead of 'tenant' in descriptions.

Accept either 'tenant_id' or 'project_id' in requests.
Return both 'tenant_id' or 'project_id' in responses.

Related Blueprint: keystone-v3

Change-Id: I606f7399dfb824ba08922470f6e46b0a150af33b
2016-10-06 22:05:43 -04:00
Sławek Kapłoński
35bcd60fcd Add info about API method to get default quotas
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Part of blueprint neutron-in-tree-api-ref
Change-Id: I2090f024b101b6dea577d6d39500cfbd83111905
Partial-Bug: #1580642
2016-09-07 14:33:36 +09:00
Akihiro Motoki
e3cb5a4129 api-ref: Move sample JSON files under v2 directory
Previously sample JSON files are placed in the top directory
of api-ref, but they belong to v2 API, so it sounds reasonable
to place them in v2 directory.

Preparation of API-ref cleanup.

Part of blueprint neutron-in-tree-api-ref

Change-Id: I7c63f570507c51526957988f9b21a4244bd6e58a
2016-08-04 10:33:10 +09:00
Akihiro Motoki
d6d91b666a api-ref: Merge v2 and v2-ext into one directory
Preparation of API-ref cleanup.

Part of blueprint neutron-in-tree-api-ref

Change-Id: I3d499d60b1687208a2b5882e9f655836c906a297
2016-08-04 10:32:28 +09:00