PUT
/
cloud
/
v1
/
snapshots
/
{project_id}
/
{region_id}
/
{snapshot_id}
/
metadata
curl --request PUT \
  --url https://api.gcore.com/cloud/v1/snapshots/{project_id}/{region_id}/{snapshot_id}/metadata \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "created_at": "2019-05-29T05:32:41+0000",
  "creator_task_id": "2358e3b1-5c42-4705-8950-6ddcfc19c3bd",
  "description": "Snapshot description",
  "id": "726ecfcc-7fd0-4e30-a86e-7892524aa483",
  "name": "my-snapshot",
  "project_id": 1337,
  "region": "Luxembourg 1",
  "region_id": 7,
  "size": 20,
  "status": "available",
  "tags": [
    {
      "key": "my-tag",
      "read_only": false,
      "value": "my-tag-value"
    }
  ],
  "task_id": null,
  "updated_at": "2019-05-29T05:39:20+0000",
  "volume_id": "67baa7d1-08ea-4fc5-bef2-6b2465b7d227"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

snapshot_id
string
required

Snapshot ID

Body

application/json · UpdateTagsSerializer · object

A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.

Response

200 - application/json

Returned snapshot

The response is of type object.