# 查看授权策略详情 (后端接口)

# 调用方式: GET

# 接口地址:

https://api.freelog.com/v2/policies/{policyId}
1

# url传入参数说明:

参数 必选 类型及范围 说明
isTranslate 可选 int 是否翻译策略 0:否 1:是

# 返回说明:

返回值字段 字段类型 字段说明
policyId string 策略ID
policyText string 策略文本
subjectType int 标的物类型 1:资源 2:展品 3:用户组
fsmDescriptionInfo object 策略状态机描述
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"
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21