2016-12-05 15:02:08 +00:00
|
|
|
# ~*~ coding: utf-8 ~*~
|
|
|
|
from __future__ import unicode_literals
|
2018-07-27 10:56:40 +00:00
|
|
|
from django.urls import path
|
2016-12-05 15:02:08 +00:00
|
|
|
|
2017-03-13 16:58:25 +00:00
|
|
|
from .. import views
|
2016-12-05 15:02:08 +00:00
|
|
|
|
2016-12-11 04:05:11 +00:00
|
|
|
__all__ = ["urlpatterns"]
|
2016-12-05 15:02:08 +00:00
|
|
|
|
2017-12-12 06:28:12 +00:00
|
|
|
app_name = "ops"
|
|
|
|
|
2016-12-05 15:02:08 +00:00
|
|
|
urlpatterns = [
|
2018-07-27 10:56:40 +00:00
|
|
|
# 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>/history/', views.TaskHistoryView.as_view(), name='task-history'),
|
|
|
|
path('adhoc/<uuid:pk>/', views.AdHocDetailView.as_view(), name='adhoc-detail'),
|
|
|
|
path('adhoc/<uuid:pk>/history/', views.AdHocHistoryView.as_view(), name='adhoc-history'),
|
|
|
|
path('adhoc/history/<uuid:pk>/', views.AdHocHistoryDetailView.as_view(), name='adhoc-history-detail'),
|
|
|
|
path('celery/task/<uuid:pk>/log/', views.CeleryTaskLogView.as_view(), name='celery-task-log'),
|
2018-12-10 02:11:54 +00:00
|
|
|
|
|
|
|
path('command-execution/', views.CommandExecutionListView.as_view(), name='command-execution-list'),
|
|
|
|
path('command-execution/start/', views.CommandExecutionStartView.as_view(), name='command-execution-start'),
|
2017-12-20 03:30:15 +00:00
|
|
|
]
|