本頁面中的部分或全部資訊可能不適用於 Trusted Cloud by S3NS。
Artifact Registry 服務代理人
與 Trusted Cloud by S3NS 服務互動時,Artifact Registry 服務代理人會代表 Artifact Registry 執行動作。
在Trusted Cloud 專案中建立第一個 Artifact Registry 存放區後,系統會自動建立 Artifact Registry 服務代理。服務代理 ID 如下:
service-PROJECT-NUMBER@gcp-sa-artifactregistry.s3ns-system.iam.gserviceaccount.com
PROJECT-NUMBER 是執行 Artifact Registry 的Trusted Cloud 專案專案編號。
您可以在專案中手動建立服務帳戶,無需使用任何存放區,請使用下列指令:
gcloud beta services identity create \
--service=artifactregistry.s3nsapis.fr \
--project=PROJECT-ID
將 PROJECT-ID
替換為 Trusted Cloud 專案 ID。
系統會將 Artifact Registry 服務代理人角色 (roles/artifactregistry.serviceAgent
) 授予 Artifact Registry 服務代理人,以便存取專案中的資源。為確實遵循最低權限安全性原則,角色僅具備必要的最低權限:
- 發布 Pub/Sub 主題:
pubsub.topics.publish
- 從 Artifact Registry 存放區下載構件:
artifactregistry.repositories.downloadArtifacts
- 刪除構件:
artifactregistry.versions.delete
後續步驟
瞭解 Artifact Registry 角色和設定存放區存取權。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-18 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-18 (世界標準時間)。"],[[["\u003cp\u003eThe Artifact Registry Service Agent operates on behalf of Artifact Registry when interacting with other Google Cloud services.\u003c/p\u003e\n"],["\u003cp\u003eThis service agent is automatically generated upon the creation of the first Artifact Registry repository within a Google Cloud project.\u003c/p\u003e\n"],["\u003cp\u003eThe service agent's identifier is \u003ccode\u003eservice-PROJECT-NUMBER@gcp-sa-artifactregistry.iam.gserviceaccount.com\u003c/code\u003e, where PROJECT-NUMBER represents the project number.\u003c/p\u003e\n"],["\u003cp\u003eThe service agent is granted the Artifact Registry Service Agent role, which includes permissions for publishing Pub/Sub topics, downloading artifacts, and deleting artifacts.\u003c/p\u003e\n"],["\u003cp\u003eYou can manually create the service agent in projects without any repositories using the provided \u003ccode\u003egcloud\u003c/code\u003e command.\u003c/p\u003e\n"]]],[],null,[]]