列出订阅 | 大装置帮助中心
跳到主要内容

列出订阅

名称​

sco srm subscriptions list - 列出订阅

说明​

sco srm subscriptions list [--management-group-name <name>] [--all] [--filter <filter>] [flags]

描述​

列出当前凭据有权限访问的订阅。

命令行参数​

无。

命令行标志​

可选参数​

  • --management-group-name <name>:按管理组名称查询订阅。
  • --all:列出所有有权限访问的订阅。
  • --filter <filter>:过滤条件,支持 name、display_name。

示例​

列出订阅:

sco srm subscriptions list --all

列出指定管理组下的订阅:

sco srm subscriptions list --management-group-name mg-dev

全局标志​

以下全局标志适用于该命令:

  • --help:查看帮助信息。
  • --profile <profile>:指定本次命令使用的 profile。
  • --debug:输出调试日志。
  • --subscription <subscription>:指定本次请求使用的订阅。
  • --resource-group <resource-group>:指定本次请求使用的资源组。
  • --region <region>:指定本次请求使用的 Region。
  • --format <table|json|yaml>:设置输出格式,默认值为 table。