Sha256: 3f1ec19628cfaa6ac4f4cd97890134a45f38933db4252f5ca4cea14f4cd52974

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

# LabelAdd

Add a Label to a Resource.

```text
knife ionoscloud label add (options)
```

## Available options:

### Required options:

* type
* resource\_id
* key
* value
* ionoscloud\_username
* ionoscloud\_password

```text
    type: --resource-type RESOURCE_TYPE, -T RESOURCE_TYPE
        type of the resource to be labeled. Must be one of [datacenter, server, volume, ipblock, snapshot] (required)

    key: --key KEY, -K KEY
        key of the label. (required)

    value: --value VALUE
        value of the label. (required)

    datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
        iD of the data center.

    resource_id: --resource-id RESOURCE_ID, -R RESOURCE_ID
        iD of the resource. (required)

    ionoscloud_username: --username USERNAME, -u USERNAME
        your Ionoscloud username (required)

    ionoscloud_password: --password PASSWORD, -p PASSWORD
        your Ionoscloud password (required)

    extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
        path to the additional config file

```
## Example

```text
knife ionoscloud label add --resource-type RESOURCE_TYPE --key KEY --value VALUE --datacenter-id DATACENTER_ID --resource-id RESOURCE_ID --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
```

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
knife-ionoscloud-6.0.0.beta.2 docs/subcommands/label_add.md
knife-ionoscloud-5.1.2 docs/subcommands/label_add.md
knife-ionoscloud-6.0.0.beta.1 docs/subcommands/label_add.md
knife-ionoscloud-5.1.1 docs/subcommands/label_add.md