查询视图空间详情
更新时间:2022-09-13
接口描述
本接口用于查询视图空间详情。
请求(Request)
请求URI
GET /v1/visionSpace/{visionSpaceId}
参数名 | 类型 | 是否必须 | 描述 |
---|---|---|---|
visionSpaceId | Long | 否 | 视图空间ID |
请求头域
除公共头域外,无其它特殊头域。
请求体
无
响应(Response)
响应头域
除公共头域外,无其它特殊头域。
响应体
名称 | 类型 | 描述 |
---|---|---|
visionSpaceId | Long | 视图空间ID |
visionSpaceName | String | 视图空间名称 |
description | String | 空间描述 |
status | Status | 状态:OPERATING、RUNNING、STOPPED、DELETED |
storageConfig | StorageConfig | 存储配置 |
+ lifecycle | int | 周期,单位:天,默认183天 |
platformIp | String | 平台地址(Evs Vsion IP) |
platformPort | Integer | 平台端口(Evs Vsion Port) |
createTime | Date | 创建时间 |
visionCount | int | 视图接入数量 |
callback | Object | 回调通知配置 |
+ enabled | Boolean | 是否开启通知 |
+ endpoint | String | 是回调地址,开启时必填;支持http/https,https需用户自己检测域名证书链配置是否正确 |
+ authEnabled | Boolean | 回调是否验证签名,默认不验证false |
+ key | String | 回调签名key,用于计算token |
示例
请求示例
Plain Text
1GET /v1/visionSpace/100010 HTTP/1.1
2x-bce-date: 2020-03-25T09:28:13Z
3host: evs.bj.baidubce.com
4content-type: application/json
5authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
响应示例
Plain Text
1HTTP/1.1 200 OK
2Transfer-Encoding: chunked
3x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
4Cache-Control: no-cache
5Server: BWS
6Date: Tue, 24 Mar 202 013:34:07 GMT
7Content-Type: application/json;charset=UTF-8
8
9{
10 "visionSpaceId": 100010,
11 "visionSpaceName": "abc",
12 "status": "RUNNING",
13 "description": "",
14 "storageConfig": {
15 "lifecycle": 10
16 },
17 "callback": {
18 "authEnabled": true,
19 "key": "zLDFW",
20 "enabled": true,
21 "endpoint": "http://127.0.0.1:8/v1/test"
22 },
23 "platformIp": "192.168.1.1",
24 "platformPort": "8765",
25 "createTime": "2021-10-12 12:24:45",
26 "visionCount": 10
27}