mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-21 14:13:53 +00:00
* [Update] 修改config * [Update] 移动存储设置到到terminal中 * [Update] 修改permission 查看 * [Update] pre merge * [Update] 录像存储 * [Update] 命令存储 * [Update] 添加存储测试可连接性 * [Update] 修改 meta 值的 key 为大写 * [Update] 修改 Terminal 相关 Storage 配置 * [Update] 删除之前获取录像/命令存储的代码 * [Update] 修改导入失败 * [Update] 迁移文件添加default存储 * [Update] 删除之前代码,添加help_text信息 * [Update] 删除之前代码 * [Update] 删除之前代码 * [Update] 抽象命令/录像存储 APIView * [Update] 抽象命令/录像存储 APIView 1 * [Update] 抽象命令/录像存储 DictField * [Update] 抽象命令/录像存储列表页面 * [Update] 修复CustomDictField的bug * [Update] RemoteApp 页面添加 hidden * [Update] 用户页面添加用户关联授权 * [Update] 修改存储测试可连接性 target * [Update] 修改配置 * [Update] 修改存储前端 Form 渲染逻辑 * [Update] 修改存储细节 * [Update] 统一存储类型到 const 文件 * [Update] 修改迁移文件及Model,创建默认存储 * [Update] 修改迁移文件及Model初始化默认数据 * [Update] 修改迁移文件 * [Update] 修改迁移文件 * [Update] 修改迁移文件 * [Update] 修改迁移文件 * [Update] 修改迁移文件 * [Update] 修改迁移文件 * [Update] 修改迁移文件 * [Update] 限制删除默认存储配置,只允许创建扩展的存储类型 * [Update] 修改ip字段长度 * [Update] 修改ip字段长度 * [Update] 修改一些css * [Update] 修改关联 * [Update] 添加操作日志定时清理 * [Update] 修改记录syslog的instance encoder * [Update] 忽略登录产生的操作日志 * [Update] 限制更新存储时不覆盖原有AK SK 等字段 * [Update] 修改迁移文件添加comment字段 * [Update] 修改迁移文件 * [Update] 添加 comment 字段 * [Update] 修改默认存储no -> null * [Update] 修改细节 * [Update] 更新翻译(存储配置 * [Update] 修改定时任务注册,修改系统用户资产、节点关系api * [Update] 添加监控磁盘任务 * [Update] 修改session * [Update] 拆分serializer * [Update] 还原setting原来的manager
49 lines
2.0 KiB
Python
49 lines
2.0 KiB
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from django.urls import path, include, re_path
|
|
from rest_framework_bulk.routes import BulkRouter
|
|
|
|
from common import api as capi
|
|
from .. import api
|
|
|
|
app_name = 'terminal'
|
|
|
|
router = BulkRouter()
|
|
router.register(r'sessions', api.SessionViewSet, 'session')
|
|
router.register(r'terminals/(?P<terminal>[a-zA-Z0-9\-]{36})?/?status', api.StatusViewSet, 'terminal-status')
|
|
router.register(r'terminals/(?P<terminal>[a-zA-Z0-9\-]{36})?/?sessions', api.SessionViewSet, 'terminal-sessions')
|
|
router.register(r'terminals', api.TerminalViewSet, 'terminal')
|
|
router.register(r'tasks', api.TaskViewSet, 'tasks')
|
|
router.register(r'commands', api.CommandViewSet, 'command')
|
|
router.register(r'status', api.StatusViewSet, 'status')
|
|
router.register(r'replay-storages', api.ReplayStorageViewSet, 'replay-storage')
|
|
router.register(r'command-storages', api.CommandStorageViewSet, 'command-storage')
|
|
|
|
urlpatterns = [
|
|
path('sessions/<uuid:pk>/replay/',
|
|
api.SessionReplayViewSet.as_view({'get': 'retrieve', 'post': 'create'}),
|
|
name='session-replay'),
|
|
path('tasks/kill-session/', api.KillSessionAPI.as_view(), name='kill-session'),
|
|
path('terminals/<uuid:terminal>/access-key/', api.TerminalTokenApi.as_view(),
|
|
name='terminal-access-key'),
|
|
path('terminals/config/', api.TerminalConfig.as_view(), name='terminal-config'),
|
|
path('commands/export/', api.CommandExportApi.as_view(), name="command-export"),
|
|
path('replay-storages/<uuid:pk>/test-connective/', api.ReplayStorageTestConnectiveApi.as_view(), name='replay-storage-test-connective'),
|
|
path('command-storages/<uuid:pk>/test-connective/', api.CommandStorageTestConnectiveApi.as_view(), name='command-storage-test-connective')
|
|
# v2: get session's replay
|
|
# path('v2/sessions/<uuid:pk>/replay/',
|
|
# api.SessionReplayV2ViewSet.as_view({'get': 'retrieve'}),
|
|
# name='session-replay-v2'),
|
|
]
|
|
|
|
old_version_urlpatterns = [
|
|
re_path('(?P<resource>terminal|command)/.*', capi.redirect_plural_name_api)
|
|
]
|
|
|
|
urlpatterns += router.urls + old_version_urlpatterns
|
|
|
|
|
|
|