Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 4.7.0 - update and add cost code

...

classtocc

Table of Contents

How to capture a remote virtual machine from a managed hypervisor

...

Prepare Abiquo to capture virtual machines

To capture a remote virtual machine VM first of all you need a physical machine from which you will capture the VM, so create the datacenter and rack, then add the physical machine.

...

Screenshot: A VM that has been retrieved (or imported) is marked with the (warning) symbol. 

Then you need to create the networks where the captured machine VM will be assignedlocated. For example, you may need to create a public or external network in the datacenter with the same specification as the network that the NICs on the virtual machine VM are attached to (same VLAN tag, network address, available IPs). And you should create the required IPs in Abiquo. 

...

The last thing you need to do before capturing remote virtual machines VMs is to create a virtual datacenter in this datacenter for your virtual machineVM. If you created a public network, you need to purchase public IPs for your virtual datacenter from the Network / Public tab.  You can create a virtual appliance now or wait to do it as part of the capture process.

...

Now you will capture a remote virtual machineVM. First import machines from the physical machine. Go to the datacenter, select the physical machine and click on the "retrieve virtual machines" button.

Then you the platform will see all the virtual machines display the VMs running on the hypervisor that are not managed by Abiquo. 

...

Capture the remote virtual machine

Using the GUI

Select the virtual machine VM you want to capture and click the "capture virtual machine" button.


The GUI will then ask you for the virtual appliance to store the VM. Now select your virtual appliance created in the virtual datacenter with the network addresses purchased. If you didn't create a virtual appliance earlier, you can do so now by clicking the + button.

...

Using the API

You can capture a virtual machine VM using the API and once you get started, it's not such a daunting task as it might first seem!  A good working knowledge of the Abiquo API is required, but as always, if you get stuck, you can always open your browser console and take a look at how the Abiquo UI does it! 

...

  1. Retrieve the virtual appliance the VM will be captured into
    1. The POST to capture the virtual machine VM is made to the virtual machines URL of the virtual appliance. 
      • It's not really necessary to get the whole virtual appliance, but by doing so, you can validate the link and check that you have the right virtual appliance!
  2. Retrieve the virtual machine with resources from the hypervisor in Abiquo
    1. You will modify this virtualmachineflat object to create the request payload for the POST request
  3. Retrieve network interfaces for configuration 
    1. You will need the network link and the IP address, which will be included to include them in the virtualmachineflat object
  4. Optionally retrieve a costcode object to add to the VM
  5. Modify the virtualmachineflat object
  6. Post the virtualmachineflat object to the virtual machines URL of the virtual appliance

...

Code Block
curl --verbose -k -u admin:xabiquo -X GET "https://38testingmjsabiquo.bcn.abiquo.com/api/cloud/virtualdatacenters/513/virtualappliances/292" -H "accept:application/vnd.abiquo.virtualappliancevirtualappliances+json;version=3.84.7" | jq '.'


Expand
titleClick here to show/hide the request example


Code Block
> GET /api/cloud/virtualdatacenters/953/virtualappliances/292 HTTP/1.1
> Host: mjsabiquo.bcn.abiquo.com
> Authorization: Basic Y2xvdWRhZG1pbjpjbG91ZGFkbWluYWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.3554.0
> Host: 38testing.bcn.abiquo.com
> Accept: */*
accept:application/vnd.abiquo.virtualappliances+json;version=4.7
> 
< HTTP/1.1 200 OK200
< Date: FriMon, 0118 AprNov 20162019 1416:4538:0538 GMT
< Server: Apache
< Set-Cookie: ABQSESSIONID=2446260617040916921=6906893432497011639; Max-Age=1800; Expires=FriMon, 0118-AprNov-20162019 1517:1508:0739 GMT; Path=/; Secure; HttpOnly
< SetX-Abiquo-CookieTracerContext: auth=Y2xvdWRhZG1pbjoxNDU5NTIzNzA3ODk1OmMxZDZlNzU4NmNlNjdmYWM5ZjZhODk0MmYyMmIwNmExOkFCSVFVTw; Expires=Fri, 01-Apr-2016 15:15:07 GMT; Path=/; Secure; HttpOnly
f4c925e1-4bc7-4470-91bf-03ee604e568e
< X-Abiquo-Token: 9a5a5c937821bb44506d654af977b90ad97d4968e49bea58d699034a8a783416
< Content-Type: application/vnd.abiquo.virtualappliancevirtualappliances+json; version=34.87
< Transfer-Encoding: chunked
< 
{
  "totalSize": 1,
  "links": [
        {  

        "titlerel":"vapp_vdc_for_capture "first",
         "relhref":"edit",
         "type"https:"application/vnd.abiquo.virtualappliance+json",
         "href":"https://38testing/mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/292?limit=25&by=name&asc=true"
      },
      {
           "title":"vdc_for_capture",
         "rel":"virtualdatacenter",
         "type":"application/vnd.abiquo.virtualdatacenter+json",
"last",
        "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95"
/3/virtualappliances?startwith=0&limit=25&by=name&asc=true"
     },
  ],
  "collection": {[
    {
      "titleid":"MJEnterprise" 3,
      "error": 0,
      "relhighDisponibility":"enterprise",
   0,
      "typename":"application/vnd.abiquo.enterprise+json "vmware_vapp_01",
      "publicApp": 0,
      "hrefstate":"https://38testing.bcn.abiquo.com:443/api/admin/enterprises/74" "EMPTY",
      }"restricted": false,
      { "description": "Vapp",
      "notAllocatedVirtualMachines": 0,
      "titleonVirtualMachines":"virtual machines",0,
      "offVirtualMachines": 0,
      "relpausedVirtualMachines":"virtualmachines" 0,
         "typeallocatedVirtualMachines":"application/vnd.abiquo.virtualmachines+json" 0,
         "hrefconfiguredVirtualMachines":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines" 0,
      "unknownVirtualMachines": 0,
      "lockedVirtualMachines": 0,
       },"links": [
        { 
          "title":"virtual appliances state "vmware_vapp_01",
          "rel": "stateedit",
          "type": "application/vnd.abiquo.virtualappliancestatevirtualappliance+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/292/state3"
        },
        {
           "title": "undeployvmware_vdc_01",
          "rel": "undeployvirtualdatacenter",
          "type": "application/vnd.abiquo.acceptedrequestvirtualdatacenter+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/action/undeploy3"
        },
        {
           "title": "deployAbiquo",
          "rel": "deployenterprise",
          "type": "application/vnd.abiquo.acceptedrequestenterprise+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudadmin/virtualdatacenters/95/virtualappliances/292/action/deployenterprises/1"
        },
        { 
          "title": "pricevirtual machines",
          "rel": "pricevirtualmachines",
          "type": "text/plainapplication/vnd.abiquo.virtualmachines+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/action/pricevirtualmachines"
        },
        { 
          "title": "layersvirtual appliances state",
          "rel": "layersstate",
          "type": "application/vnd.abiquo.layersvirtualappliancestate+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/layersstate"
        },
        {
           "title": "alertsundeploy",
          "rel": "alertsundeploy",
          "type": "application/vnd.abiquo.alertsacceptedrequest+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/3/292action/alertsundeploy"
        },
        { 
          "title": "specdeploy",
          "rel": "specdeploy",
          "type": "application/vnd.abiquo.virtualappliancespecacceptedrequest+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/action/specdeploy"
        },
        { 
          "title": "tasksprice",
          "rel": "tasksprice",
          "type": "application/vnd.abiquo.tasks+jsontext/plain",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/action/tasksprice"
        },
    ],    {
          "idtitle":292 "layers",
   "name       "rel":"vapp_vdc_for_capture "layers",
      "publicApp":0,    "highDisponibilitytype":0 "application/vnd.abiquo.layers+json",
   "error":0,       "statehref":"EMPTY"
}

 

Retrieve virtual machine from the hypervisor

Retrieve all the virtual machines from the hypervisor, using sync=true. Identify the required VM. Obtain a flat representation of the VM that includes the disks and network interface details (MAC address and sequence number).

Code Block
curl --verbose -u admin:xabiquo -X GET https://38testing
 "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/layers"
        },
        {
          "title": "spec",
          "rel": "spec",
          "type": "application/vnd.abiquo.virtualappliancespec+json",
          "href": "https://mjsabiquo.bcn.abiquo.com:443/api/
admin
cloud/
datacenters
virtualdatacenters/
4
3/
racks
virtualappliances/
4
3/
machines/82/virtualmachines/2120?sync=true -H accept:application/vnd.abiquo.virtualmachinesflat+json;version=3.8
Expand
titleClick here to show/hide the request example
Code Block
> GET /api/admin/datacenters/4/racks/4/machines/82/virtualmachines/2120?sync=true HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 38testing.bcn.abiquo.com
> accept:application/vnd.abiquo.virtualmachineflat+json
> 
< HTTP/1.1 200 OK
< Date: Fri, 01 Apr 2016 10:43:56 GMT
< Set-Cookie: ABQSESSIONID=907153214557859431; Expires=Fri, 01-Apr-2016 11:13:56 GMT; Path=/; Secure; HttpOnly
< Set-Cookie: auth=Y2xvdWRhZG1pbjoxNDU5NTA5MjM4OTc0OjQ2YThjMzc4MDc4YWI2YWI0M2EyODE0MGU4N2VlZTIzOkFCSVFVTw; Expires=Fri, 01-Apr-2016 11:13:58 GMT; Path=/; Secure; HttpOnly
< Content-Type: action/spec"
        },
        {
          "title": "tasks",
          "rel": "tasks",
          "type": "application/vnd.abiquo.virtualmachineflattasks+json",
<  Transfer-Encoding: chunked {      "links":[href": "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/tasks"
        },
        { 
          "title": "VMX_04scalinggroups",
          "rel": "machinescalinggroups",
          "type": "application/vnd.abiquo.machinescalinggroups+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admincloud/datacentersvirtualdatacenters/43/racksvirtualappliances/43/machines/82scalinggroups"
        },
        {
           "title": "Abiquo-DC2-Neutronmetricsmetadata",
          "rel": "locationmetricsmetadata",
          "type": "application/vnd.abiquo.datacentermetricsmetadata+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/locations/4"virtualdatacenters/3/virtualappliances/3/metrics"
        },
        {
           "title": "ESXicollectd",
          "rel": "hypervisortypecollectd",
          "type": "application/vnd.abiquo.hypervisortype+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/config/hypervisortypes/VMX_04/cloud/virtualdatacenters/3/virtualappliances/3/metrics/collectd"
        },
        {
           "title":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e "alarmssearch",
          "rel": "editalarmssearch",
          "type": "application/vnd.abiquo.virtualmachinealarms+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admincloud/datacentersvirtualdatacenters/43/racksvirtualappliances/4/machines/82/virtualmachines/21203/alarms"
        }
      ],
   "id":2120, }
   "name":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e",
   "description":"",
   "ram":64,
   "cpu":1,
   "vdrpPort":5001,
   "vdrpIP":"192.168.2.61",
   "vdrpEnabled":true,
   "idState":4,
   "state":"ON",
   "highDisponibility":0,
   "idType":0,
   "type":"NOT_MANAGED",
   "password":"xeAbSLP6",
   "keymap":"",
   "uuid":"40e8cdbc-b541-411b-8765-f645b95ee73e",
   "label":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e",
   "monitored":false,
   "monitoringLevel":"DEFAULT",
   "variables":{},
]
}


 

Retrieve virtual machine from the hypervisor

Retrieve all the VMs from the hypervisor, using sync=true. Identify the required VM. Obtain a flat representation of the VM that includes the disks and network interface details (MAC address and sequence number).

Code Block
curl --verbose -k -u admin:xabiquo -X GET "https://mjsabiquo.bcn.abiquo.com/api/admin/datacenters/2/racks/2/machines/3/virtualmachines/174?sync=true"  -H "accept:application/vnd.abiquo.virtualmachineflat+json;version=4.7" | jq '.'


Expand
titleClick here to show/hide the request example


Code Block
> GET /api/admin/datacenters/2/racks/2/machines/3/virtualmachines/174?sync=true HTTP/1.1
> Host: mjsabiquo.bcn.abiquo.com
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.54.0
> accept:application/vnd.abiquo.virtualmachineflat+json;version=4.7
> 
< HTTP/1.1 200 200
< Date: Mon, 18 Nov 2019 16:46:18 GMT
< Server: Apache
< Set-Cookie: ABQSESSIONID=2804812929327814519; Max-Age=1800; Expires=Mon, 18-Nov-2019 17:16:19 GMT; Path=/; Secure; HttpOnly
< X-Abiquo-TracerContext: bf65ad7d-86ab-4414-a5aa-bf82c077f11a
< X-Abiquo-Token: 9a5a5c937821bb44506d654af977b90a8d911c6bcdccbb1464b09b41fd89e48b
< Content-Type: application/vnd.abiquo.virtualmachineflat+json; version=4.7
< Transfer-Encoding: chunked
< 
{
  "volumes": {
        "links": [],
 
    "collection": []
   },
   "disks": {
        "links": [],
      "collection": [
           {  
   
        "linkslabel":[],
            "sizeInMb":100,
            "sequence": 0,

           "diskFormatTypesizeInMb":"VMDK_FLAT" 64,
            "labeldiskFormatType": "VMDK_FLAT",
  
         "path": "ABQ_40e8cdbc4e04e585-b541cf68-411b4223-8765b2a7-f644feed06a7b9a/ABQ_40e8cdbc4e04e585-b541cf68-411b4223-8765b2a7-f64ddc37bae4feed06a7b9a65d4b10d-34f5b8e2-411242d4-a3b293f0-80150b83d344ac470ecc2df2-flat.vmdk",
            ""diskFileSize":104857600 67108864,
            "diskControllerType": "SCSIIDE",
   
        "diskControllerbus":"lsilogic" 0,
            "busunit": 0,
            "unitbootable":0 true,
 
          "bootableuuid":true
 "65d4b10d-b8e2-42d4-93f0-ac470ecc2df2",
        },
"links": []
      }
 {   ]
  },
  "nics": {
    "links": [],
    "collection": [
      "sizeInMb":120,
{
        "mac": "00:50:56:14:4D:23",
           "sequence":1 0,
            "diskFormatTypetag":"VMDK_FLAT" 3,
        "links": []
   "label":"",   },
      {
  "path":"ABQ_40e8cdbc-b541-411b-8765-f64/ABQ_40e8cdbc-b541-411b-8765-f64-flat.vmdk",             "diskFileSize"mac":125829120,             "diskControllerType":"SCSI""00:50:56:25:71:EE",
            "diskControllersequence":"lsilogic" 1,
            "bustag":0,
            "unit":1,
    2,
        "bootablelinks":true  []
       }
      ]
   },
   "nicsid":{ 174,
  "uuid": "4e04e585-cf68-4223-b2a7-4feed06a7b9a",
   "linksname":[] "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
  "label": "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
  "collectiondescription":[ "",
  "ram": 48,
  "cpu": 1,
  { "vdrpPort": 5910,
  "vdrpIP": "10.60.2.43",
  "vdrpEnabled": true,
  "idState": 4,
  "linksstate":[] "ON",
  "highDisponibility": 0,
  "idType": 0,
    "mactype":"00:50:56:3D:CF:A9 "NOT_MANAGED",
  "password": "WatpDKTK",
  "monitored": false,
  "monitoringLevel":  "sequenceDEFAULT":0,
    "variables": {},
  "creationTimestamp": 1573129740000,
   "taglastSynchronize":10 1574090616000,
  "fqdn": "box.localdomain",
    }"generateGuestInitialPassword": false,
  "internalProviderId": "vm-43761-at-10.60.11.242",
     {  
 "protected": false,
          "links": [],
     {
      "mactitle":"00:50:56:30:08:77 "VMX_04",
            "sequence":1,
  "rel": "machine",
         "tagtype":2
 "application/vnd.abiquo.machine+json",
        }
      ]
   }"href": "https://mjsabiquo.bcn.abiquo.com:443/api/admin/datacenters/2/racks/2/machines/3"
    },
    {
      "title": "BCDC",
      "protectedrel":false
}

 

Retrieve network details and IP addresses

Retrieve IPs from the external network that are available in the datacenter and then retrieve the appropriate IP for the VM.

Code Block
curl --verbose -u admin:xabiquo -X GET https://38testing
 "location",
      "type": "application/vnd.abiquo.datacenter+json",
      "href": "https://mjsabiquo.bcn.abiquo.com:443/api/
admin
cloud/
enterprises/74/limits/40/externalnetworks/331/ips/4527
Expand
Code Block
> GET /api/admin/enterprises/74/limits/40/externalnetworks/331/ips/4528 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 38testing.bcn.abiquo.com
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Fri, 01 Apr 2016 13:07:42 GMT
< Set-Cookie: ABQSESSIONID=1913633333739294211; Expires=Fri, 01-Apr-2016 13:37:42 GMT; Path=/; Secure; HttpOnly
< Set-Cookie: auth=Y2xvdWRhZG1pbjoxNDU5NTE3ODYyNzY2OjRhYmQyYmE5MjJhZTc5NGRiNmJkYjhkOTNkMGI3NmUyOkFCSVFVTw; Expires=Fri, 01-Apr-2016 13:37:42 GMT; Path=/; Secure; HttpOnly
< Content-Type: application/vnd.abiquo.externalip+json; version=3.8
< Transfer-Encoding: chunked
< 
{  
   "links":[  
      locations/2"
    },
    {
      "title": "VMware vCenter",
      "rel": "hypervisortype",
      "type": "application/vnd.abiquo.hypervisortype+json",
      "href": "https://mjsabiquo.bcn.abiquo.com:443/api/config/hypervisortypes/VMX_04"
    },
    {
           "title": "mj_externalABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
         "rel": "externalnetworkedit",
         "type": "application/vnd.abiquo.vlanvirtualmachine+json",
         "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/enterprisesdatacenters/742/limits/40/externalnetworks/331racks/2/machines/3/virtualmachines/174"
      },
      {  
   ],
     "titlebackuppolicies":"ips",
 [],
        "rel"natrules":"ips", []
}


 

Retrieve network details and IP addresses

Retrieve IPs from the external network that are available in the datacenter and then retrieve the appropriate IP for the VM.

Code Block
curl --verbose -k 
"type":"application/vnd.abiquo.externalips+json", "href":"
-u admin:xabiquo -X GET "https://
38testing
mjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/
74
1/limits/
40
2/externalnetworks/
331
7/ips/16"  
}, { "title":"10.10.2.3", "rel":"self", "type":"
-H "accept:application/vnd.abiquo.externalip+json;version=4.7" | jq '.' 


Expand


Code Block
> GET /api/admin/enterprises/1/limits/2/externalnetworks/7/ips/16 HTTP/1.1
> Host: mjsabiquo.bcn.abiquo.com
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.54.0
> accept:application/vnd.abiquo.externalip+json",;version=4.7
> 
< HTTP/1.1 200 200
< Date: Mon,  "href":"https://38testing.bcn.abiquo.com:443/api/admin/enterprises/74/limits/40/externalnetworks/331/ips/4528"
      }
   ],
   "id":4528,
   "ip":"10.10.2.3",
   "networkName":"mj_external",
   "ipv6":false,
   "available":true,
   "quarantine":false
}

 

Retrieve IPs from the public network that have been purchased and are available to the virtual datacenter. Select and retrieve the appropriate public IP. To start with, first we used the has parameter to identify the required IP address.

Code Block
curl --verbose -u admin:xabiquo -X GET https://38testing.bcn.abiquo.com/api/cloud/virtualdatacenters/95/publicips/purchased?has="10.10.10.2"

Then we checked the ID of the purchased IP and retrieved only this IP.

Code Block
curl --verbose -u admin:xabiquo -X GET https://38testing.bcn.abiquo.com/api/cloud/virtualdatacenters/95/publicips/purchased/4502
Expand
Code Block
> GET /api/cloud/virtualdatacenters/95/publicips/purchased/4502 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 38testing.bcn.abiquo.com
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Fri, 01 Apr 2016 13:01:05 GMT
< Set-Cookie: ABQSESSIONID=6516537143611046519; Expires=Fri, 01-Apr-2016 13:31:06 GMT; Path=/; Secure; HttpOnly
< Set-Cookie: auth=Y2xvdWRhZG1pbjoxNDU5NTE3NDY2MzE2OmU0ODU0OGZhNmQwZmNkYWFlMzQ1NGEwYzViZjgzN2ZmOkFCSVFVTw; Expires=Fri, 01-Apr-2016 13:31:06 GMT; Path=/; Secure; HttpOnly
< Content-Type: application/vnd.abiquo.publicip+json; version=3.8
< Transfer-Encoding: chunked
< 
{  
   "links":[  
      {  
         "title":"mj_public_network18 Nov 2019 16:50:27 GMT
< Server: Apache
< Set-Cookie: ABQSESSIONID=377940815957123584; Max-Age=1800; Expires=Mon, 18-Nov-2019 17:20:28 GMT; Path=/; Secure; HttpOnly
< X-Abiquo-TracerContext: cb421aee-9a3c-42f9-9e2e-542c78baa82e
< X-Abiquo-Token: 9a5a5c937821bb44506d654af977b90a70900b698c0994f9571f704bb17e9bf5
< Content-Type: application/vnd.abiquo.externalip+json; version=4.7
< Transfer-Encoding: chunked
< 
{
  "available": true,
  "id": 16,
  "ip": "192.168.55.1",
  "networkName": "Abiquo_external_002",
  "ipv6": false,
  "quarantine": false,
  "links": [
    {
      "title": "Abiquo_external_002",
      "rel": "externalnetwork",
      "type": "application/vnd.abiquo.vlan+json",
      "href": "https://mjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/1/limits/2/externalnetworks/7"
    },
    {
      "title": "ips",
      "rel": "ips",
      "type": "application/vnd.abiquo.externalips+json",
      "href": "https://mjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/1/limits/2/externalnetworks/7/ips"
    },
    {
      "title": "192.168.55.1",
         "rel": "publicnetworkself",
         "type": "application/vnd.abiquo.vlanexternalip+json",
         "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/1/datacenterslimits/42/network/328"
      },
      {  
         "title":"purchased ips",externalnetworks/7/ips/16"
    }
    "rel":"purchased",
         "type":"application/vnd.abiquo.publicips+json",
         "href":]
}


 

Retrieve IPs from the public network that have been purchased and are available to the virtual datacenter. Select and retrieve the appropriate public IP. To start with, first we used the has parameter to identify the required IP address.

Code Block
curl --verbose -k -u admin:xabiquo -X GET "https://
38testing
mjsabiquo.bcn.abiquo.com
:443
/api/cloud/virtualdatacenters/
95
3/publicips/purchased
" }, { "title":"release ip", "rel":"release", "type":"
?has=192.168.56.3" -H "accept:application/vnd.abiquo.
publicip
publicips+json;version=4.7"
,
 | jq '.'

Then we checked the ID of the purchased IP and retrieved only this IP.

Code Block
curl --verbose -k -u admin:xabiquo -X GET "
href":"
https://
38testing
mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/
95
3/publicips/
topurchase
purchased/
4502
30"  
}, { "title":"10.10.10.2", "rel":"self", "type":"
-H "accept:application/vnd.abiquo.publicip+json;version=4.7" | jq '.'


Expand


Code Block
> GET /api/cloud/virtualdatacenters/3/publicips/purchased/30 HTTP/1.1
> Host: mjsabiquo.bcn.abiquo.com
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.54.0
> accept:application/vnd.abiquo.publicip+json",
;version=4.7
> 
< HTTP/1.1 200 200
< Date: Mon, 18 Nov 2019 "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/publicips/purchased/4502"
      },
      {  
         "title":"vdc_for_capture",
         "rel":"virtualdatacenter",
         "type":"application/vnd.abiquo.virtualdatacenter+json",
         "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95"
      }
   ],
   "id":4502,
   "ip":"10.10.10.2",
17:04:37 GMT
< Server: Apache
< Set-Cookie: ABQSESSIONID=2838884776872119279; Max-Age=1800; Expires=Mon, 18-Nov-2019 17:34:38 GMT; Path=/; Secure; HttpOnly
< X-Abiquo-TracerContext: a3b2c04f-b9a3-4e9c-a54e-1a1085c938e7
< X-Abiquo-Token: 9a5a5c937821bb44506d654af977b90a0965d6b9c04f6200f8fcde6f04f43cec
< Content-Type: application/vnd.abiquo.publicip+json; version=4.7
< Transfer-Encoding: chunked
< 
{
  "available": true,
  "id": 30,
  "ip": "192.168.56.3",
  "mac": "00:50:56:2126:9AD5:1A3D",
   "name": "005056219A1A00505626D53D_host",

  "networkName": "mjCapture_public_network003",

  "ipv6": false,
  "quarantine": false,
  "availablelinks":true, [
    {
      "quarantinetitle":false
}

 

Create virtualmachineflat data transfer object

Change the virtual machine links as follows.

Replace the "rel" link with a value of edit with two links with "rel" values of "virtualmachine" and "imported".

Expand

The original "rel" edit link.

Code Block
      {  
         "title":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e",
  "Capture_public_003",
       "rel": "editpublicnetwork",
         "type": "application/vnd.abiquo.virtualmachinevlan+json",

        "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/datacenters/42/racks/4/machines/82/virtualmachines/2120network/8"
    

The new links to replace it

Code Block
},
    {  
 
       "title":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e", "purchased ips",
         "rel": "virtualmachinepurchased",
 
       "type": "application/vnd.abiquo.virtualmachinepublicips+json",

        "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admincloud/datacentersvirtualdatacenters/43/racks/4/machines/82/virtualmachines/2120publicips/purchased"
      },
      {
           "title":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e",
  "release ip",
       "rel": "importedrelease",
  
      "type": "application/vnd.abiquo.virtualmachinepublicip+json",
         "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admincloud/datacentersvirtualdatacenters/43/rackspublicips/4/machines/82/virtualmachines/2120"
 topurchase/30"
    },
    {
    }

In the nics section, add links to the vlans (with "rel" value of "vlan" and the "ip" attribute set to the IP address). 

Expand

For example, from the public IP address, obtain the link with a "rel" value of "publicnetwork".

Code Block
    "title": "192.168.56.3",
   {            "title":"mj_public_network",
         "rel":"publicnetwork",
 "rel": "self",
       "type": "application/vnd.abiquo.vlanpublicip+json",
         "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/adminvirtualdatacenters/datacenters3/4publicips/networkpurchased/32830"

     }

Change the "rel" value to "vlan".

Code Block
},
     {
            "title": "mjvmware_publicvdc_network01",
          "rel": "vlanvirtualdatacenter",
          "type": "application/vnd.abiquo.vlanvirtualdatacenter+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admincloud/datacenters/4/network/328"
 virtualdatacenters/3"
    }

For this network, also note the IP value

Code Block
     "ip":"10.10.10.2"

 

And for example, for the external IP address, obtain the link with a "rel" value of "externalnetwork".

Code Block
]
}


 

Create virtualmachineflat data transfer object

Change the virtual machine links as follows.

Replace the "rel" link with a value of edit with two links with "rel" values of "virtualmachine" and "imported".

Expand
Expand

The original "rel" edit link.

Code Block
        {
            "title": "mj_externalABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
            "rel": "externalnetworkedit",
            "type": "application/vnd.abiquo.vlanvirtualmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/enterprisesdatacenters/742/limitsracks/402/externalnetworks/331"machines/3/virtualmachines/174"
        }
Again, change the value of the "rel" attribute to "vlan".
 

The new links to replace it

Code Block
        {
            "title": "mj_externalABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
            "rel": "vlanvirtualmachine",
            "type": "application/vnd.abiquo.vlanvirtualmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/74/limits/40/externalnetworks/331"datacenters/2/racks/2/machines/3/virtualmachines/174"
        }

And note the value of the IP

Code Block
,
        {
            "iptitle":"10.10.2.3"

Add the links to the nics / collection / links section for each NIC and the IP to the main section of each NIC after the tag value (don't forget the comma).

Finally you should have a data object like the one contained in the following expanding section.

Code Block
{  
   "links":[  
      {  
         "title":"VMX_04" "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
            "rel": "imported",
         "rel":"machine",          "type": "application/vnd.abiquo.machinevirtualmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/datacenters/42/racks/42/machines/3/virtualmachines/82174"
        },
      {  
   


In the nics section, add links to the vlans (with "rel" value of "vlan" and the "ip" attribute set to the IP address). 

Expand

For example, from the public IP address, obtain the link with a "rel" value of "publicnetwork".

Code Block
     {
      "title":"Abiquo-DC2-Neutron "Capture_public_003",
         "rel": "locationpublicnetwork",
         "type": "application/vnd.abiquo.datacentervlan+json",

        "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/locations/4admin/datacenters/2/network/8"
      },
  }

Change the "rel" value to "vlan".

Code Block
    { 
          "title": "ESXiCapture_public_003",

        "rel": "hypervisortypevlan",
         "type": "application/vnd.abiquo.hypervisortypevlan+json",
         "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/config/hypervisortypes/VMX_04"
admin/datacenters/2/network/8"
    }

For this network, also note the IP value

Code Block
      },"ip":"192.168.56.3"

 

And for example, for the external IP address, obtain the link with a "rel" value of "externalnetwork".

Code Block
        {
            "title": "ABQ_40e8cdbc-b541-411b-8765-f645b95ee73eAbiquo_external_002",
            "rel": "virtualmachineexternalnetwork",
            "type": "application/vnd.abiquo.virtualmachinevlan+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/datacentersenterprises/41/rackslimits/42/machines/82/virtualmachines/2120externalnetworks/7"
        }

Again, change the value of the "rel" attribute to "vlan".

Code Block
        {
            "title": "ABQ_40e8cdbc-b541-411b-8765-f645b95ee73eAbiquo_external_002",
            "rel": "importedvlan",
            "type": "application/vnd.abiquo.virtualmachinevlan+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/datacentersenterprises/41/rackslimits/42/machines/82/virtualmachines/2120externalnetworks/7"
      }  }

And note the value of the IP

Code Block
  ],    "id":2120,ip":"192.168.55.1"

Add the links to the nics / collection / links section for each NIC and the IP to the main section of each NIC after the tag value (don't forget the comma).

Finally you should have a data object like the one contained in the following expanding section.

Expand


Code Block
{
    "namevolumes":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e", {
        "links": [],
        "descriptioncollection":"", []
    "ram":64},
    "cpudisks":1, {
    "vdrpPort":5001,    "vdrpIPlinks":"192.168.2.61", [],
    "vdrpEnabled":true,    "idStatecollection":4, [
     "state":"ON",    "highDisponibility":0,   {
"idType":0,    "type":"NOT_MANAGED",    "password":"xeAbSLP6",    "uuid":"40e8cdbc-b541-411b-8765-f645b95ee73e",    "label":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e "",
     "monitored":false,    "monitoringLevel":"DEFAULT",    "variables":{},    "volumessequence":{ 0,
         "links":[],       "collectionsizeInMb":[] 64,
   },    "disks":{         "linksdiskFormatType":[] "VMDK_FLAT",
      "collection":[          "path":  {"ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a/ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a65d4b10d-b8e2-42d4-93f0-ac470ecc2df2-flat.vmdk",
                "linksdiskFileSize":[], 67108864,
                "sizeInMbdiskControllerType":100 "IDE",
                "sequencebus": 0,
                "diskFormatTypeunit":"VMDK_FLAT" 0,
                "labelbootable":"" true,
                "pathuuid": "ABQ_40e8cdbc65d4b10d-b541b8e2-411b42d4-8765-f64/ABQ_40e8cdbc-b541-411b-8765-f64ddc37bae-34f5-4112-a3b2-80150b83d344-flat.vmdk93f0-ac470ecc2df2",
            "diskFileSize":104857600,    "links": []
       "diskControllerType":"SCSI",     }
       "diskController":"lsilogic",
 ]
    },
      "busnics":0, {
           "unitlinks":0 [],
            "bootablecollection":true [
        },    {
     {           "mac": "00:50:56:14:4D:23",
   "links":[],             "sizeInMbsequence":120 0,
                "sequencetag":1 3,
            "diskFormatType":"VMDK_FLAT",
            "labellinks":"", [
					{
          "path					"title": "ABQ_40e8cdbc-b541-411b-8765-f64/ABQ_40e8cdbc-b541-411b-8765-f64-flat.vmdkCapture_public_003",
            "diskFileSize":125829120,
            "diskControllerType":"SCSI					"rel": "vlan",
            "diskController					"type":"lsilogic "application/vnd.abiquo.vlan+json",
            "bus":0,
   					"href": "https://mjsabiquo.bcn.abiquo.com:443/api/admin/datacenters/2/network/8"
    				}
   "unit":1,
				],
				"ip": "192.168.56.3"
           "bootable":true },
        }    {
  ]    },    "nics":{      "mac":   "links":[],"00:50:56:25:71:EE",
       "collection":[         "sequence": 1,
 {               "linkstag":[ 2,
                {"links": [        
					{
          					"title": "mjAbiquo_publicexternal_network002",
                  			"rel": "vlan",
                  			"type": "application/vnd.abiquo.vlan+json",
          				        "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/datacenters/4/network/328enterprises/1/limits/2/externalnetworks/7"
        			}
				],
				"ip": "192.168.55.1"
    }        }
    ],    ]
    },
    "macid":"00:50:56:3D:CF:A9" 174,
    "uuid": "4e04e585-cf68-4223-b2a7-4feed06a7b9a",
    "name":  "sequence":0"ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
       "label": "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
    "tagdescription":10 "",
    "ram": 48,
      "ipcpu":"10.10.10.2"
 1,
    "vdrpPort": 5910,
  },  "vdrpIP": "10.60.2.43",
    "vdrpEnabled": true,
{    "idState": 4,
    "state": "ON",
    "linkshighDisponibility":[ 0,
    "idType": 0,
    "type": "NOT_MANAGED",
    { "password": "WatpDKTK",
    "monitored": false,
        "monitoringLevel": "DEFAULT",
    "titlevariables":"mj_external" {},
    "creationTimestamp": 1573129740000,
       "lastSynchronize": 1574090616000,
    "relfqdn": "vlanbox.localdomain",
    "generateGuestInitialPassword": false,
    "internalProviderId": "vm-43761-at-10.60.11.242",
    "protected": false,
    "links": [
        {
            "title": "VMX_04",
            "rel": "machine",
            "type": "application/vnd.abiquo.vlanmachine+json",
    
             "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/enterprisesdatacenters/742/limitsracks/402/externalnetworksmachines/3313"
        },
        {
}             ]"title": "BCDC",
            "macrel":"00:50:56:30:08:77 "location",
            "sequencetype":1 "application/vnd.abiquo.datacenter+json",
            "taghref": "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/locations/2"
        },
        {
     "ip       "title":"10.10.2.3" "VMware vCenter",
         }   "rel": "hypervisortype",
  ]      },    "protectedtype":false
}

Capture the virtual machine

To capture the machine, send the virtualmachineflat data transfer object as part of a post request to the virtual machines URL of the virtual appliance that will hold the captured virtual machine.

Code Block
Expand
curl --verbose -u admin:xabiquo -X POST
 "application/vnd.abiquo.hypervisortype+json",
            "href": "https://
38testing
mjsabiquo.bcn.abiquo.com:443/api/
cloud
config/
virtualdatacenters/95/virtualappliances/292/virtualmachines
hypervisortypes/VMX_04"
\
 
-H
 
"Content-Type:application/vnd.abiquo.virtualmachineflat+json;version=3.8" \ -H "Accept:application/vnd.abiquo.virtualmachineflat+json;version=3.8"
 
\
 
-d
 
@requestpayload.json

Success status code: 201

Request payload:

Code Block
{      "links":[},
        {
            "title": "VMX_04ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
            "rel": "machinevirtualmachine",
            "type": "application/vnd.abiquo.machinevirtualmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/datacenters/42/racks/42/machines/823/virtualmachines/174"
        },
        {
            "title":"Abiquo-DC2-Neutron", "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
            "rel": "locationimported",
            "type": "application/vnd.abiquo.datacentervirtualmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/locations/4/admin/datacenters/2/racks/2/machines/3/virtualmachines/174"
      },  }
    {  
    ],
    "titlebackuppolicies":"ESXi",
         "rel":"hypervisortype",
  [],
       "typenatrules":"application/vnd.abiquo.hypervisortype+json",
         "href":"https://38testing []
}


Optionally retrieve a cost code to add to the VM

You can optionally add a cost code to the VM as part of the capture process. You can use the "has" parameter to search for the cost code name, then retrieve the required cost code by ID.

Code Block
curl --verbose -k -u admin:xabiquo -X GET "https://mjsabiquo.bcn.abiquo.com:443/api/config/
hypervisortypes/VMX_04
costcodes?has=linux"  -H "accept:application/vnd.abiquo.costcodes+json;version=4.7" | 
}, { "title":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e
jq '.'

Create a cost code link by changing "rel" link with a value of "edit" to "codecode". Here is an example link.

Code Block
        {
          "title": "Linux_basic_cc",
          "rel": "
virtualmachine
costcode",
          "type": "application/vnd.abiquo.
virtualmachine
costcode+json",
          "href": "https://
38testing
mjsabiquo.bcn.abiquo.com:443/api/
admin
config/
datacenters/4/racks/4/machines/82/virtualmachines/2120
costcodes/1"
      
}, { "title":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e", "rel":"imported", "type":"application/vnd.abiquo.virtualmachine+json", "href":"https://38testing.bcn.abiquo.com:443/api/admin/datacenters/4/racks/4/machines/82/virtualmachines/2120" } ], "id":2120, "name":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e", "description":"", "ram":64, "cpu":1, "vdrpPort":5001, "vdrpIP":"192.168.2.61", "vdrpEnabled":true, "idState":4, "state":"ON", "highDisponibility":0, "idType":0, "type":"NOT_MANAGED", "password":"xeAbSLP6", "uuid":"40e8cdbc-b541-411b-8765-f645b95ee73e", "label":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e", "monitored":false, "monitoringLevel":"DEFAULT", "variables":{}, "volumes":{ "links":[], "collection":[] }, "disks":{ "links":[], "collection":[ { "links":[], "sizeInMb":100, "sequence":0, "diskFormatType":"VMDK_FLAT", "label":"", "path":"ABQ_40e8cdbc-b541-411b-8765-f64/ABQ_40e8cdbc-b541-411b-8765-f64ddc37bae-34f5-4112-a3b2-80150b83d344-flat.vmdk", "diskFileSize":104857600, "diskControllerType":"SCSI", "diskController":"lsilogic", "bus":0, "unit":0, "bootable":true }, { "links":[], "sizeInMb":120, "sequence":1, "diskFormatType":"VMDK_FLAT", "label":"", "path":"ABQ_40e8cdbc-b541-411b-8765-f64/ABQ_40e8cdbc-b541-411b-8765-f64-flat.vmdk", "diskFileSize":125829120, "diskControllerType":"SCSI", "diskController":"lsilogic", "bus":0, "unit":1, "bootable":true } ] }, "nics":{ "links":[], "collection":[ { "links":[ { "title":"mj_public_network", "rel":"vlan", "type":"application/vnd.abiquo.vlan+json", "href":"https://38testing.bcn.abiquo.com:443/api/admin/datacenters/4/network/328" } ], "mac":"00:50:56:3D:CF:A9", "sequence":0, "tag":10, "ip":"10.10.10.2" }, { "links":[ { "title":"mj_external", "rel":"vlan", "type":"application/vnd.abiquo.vlan+json", "href":"https://38testing.bcn.abiquo.com:443/api/admin/enterprises/74/limits/40/externalnetworks/331" } ], "mac":"00:50:56:30:08:77", "sequence":1, "tag":2, "ip":"10.10.2.3" } ] }, "protected":false }

Request data:

> POST /api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines HTTP/1.1 > User-Agent: curl/7.35.0 > Host: 38testing.bcn.abiquo.com >
  }
Expand
Code Block

Add your link to the links section of the VM object. 

When you capture the VM, the platform adds the cost code to the temporary template that it creates, which has a link in the VM object returned by the capture. And when you create an instance to save the VM template to the Apps library, this template will have the cost code that you added to the VM. 

The platform will account the VM by its template cost code.

Capture the virtual machine

To capture the machine, send the virtualmachineflat data transfer object as part of a post request to the virtual machines URL of the virtual appliance that will hold the captured virtual machine.

Code Block
curl --verbose -u admin:xabiquo -X POST "https://mjsabiquo.bcn.abiquo.com/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines" -H "Content-Type:application/vnd.abiquo.virtualmachineflat+json;version=
3
4.
8
7" 
>
-H "Accept:application/vnd.abiquo.virtualmachineflat+json;version=
3
4.
8
7" 
> Content-Length: 3743 > Expect: 100-continue > < HTTP/1.1 100 Continue < HTTP/1.1 201 Created < Date: Fri, 01 Apr 2016 14:51:03 GMT < Set-Cookie: ABQSESSIONID=6760576487240329669; Expires=Fri, 01-Apr-2016 15:21:05 GMT; Path=/; Secure; HttpOnly < Set-Cookie: auth=Y2xvdWRhZG1pbjoxNDU5NTI0MDY4MzQ5Ojk3NDMyMGNhYmE4YjRjMWM0ZWRlMjRlNDVmOWM3YmQ3OkFCSVFVTw; Expires=Fri, 01-Apr-2016 15:21:08 GMT; Path=/; Secure; HttpOnly < Location: https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120 < Content-Type: application/vnd.abiquo.virtualmachineflat+json; version=3.8 < Transfer-Encoding: chunked <

Response payload:

{
-d @requestpayload.json
Expand
Code Block

Success status code: 201

Request payload:

Expand


Code Block
{
    "volumes": {
        "links": [],
        "collection": []
    },
    "disks": {
        "links": [],
        "linkscollection": [
            {
                "titlelabel": "VMX_04",
                "relsequence":"machine" 0,
         "type":"application/vnd.abiquo.machine+json"       "sizeInMb": 64,
         "href":"https://38testing.bcn.abiquo.com:443/api/admin/datacenters/4/racks/4/machines/82"       }"diskFormatType": "VMDK_FLAT",
      {            "titlepath":"Abiquo-DC2-Neutron "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a/ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a65d4b10d-b8e2-42d4-93f0-ac470ecc2df2-flat.vmdk",
         "rel":"location",       "diskFileSize": 67108864,
                "typediskControllerType":"application/vnd.abiquo.datacenter+json "IDE",
         "href":"https://38testing.bcn.abiquo.com:443/api/cloud/locations/4"       },  "bus": 0,
   {             "titleunit":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e" 0,
         "rel":"edit",       "bootable": true,
          "type      "uuid":"application/vnd.abiquo.virtualmachine+json "65d4b10d-b8e2-42d4-93f0-ac470ecc2df2",
         "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120"       "links": []
 },       {    }
       "title":"send mail", ]
    },
    "relnics":"sendmail", {
        "type":"application/vnd.abiquo.mail+json""links": [],
         "href":"https://38testing.bcn.abiquo.com:443/api/admin/datacenters/4/racks/4/machines/82/virtualmachines/2120/action/sendmail"
collection": [
     },       {
                "titlemac":"MJEnterprise "00:50:56:14:4D:23",
         "rel":"enterprise"       "sequence": 0,
         "type":"application/vnd.abiquo.enterprise+json",          "href":"https://38testing.bcn.abiquo.com:443/api/admin/enterprises/74"tag": 3,
       },       {  "links": [
					{
       					"title":"MJ Admin "Capture_public_003",
         					"rel": "uservlan",
         					"type": "application/vnd.abiquo.uservlan+json",
         					"href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/enterprisesdatacenters/742/users/17network/8"
    				}
				],
				"ip": "192.168.56.3"
            },
      {      {
      "title":"vdc_for_capture",          "relmac":"virtualdatacenter "00:50:56:25:71:EE",
          "type":"application/vnd.abiquo.virtualdatacenter+json",      "sequence": 1,
                "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95"tag": 2,
            },    "links": [  {      
					{
    					"title": "vappAbiquo_vdcexternal_for_capture002",
            			"rel": "virtualappliancevlan",
            			"type": "application/vnd.abiquo.virtualappliancevlan+json",
				        "href": "https://mjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/1/limits/2/externalnetworks/7"
        			}
				],
				"hrefip": "https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292192.168.55.1"
      },      }
{        ]
   "title":"metadata" },
    "id": 174,
    "reluuid":"metadata "4e04e585-cf68-4223-b2a7-4feed06a7b9a",
    "name": "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
    "typelabel":"application/vnd.abiquo.metadata+json",
    "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
     "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/metadata"
"description": "",
    "ram": }48,
    "cpu": 1,
{    "vdrpPort": 5910,
      "titlevdrpIP":"vlan network configurations" "10.60.2.43",
    "vdrpEnabled": true,
    "idState": 4,
    "relstate": "configurationsON",
    "highDisponibility": 0,
    "typeidType":"application/vnd.abiquo.virtualmachinenetworkconfigurations+json" 0,
    "type": "NOT_MANAGED",
    "hrefpassword":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/network/configurations" "WatpDKTK",
      }"monitored": false,
      {"monitoringLevel": "DEFAULT",
    "variables": {},
     "titlecreationTimestamp":"nics" 1573129740000,
    "lastSynchronize": 1574090616000,
    "relfqdn": "nicsbox.localdomain",
    "generateGuestInitialPassword": false,
    "typeinternalProviderId":"application/vnd.abiquo.nics+json "vm-43761-at-10.60.11.242",
    "protected": false,
    "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/network/nics"
links": [
     },   {
   {            "title": "disksVMX_04",
            "rel": "harddisksmachine",
            "type": "application/vnd.abiquo.harddisksmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudadmin/virtualdatacentersdatacenters/952/virtualappliancesracks/292/virtualmachines/2120/storage/disks"2/machines/3"
        },
        {
            "title": "ONBCDC",
            "rel": "statelocation",
            "type": "application/vnd.abiquo.virtualmachinestatedatacenter+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/state"locations/2"
        },
        {
            "title": "virtualVMware machine undeployvCenter",
            "rel": "undeployhypervisortype",
            "type": "application/vnd.abiquo.acceptedrequesthypervisortype+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudconfig/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/action/undeployhypervisortypes/VMX_04"
        },
        {
            "title":"virtual machine deploy", "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
            "rel": "deployvirtualmachine",
            "type": "application/vnd.abiquo.acceptedrequestvirtualmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudadmin/virtualdatacentersdatacenters/952/virtualappliancesracks/2922/virtualmachinesmachines/21203/actionvirtualmachines/deploy174"
        },
        {
            "title":"virtual machine reset", "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
            "rel": "resetimported",
            "type": "application/vnd.abiquo.acceptedrequestvirtualmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudadmin/virtualdatacentersdatacenters/952/virtualappliancesracks/2922/virtualmachinesmachines/21203/actionvirtualmachines/reset174"
        },
        { 
          "title":"virtual machine snapshot "Linux_basic_cc",
          "rel": "instancecostcode",
          "type": "application/vnd.abiquo.acceptedrequestcostcode+json",
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudconfig/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/action/instance"
      },
      {  
         "title":"virtual machine restore backup",costcodes/1"
         "rel":"restorebackup",}
    ],
     "typebackuppolicies":"application/vnd.abiquo.acceptedrequest+json" [],
    "natrules": []
}


Request data:

Expand


Code Block
>   "href":"https://38testing.bcn.abiquo.com:443/POST /api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/2120/action/restorebackup"
      },
      {  
         "title":"remote access",
         "rel":"rdpaccess",
         "type":"text/plain",
         "href":"https://38testing HTTP/1.1
> Host: mjsabiquo.bcn.abiquo.com
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.54.0
> Content-Type:application/vnd.abiquo.virtualmachineflat+json;version=4.7
> Accept:application/vnd.abiquo.virtualmachineflat+json;version=4.7
> Content-Length: 3953
> Expect: 100-continue
> 
< HTTP/1.1 100 Continue
< HTTP/1.1 201 201
< Date: Mon, 18 Nov 2019 17:55:08 GMT
< Server: Apache
< Set-Cookie: ABQSESSIONID=2078924513564989059; Max-Age=1800; Expires=Mon, 18-Nov-2019 18:25:08 GMT; Path=/; Secure; HttpOnly
< X-Abiquo-TracerContext: 1ca991fc-daf5-49e7-822e-c73ec93974d7
< X-Abiquo-Token: 9a5a5c937821bb44506d654af977b90a2ef41162673dd12502e52cd82e2e5661
< Location: https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/2120/config/rdpaccess"
      },
      174
< Content-Type: application/vnd.abiquo.virtualmachineflat+json; version=4.7
< Transfer-Encoding: chunked
< 


Response payload:

Expand


Code Block
{
  "volumes": {
    "links": [],
     "titlecollection":"tasks", []
    },
   "reldisks":"tasks", {
    "links": [],
    "typecollection":"application/vnd.abiquo.tasks+json",
 [
        "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/tasks"{
        "id": }41,
      {  "label": "",
        "titlesequence":"firewalls",
 0,
        "sizeInMb": 64,
        "reldiskFormatType": "firewallsVMDK_FLAT",
         "typepath":"application/vnd.abiquo.links+json "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a/ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a65d4b10d-b8e2-42d4-93f0-ac470ecc2df2-flat.vmdk",
         "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/firewalls"diskFileSize": 67108864,
         }"diskControllerType": "IDE",
      {  "bus": 0,
        "titleunit":"load balancers"0,
         "relbootable":"loadbalancers" true,
         "typeuuid":"application/vnd.abiquo.loadbalancers+json "65d4b10d-b8e2-42d4-93f0-ac470ecc2df2",
         "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/loadbalancers"
links": [
     },      {
{            "title": "volumesvmware_vdc_01",
            "rel": "volumesvirtualdatacenter",
            "type": "application/vnd.abiquo.volumesvirtualdatacenter+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/storage/volumes"3"
          },
          {
           "title":"metrics", "diskControllerType": "IDE",
            "diskLabel": "",
            "rel": "metricsdisk0",
            "type": "application/vnd.abiquo.metricsharddisk+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/292/virtualmachines/2120/metricsdisks/41"
          },
          {
            "title": "metricsmetadatadisk",
            "rel": "metricsmetadatadisk",
            "type": "application/vnd.abiquo.metricsmetadatadisk+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudadmin/enterprises/virtualdatacenters1/95datacenterrepositories/virtualappliances2/292virtualmachinetemplates/virtualmachines215/2120disks/metrics268"
          },
          {
            "title":"createcustommetric "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
            "rel": "createcustommetricvirtualmachine",
            "type": "application/vnd.abiquo.custommetricvirtualmachine+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/2120/metrics174"
          },
          {
            "title": "enablemonitoringDefault Tier",
            "rel": "enablemonitoring",datastoretier",
            "type": "application/vnd.abiquo.datastoretier+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenterslocations/952/virtualappliances/292/virtualmachines/2120/enablemonitoringdatastoretiers/2"
      },    }
   {     ]
      "title":"collectd",}
    ]
  },
  "relnics":"collectd", {
    "links": [],
    "typecollection":"application/json", [
      {
  "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/collectd"      "id": }16,
      {  "ip": "192.168.55.1",
        "mac": "title":"alarms00:50:56:25:71:EE",
         "relsequence":"alarms" 1,
         "typetag":"application/vnd.abiquo.alarms+json" 2,
         "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/alarms"
links": [
     },     {
 {            "title":"protect "00:50:56:25:71:EE",
            "rel": "protectself",
            "type": "text/plainapplication/vnd.abiquo.nic+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/174/2120network/actionnics/protect16"
          },
          {
            "title": "192.168.55.1",
   "title":"unprotect",          "rel": "unprotectedit",
            "type": "text/plainapplication/vnd.abiquo.externalip+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudadmin/virtualdatacentersenterprises/951/virtualapplianceslimits/2922/virtualmachinesexternalnetworks/21207/actionips/unprotect16"
          },
          {
            "title": "metricsAbiquo_external_002",
            "rel": "metricsexternalnetwork",
            "type": "application/vnd.abiquo.metricsvlan+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudadmin/virtualdatacentersenterprises/951/virtualapplianceslimits/2922/virtualmachinesexternalnetworks/2120/metrics"7"
          }
          }]
      },
      {
        "id": 30,
      {  "ip": "192.168.56.3",
        "titlemac":"metricsmetadata "00:50:56:14:4D:23",
         "relsequence":"metricsmetadata" 0,
         "typetag":"application/vnd.abiquo.metricsmetadata+json",
 3,
        "href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/metrics"
links": [
     },     {
 {            "title":"createcustommetric "00:50:56:14:4D:23",
            "rel": "createcustommetricself",
            "type": "application/vnd.abiquo.custommetricnic+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/2120/metrics"174/network/nics/30"
          },
          {
            "title":"enablemonitoring "192.168.56.3",
            "rel": "enablemonitoringedit",
            "type": "application/vnd.abiquo.publicip+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliancespublicips/292/virtualmachines/2120/enablemonitoringpurchased/30"
          },
          {
            "title": "collectdCapture_public_003",
            "rel": "collectdpublicnetwork",
            "type": "application/vnd.abiquo.vlan+json",
            "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloudadmin/virtualdatacentersdatacenters/952/virtualappliances/292/virtualmachines/2120/collectd"network/8"
          }
        ]
      },
    ]
 { },
  "id": 174,
  "uuid": "4e04e585-cf68-4223-b2a7-4feed06a7b9a",
  "titlename":"alarms "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
  "label": "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
  "description": "",
  "relram":"alarms" 48,
  "cpu": 1,
  "vdrpPort": 5910,
  "typevdrpIP":"application/vnd.abiquo.alarms+json "10.60.2.43",
  "vdrpEnabled": true,
  "idState": 4,
  "hrefstate":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/virtualappliances/292/virtualmachines/2120/alarms" "ON",
  "highDisponibility": 0,
  }"idType": 0,
      {"type": "CAPTURED",
  "password": "WatpDKTK",
  "monitored": false,
   "titlemonitoringLevel": "ESXiDEFAULT",
  "variables": {},
     "relcreationTimestamp":"hypervisortype" 1573129740000,
  "lastSynchronize": 1574099702000,
     "typefqdn": "application/vnd.abiquo.hypervisortype+jsonbox.localdomain",
    "generateGuestInitialPassword": false,
    "hrefinternalProviderId":"https://38testing.bcn.abiquo.com:443/api/config/hypervisortypes/VMX_04"
      },
  "vm-43761-at-10.60.11.242",
  "protected": false,
  "links": [
    { 
          "title": "ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e_image",
  VMX_04",
      "rel": "virtualmachinetemplatemachine",
         "type": "application/vnd.abiquo.virtualmachinetemplatemachine+json",

        "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/enterprisesdatacenters/742/datacenterrepositoriesracks/42/virtualmachinetemplatesmachines/3743"
 
    },
      {  

        "title": "OthersBCDC",
         "rel": "categorylocation",

        "type": "application/vnd.abiquo.categorydatacenter+json",
 
       "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/configcloud/categorieslocations/12"
 
    },
   ], {
  "id":2120,    "nametitle":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e "Abiquo",
      "descriptionrel": "enterprise",
      "ramtype":64,    "cpu":1,
"application/vnd.abiquo.enterprise+json",
  "vdrpPort":5001,    "vdrpIPhref": "192.168.2.61",https://mjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/1"
    "vdrpEnabled":true,
},
    {
  "idState":4,    "statetitle":"ON "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a",
      "highDisponibilityrel":0 "edit",
   "idType":0,
   "type":"CAPTURED "application/vnd.abiquo.virtualmachine+json",
      "passwordhref":"xeAbSLP6", "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174"
    "uuid":"40e8cdbc-b541-411b-8765-f645b95ee73e"},
   "label":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e",
 {
  "monitored":false,    "monitoringLeveltitle": "DEFAULTsend mail",
   "variables":{},    "volumesrel":{ "sendmail",
      "type": "links":[]application/vnd.abiquo.mail+json",
      "collection":[]href": "https://mjsabiquo.bcn.abiquo.com:443/api/admin/datacenters/2/racks/2/machines/3/virtualmachines/174/action/sendmail"
    },
   "disks": {
      "title": "Cloud Administrator"links":[],
      "collectionrel":[ "user",
      "type": "application/vnd.abiquo.user+json",
  {               "links":[  
"href": "https://mjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/1/users/1"
    },
    {
      "title": "vmware_vdc_01",
 {     "rel": "virtualdatacenter",
      "type": "application/vnd.abiquo.virtualdatacenter+json",
      "titlehref":"vdc_for_capture", "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3"
    },
      {
      "reltitle": "virtualdatacentervmware_vapp_01",
      "rel": "virtualappliance",
          "type": "application/vnd.abiquo.virtualdatacentervirtualappliance+json",
        
         "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95"
               },
     3/virtualappliances/3"
    },
    {
      "title": "metadata",
            "rel": "disk0metadata",
     
            "type": "application/vnd.abiquo.harddiskmetadata+json",
                  "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/disks/4582"
     3/virtualappliances/3/virtualmachines/174/metadata"
         },
    {
      "title": "vlan network configurations",
{      "rel": "configurations",
      "type": "application/vnd.abiquo.virtualmachinenetworkconfigurations+json",
      "titlehref":"disk",
 "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/network/configurations"
    },
     {
      "reltitle": "disknics",
         "rel": "nics",
        "type": "application/vnd.abiquo.disknics+json",
                  "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admincloud/enterprisesvirtualdatacenters/743/datacenterrepositoriesvirtualappliances/43/virtualmachinetemplatesvirtualmachines/374174/disksnetwork/559"
        nics"
      },
               { 
                   "title":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e",
           "disks",
       "rel": "virtualmachineharddisks",
                  "type": "application/vnd.abiquo.virtualmachineharddisks+json",
          ,
       "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/2120"
         174/storage/disks"
     },
               {
                    "title": "nardotier_DC2ON",
                  "rel": "datastoretierstate",
                  "type": "application/vnd.abiquo.datastoretiervirtualmachinestate+json",
                  "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/locationsvirtualappliances/43/datastoretiers/5"
               }
            ],
   virtualmachines/174/state"
        "id":4582},
    {
       "sizeInMbtitle":100, "virtual            "sequence":0machine undeploy",
            "diskFormatType"rel": "VMDK_FLATundeploy",
            "label"type": "application/vnd.abiquo.acceptedrequest+json",
            "path"href":"ABQ_40e8cdbc-b541-411b-8765-f64/ABQ_40e8cdbc-b541-411b-8765-f64ddc37bae-34f5-4112-a3b2-80150b83d344-flat.vmdk",
      "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/action/undeploy"
      "diskFileSize":104857600},
    {
       "diskControllerTypetitle": "SCSIvirtual machine deploy",
   
        "diskControllerrel": "lsilogicdeploy",
            "bus"type":0,
            "unit":0,
"application/vnd.abiquo.acceptedrequest+json",
           "bootablehref":true
    "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/action/deploy"
     },
   
     {
              "links"title":[ "virtual 
               {machine reset",
      "rel": "reset",
      "type": "application/vnd.abiquo.acceptedrequest+json",
      "titlehref":"vdc_for_capture", "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/action/reset"
    },
    {
        "reltitle": "virtualdatacentervirtual machine snapshot",
      "rel": "instance",
          "type": "application/vnd.abiquo.virtualdatacenteracceptedrequest+json",
       
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95"
               },
    /3/virtualappliances/3/virtualmachines/174/action/instance"
    },
     {
      "title": "remote access",
           "rel": "disk1rdpaccess",
   
              "type": "application/vnd.abiquo.harddiskvirtualmachineconsole+json",

                 "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/disks/4583"
 3/virtualappliances/3/virtualmachines/174/config/rdpaccess"
             },
    {
      "title": "tasks",
  {    "rel": "tasks",
        "type": "application/vnd.abiquo.tasks+json",
      "titlehref":"disk",
  "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/tasks"
    },
    {
      "reltitle": "diskfirewalls",
           "rel": "firewalls",
      "type": "application/vnd.abiquo.disklinks+json",
 
                "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admincloud/enterprisesvirtualdatacenters/743/datacenterrepositoriesvirtualappliances/43/virtualmachinetemplatesvirtualmachines/374174/disks/560firewalls"
               },
               {  

                 "title":"ABQ_40e8cdbc-b541-411b-8765-f645b95ee73e",
           "load balancers",
       "rel": "virtualmachineloadbalancers",
                  "type": "application/vnd.abiquo.virtualmachineloadbalancers+json",
           
      "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/2120"
        174/loadbalancers"
      },
  
            {
                    "title": "nardotier_DC2",request on          demand backup",
       "rel": "datastoretierrequestbackup",
                  "type": "application/vnd.abiquo.datastoretierondemandbackup+json",
                  "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/locations/4/datastoretiers/5"
               }
            ],
 /virtualdatacenters/3/virtualappliances/3/virtualmachines/174/backup/action/request"
          "id":4583},
     {
      "sizeInMbtitle":120, "request a restore of         "sequence":1,
 a backup",
          "diskFormatTyperel": "VMDK_FLATrequestrestore",

           "labeltype": "application/vnd.abiquo.restore+json",

           "pathhref":"ABQ_40e8cdbc-b541-411b-8765-f64/ABQ_40e8cdbc-b541-411b-8765-f64-flat.vmdk",
       "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/backup/action/restore"
     "diskFileSize":125829120},
    {
       "diskControllerTypetitle": "SCSI",move VM to a virtual  appliance",
      "diskControllerrel": "lsilogicvappmove",
            "bus":0"type": "application/vnd.abiquo.links+json",
      "href": "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/action/vappmove"
    "unit":1},
    {
       "bootabletitle":true "move VM to another virtual datacenter",
   }   "rel": "move",
  ]    },
   "nics"type":{  
      "links":[]"application/vnd.abiquo.movevm+json",
      "collectionhref":[  "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/action/move"
    },
     {  
            "links"title":[ "relocate candidates",
      "rel": "relocatecandidates",
       {"type": "application/vnd.abiquo.links+json",
                    "title"href": "00:50:56:3D:CF:A9",https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/action/relocatecandidates"
    },
    {
        "reltitle": "selfrelocate",
      "rel": "relocate",
          "type": "application/vnd.abiquo.nicacceptedrequest+json",
       
          "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/2120174/networkaction/nics/4502relocate"
               },
    {
      "title": "volumes",
  {    "rel": "volumes",
      "type": "application/vnd.abiquo.volumes+json",
       "titlehref": "10.10.10.2",https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/storage/volumes"
    },
    {
        "reltitle": "editprotect",
           
      "typerel":"application/vnd.abiquo.publicip+json "protect",
        "type": "text/plain",
         "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/95/publicips/purchased/45023/virtualappliances/3/virtualmachines/174/action/protect"
               },
               {
                    "title": "mj_public_networkunprotect",
                  "rel": "publicnetworkunprotect",
         
        "type": "application/vnd.abiquo.vlan+jsontext/plain",
                  "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admin/datacenters/4/network/328"
       /api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/action/unprotect"
       },
    {
       ]"title": "metricsmetadata",
            "id":4502"rel": "metricsmetadata",
            "ip"type": "10application/vnd.10.10.2abiquo.metricsmetadata+json",
            "mac"href": "00:50:56:3D:CF:A9",https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/metrics"
            "sequence":0},
    {
       "tagtitle":10
         },
  "enablemonitoring",
       {"rel": "enablemonitoring",
      "type": "",
      "linkshref":[  "https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/enablemonitoring"
    },
    {
      { "title": "collectd",
      "rel": "collectd",
      "type": "application/json",
      "titlehref": "00:50:56:30:08:77",https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/3/virtualmachines/174/metrics/collectd"
    },
    {
        "reltitle": "selfalarmssearch",
          "rel": "alarmssearch",
       "type": "application/vnd.abiquo.nicalarms+json",

                 "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/953/virtualappliances/2923/virtualmachines/2120/network/nics/4528174/alarms"
               },

              {  
                  "title":"10.10.2.3 "clone",
   
              "rel": "editclone",

                 "type": "application/vnd.abiquo.externalipvirtualmachinecloneoptions+json",
          
       "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/admincloud/enterprisesvirtualdatacenters/743/limitsvirtualappliances/403/externalnetworksvirtualmachines/331174/ips/4528"
        action/clone"
      },
 
             {  
       
          "title":"mj_external "VMware vCenter",

                 "rel": "externalnetworkhypervisortype",
                  "type": "application/vnd.abiquo.vlanhypervisortype+json",

                 "href": "https://38testingmjsabiquo.bcn.abiquo.com:443/api/adminconfig/enterprises/74/limits/40/externalnetworks/331"
      hypervisortypes/VMX_04"
        },
    {
       ]"title": "ABQ_4e04e585-cf68-4223-b2a7-4feed06a7b9a_image",
            "id":4528,
     "rel": "virtualmachinetemplate",
      "iptype": "10application/vnd.10.2.3abiquo.virtualmachinetemplate+json",
    
       "machref": "00:50:56:30:08:77"https://mjsabiquo.bcn.abiquo.com:443/api/admin/enterprises/1/datacenterrepositories/2/virtualmachinetemplates/215"
    },
    {
      "title": "sequenceOthers":1,
      "rel": "category",
      "tagtype":2
 "application/vnd.abiquo.category+json",
      "href":  }"https://mjsabiquo.bcn.abiquo.com:443/api/config/categories/1"
    }
  ],
   },
"backuppolicies": [],
  "protectednatrules":false []
}