NAME
gdcloud auth activate-service-account - 使用服务帐号授权访问 GDC 网闸隔离配置。
SYNOPSIS
gdcloud auth activate-service-account [flags]
说明
使用服务帐号授权访问 GDC 网闸隔离配置。如需允许 gdcloud 使用服务帐号凭据发出请求,请使用此命令从包含私有授权密钥的文件导入这些凭据,并激活这些凭据以供 gdcloud 使用。“gdcloud auth activate-service-account”与“gdcloud auth login”命令的功能相同,但使用的是服务帐号而不是用户凭据。
示例
To authorize gdcloud to access GDC air-gapped using an existing service account, run:
gdcloud auth activate-service-account --key-file=/path/key.json
必要标志
--key-file string Path to the private key file.
可选标志
--login-config-cert string (Optional) Absolute file path to the CA certificate file to be used for fetching login-config over HTTPS connection.
--skip-kubeconfig-update (Optional) Skip updating the kubeconfig after login.
GDCLOUD 范围标志
所有命令都可以使用以下标志:--configuration、--format、--help、--project、--quiet。
如需了解详情,请参阅gdcloud CLI 参考文档概览页面。