查询空间信息
更新时间:2022-02-17
接口描述
本接口用于查询EVS空间配置信息。
请求(Request)
请求URI
GET /v1/space/{spaceId}
参数名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
spaceId | Long | 是 | 空间ID |
请求头域
除公共头域外,无其它特殊头域。
请求体
无
响应(Response)
响应头域
除公共头域外,无其它特殊头域。
响应体
公共参数见「创建空间」的请求体参数信息。
需要注意:
参数名称 | 类型 | 描述 |
---|---|---|
status | String | 空间当前状态,RUNING:正常运行状态;OPERATING:空间资源操作中,不可正常使用;STOPPED:空间已停用 |
示例
请求示例
GET /v1/space/1000001 HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
响应示例
HTTP/1.1 200 OK
Transfer-Encoding: chunked
x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
Cache-Control: no-cache
Server: BWS
Date: Tue, 24 Mar 202 013:34:07 GMT
Content-Type: application/json;charset=UTF-8
{
"spaceId": 1000001,
"spaceName": "evs_space",
"description": "evs_space_description",
"status": "RUNNING",
"type": "GB28181",
"domains": [
{
"domain": "yyy.com",
"type": "DOWNSTREAM",
"cname": "yyy.evs.down.baidu.com"
}
],
"downstreamAuth": {
"enabled": true,
"key": "evs_downstream_key",
"expire": 3600
},
"recording": {
"enabled": true,
"bucket": "evs_bucket",
"duration": 600,
"format": "M3U8",
"authEnabled": true,
"authExpire": 3600
},
"thumbnail": {
"enabled": true,
"bucket": "evs_bucket",
"interval": 10,
"authEnabled": true,
"authExpire": 3600
},
"timeShift": {
"enabled": true,
"range": 86400
},
"callback": {
"enabled": true,
"types": [
"ON_PUBLISH",
"ON_UNPUBLISH",
"ON_SNAPSHOT"
],
"endpoint": "http://example.evslive.com/space/1000001?callback",
"authEnabled": true,
"key": "zLDFWPdHLFU9oOhiX69jH6EXdJ5fDnZG"
},
"gbProperties": {
"inviteImmediate": true
},
"edge": {
"edgeId": 1,
"region": "EAST_CHINA",
"edgeName": "华东_西安_联通",
"city": "XIAN",
"serviceProvider": "CHINA_UNICOM",
"sipId": 10000012300012300012
"sipIp": "1.1.1.1",
"sipPort": 1234,
"sipProtocol": "UDP",
"sipRealm": "1000001230"
},
"deviceCount": 2,
"createTime": "2020-03-04 00:00:00"
}
错误码
参考公共错误码