在项目中启用 Global Front End Enterprise 后, Google Cloud 系统会将全球外部应用负载平衡器、Cloud CDN、Google Cloud Armor(企业版 功能)和 Service Extensions 捆绑到单个 Global Front End Enterprise 价格 模型中。
查看项目中 Global Front End Enterprise 的启用状态
您可以验证项目中是否已启用 Global Front End Enterprise,或者您的项目是否在使用标准个人价格。
控制台
在 Google Cloud 控制台中,前往 Global Front End 页面。
在项目选择器菜单中,选择您的项目。
在 Global Front End 页面上,找到突出显示的有效层级,以查看 Global Front End Enterprise 的启用状态。
REST
启用 Compute Engine Alpha 版 API,然后发送 GET 请求以检索项目中
Global Front End Enterprise 的启用状态:
curl -H "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://compute.googleapis.com/compute/alpha/projects/PROJECT_ID/global/globalFrontendSettings"
将 PROJECT_ID 替换为您要查看 Global Front End Enterprise 启用详细信息的项目的 ID。
在 JSON 响应中,验证 bundleType 字段的值:
GLOBAL_FRONT_END:表示项目中已启用 Global Front End Enterprise。INDIVIDUAL:表示项目中未启用 Global Front End Enterprise。
在项目中启用 Global Front End Enterprise
如需在项目中启用 Global Front End Enterprise,请与您的 Google Cloud 客户代表联系,将项目添加到 许可名单。
在项目中启用 Global Front End Enterprise 之前,请确保您的工作负载主要使用全球外部应用负载平衡器。区域负载平衡器、直通负载平衡器和标准层级流量不包含在 Global Front End Enterprise 价格中,而是单独计费。
REST
将您的项目添加到许可名单并启用 Compute Engine Alpha 版 API后,请执行以下 操作:
- 可选:查看 Global Front End Enterprise的启用状态。如果您的项目中未启用 Global Front End Enterprise,请继续执行下一步。
发送
PATCH请求,以在项目中启用 Global Front End Enterprise。curl --request PATCH \ -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ --data '{ "bundleType": "GLOBAL_FRONT_END" }' \ "https://compute.googleapis.com/compute/alpha/projects/PROJECT_ID/global/globalFrontendSettings"将
PROJECT_ID替换为您要在其中启用 Global Front End Enterprise 的项目的 ID。等待片刻,然后查看 Global Front End Enterprise的启用状态以进行确认。
在项目中停用 Global Front End Enterprise
您可以停用 Global Front End Enterprise,并将项目恢复为个人结算。
停用 Global Front End Enterprise 后,Cloud Armor 项目级层级会确定有效保护。 Google Cloud 不会 自动将您的项目恢复到您在启用 Global Front End Enterprise 之前使用的 Cloud Armor 层级。您必须手动指定 Cloud Armor 结算层级(Cloud Armor Standard 或 Cloud Armor Enterprise PayGo),以避免安全政策降级或意外的结算变更。如需了解详情,请参阅 Cloud Armor Enterprise 降级。
控制台
在 Google Cloud 控制台中,前往 Global Front End 页面。
在项目选择器菜单中,选择您的项目。
在 À la carte 列中,点击 Enable 。
在确认对话框中,点击确认 。
REST
如果尚未启用,请启用 Compute Engine Alpha 版
API,然后发送 PATCH 请求以
将 bundleType 字段设置为 INDIVIDUAL:
curl --request PATCH \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
--data '{
"bundleType": "INDIVIDUAL"
}' \
"https://compute.googleapis.com/compute/alpha/projects/PROJECT_ID/global/globalFrontendSettings"
将 PROJECT_ID 替换为您要在其中停用 Global Front End Enterprise 的项目的 ID。
等待片刻,然后查看 Global Front End Enterprise的启用状态以进行确认。