查看指定应用
更新时间:2021-06-24
接口描述
本接口用于查看指定应用的详细信息。
请求(Request)
请求URL
GET /v1/app/{appId}
参数名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
appId | String | 是 | 应用ID |
请求头域
除公共头域外,无其它特殊头域。
请求体
无
响应(Response)
响应头域
除公共头域外,无其它特殊头域。
响应体
参数名称 | 类型 | 描述 |
---|---|---|
appId | String | 应用ID |
name | String | 应用名称 |
type | String | 应用类型 |
spaceInfo | Array | 关联空间ID列表,支持多个 |
databaseInfo | Array | 关联人脸库ID列表,支持多个,当type为003时此项为空 |
configuration | Object | 配置信息 |
+ interval | Long | 截帧频率,单位:毫秒 |
+ effectiveTimes | Array | 检测生效时段,支持多个;输入东八区时间,从00:00:00开始,到23:59:59结束,每段间隔最小半小时 |
++ effectiveTimeStart | String | 检测生效开始时间,格式"HH:mm:ss" |
++ effectiveTimeEnd | String | 检测生效结束时间,格式"HH:mm:ss" |
+ lifecycle | Long | 存储周期,支持1-500天 |
+ confidence | Float | 置信度,支持0-1浮点数,精度2位 |
+ callback | Object | 通知配置 |
++ enabled | Boolean | 是否开启通知 |
++ endpoint | String | 回调地址,开启时必填;支持http/https,https需用户自己检测域名证书链配置是否正确 |
++ authEnabled | Boolean | 回调是否添加签名信息,默认不加验证即false |
++ key | String | 回调签名key,用于计算token |
示例
请求示例
Plain Text
1GET /v1/app/app-marf5bfx07u3xsz9 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
6
7{
8 "appId": "app-marf5bfx07u3xsz9",
9 "name": "海淀区海淀中学附近人员布控",
10 "type": "001",
11 "spaceInfo": [
12 {
13 "spaceId": 1000101,
14 "spaceName": "space name 1"
15 },
16 {
17 "spaceId": 1000102,
18 "spaceName": "space name 2"
19 }
20 ],
21 "databaseInfo": [
22 {
23 "databaseId": "dbf-mark0ig2eaibsqyd",
24 "name": "人脸库示例2",
25 "description": ""
26 },
27 {
28 "databaseId": "dbf-marjxygzy884hyrq",
29 "name": "人脸库示例2",
30 "description": ""
31 }
32 ],
33 "configuration": {
34 "interval": "1000",
35 "effectiveTimes": [
36 {
37 "effectiveTimeStart": "06:00:00",
38 "effectiveTimeEnd": "09:00:00"
39 },
40 {
41 "effectiveTimeStart": "11:00:00",
42 "effectiveTimeEnd": "15:00:00"
43 },
44 {
45 "effectiveTimeStart": "16:00:00",
46 "effectiveTimeEnd": "19:00:00"
47 }
48 ],
49 "lifecycle": 7,
50 "confidence": 0.85,
51 "callback": {
52 "enabled": true,
53 "endpoint": "http://user.service/callback"
54 }
55 }
56}
响应示例
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
错误码
参考公共错误码