查看 Application Integration 支援的連接器。
新增 IAM 條件
您可以使用 Identity and Access Management (IAM) 條件,針對 Google Cloud 資源 (包括應用程式整合資源) 定義並強制執行條件式、以屬性為基礎的存取權控管。如要進一步瞭解 IAM 條件,請參閱「IAM 條件總覽」。
在應用程式整合中,您可以根據下列屬性強制執行條件式存取權:
- 日期/時間屬性:可用來設定 Application Integration 資源的暫時 (有效期)、排程或限時存取權。舉例來說,您可以讓使用者在指定日期前存取整合項目。詳情請參閱「設定臨時存取權」。
- 資源屬性:用於根據資源名稱、資源類型或資源服務屬性設定條件式存取權。舉例來說,您可以允許使用者管理在特定地區建立的整合項目。如需支援的值清單,詳情請參閱「設定資源存取權」。
新增 IAM 條件
如要為現有主體 (使用者、群組或服務帳戶) 新增 IAM 限制條件,請執行下列步驟:
- 前往 Google Cloud 控制台的「IAM」頁面。
- 選取專案、資料夾或機構。
- 在「主體」清單中找出要新增身分與存取權管理條件的主體,然後按一下
畫面上會顯示「Edit access」窗格。
(「Edit principal」)。 - 找出要新增 IAM 條件的角色,然後按一下「+ 新增 IAM 條件」。
- 在「新增條件」窗格中提供下列資訊:
- 在「編輯存取權」窗格中再次按一下「儲存」,即可更新主體。
資源屬性值
下表列出應用程式整合作業中,資源類型屬性可包含的值:
資源名稱 | 資源類型 | 參考資料 |
---|---|---|
位置 | integrations.googleapis.com/Location
|
API 參考資料 |
整合 | integrations.googleapis.com/Integration
|
API 參考資料 |
IntegrationVersion | integrations.googleapis.com/IntegrationVersion
|
API 參考資料 |
執行 | integrations.googleapis.com/Execution
|
API 參考資料 |
停權 | integrations.googleapis.com/Suspension
|
API 參考資料 |
AuthConfig | integrations.googleapis.com/AuthConfig
|
API 參考資料 |
應用程式整合功能使用 IAM 條件示例
範例 1:限制存取某個地區的任何 IntegrationVersion 資源
您可以在條件編輯器中使用下列條件運算式,限制對 IntegrationVersion
資源的存取權。限制存取權包括將 create
、delete
、download
、get
、list
、patch
、publish
、unpublish
和 upload
作業限制在該區域的整合版本。
(resource.name.startsWith("projects/PROJECT_ID/locations/LOCATION/integrations/INTEGRATION_NAME")) || resource.type == "integrations.googleapis.com/Location" ||resource.type == "cloudresourcemanager.googleapis.com/Project"
請依指示取代下列項目:
PROJECT_ID
: Google Cloud 專案的 ID。LOCATION
:整合位置。請參閱「Application Integration 位置」。INTEGRATION_NAME
:整合項目名稱。
範例 2:允許存取某個地區中的任何 IntegrationVersion 資源
您可以在條件編輯器中使用下列條件運算式,允許存取 IntegrationVersion
資源:
resource.name.startsWith("projects/PROJECT_ID/locations/LOCATION/") || resource.type == "integrations.googleapis.com/Location" || resource.type == "cloudresourcemanager.googleapis.com/Project"
請依指示取代下列項目:
PROJECT_ID
: Google Cloud 專案的 ID。LOCATION
:整合位置。如要瞭解支援的位置,請參閱「Application Integration 位置」。