문제

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