All checks were successful
Build And Test / build-and-push (push) Successful in 36s
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
98 lines
7.0 KiB
Python
98 lines
7.0 KiB
Python
"""
|
|
NHN Cloud API URL Configuration
|
|
"""
|
|
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
# ==================== Token ====================
|
|
path("token/", views.TokenCreateView.as_view(), name="token-create"),
|
|
|
|
# ==================== Compute ====================
|
|
path("compute/flavors/", views.ComputeFlavorListView.as_view(), name="compute-flavor-list"),
|
|
path("compute/keypairs/", views.ComputeKeypairListView.as_view(), name="compute-keypair-list"),
|
|
path("compute/images/", views.ComputeImageListView.as_view(), name="compute-image-list"),
|
|
path("compute/instances/", views.ComputeInstanceListView.as_view(), name="compute-instance-list"),
|
|
path("compute/instances/create/", views.ComputeInstanceCreateView.as_view(), name="compute-instance-create"),
|
|
path("compute/instances/<str:server_id>/", views.ComputeInstanceDetailView.as_view(), name="compute-instance-detail"),
|
|
path("compute/instances/<str:server_id>/action/", views.ComputeInstanceActionView.as_view(), name="compute-instance-action"),
|
|
|
|
# ==================== VPC ====================
|
|
path("vpc/", views.VpcListView.as_view(), name="vpc-list"),
|
|
path("vpc/create/", views.VpcCreateView.as_view(), name="vpc-create"),
|
|
path("vpc/<str:vpc_id>/", views.VpcDetailView.as_view(), name="vpc-detail"),
|
|
|
|
# ==================== Subnet ====================
|
|
path("subnet/", views.SubnetListView.as_view(), name="subnet-list"),
|
|
path("subnet/create/", views.SubnetCreateView.as_view(), name="subnet-create"),
|
|
path("subnet/<str:subnet_id>/", views.SubnetDetailView.as_view(), name="subnet-detail"),
|
|
|
|
# ==================== Floating IP ====================
|
|
path("floatingip/", views.FloatingIpListView.as_view(), name="floatingip-list"),
|
|
|
|
# ==================== Security Group ====================
|
|
path("securitygroup/", views.SecurityGroupListView.as_view(), name="securitygroup-list"),
|
|
|
|
# ==================== Async Task ====================
|
|
path("tasks/", views.AsyncTaskListView.as_view(), name="task-list"),
|
|
path("tasks/<str:task_id>/", views.AsyncTaskDetailView.as_view(), name="task-detail"),
|
|
|
|
# ==================== NKS Cluster ====================
|
|
path("nks/supports/", views.NksSupportsView.as_view(), name="nks-supports"),
|
|
path("nks/clusters/", views.NksClusterListView.as_view(), name="nks-cluster-list"),
|
|
path("nks/clusters/create/", views.NksClusterCreateView.as_view(), name="nks-cluster-create"),
|
|
path("nks/clusters/<str:cluster_name>/", views.NksClusterDetailView.as_view(), name="nks-cluster-detail"),
|
|
path("nks/clusters/<str:cluster_name>/config/", views.NksClusterConfigView.as_view(), name="nks-cluster-config"),
|
|
path("nks/clusters/<str:cluster_name>/resize/", views.NksClusterResizeView.as_view(), name="nks-cluster-resize"),
|
|
path("nks/clusters/<str:cluster_name>/upgrade/", views.NksClusterUpgradeView.as_view(), name="nks-cluster-upgrade"),
|
|
path("nks/clusters/<str:cluster_name>/certificates/", views.NksClusterCertificatesView.as_view(), name="nks-cluster-certificates"),
|
|
path("nks/clusters/<str:cluster_name>/ipacl/", views.NksClusterIpAclView.as_view(), name="nks-cluster-ipacl"),
|
|
|
|
# NKS Cluster Events
|
|
path("nks/clusters/<str:cluster_uuid>/events/", views.NksClusterEventsView.as_view(), name="nks-cluster-events"),
|
|
path("nks/clusters/<str:cluster_uuid>/events/<str:event_uuid>/", views.NksClusterEventDetailView.as_view(), name="nks-cluster-event-detail"),
|
|
|
|
# ==================== NKS Node Group ====================
|
|
path("nks/clusters/<str:cluster_name>/nodegroups/", views.NksNodeGroupListView.as_view(), name="nks-nodegroup-list"),
|
|
path("nks/clusters/<str:cluster_name>/nodegroups/create/", views.NksNodeGroupCreateView.as_view(), name="nks-nodegroup-create"),
|
|
path("nks/clusters/<str:cluster_name>/nodegroups/<str:nodegroup_name>/", views.NksNodeGroupDetailView.as_view(), name="nks-nodegroup-detail"),
|
|
path("nks/clusters/<str:cluster_name>/nodegroups/<str:nodegroup_name>/upgrade/", views.NksNodeGroupUpgradeView.as_view(), name="nks-nodegroup-upgrade"),
|
|
path("nks/clusters/<str:cluster_name>/nodegroups/<str:nodegroup_name>/userscript/", views.NksNodeGroupUserScriptView.as_view(), name="nks-nodegroup-userscript"),
|
|
path("nks/clusters/<str:cluster_name>/nodegroups/<str:nodegroup_name>/autoscale/", views.NksAutoscaleConfigView.as_view(), name="nks-nodegroup-autoscale"),
|
|
path("nks/clusters/<str:cluster_name>/nodegroups/<str:nodegroup_name>/start_node/", views.NksNodeStartView.as_view(), name="nks-node-start"),
|
|
path("nks/clusters/<str:cluster_name>/nodegroups/<str:nodegroup_name>/stop_node/", views.NksNodeStopView.as_view(), name="nks-node-stop"),
|
|
|
|
# ==================== Storage ====================
|
|
path("storage/containers/", views.StorageContainerListView.as_view(), name="storage-container-list"),
|
|
path("storage/containers/create/", views.StorageContainerCreateView.as_view(), name="storage-container-create"),
|
|
path("storage/containers/<str:container_name>/", views.StorageContainerDetailView.as_view(), name="storage-container-detail"),
|
|
|
|
# ==================== DNS Plus - Zone ====================
|
|
path("dns/zones/", views.DnsZoneListView.as_view(), name="dns-zone-list"),
|
|
path("dns/zones/create/", views.DnsZoneCreateView.as_view(), name="dns-zone-create"),
|
|
path("dns/zones/<str:zone_id>/", views.DnsZoneDetailView.as_view(), name="dns-zone-detail"),
|
|
|
|
# ==================== DNS Plus - RecordSet ====================
|
|
path("dns/zones/<str:zone_id>/recordsets/", views.DnsRecordSetListView.as_view(), name="dns-recordset-list"),
|
|
path("dns/zones/<str:zone_id>/recordsets/create/", views.DnsRecordSetCreateView.as_view(), name="dns-recordset-create"),
|
|
path("dns/zones/<str:zone_id>/recordsets/<str:recordset_id>/", views.DnsRecordSetDetailView.as_view(), name="dns-recordset-detail"),
|
|
|
|
# ==================== DNS Plus - GSLB ====================
|
|
path("dns/gslbs/", views.DnsGslbListView.as_view(), name="dns-gslb-list"),
|
|
path("dns/gslbs/create/", views.DnsGslbCreateView.as_view(), name="dns-gslb-create"),
|
|
path("dns/gslbs/<str:gslb_id>/", views.DnsGslbDetailView.as_view(), name="dns-gslb-detail"),
|
|
path("dns/gslbs/<str:gslb_id>/pools/", views.DnsGslbPoolConnectView.as_view(), name="dns-gslb-pool-connection"),
|
|
|
|
# ==================== DNS Plus - Pool ====================
|
|
path("dns/pools/", views.DnsPoolListView.as_view(), name="dns-pool-list"),
|
|
path("dns/pools/create/", views.DnsPoolCreateView.as_view(), name="dns-pool-create"),
|
|
path("dns/pools/<str:pool_id>/", views.DnsPoolDetailView.as_view(), name="dns-pool-detail"),
|
|
|
|
# ==================== DNS Plus - Health Check ====================
|
|
path("dns/health-checks/", views.DnsHealthCheckListView.as_view(), name="dns-healthcheck-list"),
|
|
path("dns/health-checks/create/", views.DnsHealthCheckCreateView.as_view(), name="dns-healthcheck-create"),
|
|
path("dns/health-checks/<str:health_check_id>/", views.DnsHealthCheckDetailView.as_view(), name="dns-healthcheck-detail"),
|
|
]
|