云日志服务 LTS-更新日志转储:请求示例

时间:2023-12-15 10:07:02

请求示例

  • 更新OBS转储

    PUT https://{endpoint}/v2/{project_id}/transfers
    
    {
      "log_transfer_id" : "9f74e101-b969-483c-a610-d3f3064xxxxx",
      "log_transfer_info" : {
        "log_storage_format" : "JSON",
        "log_transfer_status" : "DISABLE",
        "log_transfer_detail" : {
          "obs_period" : 3,
          "obs_period_unit" : "hour",
          "obs_bucket_name" : "0xxx",
          "obs_encrypted_id" : "1bd90032-1424-481f-8558-ba49854xxxxx",
          "obs_dir_pre_fix_name" : "xx",
          "obs_prefix_name" : "xxxxx",
          "obs_time_zone" : "UTC+01:00",
          "obs_time_zone_id" : "Africa/Lagos"
        }
      }
    }
  • 更新DIS转储

    PUT https://{endpoint}/v2/{project_id}/transfers
    
    {
      "log_transfer_id" : "9f74e101-b969-483c-a610-d3f3064xxxxx",
      "log_transfer_info" : {
        "log_storage_format" : "JSON",
        "log_transfer_status" : "DISABLE",
        "log_transfer_detail" : {
          "dis_id" : "xxxxx",
          "dis_name" : "xxxxxx"
        }
      }
    }
  • 更新DMS转储

    PUT https://{endpoint}/v2/{project_id}/transfers
    
    {
      "log_transfer_id" : "9f74e101-b969-483c-a610-d3f3064xxxxx",
      "log_transfer_info" : {
        "log_storage_format" : "JSON",
        "log_transfer_status" : "DISABLE",
        "log_transfer_detail" : {
          "kafka_id" : "xxxxx",
          "kafka_topic" : "xxxxxx"
        }
      }
    }
support.huaweicloud.com/api-lts/UpdateTransfer.html