湖仓构建 LAKEFORMATION-修改任务信息:请求示例

时间:2024-10-22 17:23:05

请求示例

PUT https://{endpoint}/v1/{project_id}/instances/{instance_id}/lf-jobs/{job_id}

{
  "name" : "testjob",
  "description" : "string",
  "parameter" : {
    "metadata_migration_parameter" : {
      "datasource_type" : "ALIYUN_DLF",
      "datasource_parameter" : {
        "endpoint" : "protocol://example.example1.com",
        "access_key" : "LTAIxxxxxxxxxxxxxxxxRxPG",
        "secret_key" : "1234xxxxxxxxxxxxxxxxxxxxefgh"
      },
      "source_catalog" : "sourceCatalog1",
      "target_catalog" : "targetCatalog1",
      "conflict_strategy" : "UPDATE",
      "log_location" : "obs://logStore/2023",
      "sync_objects" : [ "DATABASE" ],
      "locations" : [ {
        "key" : "test/test1",
        "value" : "test2/db"
      } ],
      "instance_id" : "12345678910a"
    }
  }
}
support.huaweicloud.com/api-lakeformation/UpdateJobByInstance.html