mirror of https://github.com/jumpserver/jumpserver
25 lines
1.1 KiB
Python
25 lines
1.1 KiB
Python
# ~*~ coding: utf-8 ~*~
|
|
from __future__ import unicode_literals
|
|
from django.urls import path
|
|
|
|
from .. import views
|
|
|
|
__all__ = ["urlpatterns"]
|
|
|
|
app_name = "ops"
|
|
|
|
urlpatterns = [
|
|
# Resource Task url
|
|
path('task/', views.TaskListView.as_view(), name='task-list'),
|
|
path('task/<uuid:pk>/', views.TaskDetailView.as_view(), name='task-detail'),
|
|
path('task/<uuid:pk>/adhoc/', views.TaskAdhocView.as_view(), name='task-adhoc'),
|
|
path('task/<uuid:pk>/executions/', views.TaskExecutionView.as_view(), name='task-execution'),
|
|
path('adhoc/<uuid:pk>/', views.AdHocDetailView.as_view(), name='adhoc-detail'),
|
|
path('adhoc/<uuid:pk>/executions/', views.AdHocExecutionView.as_view(), name='adhoc-execution'),
|
|
path('adhoc/executions/<uuid:pk>/', views.AdHocExecutionDetailView.as_view(), name='adhoc-execution-detail'),
|
|
path('celery/task/<uuid:pk>/log/', views.CeleryTaskLogView.as_view(), name='celery-task-log'),
|
|
|
|
path('command-executions/', views.CommandExecutionListView.as_view(), name='command-execution-list'),
|
|
path('command-executions/create/', views.CommandExecutionCreateView.as_view(), name='command-execution-create'),
|
|
]
|