• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Cinder V3 Interfaces
  5. Snapshot
  6. Update snapshot metadata for a specific key

Update snapshot metadata for a specific key

Function Description

This interface is used to update the value of a specified snapshot metadata field.

Interface Format

Method

URI

Description

PUT

/v3/{project_id}/snapshots /{snapshot_id}/metadata/{key}

Queries the value of a specified snapshot metadata field.

Restrictions

N/A

Expanded Interface

N/A

Request Parameter

Parameter

Type

Mandatory

Remarks

meta

Dict

Yes

Metadata of a volume

Response Parameters

Parameter

Type

Mandatory

Remarks

meta

Dict

Yes

Metadata of a volume

Request Example

PUT https://volume.localdomain.com:8776/v3/5f13ecc9281d4c34bd740f277620bdee/snapshots/d23a846b-0c0c-427a-a490-84331c33c52f/metadata/key
{
"meta": {
           "testkey1": "testvalue1", 
           }
}

Response Example

{
"meta": {
           "testkey1": "testvalue1", 
           }
}

Error Code

See section Processing Return Code.