How do you set tags for Rackspace servers using novaclient?

I see how to add it in the GUI:

enter image description here

However, I don't see a way when launched with nova. How do I set tags? If not via nova, is there API access to the tags?

有帮助吗?

解决方案

Tags are not implemented in the API itself, so they're not accessible from a nova CLI command.

Metadata is available to set key=value identifiers on your servers, using the nova CLI. These won't appear as tags in your control panel though. Here's some info about setting metadata on your servers with the nova CLI.

nova meta <server> <action> <key=value> [<key=value> ...]

Set or Delete metadata on a server.

Positional arguments:

<server>     Name or ID of server
<action>     Actions: 'set' or 'delete'
<key=value>  Metadata to set or delete (only key is necessary on delete)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top