Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 如何使用gcloud CLI子命令获取Google cloud Composer(气流)环境变量值_Google Cloud Platform_Command Line Interface_Airflow_Gcloud_Google Cloud Composer - Fatal编程技术网

Google cloud platform 如何使用gcloud CLI子命令获取Google cloud Composer(气流)环境变量值

Google cloud platform 如何使用gcloud CLI子命令获取Google cloud Composer(气流)环境变量值,google-cloud-platform,command-line-interface,airflow,gcloud,google-cloud-composer,Google Cloud Platform,Command Line Interface,Airflow,Gcloud,Google Cloud Composer,我正在尝试检索气流实例上的现有环境变量 当我执行gcloud composer环境运行我的_ENV_NAME--location us-east4 variables时,它会正确地获取变量列表 然后我想看到一个特定变量的值,基于 ,我试过了 gcloud composer environments run MY_ENV_NAME --location us-east4 variables get MY_VAR 但它给了 ERROR: (gcloud.composer.environments.

我正在尝试检索气流实例上的现有环境变量

当我执行
gcloud composer环境运行我的_ENV_NAME--location us-east4 variables
时,它会正确地获取变量列表

然后我想看到一个特定变量的值,基于 ,我试过了

gcloud composer environments run MY_ENV_NAME --location us-east4 variables get MY_VAR
但它给了

ERROR: (gcloud.composer.environments.run) unrecognized arguments: get

我还尝试了
--get
,但得到了相同的错误。

尝试用
--
分隔命令,即

gcloud composer环境运行MY_ENV_NAME\
--位置us-east4\
--变量获取我的变量

虽然难看,但以下语法仍然有效。它需要中间有空格的双破折号


gcloud composer环境运行MY_ENV_NAME--location us-east4变量--get MY_VAR

无法识别的参数:--variablesTry将
气流
放在
变量
前面:
gcloud composer环境运行MY_ENV_NAME \--location us-east4 \--气流变量获取MY_VAR