实时音视频 SPARKRTC-查询录制规则列表:响应示例

时间:2024-10-18 15:28:08

响应示例

状态码: 200

配置成功

{
  "rules" : [ {
    "app_id" : "123456789abcdefghijklmno",
    "rule_id" : "456789abc",
    "create_time" : "2006-01-02T15:04:05.075Z",
    "obs_addr" : {
      "bucket" : "obsName",
      "location" : "cn-north-4",
      "object" : "Record/",
      "project_id" : "ad7456ce8ef89adf567"
    },
    "record_formats" : [ "MP4" ],
    "mp4_config" : {
      "record_cycle" : 60,
      "record_max_duration_to_merge_file" : 0
    },
    "update_time" : "2006-01-02T15:04:05.075Z"
  } ]
}

状态码: 400

配置失败,语义有误,当前请求无法被服务器理解,或参数有误

{
  "error_code" : "RTC.00001003",
  "error_msg" : "InvalidParameterValue"
}

状态码: 404

配置失败,应用不存在

{
  "error_code" : "RTC.00001003",
  "error_msg" : "InvalidParameterValue"
}

状态码: 500

配置失败,服务器端错误

{
  "error_code" : "RTC.00002xxx",
  "error_msg" : "InternalError"
}
support.huaweicloud.com/api-rtc/ListRecordRules.html