英文:
skip_billing_check for reCaptcha Enterprise migration
问题
我正在尝试将v2 reCaptcha迁移到企业版本,但一直收到以下错误信息:
"FAILED_PRECONDITION: 没有与您的GCP项目关联的计费帐户。迁移时不需要计费。但是,如果请求超过免费配额,将返回错误(请参阅https://cloud.google.com/recaptcha-enterprise/quotas)。如果您仍然想继续,请通过将skip_billing_check字段设置为true来确认。"
我尝试点击“升级密钥”以及输入云shell命令进行迁移,但一直收到相同的计费错误。我想跳过计费检查,但不知道如何设置此标志。有人能帮助吗?
英文:
I'm trying to migrate a v2 reCaptcha to the Enterprise version, but I keep getting the error:
"FAILED_PRECONDITION: No billing account is linked to your GCP project. A billing is not mandatory for migrating. But any request above the free quota will return an error (see https://cloud.google.com/recaptcha-enterprise/quotas). If you still want to proceed, confirm by setting the skip_billing_check field to true."
I tried migrating by clicking on "upgrade key", as well as entering the cloud shell command. I keep getting the same billing error. I want to skip the billing check, but don't know how to set this flag. Can anyone help?
答案1
得分: 1
您可以使用curl来设置参数:
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d "" \
"https://recaptchaenterprise.googleapis.com/v1/projects/PROJECT_ID/keys/SITE_KEY:migrate?skip_billing_check=true"
上述命令摘自https://cloud.google.com/recaptcha-enterprise/docs/migrate-recaptcha#rest-api,选择REST API选项卡,选择curl并添加skip_billing_check参数。
英文:
You can use curl to set the argument
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d "" \
"https://recaptchaenterprise.googleapis.com/v1/projects/PROJECT_ID/keys/SITE_KEY:migrate?skip_billing_check=true"
The above command is taken from https://cloud.google.com/recaptcha-enterprise/docs/migrate-recaptcha#rest-api by selecting the REST API tab and picking curl and adding the skip_billing_check paramter
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。



评论