命令行工具参考¶
为了使用 CLI,您必须提供您的 OpenStack 用户名、密码、租户和认证端点。使用相应的配置选项(--os-username、--os-password、--os-tenant-id 和 --os-auth-url)或在环境变量中设置它们
export OS_USERNAME=user
export OS_PASSWORD=pass
export OS_TENANT_ID=b363706f891f48019483f8bd6503c54b
export OS_AUTH_URL=http://auth.example.com:5000/v3/
命令行工具将尝试使用您提供的凭据对每个请求进行重新认证。您可以通过手动提供认证令牌来覆盖此行为,使用 --os-watcher-url 和 --os-auth-token。或者,您可以设置这些环境变量
export OS_WATCHER_URL=http://watcher.example.org:9322/
export OS_AUTH_TOKEN=3bcc3d3a03f44e3d8377f9247b0ad155
配置好认证参数后,您可以运行 watcher help 来查看可用命令的完整列表。
- watcher 命令行界面 (CLI)
- openstack 命令行界面 (CLI) 与 Watcher 插件
- 基础设施优化服务 (watcher) 命令行客户端
- watcher 用法
- watcher 可选参数
- watcher action list
- watcher action show
- watcher action update
- watcher actionplan cancel
- watcher actionplan create
- watcher actionplan delete
- watcher actionplan list
- watcher actionplan show
- watcher actionplan start
- watcher actionplan update
- watcher audit create
- watcher audit delete
- watcher audit list
- watcher audit show
- watcher audit update
- watcher audittemplate create
- watcher audittemplate delete
- watcher audittemplate list
- watcher audittemplate show
- watcher audittemplate update
- watcher goal list
- watcher goal show
- watcher scoringengine list
- watcher scoringengine show
- watcher service list
- watcher service show
- watcher datamodel list
- watcher strategy list
- watcher strategy show
- watcher strategy state