Image Metadata
1. image_metadata(image, key=None)
Lists Image metadata.
Parameters:
| Name | Type | Description |
|---|---|---|
| image | String | image id |
| key | String | metadata key. |
Return value: ImageMetadata Object
Return value example:
aTestingBug2 : update twice
2. create_image_metadata(image, key=None, **meta)
create or replace metadata items, or, create or update metadata item
Parameters:
- image(String): image id or Image Object
- key(String): replace a specific one
Parameters example:
meta = {
“aTestingBug”: “inTesting”,
“aTestingBug2”:”1111”
}
Return value: ImageMetadata Object
Return value example:
aTestingBug : inTesting
aTestingBug2 : 1111
3. update_image_metadata(image, **meta)
Updates server metadata.
Parameters:
- image(string): image id or Image Object
Return value: ImageMetadata Object
Return value example:
aTestingBug2 : update twice
4. delete_image_metadata(image, key)
Delete a metadata.
Parameters:
- image(string)
- key: metdata key
Return value: None on success