Add NHN Cloud API integration with async task support
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

- NHN Cloud API packages: token, vpc, compute, nks, storage
- REST API endpoints with Swagger documentation
- Async task processing for long-running operations
- CORS configuration for frontend integration
- Enhanced logging for debugging API calls

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-14 01:29:21 +09:00
parent 256fed485e
commit 8c7739ffad
32 changed files with 4059 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# Generated by Django 4.2.14 on 2026-01-13 16:05
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AsyncTask',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('task_type', models.CharField(choices=[('instance_create', '인스턴스 생성'), ('instance_delete', '인스턴스 삭제'), ('nks_create', 'NKS 클러스터 생성'), ('nks_delete', 'NKS 클러스터 삭제')], max_length=50)),
('status', models.CharField(choices=[('pending', '대기중'), ('running', '실행중'), ('success', '성공'), ('failed', '실패')], default='pending', max_length=20)),
('request_data', models.JSONField(default=dict, help_text='요청 데이터')),
('result_data', models.JSONField(default=dict, help_text='결과 데이터')),
('error_message', models.TextField(blank=True, help_text='에러 메시지')),
('resource_id', models.CharField(blank=True, help_text='생성된 리소스 ID', max_length=255)),
('resource_name', models.CharField(blank=True, help_text='리소스 이름', max_length=255)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('completed_at', models.DateTimeField(blank=True, null=True)),
],
options={
'verbose_name': '비동기 작업',
'verbose_name_plural': '비동기 작업들',
'ordering': ['-created_at'],
},
),
]