Merge "[api-ref] Update volume metadata for a specific key (v2)"
This commit is contained in:
commit
f639c1f785
@ -71,6 +71,13 @@ key_2:
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
key_3:
|
||||
description: |
|
||||
The metadata key name for the metadata that you
|
||||
want to update.
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
project_id_path:
|
||||
description: |
|
||||
The UUID of the project in a multi-tenancy cloud.
|
||||
@ -915,6 +922,12 @@ maxTotalVolumes:
|
||||
in: body
|
||||
required: true
|
||||
type: integer
|
||||
meta:
|
||||
description: |
|
||||
The metadata key and value pair for the volume.
|
||||
in: body
|
||||
required: true
|
||||
type: object
|
||||
metadata:
|
||||
description: |
|
||||
One or more metadata key and value pairs for the
|
||||
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"meta": {
|
||||
"name": "new_name"
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"meta": {
|
||||
"name": "new_name"
|
||||
}
|
||||
}
|
@ -650,3 +650,45 @@ Request
|
||||
- tenant_id: tenant_id
|
||||
- volume_id: volume_id_path
|
||||
- key: key_1
|
||||
|
||||
|
||||
|
||||
|
||||
Update volume metadata for a specific key
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. rest_method:: PUT /v2/{project_id}/volumes/{volume_id}/metadata/{key}
|
||||
|
||||
Update metadata for a volume for a specific key.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- project_id: project_id_path
|
||||
- volume_id: volume_id_path
|
||||
- key: key_3
|
||||
- meta: meta
|
||||
|
||||
Request Example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: ./samples/volume-metadata-update-key-request.json
|
||||
:language: javascript
|
||||
|
||||
Response Parameters
|
||||
-------------------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- meta: meta
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: ./samples/volume-metadata-update-key-response.json
|
||||
:language: javascript
|
||||
|
Loading…
x
Reference in New Issue
Block a user