- IDMesh APIs
- 使用文档
- 管理 API
- 用户
- 应用
- 创建应用POST
- 更新应用基本信息PATCH
- 查询应用模板列表GET
- 查询应用列表GET
- 按条件查询应用GET
- 按 ID 查询应用GET
- 启用应用POST
- 禁用应用POST
- 删除应用DELETE
- 刷新应用安全码POST
- 查询应用配置信息GET
- 更新应用配置PATCH
- 禁用应用单点登录POST
- 启用应用多子账号登录POST
- 禁用应用多子账号登录POST
- 启用应用单点登录POST
- 启用应用多因素认证配置POST
- 禁用应用多因素认证配置DELETE
- 创建应用认证源POST
- 删除应用认证源DELETE
- 启用应用认证协议POST
- 禁用应用认证协议POST
- 重置应用认证协议密钥POST
- 查询应用认证协议列表GET
- 查询应用认证协议GET
- 更新应用认证协议PUT
- 更新应用子账号PUT
- 创建应用子账号POST
- 更新应用子账号PATCH
- 启用应用子账号POST
- 禁用应用子账号POST
- 删除应用子账号DELETE
- 按 APP ID 查询应用子账号列表GET
- 按条件查询应用子账号列表GET
- 按条件查询应用子账号GET
- 按 ID 查询应用子账号GET
- 更新应用 LogoPOST
- 批量创建应用子账号POST
- 权限及资源
- 组织关系
- 身份源
- KV 存储
- 定时任务
- 事件
- BFF
创建应用
POST
/v1/applications
type_mgmtdocprogrammer-docmodule_application
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
name
string
应用名称
type
string
应用类型
domain_sn
string
域名
template_id
string
模板id
category
string
应用分类
descr
string
应用描述
logo
string
logo路径
login_url
string
登录路径
redirect_url
string
重定向路径
logout_url
string
登出路径
sub_account_policy
string
子账号策略
sys_ext_props
object
系统扩展字段
free_ext_props
object
自定义扩展属性
protocol_type
string
认证协议
protocol_prop
object
认证协议配置
acs_url
string
可选
sp_entity
string
可选
response_attr
array [object {3}]
可选
digest_algorithm
string
可选
lifetime_in_seconds
number
可选
signature_algorithm
string
可选
name_identifier_format
string
可选
authn_context_class_ref
string
可选
saml_response_signing_key
string
可选
saml_response_signing_cert
string
可选
saml_response_signing_cert_fingerprint
string
可选
config_prop
object
应用配置
status
string
可选
tenant_id
string
可选
mfa_config
object
可选
reg_policy
array[string]
可选
mfa_enabled
string
可选
sso_enabled
string
可选
developer_id
string
可选
access_policy
object
可选
allowed_reg_method
object
可选
default_reg_method
string
可选
allowed_login_method
object
可选
default_login_method
string
可选
allowed_social_login_provider
object
可选
template_params
object
应用模板参数
version
string
应用模板版本
params
object
应用模板参数
示例
{
"name": "string",
"type": "string",
"domain_sn": "string",
"template_id": "string",
"category": "string",
"descr": "string",
"logo": "string",
"login_url": "string",
"redirect_url": "string",
"logout_url": "string",
"sub_account_policy": "string",
"sys_ext_props": {},
"free_ext_props": {},
"protocol_type": "string",
"protocol_prop": {
"acs_url": "string",
"sp_entity": "string",
"response_attr": [
{
"value": "string",
"attribute": "string",
"nameFormat": "string"
}
],
"digest_algorithm": "string",
"lifetime_in_seconds": 0,
"signature_algorithm": "string",
"name_identifier_format": "string",
"authn_context_class_ref": "string",
"saml_response_signing_key": "string",
"saml_response_signing_cert": "string",
"saml_response_signing_cert_fingerprint": "string"
},
"config_prop": {
"status": "string",
"tenant_id": "string",
"mfa_config": {},
"reg_policy": [
"string"
],
"mfa_enabled": "string",
"sso_enabled": "string",
"developer_id": "string",
"access_policy": {
"forget_password": [
"string"
]
},
"allowed_reg_method": {},
"default_reg_method": "string",
"allowed_login_method": {
"name": "string"
},
"default_login_method": "string",
"allowed_social_login_provider": {
"wechat_scan_qr": 0,
"dingding_scan_qr": 0
}
},
"template_params": {
"version": "string",
"params": {}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1/v1/applications' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
id
string
唯一标识
示例
{
"id": "string"
}
🟠400参数错误
修改于 2024-10-18 06:30:35