• Native OpenStack API

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

Show snapshot metadata for a specific key

Function Description

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

Interface Format

Method

URI

Description

GET

/v2/{tenant_id}/snapshots/{snapshot_id}/metadata/{key}

Queries the value of a specified snapshot metadata field.

Restrictions

N/A

Expanded Interface

N/A

Request Parameter

N/A

Response Parameter

Parameter

Type

Mandatory

Remarks

meta

Dict

Yes

Specifies the metadata of the snapshot.

Request Example

GET 
https://volume.localdomain.com:8776/v2/5f13ecc9281d4c34bd740f277620bdee/snapshots/d23a846b-0c0c-427a-a490-84331c33c52f/metadata/key

Response Example

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

Error Code

See section Processing Return Code.