POST
/
cloud
/
v1
/
volumes
/
{project_id}
/
{region_id}
/
{volume_id}
/
metadata
Create or update volume tags
curl --request POST \
  --url https://api.gcore.com/cloud/v1/volumes/{project_id}/{region_id}/{volume_id}/metadata \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Examples:

1

volume_id
string<uuid4>
required

Volume ID

Examples:

"726ecfcc-7fd0-4e30-a86e-7892524aa483"

Body

application/json · CreateTagsSerializer · 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.

{key}
string

Tag value. The maximum size for a value is 1024 bytes.

Required string length: 1 - 1024
Examples:

"my-tag-value"

Response

204

No Content