GET
/
cloud
/
v1
/
subnets
/
{project_id}
/
{region_id}
/
{subnet_id}
/
metadata_item
Get subnet tag
curl --request GET \
  --url https://api.gcore.com/cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}/metadata_item \
  --header 'Authorization: <api-key>'
{
  "key": "my-tag",
  "read_only": false,
  "value": "my-tag-value"
}

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

subnet_id
string<uuid4>
required

Subnet ID

Examples:

"b39792c3-3160-4356-912e-ba396c95cdcf"

Query Parameters

key
string
required

Tag key to filter by

Required string length: 1 - 255
Examples:

"cost-center"

Response

200 - application/json

OK

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
required

Tag key. The maximum size for a key is 255 bytes.

Examples:

"my-tag"

read_only
boolean
required

If true, the tag is read-only and cannot be modified by the user

Examples:

false

value
string
required

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

Examples:

"my-tag-value"