# 批量获取授权策略列表 (后端接口)
# 调用方式: GET
# 接口地址:
https://api.freelog.com/v2/policies/list
1
# url传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
policyIds | 必选 | string | 策略ID,多个用逗号分隔 |
subjectType | 可选 | int | 标的物类型 |
isTranslate | 可选 | int | 是否翻译策略 0:否 1:是 |
projection | 可选 | string | 返回字段筛选,多个用逗号分隔 |
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
policyId | string | 策略ID |
subjectType | int | 标的物类型 1:资源 2:展品 3:用户组 |
policyName | string | 策略名称 |
policyText | string | 策略文本 |
createDate | date | 创建日期 |
# 返回示例
{
"ret": 0,
"errcode": 0,
"msg": "success",
"data": [{
"status": 0,
"subjectType": 1,
"policyId": "15b30e2fba98bea17f1398d0521321e9",
"policyText": "for public: initial1: active presentable terminate ",
"fsmDescriptionInfo": {
"initial1": {
"authorization": ["active", "presentable"],
"transition": {
"terminate": null
}
}
},
"createDate": "2020-09-30T02:50:35.917Z",
"updateDate": "2020-09-30T02:50:35.917Z"
}, {
"status": 0,
"subjectType": 1,
"policyId": "6f1b98c7b6f822e862b56a01eb1c9de4",
"policyText": "for public: initial: active presentable terminate ",
"fsmDescriptionInfo": {
"initial": {
"authorization": ["active", "presentable"],
"transition": {
"terminate": null
}
}
},
"createDate": "2020-09-30T02:15:40.542Z",
"updateDate": "2020-09-30T02:15:40.542Z"
}]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36