@csrf_exempt
def getDbInstanceDetailInfo(request):
    instanceId = request.POST['instanceId'].strip()
    try:
        dbInstanceInfo = dbInstance.objects.filter(id=instanceId)
        dbInstanceJson = serializers.serialize('json', dbInstanceInfo, use_natural_foreign_keys=True)
        result = {'status': 1, 'msg': '请求成功', 'dbInstanceJson': dbInstanceJson}
        print(result)
        return HttpResponse(json.dumps(result), content_type='application/json')
    except Exception as e:
        print(e)
        result = {'status': 2, 'msg': ('请求失败!' + str(e)), 'data': ''}
        return HttpResponse(json.dumps(result), content_type='application/json')
@csrf_exempt
def getDbInstanceDetailInfo(request):
    instanceId = request.POST['instanceId'].strip()
    try:
        dbInstanceInfo = dbInstance.objects.filter(id=instanceId)
        dbInstanceJson = serializers.serialize('json', dbInstanceInfo, use_natural_foreign_keys=True)
        result = {'status': 1, 'msg': '请求成功', 'dbInstanceJson': dbInstanceJson}
        print(result)
        return HttpResponse(json.dumps(result), content_type='application/json')
    except Exception as e:
        print(e)
        result = {'status': 2, 'msg': ('请求失败!' + str(e)), 'data': }
        return HttpResponse(json.dumps(result), content_type='application/json')