uncloud-mravi/uncloud_django_based/uncloud/opennebula/serializers.py
2020-04-02 19:31:03 +02:00

10 lines
324 B
Python

from rest_framework import serializers
from opennebula.models import VM
class OpenNebulaVMSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = VM
fields = [ 'vmid', 'owner', 'data',
'uncloud_name', 'cores', 'ram_in_gb',
'disks', 'nics', 'ips' ]