Method: projects.locations.services.exportMetadata

匯出服務中的中繼資料。

HTTP 要求

POST https://metastore.googleapis.com/v1beta/{service}:exportMetadata

路徑參數

參數
service

string

這是必要旗標,要執行匯出的 Metastore 服務的相對資源名稱,格式如下:

projects/{projectId}/locations/{locationId}/services/{serviceId}

授權需要指定資源 service 的下列 IAM 權限:

  • metastore.services.export

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "requestId": string,
  "databaseDumpType": enum (Type),

  // Union field destination can be only one of the following:
  "destinationGcsFolder": string
  // End of list of possible types for union field destination.
}
欄位
requestId

string

(非必要) 要求 ID。指定專屬要求 ID,讓伺服器在要求完成後忽略該要求。在第一個要求後的 60 分鐘內,伺服器會忽略提供重複要求 ID 的後續要求。

舉例來說,如果初始要求逾時,接著出現另一個使用相同要求 ID 的要求,伺服器會忽略第二個要求,以免建立重複的承諾。

要求 ID 必須是有效的 UUID。系統不支援零 UUID (00000000-0000-0000-0000-000000000000)。

databaseDumpType

enum (Type)

(非必要) 資料庫備份的類型。如未指定,則預設為 MYSQL

聯集欄位 destination。這是必要旗標,中繼資料的匯出目的地。destination 只能是下列其中一項:
destinationGcsFolder

string

資料夾的 Cloud Storage URI,格式為 gs://<bucket_name>/<path_inside_bucket>。系統會在其下方建立包含匯出檔案的子資料夾 <export_folder>

回應主體

如果成功,回應主體會包含 Operation 的執行個體。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱驗證總覽一文。