查看配置属性 | 大装置帮助中心
跳到主要内容

查看配置属性

名称

sco config get - 查看配置属性

说明

sco config get <section.property> [flags]

描述

输出当前 active profile 中指定配置键的值。

命令行参数

  • <section.property>:配置键,例如 access_key_idregionsubscriptionecp.subscription

命令行标志

无命令专属标志。

示例

查看当前 Region:

sco config get region

查看默认订阅:

sco config get subscription

全局标志

以下全局标志适用于所有 sco 命令:

  • --help:查看帮助信息。
  • --profile <profile>:指定本次命令使用的 profile。
  • --debug:输出调试日志。
  • --subscription <subscription>:指定本次请求使用的订阅。
  • --resource-group <resource-group>:指定本次请求使用的资源组。
  • --region <region>:指定本次请求使用的 Region。
  • --color <no|auto>:设置输出颜色模式。

支持的配置键

配置键说明存储范围
access_key_idAccessKey IDprofile
access_key_secretAccessKey Secretprofile
accept_language返回内容语言,支持 zh-CNen-USprofile
region当前 active Regionprofile default
subscription默认订阅当前 active Region
resource_group默认资源组当前 active Region
zone当前可用区当前 active Region
vpc_id默认 VPC ID当前 active Region
aec2.subscriptionAEC2 默认订阅当前 active Region
aec2.resource_groupAEC2 默认资源组当前 active Region
ws.subscriptionWS 默认订阅当前 active Region
ws.resource_groupWS 默认资源组当前 active Region
ecp.subscriptionECP 默认订阅当前 active Region
ecp.resource_groupECP 默认资源组当前 active Region
ecp.regionECP 默认 Region当前 active Region
ecp.zoneECP 默认可用区当前 active Region