mirror of
https://github.com/ansible/awx.git
synced 2026-02-04 19:18:13 -03:30
- Add database contraints to make sure addresses are unique If port is defined: address, port, protocol, websocket_path are unique together if port is not defined: address, protocol, websocket_path are unique together - Allow deleting address via API - Add ReceptorAddressAccess to determine permissions - awx-manage add_receptor_address returns changed: True if successful
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
# Copyright (c) 2017 Ansible, Inc.
|
|
# All Rights Reserved.
|
|
|
|
from django.urls import re_path
|
|
|
|
from awx.api.views import (
|
|
InstanceList,
|
|
InstanceDetail,
|
|
InstanceUnifiedJobsList,
|
|
InstanceInstanceGroupsList,
|
|
InstanceHealthCheck,
|
|
InstancePeersList,
|
|
InstanceReceptorAddressesList,
|
|
)
|
|
from awx.api.views.instance_install_bundle import InstanceInstallBundle
|
|
|
|
|
|
urls = [
|
|
re_path(r'^$', InstanceList.as_view(), name='instance_list'),
|
|
re_path(r'^(?P<pk>[0-9]+)/$', InstanceDetail.as_view(), name='instance_detail'),
|
|
re_path(r'^(?P<pk>[0-9]+)/jobs/$', InstanceUnifiedJobsList.as_view(), name='instance_unified_jobs_list'),
|
|
re_path(r'^(?P<pk>[0-9]+)/instance_groups/$', InstanceInstanceGroupsList.as_view(), name='instance_instance_groups_list'),
|
|
re_path(r'^(?P<pk>[0-9]+)/health_check/$', InstanceHealthCheck.as_view(), name='instance_health_check'),
|
|
re_path(r'^(?P<pk>[0-9]+)/peers/$', InstancePeersList.as_view(), name='instance_peers_list'),
|
|
re_path(r'^(?P<pk>[0-9]+)/receptor_addresses/$', InstanceReceptorAddressesList.as_view(), name='instance_receptor_addresses_list'),
|
|
re_path(r'^(?P<pk>[0-9]+)/install_bundle/$', InstanceInstallBundle.as_view(), name='instance_install_bundle'),
|
|
]
|
|
|
|
__all__ = ['urls']
|