diff options
author | Sean Dague <sean@dague.net> | 2016-06-02 08:50:03 -0400 |
---|---|---|
committer | Sean Dague <sean@dague.net> | 2016-06-03 08:47:33 -0400 |
commit | c9f5ad3bcf06d22661fd73dc8f98bf752784abff (patch) | |
tree | 12886a94ebe3ed56663740e1683f8551459722a9 /api-ref/source/os-volume-attachments.inc | |
parent | cfd64c976b8aaacaf09fd2a6303877674fcfada0 (diff) | |
download | nova-c9f5ad3bcf06d22661fd73dc8f98bf752784abff.tar.gz |
remove /v2.1/{tenant_id} from all urls
As discussed at summit, the version part of the URL is not really
relevant, or a thing a user should be filling out themselves, this
should instead be set by the service catalog and extracted from the
token.
This removes it's reference in all documented REST urls, and adds a
new section describing how one gets the base URL for all calls.
Change-Id: I4306b8c3de0225e54f3909dd8a1fb293c4e5944c
Diffstat (limited to 'api-ref/source/os-volume-attachments.inc')
-rw-r--r-- | api-ref/source/os-volume-attachments.inc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/api-ref/source/os-volume-attachments.inc b/api-ref/source/os-volume-attachments.inc index 9e201cd91e..4ffedc5b65 100644 --- a/api-ref/source/os-volume-attachments.inc +++ b/api-ref/source/os-volume-attachments.inc @@ -12,7 +12,7 @@ details for a volume attachment, and detaches a volume. List volume attachments for an instance ======================================= -.. rest_method:: GET /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments +.. rest_method:: GET /servers/{server_id}/os-volume_attachments List volume attachments for an instance. @@ -25,7 +25,7 @@ Request .. rest_parameters:: parameters.yaml - - tenant_id: tenant_id + - server_id: server_id_path Response @@ -47,7 +47,7 @@ Response Attach a volume to an instance ============================== -.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments +.. rest_method:: POST /servers/{server_id}/os-volume_attachments Attach a volume to an instance. @@ -60,7 +60,7 @@ Request .. rest_parameters:: parameters.yaml - - tenant_id: tenant_id + - server_id: server_id_path - volumeAttachment: volumeAttachment - volumeId: volumeId @@ -90,7 +90,7 @@ Response Show a detail of a volume attachment ==================================== -.. rest_method:: GET /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments/{attachment_id} +.. rest_method:: GET /servers/{server_id}/os-volume_attachments/{attachment_id} Show a detail of a volume attachment. @@ -103,7 +103,7 @@ Request .. rest_parameters:: parameters.yaml - - tenant_id: tenant_id + - server_id: server_id_path - attachment_id: attachment_id @@ -126,7 +126,7 @@ Response Update a volume attachment ========================== -.. rest_method:: PUT /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments/{attachment_id} +.. rest_method:: PUT /servers/{server_id}/os-volume_attachments/{attachment_id} Update a volume attachment. @@ -139,7 +139,7 @@ Request .. rest_parameters:: parameters.yaml - - tenant_id: tenant_id + - server_id: server_id_path - attachment_id: attachment_id - volumeAttachment: volumeAttachment @@ -158,7 +158,7 @@ No body is returned on successful request. Detach a volume from an instance ================================ -.. rest_method:: DELETE /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments/{attachment_id} +.. rest_method:: DELETE /servers/{server_id}/os-volume_attachments/{attachment_id} Detach a volume from an instance. @@ -171,7 +171,7 @@ Request .. rest_parameters:: parameters.yaml - - tenant_id: tenant_id + - server_id: server_id_path - attachment_id: attachment_id |