For the complete documentation index, see llms.txt. This page is also available as Markdown.

add

Add a Label to a Resource

Usage

ionosctl compute label add [flags]

Aliases

For add command:

[a]

Description

Use this command to add (or overwrite) a Label on a specific Resource.

Pick the target with --resource-type and supply the matching id flag(s):

  • datacenter -> --datacenter-id

  • server -> --datacenter-id and --server-id

  • volume -> --datacenter-id and --volume-id

  • snapshot -> --snapshot-id

  • ipblock -> --ipblock-id

  • image -> --image-id (private images only)

Adding a key that already exists on the resource overwrites its value (there is one value per key per resource).

Required values to run command:

  • Resource Type

  • Resource Id(s) as listed above

  • Label Key

  • Label Value

Options

Examples

Last updated