diff --git a/Function.md b/Function.md index 3fd0b8e..f2d5012 100644 --- a/Function.md +++ b/Function.md @@ -7,8 +7,8 @@ function(event, op) { ``` ### 参数 -* event -class [FunctionEvent](./FunctionEvent.md) +* event [FunctionEvent](./FunctionEvent.md) +事件,函数上下文 -* op -class [Operation](./Operation.md) \ No newline at end of file +* op [Operation](./Operation.md) +操作,函数操作 \ No newline at end of file diff --git a/FunctionEvent.md b/FunctionEvent.md index b438d3d..72cd2d7 100644 --- a/FunctionEvent.md +++ b/FunctionEvent.md @@ -1,9 +1,7 @@ #### FunctionEvent -##### user -class [User](./User.md) - - -##### request -class [Request](./Request.md) +##### user [User](./User.md) +用户 +##### request [Request](./Request.md) +请求 diff --git a/IDaasApi.md b/IDaasApi.md index e9bcce4..98894a8 100644 --- a/IDaasApi.md +++ b/IDaasApi.md @@ -8,11 +8,15 @@ ##### user [UserApi](./api/ModuleIdentity.md) 用户模块接口 + ##### app [AppApi](./api/ModuleApplication.md) 应用模块接口 + ##### permission [PermissionApi](./api/ModulePermission.md) 权限模块接口 + ##### authentication [AuthenticationApi](./api/ModuleAuthentication.md) 认证模块接口 + ##### organization [OrganizationApi](./api/ModuleOranization.md) 组织模块接口 diff --git a/api/ModuleApplication.md b/api/ModuleApplication.md index 99a5213..0bfda30 100644 --- a/api/ModuleApplication.md +++ b/api/ModuleApplication.md @@ -1,3 +1,1270 @@ -#### AppApi +### AppApi +[toc] +#### create(param) + + -TODO \ No newline at end of file +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
namestringfalse应用名称
typestringfalse应用类型1,自建应用,2模板应用(市场应用)
template_idstringfalse模板id,不填写则代表自建应用
categorystringfalse应用分类,1 标准web应用,2单页web应用,3客户端应用,4后端服务
descrstringfalse应用描述
logostringfalselogo路径,格式为:http://ip:port/logo.png
login_urlstringfalse登录路径
redirect_urlstringfalse重定向路径
logout_urlstringfalse登出路径
sub_account_policystringfalse子账号策略,1启用,0不启用,启用后单点登录返回
propobjectfalsekv字典数据
protocol_typestringfalse如果不传默认是oidc
protocol_propobjectfalse单点登录协议属性,如果不存在则为oidc的配置
config_propobjectfalse应用配置属性
domain_snstringfalse域名
+ +#### modify(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
namestringfalse应用名称
typestringfalse应用类型,1自建应用,2市场应用
app_idstringfalse应用key
app_secretstringfalse应用secret,拥有管理员权限时返回
categorystringfalse应用分类
descrstringfalse应用描述
logonullfalselogo路径
login_urlstringfalse登录路径
redirect_urlstringfalse重定向路径
logout_urlstringfalse登出路径
sub_account_policystringfalse子账号策略
propobjectfalse扩展属性
statusstringfalse状态,0禁用,1启用
domain_snstringfalse应用 Domain SN
+ +#### getTemplate(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
namestringtrue应用名称
+ +#### list(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
namestringfalse应用名称
typestringfalse应用类型
page_sortstringfalse排序,格式:字段名[顺序]
typesstringfalse应用类型列表,逗号分隔
+ +#### getByDomain(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
domainstringfalse域名
domain_snstringfalse域名简写
+ +#### get(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue唯一标识
+ +#### enable(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue应用标识
+ +#### disable(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue应用标识
+ +#### delete(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### createSecrets(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### getConfig(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue应用ID
+ +#### modifyConfig(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
allowed_login_methodstringfalse允许的登录方式,格式为:["password", "vercode"]
default_login_methodstringfalse默认登录方式,格式为:password
allowed_reg_methodstringfalse允许注册方式,格式为:["mobile", "email"]
default_reg_methodstringfalse默认注册方式,格式为:mobile
default_protocolstringfalse默认登录协议
access_policystringfalse应用级访问控制权限,all: 所有人可访问 permitted: 拒绝未授权访问
reg_policystringfalse新用户注册策略(是否允许自动注册,注册验证方式等),1是,2否,
+ +#### disableSSO(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue应用标识
+ +#### enableSSO(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue应用标识
+ +#### createMFA(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idtrue应用id
config_idstringtrue已配置的idp conn id
+ +#### deleteMFA(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idstringtrue应用id
config_idtrue
+ +#### createIDP(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idtrue应用id
config_idstringtrue已配置的idp conn id
+ +#### deleteIDPConfig(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idstringtrue应用id
config_idtrue
+ +#### enableProtocol(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idtrue应用 id
protocol_typetrue协议名称,如 oidc
+ +#### disableProtocol(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idtrue应用 id
protocol_typetrue协议名称,如 oidc
+ +#### getProtocols(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue应用唯一标识ID
statusstringfalse启用状态 1, 0
+ +#### getProtocol(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idtrue应用id
protocol_typetrue单点类型,cas、oauth2、saml、oidc、sxp
+ +#### modifyProtocol(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idtrue应用id
protocol_typetrue单点类型,cas、oauth2、saml、oidc、sxp
config_contentobjectfalse配置参数
+ +#### createAccount(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idtrue应用id
user_idstringfalse用户唯一标识
app_idstringfalse应用唯一标识
acc_namestringfalse帐号名
acc_name_displayedstringfalse显示名
acc_sourcestringfalse帐号来源
acc_passwordstringfalse帐号密码
acc_statusstringfalse帐号状态,1启用,0禁用
acc_propobjectfalse扩展属性
usernmaestringfalse用户名称
+ +#### modifyAccount(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idstringtrue应用id
idtrue子账号id
user_idstringfalse用户唯一标识
app_idstringfalse应用唯一标识
acc_namestringfalse帐号名
acc_name_displayedstringfalse显示名
acc_sourcestringfalse帐号来源
acc_passwordstringfalse密码
acc_statusstringfalse状态,1启用,0禁用
acc_propobjectfalse扩展属性
+ +#### enableAccount(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idtrue应用id
idstringtrue子账号id
idstringtrue
+ +#### disableAccount(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idtrue应用id
idstringtrue子账号id
+ +#### deleteAccount(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idtrue应用id
idstringtrue子账号id
+ +#### getAccounts(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
app_idstringfalse应用id
user_idstringfalse用户id
acc_statusstringfalse账号状态 1-活跃 0-冻结
page_numintegerfalse页数
page_sizeintegerfalse页大小
page_sortstringfalse排序字段
+ \ No newline at end of file diff --git a/api/ModuleAuthentication.md b/api/ModuleAuthentication.md index 60cbea7..66501ee 100644 --- a/api/ModuleAuthentication.md +++ b/api/ModuleAuthentication.md @@ -1,3 +1,2 @@ #### Authentication - -TODO \ No newline at end of file +[toc] \ No newline at end of file diff --git a/api/ModuleIdentity.md b/api/ModuleIdentity.md index 39396fc..5cb5958 100644 --- a/api/ModuleIdentity.md +++ b/api/ModuleIdentity.md @@ -1 +1,768 @@ -#### OrganizationApi \ No newline at end of file +### UserApi +[toc] +#### create(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
usernamestringfalse用户名,唯一,不传后台自动生成
passwordstringfalse密码,不传后台生成默认密码
display_namestringfalse显示名称
firstnamestringfalse
lastnamestringfalse
realnamestringfalse真实姓名
pinyinstringfalse拼音
nicknamestringfalse昵称
user_typestringfalse用户类型,不传后台设置系统默认类型
mobilestringfalse手机
emailstringfalse邮箱
genderstringfalse性别
cert_typestringfalse证件类型
cert_numberstringfalse证件号
regionstringfalse区域
work_timestringfalse加入时间
work_titlestringfalse职位
ext_propjsonfalse扩展信息,json对象{"age": 18, "love": "足球"}
statusstringfalse状态:1正常,0禁用,后期扩展:离职、休假、借调。
password_statusstringfalse密码状态(valid/invalid)
idp_config_idnumbertrue身份源ID,作为创建时记录,不做更新
+ +#### disable(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### enable(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### batchDisable(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idsarraytrue
+ +#### batchEnable(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idsarraytrue
+ +#### modify(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
usernamestringfalse用户名,验证唯一
passwordstringfalse密码
display_namestringfalse显示名称
firstnamestringfalse
lastnamestringfalse
realnamestringfalse真实姓名
pinyinstringfalse拼音
nicknamestringfalse昵称
mobilestringfalse手机
emailstringfalse邮箱
genderstringfalse性别:1男,0女
cert_typestringfalse证件类型
cert_numberstringfalse证件号
regionstringfalse区域
work_timestringfalse加入时间
work_titlestringfalse职位
ext_propjsonfalse扩展信息,json对象{"age": 18, "love": "足球"}
last_login_ipaddrstringfalse上次登录IP
last_login_timestringfalse上次登录时间
statusstringfalse状态,正常、禁用,后期扩展:离职、休假、借调。
+ +#### delete(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### batchDelete(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idsarraytrue
+ +#### list(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
page_sizeintegerfalse
page_numintegerfalse
search_typestringfalse默认按用户字段搜索,当值为:generic时,全文检索
keywordstringfalse检索值
+ +#### get(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### modifyPassword(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
old_passwordstringfalse
new_passwordstringfalse
+ +#### getStoredCredentials(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
user_idnumberfalse用户id标识
provider_codestringfalse社会化登录提供者的code
idp_config_idnumberfalse社会化登录配置的ID
id1stringfalse社会化身份标识1,约定此字段保存用户唯一标识,如openid
id2stringfalse社会化身份标识2,如unionid
metadatastringfalse更多社会化身份标识
statusstringfalse状态
usernamestringfalse用户名
display_namestringfalse显示名
page_sizeintegerfalse
page_numintegerfalse
+ +#### createStoreCredential(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
provider_codestringfalse社会化身份源code
id1stringfalse社会化身份标识1,如openid
id2stringfalse社会化身份标识2,如unionid
metadatastringfalse更多社会化身份标识
statusstringfalse状态
nicknamestringfalse昵称
avatarstringfalse头像
id_provider_connectionstringfalse
idp_config_idnumberfalse社会化登录配置的ID
realnamestringfalse真实姓名
mobilestringfalse手机
emailstringfalse邮箱
genderstringfalse性别
+ \ No newline at end of file diff --git a/api/ModuleOranization.md b/api/ModuleOranization.md index e69de29..6e01772 100644 --- a/api/ModuleOranization.md +++ b/api/ModuleOranization.md @@ -0,0 +1,726 @@ + +### OrganizationApi +[toc] + +#### createOrganization(param) + + + +##### param properties + + + + + + + + + + + + + + + +
名称类型是否必须描述
+ +#### getNodeParent(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### deleteNode(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
object_codestringtrue树对象code
+ +#### getOrganizations(param) + + + +##### param properties + + + + + + + + + + + + + + + +
名称类型是否必须描述
+ +#### updateOrganization(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### getOrganization(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
codestringtrue
+ +#### deleteOrganization(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### addUserToNode(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
relation_datastringfalse关联扩展信息
relation_typestringfalse用于区分多重关联
is_defaultstringfalse1是,0否
node_idstringfalse
user_idsarrayfalse
+ +#### updateMember(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idtrue
is_defaultstringfalse1是,0否
actionstringtrue移动节点move, 设置为默认关系as-default
source_node_idstringfalse移动前节点ID
dest_node_idstringfalse移动后节点ID
+ +#### getMembers(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
user_idstringtrue用户ID
+ +#### getNodeMembers(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtruenode id
relation_typestringfalse关联类型,用于区分多重关联
is_defaultstringfalse是否默认关系 1是,0否
display_namestringfalse用户显示名
usernamestringfalse用户名,支持模糊搜索(仅前缀)
modestringfalse// mode - 低->高 bit +// 第1位:是否获得指针节点所对应的真实结点,1-是,0-否 +// 第2位:是否展开WeakNode,即节点中类型不同的节点,1-展开,0-不展开 +// 第3位:是否递归地展开节点(不建议)
page_numintegerfalse起始页,默认1
page_sizeintegerfalse页大小,默认10
page_sortstringfalse排序方式,格式:字段[排序方式]
+ +#### deleteNodeMembers(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
node_idstringtruenode id
idsarraytrue
+ +#### deleteMember(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue用户节点ID
idsarrayfalse用户与组织的关系ID
node_idstringfalse节点ID
user_idstringfalse用户原始ID
+ +#### deleteMembers(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
node_idstringfalse节点ID
user_idstringfalse用户原始ID
+ +#### createNode(param) + + + +##### param properties + + + + + + + + + + + + + + + +
名称类型是否必须描述
+ +#### updateNode(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue更新树节点
+ +#### deleteChildrenNodes(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
object_codestringtrue树对象code
+ +#### getNodes(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
object_codestringtrue创建树时的object_code
namestringfalse名字,支持前缀搜索
codestringfalse编号
tagstringfalse标签
+ +#### getNode(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
+ +#### getChildrenNodes(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue
modestringtrue// mode - 低->高 bit +// 第1位:是否获得指针节点所对应的真实结点,1-是,0-否 +// 第2位:是否展开WeakNode,即节点中类型不同的节点,1-展开,0-不展开 +// 第3位:是否递归地展开节点(不建议)
object_codestringtrue当id = 0时必填,创建树时的object_code
+ diff --git a/api/ModulePermission.md b/api/ModulePermission.md index e69de29..f1cbbbe 100644 --- a/api/ModulePermission.md +++ b/api/ModulePermission.md @@ -0,0 +1,1109 @@ +### PermissionApi +[toc] + +#### getPrivileges(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
identity_idstringfalse主体id
identity_typestringfalse主体类型
identity_namestringfalse主体名称
application_idstringtrue应用id
object_typestringfalse对象类型(可选值: data, api, ui, res_set, app)
object_codestringfalse对象代码
affectstringfalse作用方式(affect,deny)
page_numstringfalse起始页,默认1
page_sizestringfalse页大小,默认20
page_sortstringfalse排序方式,格式:字段[排序方式]
+ +#### getAuthUnits(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
identity_idstringfalse主体id
identity_typestringfalse主体类型
identity_namestringfalse主体名称
page_numstringfalse起始页,默认1
page_sizestringfalse页大小,默认20
page_sortstringfalse排序方式,格式:字段[排序方式]
+ +#### getAuthUnit(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrueau id
+ +#### createAuthUnitRules(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
identitiesarrayfalse
rulesarrayfalse
+ +#### modifyAuthUnit(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
ridstringtrueAU id
tidstringtrue规则id
+ +#### getAuthUnitsRules(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
ridstringtrueAU id
application_idstringfalse应用id
typestringfalse规则类型
codestringfalse资源或资源集合code
self_onlystringfalse只查询指定主体下的授权
resource_idstringfalse资源id,当type=api,ui,data时有效
resource_match_all_resourcesstringfalse匹配所有资源,当type=res时有效
resource_match_all_actionsstringfalse匹配所有资源操作,当type=res时有效
resource_set_idstringfalse资源集合id,当type=res_set
+ +#### queryAuthUnitsRules(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
application_idstringfalse应用id
typestringfalse规则类型
codestringfalse资源或资源集合code
identity_idstringtrue主体id
identity_typestringtrue主体类型
identity_namestringfalse主体名称
self_onlystringfalse只查询指定主体下的授权
resource_idstringfalse资源id,当type=api,ui,data时有效
resource_match_all_resourcesstringfalse匹配所有资源,当type=res时有效
resource_match_all_actionsstringfalse匹配所有资源操作,当type=res时有效
resource_set_idstringfalse资源集合id,当type=res_set
+ +#### deleteAuthUnitRules(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idsarraytrue
+ +#### createResource(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
descriptionstringfalse描述
codestringfalse资源代码
application_idnumberfalse应用id
typestringfalse资源类型,data/api/ui
uristringfalse资源URI, 当type=api/ui 时有效
actionsarrayfalse
+ +#### modifyResource(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue资源id
descriptionstringfalse描述
uristringfalse资源URI, 当type=api/ui 时有效
actionsarrayfalse
+ +#### getResources(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
application_idstringtrue应用id
typestringfalse资源类型
codestringfalse资源代码
include_globalstringfalse是否查询包含全局资源
page_numstringfalse起始页,默认1
page_sizestringfalse页大小,默认20
page_sortstringfalse排序方式,格式:字段[排序方式]
+ +#### getResource(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue资源id
application_idstringtrue应用id
+ +#### deleteResources(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idsarraytrue
+ +#### createResourceSet(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
codestringfalse集合代码
descriptionstringfalse描述
application_idstringfalse应用id
+ +#### modifyResourceSet(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue集合id
codestringfalse集合代码
descriptionstringfalse描述
+ +#### getResourceSets(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
codestringfalse集合代码
application_idstringtrue应用id
include_globalstringfalse查询是否包含全局资源集合
page_numstringfalse起始页,默认1
page_sizestringfalse页大小,默认20
page_sortstringfalse排序方式,格式:字段[排序方式]
+ +#### getResourceSet(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue资源集合id
+ +#### createResourceSetMember(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
idstringtrue集合id
resource_idnumberfalse
resource_scopestringfalse
resource_actionsarrayfalse
match_all_actionsbooleanfalse
+ +#### modifyResourceSetMember(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
sidstringtrue资源集合id
midstringtrue资源集合成员id
resource_idnumberfalse
resource_scopestringfalse
ResourceActionsarrayfalse
match_all_actionsbooleanfalse
+ +#### getResourceMembers(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
sidstringtrue资源集合id
resource_codestringfalse资源代码
resource_typestringfalse资源类型
page_numstringfalse起始页,默认1
page_sizestringfalse页大小,默认20
page_sortstringfalse排序方式,格式:字段[排序方式]
+ +#### getResourceMember(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
sidstringtrue资源集合id
midstringtrue成员id
+ +#### authorizeApplications(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
identitiesarrayfalse
application_idstringfalse
affectstringfalseallow, deny
+ +#### listAuthorizedApplications(param) + + + +##### param properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名称类型是否必须描述
identity_idstringtrue授权主体 id
identity_typestringtrue授权主体类型
typestringfalse应用类型: 0-默认应用 1-自建应用 2-模板应用 3-组件应用
+ \ No newline at end of file