mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
932 B
24 lines
932 B
from django.db import models
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from .general import Ticket
|
|
|
|
|
|
class ApplyCommandTicket(Ticket):
|
|
apply_run_user = models.ForeignKey(
|
|
'users.User', on_delete=models.SET_NULL, null=True, verbose_name=_('Run user')
|
|
)
|
|
apply_run_asset = models.CharField(max_length=128, verbose_name=_('Run asset'))
|
|
apply_run_command = models.CharField(max_length=4096, verbose_name=_('Run command'))
|
|
apply_run_account = models.CharField(max_length=128, default='', verbose_name=_('Account'))
|
|
apply_from_session = models.ForeignKey(
|
|
'terminal.Session', on_delete=models.SET_NULL, null=True, verbose_name=_("Session")
|
|
)
|
|
apply_from_cmd_filter_acl = models.ForeignKey(
|
|
'acls.CommandFilterACL', on_delete=models.SET_NULL,
|
|
null=True, verbose_name=_('Command filter acl')
|
|
)
|
|
|
|
class Meta:
|
|
verbose_name = _('Apply Command Ticket')
|