設定 Data Portability API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您必須先建立新專案、啟用帳單,並在 Google Cloud 控制台中啟用 Data Portability API,才能開始對 API 發出要求。
建立專案
- 按一下 [Create Project]。
- 輸入名稱或接受系統產生的建議。
- 確認或編輯其餘欄位。
- 點選「建立」。
記下專案 ID:您需要這個 ID 才能將續訂連結傳送給使用者。
啟用計費功能
啟用專案的計費功能:
- 請造訪 。
- 如果沒有有效的帳單帳戶,請按一下「新增帳單帳戶」並按照指示建立帳戶。
啟用 API
資料可攜權 API 已公開發布,您可以在 API 程式庫中搜尋「資料可攜權 API」找到這項服務。您可以在使用者介面中啟用,也可以使用 gcloud CLI 啟用。
如要使用 gcloud CLI 啟用這項功能,請執行下列指令。
gcloud services enable dataportability.googleapis.com
如要確認 Data Portability API 是否已啟用,請查看「已啟用的 API 和服務」。
如需設定 gcloud CLI 的協助,請參閱「安裝 gcloud CLI」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-29 (世界標準時間)。
[null,null,["上次更新時間:2025-07-29 (世界標準時間)。"],[[["\u003cp\u003eTo use the Data Portability API, you must first create a new project in the Google Cloud console, enable billing for the project, and then enable the Data Portability API itself.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable the Data Portability API through the Google Cloud console UI or by using the gcloud CLI command \u003ccode\u003egcloud services enable dataportability.googleapis.com\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBefore enabling the API, ensure you have an active billing account associated with your project, which can be created or managed through the Billing page in the Google Cloud console.\u003c/p\u003e\n"]]],[],null,["Before you can begin sending requests to the Data Portability API, you must create a\nnew project, enable billing, and enable the Data Portability API in the Google Cloud\nconsole.\n\nCreate your project\n\n1. Go to the [Google API Console](https://console.developers.google.com/project).\n2. Click **Create project**.\n3. Enter a name or accept the generated suggestion.\n4. Confirm or edit any remaining fields.\n5. Click **Create**.\n\nNote your project ID: you need it to send [Renewal links](/data-portability/user-guide/renewal) to your users.\n\nEnable billing\n\nTo enable billing for your project:\n\n1. Visit the [Billing page](https://console.developers.google.com/billing).\n2. If you don't have an active billing account, create one by clicking **Add billing account** and following the instructions.\n\nEnable the API\n\nThe Data Portability API is publicly available and discoverable in the API Library by\nsearching for \"Data Portability API\". Enable it in the UI or by using the gcloud CLI.\nTo enable it by using the gcloud CLI, run this command. \n\n gcloud services enable dataportability.googleapis.com\n\nTo confirm that the Data Portability API is enabled, view your\n[Enabled APIs and Services](https://console.cloud.google.com/apis/dashboard).\n\nIf you need help setting up the gcloud CLI, see [Install the gcloud CLI](https://cloud.google.com/sdk/docs/install)."]]