注意
The MongoDB Atlas Shared Responsibility Model defines the complementary duties of MongoDB and its customers in maintaining a secure and resilient data environment. Under this framework, MongoDB manages the security and operational integrity of the underlying platform, while customers are responsible for the configuration, management, and data policies of their specific deployments. For a detailed breakdown of ownership across security and operational excellence, see Shared Responsibility Model.
Overview
某些Atlas功能(例如Data Federation)需要访问权限Google Cloud Platform存储环境中的资源。要以安全方式授予访问权限,请使用访问权限策略创建或更新Google Cloud Platform服务帐户。
必需的访问权限
要配置Google Cloud Platform服务帐户访问权限,您必须对该项目拥有Project Owner访问权限。
拥有 Organization Owner 访问权限的用户必须将自己作为 Project Owner 添加到项目中。
先决条件
一个 Atlas 帐户。
Atlas
M10+Google Cloud Platform在Google Cloud Platform上托管的Atlas 集群。
Google Cloud Platform设置Google Cloud Platform服务帐户访问权限
Google Cloud Platform您可以通过Atlas管理API或Atlas用户界面为您的Atlas项目设立具有访问权限策略的Google CloudAtlas AtlasAPIAtlasPlatform服务帐户。
您可以完全在AtlasGoogle Cloud Platform Data Federation用户界面中创建Google CloudAtlas Data Federation Platform服务帐户。
在 Atlas 中,转到 Project Settings(项目设置)页面。
如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。
如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。
在侧边栏中,单击 图标 Project Overview 旁边的图标。
显示项目设置页面。
在 Atlas 中,转到 Project Integrations(项目设置)页面。
单击 Integrations 标签页。
The Project Integrations page displays.
To create an Google Cloud service account with access policy for your Atlas project through the API, send POST requests to the cloudProviderAccess endpoint first with the ID of the project for which you wish to create a service account and then with the ID of the project and service account for which you set up access. To learn more about the request path and body parameters, see Create One Cloud Provider Access Role and Authorize One Cloud Provider Access Role.
Google Cloud Platform查看授权的Google Cloud Platform服务帐户
Google Cloud PlatformAtlasAtlas您可以从Atlas AdministrationAPI API或Atlas 用户界面查看Atlas项目的所有Google CloudAtlas Platform服务帐户。
在 Atlas 中,转到 Project Settings(项目设置)页面。
如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。
如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。
在侧边栏中,单击 图标 Project Overview 旁边的图标。
显示项目设置页面。
在 Atlas 中,转到 Project Integrations(项目设置)页面。
单击 Integrations 标签页。
The Project Integrations page displays.
To view all the Google Cloud service accounts with access policy for your Atlas project through the API, send a GET request to the cloudProviderAccess endpoint with the ID of the project. To learn more about the syntax and parameters to include in the request, see Return All Cloud Provider Access Roles.
Google Cloud Platform查看授权的Google Cloud Platform服务帐户详细信息
您可以从Atlas管理API或Atlas用户界面查看授权GoogleGoogle Cloud Platform AtlasCloudAPI AtlasPlatform服务帐户的详细信息。
在 Atlas 中,转到 Project Settings(项目设置)页面。
如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。
如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。
在侧边栏中,单击 图标 Project Overview 旁边的图标。
显示项目设置页面。
在 Atlas 中,转到 Project Integrations(项目设置)页面。
单击 Integrations 标签页。
The Project Integrations page displays.
To view a Google Cloud service account with access policy for your Atlas project through the API, send a GET request to the cloudProviderAccess endpoint with the ID of the project. To learn more about the syntax and parameters to include in the request, see Return specified Cloud Provider Access Role.
删除授权的GoogleGoogle Cloud Platform Cloud Platform服务帐户
您无法删除当前正在使用的服务帐户。 Google Cloud PlatformAtlas您可以从Atlas AdministrationAPI API或Atlas 用户界面中删除未使用的Google CloudAtlas Platform服务帐户。
在 Atlas 中,转到 Project Settings(项目设置)页面。
如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。
如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。
在侧边栏中,单击 图标 Project Overview 旁边的图标。
显示项目设置页面。
在 Atlas 中,转到 Project Integrations(项目设置)页面。
单击 Integrations 标签页。
The Project Integrations page displays.
To remove an Google Cloud service account with access policy for your Atlas project through the API, send a DELETE request to the cloudProviderAccess endpoint with the ID of the project, the name of the cloud provider, and the ID of the service account that you wish to remove. To learn more about the syntax and parameters to include in the request, see Deauthorize One Cloud Provider Access Role.