视频接入服务 VIS-获取服务开通信息:响应示例

时间:2024-07-04 09:16:57

响应示例

状态码: 200

正常

{
  "user_id" : "******6045184a8194e021113e******",
  "sip_ip" : "10.95.144.***",
  "sip_port" : "5080",
  "quota" : {
    "consecutive_access_time" : {
      "total" : 120,
      "used" : 120
    },
    "password" : {
      "total" : 10,
      "used" : 2
    },
    "random_access_time" : {
      "total" : 240,
      "used" : 240
    },
    "stream" : {
      "total" : 500,
      "used" : 8
    },
    "active_stream" : {
      "total" : 200,
      "used" : 4
    },
    "device" : {
      "total" : 500,
      "used" : 0
    },
    "aksk" : {
      "total" : 10,
      "used" : 6
    },
    "http_num" : {
      "total" : 10,
      "used" : 5
    },
    "http_active_num" : {
      "total" : 5,
      "used" : 1
    },
    "rtmp_num" : {
      "total" : 0,
      "used" : 0
    }
  },
  "created_at" : "2018-10-25T03:06:10Z",
  "is_subscribed" : true
}

状态码: 404

找不到资源或没有开通服务。具体返回错误码请参考错误码说明

{
  "error_msg" : "Failed to find the user subscription info.",
  "error_code" : "VIS.0015"
}
support.huaweicloud.com/api-vis/ListSubscriptions.html