+304
-17
@@ -601,7 +601,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.pagedResponse-oci-portal_internal_model_AiCallLog"
|
||||
"$ref": "#/definitions/internal_api.pagedResponse-oci-portal_internal_model_AiContentLog"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -773,7 +773,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.pagedResponse-oci-portal_internal_model_AiContentLog"
|
||||
"$ref": "#/definitions/internal_api.pagedResponse-oci-portal_internal_model_AiCallLog"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -923,8 +923,14 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "已更新,返回换发的新 token",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.tokenResponse"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "已更新,请重新登录"
|
||||
"description": "已更新但新 token 签发失败,需重新登录"
|
||||
},
|
||||
"401": {
|
||||
"description": "当前密码错误",
|
||||
@@ -977,8 +983,14 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "已解绑,返回换发的新 token",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.tokenResponse"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "已解绑"
|
||||
"description": "已解绑但新 token 签发失败,需重新登录"
|
||||
},
|
||||
"409": {
|
||||
"description": "最后一个身份不可解绑",
|
||||
@@ -1158,8 +1170,14 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "已保存,返回换发的新 token",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.tokenResponse"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "已保存"
|
||||
"description": "已保存但新 token 签发失败,需重新登录"
|
||||
},
|
||||
"409": {
|
||||
"description": "未绑定外部身份",
|
||||
@@ -1235,8 +1253,14 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "已启用,返回换发的新 token",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.tokenResponse"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "已启用"
|
||||
"description": "已启用但新 token 签发失败,需重新登录"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1264,8 +1288,14 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "已停用,返回换发的新 token",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.tokenResponse"
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "已停用"
|
||||
"description": "已停用但新 token 签发失败,需重新登录"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2466,6 +2496,15 @@
|
||||
"schema": {
|
||||
"$ref": "#/definitions/oci-portal_internal_oci.PAR"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "accessType 或 expiresHours 非法",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2515,8 +2554,17 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "all=1 时返回 {deleted: n}",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"204": {
|
||||
"description": "删除成功,链接立即失效"
|
||||
"description": "按 parId 删单条成功,链接立即失效"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2794,6 +2842,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "创建禁用态 IdP;若 IdP 已创建但 JIT 后置配置失败且回滚无法确认,仍返回 201,并在 setupWarning 中标明部分成功",
|
||||
"tags": [
|
||||
"租户 IAM"
|
||||
],
|
||||
@@ -2826,7 +2875,7 @@
|
||||
"201": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/oci-portal_internal_oci.IdentityProviderInfo"
|
||||
"$ref": "#/definitions/internal_api.createIdpResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3003,6 +3052,128 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/oci-configs/{id}/idp-icons": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "上传到身份域公共图片存储(/storage/v1/Images),返回可填入 iconUrl 的公网地址",
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
],
|
||||
"tags": [
|
||||
"租户 IAM"
|
||||
],
|
||||
"summary": "上传身份提供商图标",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "配置 ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "身份域 OCID(缺省 Default 域)",
|
||||
"name": "domainId",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"description": "图标文件(png/jpg/jpeg/gif/svg/webp/ico,≤1MB)",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.idpIconResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "缺文件字段、文件为空或文件名非法",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"413": {
|
||||
"description": "文件超过 1MB",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"415": {
|
||||
"description": "扩展名不支持或与文件内容不符",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "使用上传响应中的 fileName 删除身份域公开图片;404 按已删除处理",
|
||||
"tags": [
|
||||
"租户 IAM"
|
||||
],
|
||||
"summary": "删除身份提供商图标",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "配置 ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "身份域 OCID(缺省 Default 域)",
|
||||
"name": "domainId",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "上传响应返回的 IdP 图标存储标识(images/idp-icon-\u003c32hex\u003e.\u003cext\u003e)",
|
||||
"name": "fileName",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "无内容"
|
||||
},
|
||||
"400": {
|
||||
"description": "fileName 缺失或不是本服务生成的 IdP 图标标识",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/oci-configs/{id}/images": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -6704,7 +6875,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"patch": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
@@ -6713,10 +6884,10 @@
|
||||
"tags": [
|
||||
"设置"
|
||||
],
|
||||
"summary": "保存 OAuth provider 配置",
|
||||
"summary": "部分更新 OAuth provider 配置",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "provider 配置",
|
||||
"description": "出现的字段才会被更新",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -6755,7 +6926,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"patch": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
@@ -6764,15 +6935,15 @@
|
||||
"tags": [
|
||||
"设置"
|
||||
],
|
||||
"summary": "保存安全设置并返回最新值",
|
||||
"summary": "部分更新安全设置并返回最新值",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "请求体",
|
||||
"description": "出现的字段才会被更新",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/oci-portal_internal_service.SecuritySettings"
|
||||
"$ref": "#/definitions/oci-portal_internal_service.SecurityPatch"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -7029,7 +7200,7 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "可更新字段",
|
||||
"description": "可更新字段;抢机 payload 的 count 语义为目标台数",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -7044,6 +7215,18 @@
|
||||
"schema": {
|
||||
"$ref": "#/definitions/oci-portal_internal_model.Task"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "参数非法或抢机目标不大于已完成数量",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.errorResponse"
|
||||
}
|
||||
},
|
||||
"409": {
|
||||
"description": "任务被并发修改,须刷新重试",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/internal_api.errorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -7441,6 +7624,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"internal_api.createIdpResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"jitEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"partnerProviderId": {
|
||||
"type": "string"
|
||||
},
|
||||
"setupWarning": {
|
||||
"$ref": "#/definitions/internal_api.idpSetupWarning"
|
||||
},
|
||||
"timeCreated": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"internal_api.createInstanceRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -7752,6 +7964,34 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"internal_api.idpIconResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"fileName": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"internal_api.idpSetupWarning": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"requestId": {
|
||||
"type": "string"
|
||||
},
|
||||
"resourceCreated": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"internal_api.importRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -11328,6 +11568,13 @@
|
||||
"hasActiveTask": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"series": {
|
||||
"description": "Series 按币种拆分的序列(合计降序);顶层 Currency/Total/Days 恒为首个\n(主)币种,多币种租户的其余币种只出现在 Series,不与主币种相加。",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/oci-portal_internal_service.OverviewCostSeries"
|
||||
}
|
||||
},
|
||||
"total": {
|
||||
"type": "number"
|
||||
}
|
||||
@@ -11344,6 +11591,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"oci-portal_internal_service.OverviewCostSeries": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"currency": {
|
||||
"type": "string"
|
||||
},
|
||||
"days": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/oci-portal_internal_service.OverviewCostDay"
|
||||
}
|
||||
},
|
||||
"total": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"oci-portal_internal_service.OverviewTasks": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -11518,6 +11782,29 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"oci-portal_internal_service.SecurityPatch": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"appUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"ipRateBurst": {
|
||||
"type": "integer"
|
||||
},
|
||||
"ipRateRps": {
|
||||
"type": "integer"
|
||||
},
|
||||
"loginFailLimit": {
|
||||
"type": "integer"
|
||||
},
|
||||
"loginLockMinutes": {
|
||||
"type": "integer"
|
||||
},
|
||||
"realIpHeader": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"oci-portal_internal_service.SecuritySettings": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user