openapi: 3.0.1 servers: - url: / info: version: '2.0' title: API Gateway Resources description: '' paths: /bkapps/applications/lists/detailed: get: operationId: get_detailed_app_list description: 获取 App 详细信息列表 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/lists/detailed matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/lists/minimal: get: operationId: get_minimal_app_list description: 获取 App 简明信息列表 tags: - 应用/模块信息查询 parameters: - in: query name: app_status schema: type: string required: false description: 按应用状态过滤:not_deployed、normal、offline - in: query name: source_origin schema: type: integer required: false description: 按代码来源过滤,1 为授权代码库 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/lists/minimal matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/deployments/lists/: get: operationId: get_deployments_history description: 获取 App 部署历史 tags: - 部署相关接口 - deprecated x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/deployments/lists/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/envs/{env}/deployments/: post: operationId: deploy description: App 部署 tags: - 部署相关接口 - deprecated x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/envs/{env}/deployments/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/access_control/multi_apply_record/: post: operationId: request_apps_access_permission description: 提交多个应用的访问申请单据和Tencent版平台的访问权限申请 tags: - 应用访问控制 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/access_control/multi_apply_record/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/access_control/restriction_type/{restriction_type}/strategy/: post: operationId: batch_create_access_control_strategy description: '' tags: - 应用访问控制 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/access_control/restriction_type/{restriction_type}/strategy/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/light-applications: get: operationId: get_light_applications description: 获取轻应用信息 tags: - 轻应用 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/light-applications/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: post: operationId: create_light_applications description: 创建轻应用 tags: - 轻应用 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/light-applications/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: delete: operationId: delete_light_applications description: 删除轻应用 tags: - 轻应用 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /{env.BKPAAS_SUB_PATH}backend/sys/api/light-applications/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: patch: operationId: patch_light_applications description: 修改轻应用 tags: - 轻应用 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: patch path: /{env.BKPAAS_SUB_PATH}backend/sys/api/light-applications/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/uni_applications/query/by_id/: get: operationId: uni_apps_query_by_id description: 根据应用 ID(Code)查询多平台应用信息 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/uni_applications/query/by_id/ matchSubpath: false timeout: 300 pluginConfigs: - type: bk-rate-limit yaml: | rates: __default: - tokens: 20 period: 60 apigw-dashboard: - tokens: 200 period: 60 authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/envs/{env}/analysis/m/{source_type}/metrics/dimension/path: get: operationId: analysis_dimension_path description: 访问统计:按路径维度查看 tags: - 访问统计 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/analysis/m/{source_type}/metrics/dimension/path matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/envs/{env}/deployments/: post: operationId: deploy_with_module description: App 部署(支持多模块)。返回的 deployment_id 可用于 get_deployment_result 查询结果,也可作为 streams_history_events 的 channel_id 获取部署日志 tags: - 部署相关接口 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: path name: env schema: type: string required: true description: 环境,stag 或 prod requestBody: content: application/json: schema: type: object required: - version_type - version_name properties: version_type: type: string description: 版本类型。branch、tag、trunk、image、package version_name: type: string description: 版本名称,如分支名、Tag 名或 trunk revision: type: string description: 版本信息,如 git commit hash。version_type 为 image 时须为 sha256 开头的镜像 digest advanced_options: type: object description: 高级部署选项 properties: build_only: type: boolean description: 是否仅构建,不发布 image_pull_policy: type: string description: 镜像拉取策略 dev_hours_spent: type: number description: 开发时长 special_tag: type: string description: 指定构建的镜像 tag build_id: type: string description: 构建产物 ID,提供时跳过构建 invoke_message: type: string description: 触发信息 debug_enabled: type: boolean description: 是否开启构建调试 required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/deployments/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/deployments/{deployment_id}/result/: get: operationId: get_deployment_result description: 查询部署任务结果,轮询本接口时请间隔至少 5 秒 tags: - 部署相关接口 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称 - in: path name: deployment_id schema: type: string required: true description: 部署任务 ID - in: query name: include_ansi_codes schema: type: boolean required: false description: 是否在日志中保留 ANSI 转义序列 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/deployments/{deployment_id}/result/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/deployments/lists/: get: operationId: get_deployments_list description: 获取 App 部署历史 tags: - 部署相关接口 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: query name: environment schema: type: string required: false description: 按环境过滤,stag 或 prod - in: query name: operator schema: type: string required: false description: 按操作人过滤 - in: query name: limit schema: type: integer required: false description: 每页数量,默认 12 - in: query name: offset schema: type: integer required: false description: 偏移量 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/deployments/lists/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /streams/{channel_id}/history_events: get: operationId: streams_history_events description: 获取部署日志流 tags: - 部署相关接口 parameters: - in: path name: channel_id schema: type: string required: true description: 部署日志流 ID,即部署接口返回的 deployment_id - in: query name: last_event_id schema: type: integer required: false description: 最后一个事件 ID,只返回其后的事件 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/streams/{channel_id}/history_events matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/source_package/link/: post: operationId: upload_source_package_via_link description: 通过链接上传源码包 tags: - 源码包管理 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/source_package/link/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bkapps/applications/{app_code}/modules/{module}/source_package/link/: post: operationId: upload_ai_agent_source_package_via_link description: 应用态通过链接上传源码包(AIDEV 为 AI Agent 应用、AppSpark 为 AppSpark 应用上传) tags: - 源码包管理 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/source_package/link/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Upload a source package via link for an AI Agent or AppSpark application with system API credentials /system/bkapps/applications/{app_code}/modules/{module}/envs/{env}/deployments/: post: operationId: sys_deploy_with_module description: App 部署(支持多模块),系统调用接口 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/deployments/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Deploy an app (multi-module). System API. /system/bkapps/applications/{app_code}/modules/{module}/deployments/{deployment_id}/result/: get: operationId: sys_get_deployment_result description: 查询部署任务结果,系统调用接口 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/deployments/{deployment_id}/result/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get the deployment result. System API. /system/bkapps/applications/{app_code}/modules/{module}/deployments/{deployment_id}/interruptions/: post: operationId: sys_interrupt_deployment description: 中断部署任务,系统调用接口 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/deployments/{deployment_id}/interruptions/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Interrupt a deployment. System API. /system/streams/{channel_id}/history_events: get: operationId: sys_streams_history_events description: 获取部署日志流,系统调用接口 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/streams/{channel_id}/history_events matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get the deployment log stream. System API. /system/bkapps/applications/{app_code}/modules/{module}/envs/{env}/offlines/: post: operationId: sys_module_offline description: 应用模块下架,系统调用接口 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/offlines/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Take an application module offline. System API. /system/bkapps/applications/{app_code}/modules/{module}/offlines/{offline_operation_id}/result/: get: operationId: sys_get_offline_result description: 查询下架任务结果,系统调用接口 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/offlines/{offline_operation_id}/result/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get the offline result. System API. /system/bkapps/applications/{app_code}/: get: operationId: sys_get_app_info description: 应用态查询 AI Agent 应用信息、部署模式与访问地址(仅供 AIDEV 使用) tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get the AI Agent application's info, deploy mode and exposed urls with system API credentials /system/bkapps/applications/{app_code}/oauth/token/{env_name}/: get: operationId: sys_fetch_app_access_token description: 应用态以用户凭证为 AI Agent 应用申请 AccessToken(仅供 AIDEV 使用) tags: - Oauth x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/oauth/token/{env_name}/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Fetch an access token for an AI Agent application on behalf of a user identified by the given credential /system/bkapps/applications/{app_code}/modules/{module}/repo/branches/: get: operationId: sys_get_repo_branches description: 应用态查询 AI Agent 应用可选的代码分支与标签(仅供 AIDEV 使用) tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/repo/branches/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get the deployable branches and tags of an AI Agent application with system API credentials /system/bkapps/applications/{app_code}/modules/{module}/services/{service_id}/: get: operationId: sys_get_service_instance_by_module description: 应用态查询 AI Agent 应用模块绑定的增强服务实例(含 admin_url,仅供 AIDEV 使用) tags: - 增强服务 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/services/{service_id}/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get the add-on service instances bound to an AI Agent application module with system API credentials /system/bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/list/: get: operationId: sys_list_processes description: 应用态查询 AI Agent 应用环境的进程与实例实际状态(仅供 AIDEV 使用) tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/list/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List the actual processes and instances of an AI Agent application environment with system API credentials /system/bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/: post: operationId: sys_update_process description: 应用态启动、停止 AI Agent 应用进程或调整副本数(仅供 AIDEV 使用) tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Start, stop or scale a process of an AI Agent application with system API credentials /bkapps/applications/{app_code}/modules/{module}/source_package/: post: operationId: upload_source_package description: 上传源码包 tags: - 源码包管理 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/source_package/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/: get: operationId: list_app_modules description: 查看应用下所有的模块 tags: - 应用/模块信息查询 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: post: operationId: create_module description: 创建模块 tags: [] parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID requestBody: content: application/json: schema: type: object required: - name - source_config - bkapp_spec properties: name: type: string description: 模块名称 source_config: type: object description: 源码或镜像配置 properties: source_origin: type: integer description: 代码来源,默认为 1。1 为授权代码库,6 为仅托管镜像的云原生应用 source_init_template: type: string description: 初始化模板名称 source_control_type: type: string description: 源码控制类型 source_repo_url: type: string description: 代码仓库或镜像地址。未由平台建仓时必填 source_dir: type: string description: 源码目录 auto_create_repo: type: boolean description: 是否由平台新建代码仓库 source_repo_auth_info: type: object description: 仓库认证信息。优先使用已 OAuth 授权的代码库(source_origin=1),仅在必要时提供 properties: username: type: string description: 用户名 password: type: string description: 密码或访问令牌。属敏感信息,请勿在对话中明文索取或回显,优先使用 OAuth 授权代码库 bkapp_spec: type: object description: 应用规格 required: - build_config properties: build_config: type: object description: 构建配置 required: - build_method properties: build_method: type: string description: 构建方式。buildpack、dockerfile、custom_image dockerfile_path: type: string description: Dockerfile 路径,dockerfile 构建时使用 image_repository: type: string description: 镜像仓库。custom_image 时必填,且须与 source_repo_url 一致 required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/cloud-native/{app_code}/modules/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: create module /bkapps/applications/{code}/modules/{module_name}/envs/{environment}/released_info/: get: operationId: module_env_released_info description: 查询应用模块环境部署信息 tags: - 部署相关接口 parameters: - in: path name: code schema: type: string required: true description: 应用 ID - in: path name: module_name schema: type: string required: true description: 模块名称 - in: path name: environment schema: type: string required: true description: 环境,stag 或 prod x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{code}/modules/{module_name}/envs/{environment}/released_info/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/envs/{env}/offlines/: post: operationId: module_offline description: 应用模块下架 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/offlines/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/offlines/{offline_operation_id}/result/: get: operationId: get_offline_result description: 查询下架任务结果 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/offlines/{offline_operation_id}/result/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/: get: operationId: get_module_info description: 查看应用模块信息 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/envs/{env}/offlines/resumable/: get: operationId: get_resumable_offline_operations description: 查询可恢复的下架操作 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/offlines/resumable/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/oauth/token/{api_gateway_env}/: get: operationId: fetch_app_access_token description: 获取代表指定应用和用户身份的 AccessToken tags: - Oauth x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/oauth/token/{api_gateway_env}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{code}/modules/{module_name}/envs/{environment}/released_state/: get: operationId: module_env_released_state description: 查询应用模块环境部署信息 tags: - 部署相关接口 parameters: - in: path name: code schema: type: string required: true description: 应用 ID - in: path name: module_name schema: type: string required: true description: 模块名称 - in: path name: environment schema: type: string required: true description: 环境,stag 或 prod x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{code}/modules/{module_name}/envs/{environment}/released_state/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/oauth/token/{api_gateway_env}/refresh: post: operationId: refresh_app_access_token description: 刷新代表指定应用和用户身份的 AccessToken tags: - Oauth x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/oauth/token/{api_gateway_env}/refresh matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/envs/{env}/analysis/m/{source_type}/metrics/dimension/user: get: operationId: analysis_dimension_user description: 访问统计:按用户维度查看 tags: - 访问统计 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/analysis/m/{source_type}/metrics/dimension/user matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/envs/{env}/analysis/m/{source_type}/metrics/total: get: operationId: analysis_total description: '访问统计: 站点访问总数' tags: - 访问统计 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/analysis/m/{source_type}/metrics/total matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bk_plugins/: get: operationId: list_bk_plugins description: 查询平台上所有蓝鲸插件信息 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bk_plugins/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bk_plugins/{code}/: get: operationId: retrieve_bk_plugin description: 查询单个蓝鲸插件详细信息 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bk_plugins/{code}/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bk_plugins/{code}/logs/: get: operationId: list_bk_plugin_logs description: 查询单个蓝鲸插件的日志 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bk_plugins/{code}/logs/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: post: operationId: list_bk_plugin_logs_cloned description: 查询单个蓝鲸插件的日志 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bk_plugins/{code}/logs/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bkapps/applications/{app_code}/modules/{module}/envs/{env}/lesscode/query_db_credentials: get: operationId: sys__api__lesscode__query_db_credentials description: 查询数据库增强服务的 credential 信息 tags: - 增强服务 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/lesscode/query_db_credentials matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bkapps/applications/{app_code}/modules/{module}/lesscode/bind_db_service: post: operationId: sys__api__lesscode__bind_db_service description: 尝试绑定数据库增强服务 tags: - 增强服务 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/lesscode/bind_db_service matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bk_plugins/batch/detailed/: get: operationId: list_detailed_bk_plugins description: 查询平台上所有蓝鲸插件信息(带详细部署信息) tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bk_plugins/batch/detailed/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/applications/{code}/modules/{module_name}/log/structured/list/: get: operationId: search_structured_log description: 查询应用结构化日志 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/log/applications/{code}/modules/{module_name}/structured/list/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: post: operationId: search_structured_log_with_post description: 查询应用结构化日志 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/log/applications/{code}/modules/{module_name}/structured/list/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/v2/: post: operationId: create_app description: 创建应用 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/v2/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/: get: operationId: get_app_info description: 查看应用信息 tags: - 应用/模块信息查询 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get application's detailed info /system/uni_applications/query/by_username/: get: operationId: uni_apps_query_by_username description: 查询指定用户有权限的应用列表 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/uni_applications/query/by_username/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Query the list of applications that the specified user has permission /bkapps/applications/lesscode/: post: operationId: create_lesscode_app description: 创建蓝鲸可视化开发平台应用 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/apigw/api/bkapps/applications/ matchSubpath: false timeout: 0 pluginConfigs: - type: bk-rate-limit yaml: | rates: __default: - tokens: 20 period: 60 authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: create lesscode app /bkapps/applications/{app_code}/modules/{module}/envs/{env}/deploy_phases/: get: operationId: get_deploy_phases_framework description: 获取部署阶段(结构体框架) tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/deploy_phases/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: get deploy phases framework /bkapps/applications/{app_code}/modules/{module}/envs/{env}/deploy_phases/{deployment_id}/: get: operationId: get_deploy_phases_instance description: 获取部署阶段(部署实例) tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/deploy_phases/{deployment_id}/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: get deploy phases for deployment instance /system/bkapps/applications/{app_code}/modules/{module}/envs/{env}/addons/{service_name}/: get: operationId: get_addon_instance_info description: 查询增强服务实例信息 tags: - 增强服务 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/addons/{service_name}/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: get addon instance info /bkapps/applications/{app_code}/modules/{module}/log/standard_output/list/: get: operationId: search_standard_log_with_get description: 查询应用标准输出日志 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/log/standard_output/list/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Querying Application Structured Logs post: operationId: search_standard_log_with_post description: 查询应用标准输出日志 tags: - 应用/模块信息查询 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: query name: time_range schema: type: string required: true description: 时间范围:5m、1h、3h、6h、12h、1d、3d、7d、customized - in: query name: start_time schema: type: string required: false description: 开始时间,格式 %Y-%m-%d %H:%M:%S,time_range 为 customized 时必填 - in: query name: end_time schema: type: string required: false description: 结束时间,格式 %Y-%m-%d %H:%M:%S,time_range 为 customized 时必填 - in: query name: scroll_id schema: type: string required: false description: 滚动查询 ID,翻页时传入上一次返回的 scroll_id - in: query name: offset schema: type: integer required: false description: 偏移量 - in: query name: limit schema: type: integer required: false description: 每页数量,默认 100 requestBody: content: application/json: schema: type: object description: 不传请求体时查询全部日志;传入请求体时 query 必填 required: - query properties: query: type: object description: 日志过滤条件,无过滤时可传 {} properties: query_string: type: string description: 查询语句 terms: type: object description: '多值精准匹配,如 {"process_id": ["web"]}' exclude: type: object description: terms 取反 required: false description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/log/standard_output/list/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Querying Application Structured Logs /bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/list/: get: operationId: list_processes description: 获取应用环境所有进程与实例信息 tags: - 部署相关接口 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: path name: env schema: type: string required: true description: 环境,stag 或 prod - in: query name: only_latest_version schema: type: boolean required: false description: 是否仅展示最后一个版本的进程 x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/list/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get all process and instance information of the application environment /bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/{process_name}/restart/: put: operationId: restart_process description: 滚动重启进程 tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: put path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/{process_name}/restart/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Rolling restart a process /bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/: post: operationId: update_process description: 操作进程,支持的操作:启动、停止、调整实例数 tags: - 部署相关接口 parameters: - in: path name: app_code schema: type: string required: true description: 应用 appCode - in: path name: module schema: type: string required: true description: module 名称 - in: path name: env schema: type: string required: true description: 环境名 requestBody: content: application/json: schema: type: object required: - operate_type - process_type properties: operate_type: type: string enum: - start - stop - scale description: 操作类型,可选值 start/stop/scale process_type: type: string description: 进程名(如 web、worker) target_replicas: type: integer description: 目标副本数。operate_type 为 scale 且未开启自动扩缩容时必填 autoscaling: type: boolean default: false description: 是否开启自动扩缩容 scaling_config: type: object description: 开启自动扩缩容时必填 properties: min_replicas: type: integer description: 最小副本数 max_replicas: type: integer description: 最大副本数 policy: type: string default: default description: 扩缩容策略 metrics: type: array description: 扩缩容指标,为空时按 policy 使用默认指标 items: type: object required: true description: '' responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/processes/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Start, stop, or scale a process /system/bkapps/xycd/third_app/: post: operationId: create_xy_cd_app description: 给行云提供的创建外链应用的API tags: [] x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/xycd/third_app/ matchSubpath: false timeout: 0 pluginConfigs: - type: bk-rate-limit yaml: | rates: __default: - tokens: 20 period: 60 authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bk_plugin_tags: get: operationId: list_bk_plugin_tags description: 查询蓝鲸插件的分类列表 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bk_plugin_tags/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /sys/shim/plugins_center/bk_plugins/: post: operationId: shim_plugins_centers_create_plugin description: 创建插件 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: create_plugin /sys/shim/plugins_center/bk_plugins/{code}/: put: operationId: shim_plugins_center_update_plugin description: 更新插件 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: put path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: update_plugin delete: operationId: shim_plugins_center_archive_plugin description: 下架插件 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: archive_plugin /sys/shim/plugins_center/bk_plugins/{code}/deploy/: post: operationId: shim_plugins_centers_deploy_plugin description: 部署插件 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/deploy/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: deploy_plugin /sys/shim/plugins_center/bk_plugins/{code}/deploy/{deploy_id}/status/: get: operationId: shim_plugins_center_check_deploy_status description: 检查部署状态 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/deploy/{deploy_id}/status/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: check_deploy_status /sys/shim/plugins_center/bk_plugins/{code}/deploy/{deploy_id}/logs/: get: operationId: shim_plugins_center_get_deploy_logs description: 查询部署过程日志 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/deploy/{deploy_id}/logs/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: get_deploy_logs /sys/shim/plugins_center/bk_plugins/{code}/market/: post: operationId: shim_plugins_center_upsert_market_info description: 更新插件市场信息 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/market/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: upsert_plugin_market_info /sys/shim/plugins_center/bk_plugins/market/category/: get: operationId: shim_plugins_center_list_category description: 查询平台支持的插件分类列表 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/market/category/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: list plugin category /sys/shim/plugins_center/bk_plugins/{code}/members/: get: operationId: shim_plugins_center_list_members description: 获取插件应用成员列表 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/members/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: list members for plugin application post: operationId: shim_plugins_center_sync_members description: 插件应用同步成员 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/members/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: sync members for plugin applicaiton /sys/shim/plugins_center/bk_plugins/{code}/roles/{role}/members/: post: operationId: shim_plugins_center_add_role_members description: 插件应用按角色添加成员 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/roles/{role}/members/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: add role members for plugin application delete: operationId: shim_plugins_center_delete_role_members description: 插件应用按角色移除成员 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/roles/{role}/members/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: delete role members for plugin application /sys/shim/plugins_center/bk_plugins/{code}/configuration/: post: operationId: shim_plugins_center_sync_configurations description: 插件应用同步环境变量 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{code}/configuration/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: sync configurations for plugin application /system/uni_applications/list/minimal/: get: operationId: uni_apps_list_minimal description: 查询多平台应用基本信息,可根据 id 或者 name 模糊搜索, 最多只返回 1000 条数据 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/uni_applications/list/minimal/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bkapps/applications/{code}/cluster_namespaces/: get: operationId: list_cluster_namespaces_by_code description: 根据应用 ID 查询应用所在的集群和命名空间信息 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/{code}/cluster_namespaces/ matchSubpath: false timeout: 10 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bkapps/services/mysql/{db_name}/related_applications_info/: get: operationId: retrieve_applications_info_by_db_name description: 根据 mysql 增强服务实例的数据库名称查询所属应用的基本信息 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/services/mysql/{db_name}/related_applications_info/ matchSubpath: false timeout: 300 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/bkapp_model/manifests/current/: put: operationId: import_manifest description: 通过 manifest 更新应用模型资源" tags: - 部署相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: put path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/bkapp_model/manifests/current/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/ai_agent/: post: operationId: create_ai_agent_app description: 创建 AI Agent 工具 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/ai_agent/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/bkapps/ai_agent/: post: operationId: create_sys_ai_agent_app description: 应用态创建 AI Agent 应用 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/ai_agent/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Create an AI Agent application with system API credentials /system/bkapps/app_spark/: post: operationId: create_sys_app_spark_app description: 应用态创建 AppSpark 应用 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/app_spark/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Create an AppSpark application with system API credentials /accounts/user_profile/: post: operationId: register_user_profile description: 为当前用户在开发者中心注册。浏览器首次访问会自动建档;只经 API 网关调用开发者中心时,要靠本接口预先注册,之后该用户才能被设为应用管理员。已注册时原样返回 tags: - 用户信息 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/accounts/user_profile/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Register the current user in the Developer Center. A first browser visit creates the profile automatically; callers that only reach the Developer Center through the API gateway use this API to register the user beforehand, which is required before that user can be an application administrator. An existing profile is returned unchanged /system/bkapps/applications/validations/: post: operationId: sys_validate_app_basic_info description: 应用态校验应用 ID 和名称能否用于创建应用 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/bkapps/applications/validations/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Validate whether an application ID and name can be used to create an application with system API credentials /bkapps/applications/{app_code}/modules/{module}/envs/{env}/analysis/m/{source_type}/metrics/aggregate_by_interval: get: operationId: aggregate_by_interval description: '访问统计: 聚合查询某时间区间内的访问量数据' tags: - 访问统计 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/envs/{env}/analysis/m/{source_type}/metrics/aggregate_by_interval matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /sys/shim/plugins_center/bk_plugins/{pd_id}/create/: post: operationId: migrate_plugin_metadata description: 迁移插件元数据,用于已有的插件迁移到插件中心,该方法不会创建代码仓库 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/plugins_center/bk_plugins/{pd_id}/create/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/config_vars/: get: operationId: list_config_vars description: 查看应用模块的环境变量列表 tags: - 环境配置 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: query name: environment_name schema: type: string required: false description: 按生效环境过滤:stag、prod、_global_ - in: query name: order_by schema: type: string required: false description: 排序方式,默认 -created,可选 key x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/config_vars/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List environment variables of an application module /bkapps/applications/{app_code}/modules/{module}/config_vars/{config_var_key}/: get: operationId: get_config_var description: 通过 key 查询环境变量 tags: - 环境配置 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: path name: config_var_key schema: type: string required: true description: 环境变量名,须匹配 [A-Z][A-Z0-9_]* x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/config_vars/{config_var_key}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Get environment variables by key post: operationId: set_config_var_value description: 通过 key 创建或更新环境变量 tags: - 环境配置 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: path name: config_var_key schema: type: string required: true description: 环境变量名,须匹配 [A-Z][A-Z0-9_]* requestBody: content: application/json: schema: type: object required: - environment_name properties: environment_name: type: string description: 生效环境。stag=预发布,prod=生产,_global_=所有环境 value: type: string description: 环境变量值。新建时必填,更新时为空则不改 value description: type: string description: 变量描述,不超过 200 个字符 is_sensitive: type: boolean description: 是否敏感。敏感值在查询时会被掩码 required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/config_vars/{config_var_key}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/cloud-native/: post: operationId: create_cloud_native_app description: 创建云原生应用 tags: [] requestBody: content: application/json: schema: type: object required: - code - name - source_config - bkapp_spec properties: code: type: string description: 应用 ID name: type: string description: 应用名称 is_plugin_app: type: boolean description: 是否为插件应用 source_config: type: object description: 源码或镜像配置 properties: source_origin: type: integer description: 代码来源,默认为 1。1 为授权代码库,6 为仅托管镜像的云原生应用 source_init_template: type: string description: 初始化模板名称 source_control_type: type: string description: 源码控制类型 source_repo_url: type: string description: 代码仓库或镜像地址。未由平台建仓时必填 source_dir: type: string description: 源码目录 auto_create_repo: type: boolean description: 是否由平台新建代码仓库 source_repo_auth_info: type: object description: 仓库认证信息。优先使用已 OAuth 授权的代码库(source_origin=1),仅在必要时提供 properties: username: type: string description: 用户名 password: type: string description: 密码或访问令牌。属敏感信息,请勿在对话中明文索取或回显,优先使用 OAuth 授权代码库 bkapp_spec: type: object description: 应用规格 required: - build_config properties: build_config: type: object description: 构建配置 required: - build_method properties: build_method: type: string description: 构建方式。buildpack、dockerfile、custom_image dockerfile_path: type: string description: Dockerfile 路径,dockerfile 构建时使用 image_repository: type: string description: 镜像仓库。custom_image 时必填,且须与 source_repo_url 一致 required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/cloud-native/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/runtime/overview: get: operationId: get_runtime_overview description: 获取模块的运行时概览信息 tags: - 应用/模块信息查询 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/runtime/overview matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/repo/branches/: get: operationId: get_repo_branches description: 获取应用的代码仓库分支信息 tags: - 应用/模块信息查询 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/repo/branches/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /bkapps/applications/{app_code}/modules/{module}/services/: get: operationId: list_module_services description: 查看应用模块的增强服务(已绑定、共享、未绑定) tags: - 增强服务 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/services/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List bound, shared and unbound addon services of a module /services/service-attachments/: post: operationId: bind_service description: 绑定应用模块与增强服务 tags: - 增强服务 requestBody: content: application/json: schema: type: object required: - code - service_id properties: code: type: string description: 应用 ID service_id: type: string description: 增强服务 UUID,可通过 list_module_services 的 unbound[].uuid 获取 module_name: type: string description: 模块名,默认 default plan_id: type: string description: 所有环境使用的方案 ID。仅当 list_service_possible_plans 返回 static_plans 时使用;只有一个可选方案时可不传 env_plan_id_map: type: object description: '分环境方案 ID,如 {"stag": "", "prod": ""};list_service_possible_plans 返回 env_specific_plans 时必须使用' required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/services/service-attachments/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Bind an addon service to an application module /bkapps/applications/{app_code}/modules/{module}/services/{service_id}/: get: operationId: get_service_instance_by_module description: 查看应用模块与增强服务的绑定关系详情 tags: - 增强服务 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: path name: service_id schema: type: string required: true description: 增强服务 UUID,可通过 list_module_services 的 bound[].service.uuid 获取;模块未绑定该服务时返回 404 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/services/{service_id}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Retrieve the binding detail between a module and an addon service delete: operationId: unbind_service description: 解绑应用模块与增强服务 tags: - 增强服务 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/services/{service_id}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Unbind addon service /bkapps/applications/{app_code}/modules/{module}/services/{service_id}/possible_plans: get: operationId: list_service_possible_plans description: 查询模块绑定增强服务时可选的方案 tags: - 增强服务 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default - in: path name: service_id schema: type: string required: true description: 增强服务 UUID,可通过 list_module_services 的 unbound[].uuid 获取 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/services/{service_id}/possible_plans matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List the plans a module can choose when binding an addon service /bkapps/applications/{app_code}/modules/{module}/build_config/: get: operationId: get_module_build_config description: 查看模块的构建配置 tags: - 应用/模块信息查询 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/build_config/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Retrieve the build config of a module post: operationId: update_module_build_config description: 修改模块的构建配置(整体覆盖,先查询再修改) tags: - 应用/模块信息查询 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default requestBody: content: application/json: schema: type: object required: - build_method properties: build_method: type: string description: 构建方式:buildpack、dockerfile 或 custom_image;custom_image 与其他方式不能互相切换 tag_options: type: object description: 镜像 Tag 规则,buildpack / dockerfile 必填,包含 prefix、with_version、with_build_time、with_commit_id bp_stack_name: type: string description: 基础镜像名,buildpack 必填,取自 list_module_bp_runtimes 的 image buildpacks: type: array description: '有序的构建工具列表,buildpack 必填,元素为 {"id": },id 须属于所选基础镜像' dockerfile_path: type: string description: Dockerfile 路径,dockerfile 方式使用 docker_build_args: type: object description: Docker 构建参数,dockerfile 必填,可为空对象 image_repository: type: string description: 镜像仓库,custom_image 必填 image_credential_name: type: string description: 镜像凭证名称,custom_image 使用 use_bk_ci_pipeline: type: boolean description: 是否通过蓝盾流水线构建;不传会被重置为 false required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/build_config/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Update the build config of a module (full replacement) /bkapps/applications/{app_code}/modules/{module}/bp_runtimes/: get: operationId: list_module_bp_runtimes description: 查询模块可用的基础镜像及其构建工具(buildpack) tags: - 应用/模块信息查询 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: module schema: type: string required: true description: 模块名称,默认模块为 default x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/bkapps/applications/{app_code}/modules/{module}/bp_runtimes/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List base images and their buildpacks available to a module /system/bk_plugins/ai/{code}/granted_distributors/{distributor_code}/: post: operationId: granted_ai_agent_distributors description: AI 插件应用给插件使用方授权 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/sys/api/bk_plugins/ai/{code}/granted_distributors/{distributor_code}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true delete: operationId: delete_ai_agent_distributors description: 删除 AI 插件的插件使用方 tags: - 蓝鲸应用插件 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /backend/sys/api/bk_plugins/ai/{code}/granted_distributors/{distributor_code}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/sandboxes/: post: operationId: create_agent_sandbox description: 创建 Agent 沙箱 tags: - Agent沙箱相关接口 responses: '200': description: '' requestBody: content: application/json: schema: type: object properties: name: type: string default: '' env_vars: type: object default: '' properties: DEBUG: type: string default: '' OPENAI_API_KEY: type: string default: '' snapshot: type: string default: '' workspace: type: string default: '' ttl_seconds: type: number default: '' idle_timeout_seconds: type: number default: '' volume_mounts: type: array items: type: object default: '' properties: volume_id: type: string default: '' mount_path: type: string default: '' read_only: type: boolean default: false default: '' snapshot_entrypoint: type: array default: '' cpu: type: number description: CPU 上限(核),不能超过应用的沙箱资源上限,不提供则取默认值 memory: type: number description: 内存上限(GB),不能超过应用的沙箱资源上限,不提供则取默认值 required: false description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/applications/{app_code}/sandboxes/ matchSubpath: false timeout: 60 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: get: operationId: list_agent_sandboxes description: 查询应用下的 Agent 沙箱列表及状态 tags: - Agent沙箱相关接口 parameters: - in: query name: status schema: type: string required: false description: 按状态过滤:pending、running、stopped、deleted、err_creating、err_deleting;不传时返回未删除的沙箱 - in: query name: workload_type schema: type: string required: false description: 按工作负载类型过滤:default、sandbox_instance - in: query name: name schema: type: string required: false description: 按沙箱名称精确过滤 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/applications/{app_code}/sandboxes/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /agent_sandbox/sandboxes/{sandbox_id}: delete: operationId: destroy_agent_sandbox description: 销毁 Agent 沙箱 tags: - Agent沙箱相关接口 responses: '200': description: '' parameters: - in: path name: app_code schema: type: string required: true description: app code, 应用 ID - in: path name: module schema: type: string required: true description: 模块名, 默认模块为 default - in: path name: env schema: type: string required: true description: 环境, stag 或 prod requestBody: content: application/json: schema: type: object required: - version_name - version_type properties: revision: type: string description: Commit ID version_name: type: string description: 要部署的分支名 version_type: type: string description: '版本类型, 如 branch ' advanced_options: type: object properties: build_only: type: string default: 'false' description: 是否仅构建, 不发布 image_pull_policy: type: string default: IfNotPresent description: 镜像拉取策略 description: 高级部署选项 required: false description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /backend/api/agent_sandbox/sandboxes/{sandbox_id} matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /agent_sandbox/sandboxes/{sandbox_id}/processes/exec: post: operationId: exec_in_agent_sandbox description: 沙箱中执行命令 tags: - Agent沙箱相关接口 responses: '200': description: '' parameters: - in: path name: app_code schema: type: string required: true description: app code, 应用 ID - in: path name: module schema: type: string required: true description: 模块名, 默认模块为 default - in: path name: env schema: type: string required: true description: 环境, stag 或 prod requestBody: content: application/json: schema: type: object required: - version_name - version_type properties: revision: type: string description: Commit ID version_name: type: string description: 要部署的分支名 version_type: type: string description: '版本类型, 如 branch ' advanced_options: type: object properties: build_only: type: string default: 'false' description: 是否仅构建, 不发布 image_pull_policy: type: string default: IfNotPresent description: 镜像拉取策略 description: 高级部署选项 required: false description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/sandboxes/{sandbox_id}/processes/exec matchSubpath: false timeout: 300 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /agent_sandbox/sandboxes/{sandbox_id}/files/download: get: operationId: download_from_agent_sandbox description: 沙箱中下载文件 tags: - Agent沙箱相关接口 responses: '200': description: '' parameters: - in: path name: app_code schema: type: string required: true description: app code, 应用 ID - in: path name: module schema: type: string required: true description: 模块名, 默认模块为 default - in: path name: env schema: type: string required: true description: 环境, stag 或 prod requestBody: content: application/json: schema: type: object required: - version_name - version_type properties: revision: type: string description: Commit ID version_name: type: string description: 要部署的分支名 version_type: type: string description: '版本类型, 如 branch ' advanced_options: type: object properties: build_only: type: string default: 'false' description: 是否仅构建, 不发布 image_pull_policy: type: string default: IfNotPresent description: 镜像拉取策略 description: 高级部署选项 required: false description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/sandboxes/{sandbox_id}/files/download matchSubpath: false timeout: 300 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /agent_sandbox/sandboxes/{sandbox_id}/files/upload: post: operationId: upload_to_agent_sandbox description: 沙箱中上传文件 tags: - Agent沙箱相关接口 responses: '200': description: '' parameters: - in: path name: app_code schema: type: string required: true description: app code, 应用 ID - in: path name: module schema: type: string required: true description: 模块名, 默认模块为 default - in: path name: env schema: type: string required: true description: 环境, stag 或 prod requestBody: content: application/json: schema: type: object required: - version_name - version_type properties: revision: type: string description: Commit ID version_name: type: string description: 要部署的分支名 version_type: type: string description: '版本类型, 如 branch ' advanced_options: type: object properties: build_only: type: string default: 'false' description: 是否仅构建, 不发布 image_pull_policy: type: string default: IfNotPresent description: 镜像拉取策略 description: 高级部署选项 required: false description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/sandboxes/{sandbox_id}/files/upload matchSubpath: false timeout: 300 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /system/agent_sandbox/image_build/: post: operationId: build_sandbox_image description: 构建沙箱镜像 tags: - Agent沙箱相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/sys/api/agent_sandbox/image_build/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /system/agent_sandbox/image_build/{build_id}/: get: operationId: get_sandbox_image_by_build_id description: 通过构建 id,查询构建镜像信息 tags: - Agent沙箱相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/sys/api/agent_sandbox/image_build/{build_id}/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /system/agent_sandbox/permissions/grant/: post: operationId: grant_agent_sandbox_api_permissions description: 授权沙箱接口 tags: - Agent沙箱相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/sys/api/agent_sandbox/permissions/grant/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /system/agent_sandbox/applications/{app_code}/sandboxes/: get: operationId: sys_list_agent_sandboxes description: 应用态查询 AI Agent 应用下的 Agent 沙箱列表及状态(仅供 AIDEV 使用) tags: - Agent沙箱相关接口 parameters: - in: query name: status schema: type: string required: false description: 按状态过滤:pending、running、stopped、deleted、err_creating、err_deleting;不传时返回未删除的沙箱 - in: query name: workload_type schema: type: string required: false description: 按工作负载类型过滤:default、sandbox_instance - in: query name: name schema: type: string required: false description: 按沙箱名称精确过滤 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/sys/api/agent_sandbox/applications/{app_code}/sandboxes/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List the Agent sandboxes and their status of an AI Agent application with system API credentials /agent_sandbox/applications/{app_code}/volumes/: post: operationId: create_agent_sandbox_volume description: 创建 Agent 沙箱使用的 Volume tags: - Agent沙箱相关接口 responses: '200': description: '' requestBody: content: application/json: schema: type: object required: - name properties: name: type: string default: volume 名称,应用下唯一 display_name: type: string default: 展示名称 required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/applications/{app_code}/volumes/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: get: operationId: list_agent_sandbox_volumes description: 查询应用下可用的沙箱容器 volume tags: - Agent沙箱相关接口 x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/applications/{app_code}/volumes/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/volumes/{volume_id}: delete: operationId: delete_agent_sandbox_volume description: 删除 Agent 沙箱使用的 Volume tags: - Agent沙箱相关接口 responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /backend/api/agent_sandbox/applications/{app_code}/volumes/{volume_id} matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/volumes/{volume_id}/files: get: operationId: list_agent_sandbox_volume_files description: 列出 Agent 沙箱 Volume 内文件(分页) tags: - Agent沙箱相关接口 responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/applications/{app_code}/volumes/{volume_id}/files matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true delete: operationId: delete_agent_sandbox_volume_file description: 删除 Agent 沙箱 Volume 内单个文件(幂等) tags: - Agent沙箱相关接口 responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /backend/api/agent_sandbox/applications/{app_code}/volumes/{volume_id}/files matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/volumes/{volume_id}/files/stat: get: operationId: stat_agent_sandbox_volume_file description: 查询 Agent 沙箱 Volume 内文件元数据(不存在时返回 exists=false) tags: - Agent沙箱相关接口 responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/applications/{app_code}/volumes/{volume_id}/files/stat matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/volumes/{volume_id}/files/preview: get: operationId: preview_agent_sandbox_volume_file description: 预览 Agent 沙箱 Volume 内文本文件(按 max_bytes 截断, 非文本类返回 415) tags: - Agent沙箱相关接口 responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/applications/{app_code}/volumes/{volume_id}/files/preview matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/volumes/{volume_id}/files/download_url: get: operationId: get_agent_sandbox_volume_file_download_url description: 归档并签发 Agent 沙箱 Volume 内文件的下载/预览 URL(一次返回互斥的 download_url 与 preview_url) tags: - Agent沙箱相关接口 responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/applications/{app_code}/volumes/{volume_id}/files/download_url matchSubpath: false timeout: 300 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/volumes/{volume_id}/shares: post: operationId: share_agent_sandbox_volume description: 向其他应用共享沙箱 volume tags: - Agent沙箱相关接口 parameters: - in: path name: app_code schema: type: string required: true description: 应用 appCode - in: path name: volume_id schema: type: string required: true description: volume ID requestBody: content: application/json: schema: type: object required: - grantee_app_code properties: grantee_app_code: type: string description: 需要授权的 AppCode,须同租户 required: true description: '' responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/applications/{app_code}/volumes/{volume_id}/shares matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: /agent_sandbox/applications/{app_code}/volumes/{volume_id}/shares/{grantee_app_code}: delete: operationId: unshare_agent_sandbox_volume description: 撤销对应用的 volume 授权 tags: - Agent沙箱相关接口 parameters: - in: path name: app_code schema: type: string required: true description: 应用 AppCode - in: path name: volume_id schema: type: string required: true description: Volume ID - in: path name: grantee_app_code schema: type: string required: true description: 待撤销授权的应用 ID responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /backend/api/agent_sandbox/applications/{app_code}/volumes/{volume_id}/shares/{grantee_app_code} matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/e2b/sandboxes: post: operationId: create_e2b_sandbox description: 创建 e2b 沙箱 tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/e2b/sandboxes matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: false resourcePermissionRequired: false descriptionEn: noneSchema: true /agent_sandbox/e2b/v2/sandboxes: get: operationId: list_e2b_sandboxes description: 列出本应用名下存活的 e2b 沙箱 tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/e2b/v2/sandboxes matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: false resourcePermissionRequired: false descriptionEn: noneSchema: true /agent_sandbox/e2b/sandboxes/{sandbox_id}: get: operationId: get_e2b_sandbox description: 查询 e2b 沙箱详情 tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/e2b/sandboxes/{sandbox_id} matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: false resourcePermissionRequired: false descriptionEn: noneSchema: true delete: operationId: delete_e2b_sandbox description: 销毁 e2b 沙箱 tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /backend/api/agent_sandbox/e2b/sandboxes/{sandbox_id} matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: false resourcePermissionRequired: false descriptionEn: noneSchema: true /agent_sandbox/e2b/sandboxes/{sandbox_id}/timeout: post: operationId: set_e2b_timeout description: 重设 e2b 沙箱存活时长 tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/e2b/sandboxes/{sandbox_id}/timeout matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: false resourcePermissionRequired: false descriptionEn: noneSchema: true /agent_sandbox/e2b/sandboxes/{sandbox_id}/connect: post: operationId: connect_e2b_sandbox description: 连接 e2b 沙箱 tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/e2b/sandboxes/{sandbox_id}/connect matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: false resourcePermissionRequired: false descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/e2b/api_keys/: post: operationId: create_e2b_api_key description: 创建 e2b api_key tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: post path: /backend/api/agent_sandbox/applications/{app_code}/e2b/api_keys/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true get: operationId: list_e2b_api_key description: 获取 e2b 秘钥列表 tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: get path: /backend/api/agent_sandbox/applications/{app_code}/e2b/api_keys/ matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /agent_sandbox/applications/{app_code}/e2b/api_keys/{key_id}: delete: operationId: delete_e2b_api_key description: 删除不需要的 e2b 秘钥 tags: - e2b responses: '200': description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: true matchSubpath: false enableWebsocket: false backend: name: default method: delete path: /backend/api/agent_sandbox/applications/{app_code}/e2b/api_keys/{key_id} matchSubpath: false timeout: 0 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: noneSchema: true /cloudapi-v2/apps/{app_code}/inner/gateways/: get: operationId: list_gateways description: 获取可申请权限的网关列表,可用 name 按网关名搜索 tags: - 云API权限 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: query name: name schema: type: string required: false description: 网关名称,如 paasv3 - in: query name: fuzzy schema: type: boolean default: true required: false description: 是否按名称模糊匹配,默认 true x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/cloudapi-v2/apps/{app_code}/inner/gateways/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: false descriptionEn: List available API gateways for permission apply /cloudapi-v2/apps/{app_code}/inner/gateways/{gateway_name}/permissions/resources/: get: operationId: list_gateway_permission_resources description: 获取指定网关下的资源列表及当前应用的权限状态。permission_status 为 owned/need_apply/pending/expired/rejected,permission_action 为 apply/renew tags: - 云API权限 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: gateway_name schema: type: string required: true description: 网关名称,如 paasv3 - in: query name: keyword schema: type: string required: false description: 资源名称关键字 x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/cloudapi-v2/apps/{app_code}/inner/gateways/{gateway_name}/permissions/resources/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: false descriptionEn: List gateway resources and current permission status /cloudapi-v2/apps/{app_code}/inner/gateways/{gateway_name}/permissions/allow-apply-by-gateway/: get: operationId: check_is_allowed_apply_by_gateway description: 检查是否允许按整个网关申请权限。allow_apply_by_gateway=true 时,申请接口 grant_dimension 可传 api tags: - 云API权限 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: gateway_name schema: type: string required: true description: 网关名称,如 paasv3 x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/cloudapi-v2/apps/{app_code}/inner/gateways/{gateway_name}/permissions/allow-apply-by-gateway/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: false descriptionEn: Check whether applying permission by whole gateway is allowed /cloudapi-v2/apps/{app_code}/inner/gateways/{gateway_name}/permissions/apply/: post: operationId: apply_gateway_resource_permission description: 申请网关资源权限。按资源申请时 grant_dimension=resource 并传 resource_ids;按网关申请时 grant_dimension=api 且 resource_ids 传空数组 tags: - 云API权限 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: gateway_name schema: type: string required: true description: 网关名称,如 paasv3 requestBody: content: application/json: schema: type: object required: - expire_days - grant_dimension properties: resource_ids: type: array items: type: integer description: 资源 ID 列表,来自 list_gateway_permission_resources。按网关申请时传空数组 reason: type: string description: 申请原因 expire_days: type: integer enum: - 0 - 180 - 360 description: 有效期,0=永久,180=6个月,360=12个月 grant_dimension: type: string enum: - resource - api description: 授权维度。resource=按资源,api=按整个网关 required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/cloudapi-v2/apps/{app_code}/inner/gateways/{gateway_name}/permissions/apply/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: false descriptionEn: Apply for gateway resource permissions /cloudapi-v2/apps/{app_code}/inner/gateways/permissions/app-permissions/: get: operationId: list_app_resource_permissions description: 获取当前应用已申请的网关资源权限列表 tags: - 云API权限 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/cloudapi-v2/apps/{app_code}/inner/gateways/permissions/app-permissions/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: false descriptionEn: List granted gateway resource permissions of the app /cloudapi-v2/apps/{app_code}/inner/gateways/permissions/renew/: post: operationId: renew_resource_permission description: 续期已有网关资源权限。resource_ids 来自 list_app_resource_permissions 或 list_gateway_permission_resources 中 permission_action=renew 的资源 tags: - 云API权限 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID requestBody: content: application/json: schema: type: object required: - resource_ids - expire_days properties: resource_ids: type: array items: type: integer description: 需要续期的资源 ID 列表,最多 100 个 expire_days: type: integer enum: - 0 - 180 - 360 description: 续期有效期,0=永久,180=6个月,360=12个月 required: true description: '' x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/api/cloudapi-v2/apps/{app_code}/inner/gateways/permissions/renew/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: false descriptionEn: Renew granted gateway resource permissions /cloudapi-v2/apps/{app_code}/inner/gateways/permissions/apply-records/: get: operationId: list_resource_permission_apply_records description: 获取网关资源权限申请记录,可用于查询申请单是否通过 tags: - 云API权限 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: query name: applied_by schema: type: string required: false description: 申请人 - in: query name: applied_time_start schema: type: integer required: false description: 申请开始时间,Unix 时间戳 - in: query name: applied_time_end schema: type: integer required: false description: 申请结束时间,Unix 时间戳 - in: query name: apply_status schema: type: string enum: - pending - approved - rejected - partial_approved required: false description: 申请状态 - in: query name: query schema: type: string required: false description: 搜索关键字 - in: query name: limit schema: type: integer default: 10 required: false description: 分页大小,默认 10 - in: query name: offset schema: type: integer default: 0 required: false description: 分页偏移,默认 0 x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/cloudapi-v2/apps/{app_code}/inner/gateways/permissions/apply-records/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: false descriptionEn: List gateway resource permission apply records /cloudapi-v2/apps/{app_code}/inner/gateways/permissions/apply-records/{record_id}/: get: operationId: retrieve_resource_permission_apply_record description: 获取网关资源权限申请记录详情,含本次申请的资源及审批结果 tags: - 云API权限 parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: record_id schema: type: integer required: true description: 申请记录 ID,来自 apply_gateway_resource_permission 或 list_resource_permission_apply_records x-bk-apigateway-resource: isPublic: true allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/api/cloudapi-v2/apps/{app_code}/inner/gateways/permissions/apply-records/{record_id}/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: true appVerifiedRequired: true resourcePermissionRequired: false descriptionEn: Get gateway resource permission apply record detail /system/cloudapi_v2/bkapps/applications/{app_code}/gateways/: get: operationId: sys_list_cloud_api_gateways description: 应用态获取网关列表 tags: - 网关 API parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/cloudapi_v2/bkapps/applications/{app_code}/gateways/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List gateways with system API credentials /system/cloudapi_v2/bkapps/applications/{app_code}/gateways/{gateway_name}/permissions/resources/: get: operationId: sys_list_cloud_api_gateway_apis description: 应用态获取网关下的接口列表(含当前应用的权限状态) tags: - 网关 API parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: gateway_name schema: type: string required: true description: 网关名称 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/cloudapi_v2/bkapps/applications/{app_code}/gateways/{gateway_name}/permissions/resources/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List gateway APIs with system API credentials /system/cloudapi_v2/bkapps/applications/{app_code}/gateways/{gateway_name}/permissions/apply/: post: operationId: sys_apply_cloud_api_permission description: 应用态申请网关接口权限 tags: - 网关 API parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID - in: path name: gateway_name schema: type: string required: true description: 网关名称 x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/cloudapi_v2/bkapps/applications/{app_code}/gateways/{gateway_name}/permissions/apply/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Apply gateway API permission with system API credentials /system/cloudapi_v2/bkapps/applications/{app_code}/gateways/permissions/apply-records/: get: operationId: sys_list_cloud_api_permission_apply_records description: 应用态查询网关接口权限申请记录 tags: - 网关 API parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/cloudapi_v2/bkapps/applications/{app_code}/gateways/permissions/apply-records/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List gateway API permission apply records /system/cloudapi_v2/bkapps/applications/{app_code}/mcp-servers/: get: operationId: sys_list_mcp_servers description: 应用态获取 MCP Server 列表 tags: - MCP Server parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/cloudapi_v2/bkapps/applications/{app_code}/mcp-servers/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List MCP servers with system API credentials /system/cloudapi_v2/bkapps/applications/{app_code}/mcp-servers/permissions/apply/: post: operationId: sys_apply_mcp_server_permission description: 应用态申请 MCP Server 权限 tags: - MCP Server parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: post path: /{env.BKPAAS_SUB_PATH}backend/sys/api/cloudapi_v2/bkapps/applications/{app_code}/mcp-servers/permissions/apply/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: Apply MCP server permission with system API credentials /system/cloudapi_v2/bkapps/applications/{app_code}/mcp-servers/permissions/apply-records/: get: operationId: sys_list_mcp_server_permission_apply_records description: 应用态查询 MCP Server 权限申请记录 tags: - MCP Server parameters: - in: path name: app_code schema: type: string required: true description: 应用 ID x-bk-apigateway-resource: isPublic: false allowApplyPermission: false matchSubpath: false enableWebsocket: false backend: name: default method: get path: /{env.BKPAAS_SUB_PATH}backend/sys/api/cloudapi_v2/bkapps/applications/{app_code}/mcp-servers/permissions/apply-records/ matchSubpath: false timeout: 30 pluginConfigs: [] authConfig: userVerifiedRequired: false appVerifiedRequired: true resourcePermissionRequired: true descriptionEn: List MCP server permission apply records