Scaleway logo
Commands

Documentation for `scw annotations`

The CLI documentation pages are currently under construction

The content is up to date. We're making improvements to the site over the next few weeks for a better experience.

Annotations API

Annotation binding management commands

Annotation binding management commands.

Attach a value to a resource. Fails if the resource already has a value for this key.

Attach a value to a resource. Fails if the resource already has a value for this key.

Usage:

TerminalCode
scw annotations binding create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
target-srnSRN of the resource to attach the value to.
value-idID of the value to associate.

Detach an annotation from a resource.

Detach an annotation from a resource.

Usage:

TerminalCode
scw annotations binding delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
binding-idID of the binding to delete.Required

Delete ALL bindings associated with a Scaleway Resource Name.

Delete ALL bindings associated with a Scaleway Resource Name.

Usage:

TerminalCode
scw annotations binding delete-all-matching-srn [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
target-srnSRN of the resource for which all bindings should be deleted.
organization-idOrganization ID to use. If none is passed the default organization ID will be used

Delete ALL bindings associated with a value.

Delete ALL bindings associated with a value.

Usage:

TerminalCode
scw annotations binding delete-all-matching-value [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
value-idID of the value for which all bindings should be deleted.

List all bindings, or filter by Scaleway Resource Name or value ID. Response order by ID.

List all bindings, or filter by Scaleway Resource Name or value ID. Response order by ID.

Usage:

TerminalCode
scw annotations binding list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
target-srnSRN of the resource for which to list all bindings.
value-idValue ID for which to list all bindings.
organization-idOrganization ID to use. If none is passed the default organization ID will be used

Annotation key management commands

Annotation key management commands.

Create an annotation key.

Create an annotation key.

Usage:

TerminalCode
scw annotations key create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
nameName of the annotation key.
descriptionDescription of the annotation key.
organization-idOrganization ID to use. If none is passed the default organization ID will be used

Delete a key definition. Fails if the key has any associated values.

Delete a key definition. Fails if the key has any associated values.

Usage:

TerminalCode
scw annotations key delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
key-idID of the key to delete.Required

Retrieve a specific key.

Retrieve a specific key.

Usage:

TerminalCode
scw annotations key get [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
key-idID of the key to retrieve.Required

List all keys, sorted alphabetically by name.

List all keys, sorted alphabetically by name.

Usage:

TerminalCode
scw annotations key list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
organization-idOrganization ID to use. If none is passed the default organization ID will be used

Update name or description. All associated resources will immediately display the new name.

Update name or description. All associated resources will immediately display the new name.

Usage:

TerminalCode
scw annotations key update [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
key-idID of the key to update.Required
nameNew name of the key.
descriptionNew description of the key.

Combined keys and values management commands

Combined keys and values management commands.

List all keys and values for an organization, sorted alphabetically by key name and value name.

List all keys and values for an organization, sorted alphabetically by key name and value name.

Usage:

TerminalCode
scw annotations key-value list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
organization-idOrganization ID to use. If none is passed the default organization ID will be used

Annotation value management commands

Annotation value management commands.

Add a value definition to a key.

Add a value definition to a key.

Usage:

TerminalCode
scw annotations value create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
key-idID of the key the value will be bound to.
nameName of the value.
descriptionDescription of the value.

Delete a value definition. Fails if the value is currently bound to any resource.

Delete a value definition. Fails if the value is currently bound to any resource.

Usage:

TerminalCode
scw annotations value delete [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
value-idID of the value to delete.Required

Delete ALL values associated with a key. Fails if any of these values are currently bound to any resource.

Delete ALL values associated with a key. Fails if any of these values are currently bound to any resource.

Usage:

TerminalCode
scw annotations value delete-all-matching-key [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
key-idID of the key for which to delete all values.

Retrieve a specific value.

Retrieve a specific value.

Usage:

TerminalCode
scw annotations value get [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
value-idID of the value to retrieve.Required

List all values, sorted alphabetically by name.

List all values, sorted alphabetically by name.

Usage:

TerminalCode
scw annotations value list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
key-idID of the key to list the values for.
organization-idOrganization ID to use. If none is passed the default organization ID will be used

Update name or description.

Update name or description.

Usage:

TerminalCode
scw annotations value update [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
value-idID of the value to update.Required
nameNew name of the value.
descriptionNew description of the value.