使用端点设置云功能时,绑定IAM策略时出错

时间:2019-08-22 17:29:35

标签: google-cloud-platform google-cloud-functions google-cloud-endpoints

我正在遵循these的说明来设置具有Cloud功能的Google Cloud Endpoints。

我设法通过Cloud Run设置了ESP,并配置了端点,但是现在我绑定了IAM策略以授予ESP调用云功能的权限。

调用此错误时出现:

gcloud beta functions add-iam-policy-binding FUNCTION_NAME \
    --member "serviceAccount:ESP_PROJECT_NUMBER-compute@developer.gserviceaccount.com" \
    --role "roles/cloudfunctions.invoker" \
    --project FUNCTIONS_PROJECT_ID

我收到以下错误:

ERROR: (gcloud.beta.functions.add-iam-policy-binding) ResponseError: status=[400], code=[Bad Request], message=[Invalid JSON payload received. Unknown name "options_requestedPolicyVersion": Cannot bind query parameter. Field 'options_requestedPolicyVersion' could not be found in request message.]

1 个答案:

答案 0 :(得分:0)

请注意,这是一个错误,现已由Google开发人员团队进行了更新。