如果您建立 Google Cloud 專案來使用 Migration Center,您已具備啟用 Migration Center 及管理產品資源的所有必要權限。
在專案中新增成員時,您可以使用Identity and Access Management (IAM) 政策,為該成員提供一或多個 IAM 角色,控管成員在 Migration Center 可執行的動作。
本頁面說明您可能想指派給專案成員的一般角色,以及執行各種動作所需的權限。
事前準備
- 請參閱 IAM 說明文件。
角色和動作
您可以在遷移中心執行三種主要類別的動作:
最佳做法是為專案成員指派角色,並授予執行必要動作所需的最低權限。
建立 Migration Center 的額外角色
在為機構成員指派角色之前,請先建立自訂角色,簡化權限管理方式。步驟如下:
在 Google Cloud 控制台中,依序前往「IAM & Admin」(IAM 與管理) >「Roles」(角色)。
按一下「建立角色」
在「建立角色」頁面中,填入下列欄位:
標題:「Migration Center 額外角色」
說明:「Additional roles needed for Migration Center scenarios」(遷移中心情境所需的其他角色)
按一下「新增權限」。
在權限清單中搜尋並選取下列權限:
iam.serviceAccountKeys.listiam.serviceAccounts.listresourcemanager.projects.updateserviceusage.services.enable
然後按一下「新增」,即可新增權限。
按一下「建立」即可完成。
啟用 Migration Center
您必須先從 Google Cloud 控制台啟用 Migration Center,才能使用這項服務。這項一次性操作包括啟用 API 和選取區域,以儲存資源。
如要取得啟用 Migration Center 所需的權限,請要求管理員在專案中授予您下列 IAM 角色:
- Migration Center 管理員 (
migrationcenter.admin) - Migration Center 其他角色
如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和組織的存取權」。
這些預先定義的角色具備啟用 Migration Center 所需的權限。如要查看確切的必要權限,請展開「Required permissions」(必要權限) 部分:
所需權限
如要啟用 Migration Center,必須具備下列權限:
-
migrationcenter.* -
resourcemanager.projects.get -
resourcemanager.projects.list -
rma.* -
resourcemanager.projects.update -
serviceusage.services.list -
serviceusage.services.enable -
iam.serviceAccountKeys.list -
iam.serviceAccounts.list -
resourcemanager.projects.update
管理 Migration Center 資源
管理 Migration Center 資源包括產生費用估算、建立用戶資產評估器,以及移除資產等動作。
如要取得管理 Migration Center 資源所需的權限,請要求管理員授予您專案的下列 IAM 角色:
- Migration Center 管理員 (
migrationcenter.admin) - Migration Center 其他角色
- 檢視者 (
viewer) - 服務帳戶金鑰管理員 (
iam.serviceAccountKeyAdmin)
如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和組織的存取權」。
這些預先定義的角色具備管理 Migration Center 資源所需的權限。如要查看確切的必要權限,請展開「Required permissions」(必要權限) 部分:
所需權限
如要管理 Migration Center 資源,必須具備下列權限:
-
migrationcenter.* -
resourcemanager.projects.get -
resourcemanager.projects.list -
rma.* -
serviceusage.services.list -
iam.serviceAccounts.list -
iam.serviceAccountKeys.list
查看 Migration Center 資源
如要取得查看 Migration Center 資源所需的權限,請要求管理員在專案中授予您下列 IAM 角色:
- Migration Center 檢視者 (
migrationcenter.viewer) - 檢視者 (
viewer) - 快速遷移評估檢視者 (
rma.viewer)
如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和組織的存取權」。
這些預先定義的角色具備查看 Migration Center 資源所需的權限。如要查看確切的必要權限,請展開「Required permissions」(必要權限) 部分:
所需權限
如要查看 Migration Center 資源,必須具備下列權限:
-
migrationcenter.assets.get -
migrationcenter.assets.list -
migrationcenter.groups.get -
migrationcenter.groups.list -
migrationcenter.importJobs.get -
migrationcenter.importJobs.list -
migrationcenter.locations.* -
migrationcenter.operations.get -
migrationcenter.operations.list -
migrationcenter.sources.get -
migrationcenter.sources.list -
resourcemanager.projects.get -
resourcemanager.projects.list -
serviceusage.services.list -
resourcemanager.projects.get -
resourcemanager.projects.list -
rma.annotations.get -
rma.collectors.get -
rma.collectors.list -
rma.locations.* -
rma.operations.get -
rma.operations.list
角色和權限
下表列出 Migration Center 提供的角色和權限。
Migration Center 角色和權限
| Role | Permissions |
|---|---|
Migration Center Admin Beta( Full access to Migration Center all resources. |
|
Migration Center Viewer Beta( Read-only access to Migration Center all resources. |
|
Migration Center Discovery Client Beta( Migration Center Discover Client role |
|
Migration Center Discovery Client Registrator Beta( Registrator of Migration Center Discover Clients |
|
Service agent roles
Service agent roles should only be granted to service agents.
| Role | Permissions |
|---|---|
Migration Center Service Agent( Gives Migration Center Service Account access to objects storedin object store and Cloud Migration products. |
|
快速遷移評估角色和權限
| Role | Permissions |
|---|---|
Rapid Migration Assessment Admin( Full access to Rapid Migration Assessment all resources. |
|
Rapid Migration Assessment Viewer( Read-only access to Rapid Migration Assessment all resources. |
|
Rapid Migration Assessment Runner( Update and Read access to Rapid Migration Assessment all resources. |
|
Service agent roles
Service agent roles should only be granted to service agents.
| Role | Permissions |
|---|---|
RMA Service Agent( Gives RMA service account access to MC resources. |
|