Abiquo Documentation Cookies Policy

Our Documentation website uses cookies to improve your experience. Please visit our Cookie Policy page for more information about cookies and how we use them.


Abiquo 4.4

Skip to end of metadata
Go to start of metadata

Contents:

UsersResource

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/enterprises/{enterprise}/users

Exposed Methods

List users of an enterprise

Get the users of an enterprise

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/users
Roles Required: AUTHENTICATED,USERS_VIEW,USERS_MANAGE_USERS,USERS_MANAGE_OTHER_ENTERPRISES
Request Headers: Accept: application/vnd.abiquo.users+json; version=4.4; application/vnd.abiquo.users+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

startwith

false

0

The first element to be retrieved of the filtered search.

limit

false

25

The number of entities to retrieve.

has

false

""

A way to filter the search.

by

false

name

Sort preference. Depends on the resource, this value affects different to the request.

asc

false

true

If the value of the 'by' parameter must be sorted in ascending way (true) or descending way (false)

connected

false

 

true to search for currently connected users

activatedfalse true to search for activated users, false to search for locked users

Request Message Body Entity:
Response Message Body Entity: Users Media Type
Request Example:

 Click here to expand...

GET_adm_ents_X_users_AC_users_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/36/users \ 
	 -H 'Accept:application/vnd.abiquo.users+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "totalSize": 2, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/36/users?limit=25&by=name&asc=true", 
      "rel": "first"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/36/users?startwith=0&limit=25&by=name&asc=true", 
      "rel": "last"
    }
  ], 
  "collection": [
    {
      "authType": "ABIQUO", 
      "surname": "85", 
      "name": "84", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/36", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "87"
        }, 
        {
          "href": "http://localhost:9009/api/admin/roles/40", 
          "type": "application/vnd.abiquo.role+json", 
          "rel": "role", 
          "title": "83"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/36/users/39", 
          "type": "application/vnd.abiquo.user+json", 
          "rel": "edit", 
          "title": "simpleuser"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/35", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/36/users/39/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/36/users/39/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/36/users/39/applications", 
          "type": "application/vnd.abiquo.applications+json", 
          "rel": "applications", 
          "title": "applications"
        }
      ], 
      "locale": "86", 
      "email": "abc@example.com", 
      "nick": "simpleuser", 
      "firstLogin": false, 
      "active": true, 
      "locked": false, 
      "id": 39
    }, 
    {
      "authType": "ABIQUO", 
      "surname": "91", 
      "name": "90", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/36", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "87"
        }, 
        {
          "href": "http://localhost:9009/api/admin/roles/41", 
          "type": "application/vnd.abiquo.role+json", 
          "rel": "role", 
          "title": "88"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/36/users/40", 
          "type": "application/vnd.abiquo.user+json", 
          "rel": "edit", 
          "title": "92"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/34", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/36/users/40/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/36/users/40/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/36/users/40/applications", 
          "type": "application/vnd.abiquo.applications+json", 
          "rel": "applications", 
          "title": "applications"
        }
      ], 
      "locale": "93", 
      "email": "abc@example.com", 
      "nick": "92", 
      "firstLogin": false, 
      "active": true, 
      "locked": false, 
      "id": 40
    }
  ]
}

List users of an enterprise that are activated

 Click here to show or hide the request example

 

GET_adm_ents_X_users_AC_users_j_activated_T.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/1427/users?activated=true \ 
	 -H 'Accept:application/vnd.abiquo.users+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "totalSize": 1, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1427/users?activated=true&limit=25&by=name&asc=true", 
      "rel": "first"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1427/users?activated=true&startwith=0&limit=25&by=name&asc=true", 
      "rel": "last"
    }
  ], 
  "collection": [
    {
      "authType": "ABIQUO", 
      "surname": "652", 
      "name": "651", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/1427", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "647"
        }, 
        {
          "href": "http://localhost:9009/api/admin/roles/1041", 
          "type": "application/vnd.abiquo.role+json", 
          "rel": "role", 
          "title": "649"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1427/users/1159", 
          "type": "application/vnd.abiquo.user+json", 
          "rel": "edit", 
          "title": "653"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/1103", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1427/users/1159/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1427/users/1159/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1427/users/1159/applications", 
          "type": "application/vnd.abiquo.applications+json", 
          "rel": "applications", 
          "title": "applications"
        }
      ], 
      "locale": "654", 
      "email": "abc@example.com", 
      "nick": "653", 
      "firstLogin": false, 
      "active": true, 
      "locked": false, 
      "id": 1159
    }
  ]
}

List users of an enterprise XML

 Click here to expand...

GET_adm_ents_X_users_AC_users_x.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/1451/users \ 
	 -H 'Accept:application/vnd.abiquo.users+xml; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

<users>
  <link rel="first" href="http://localhost:9009/api/admin/enterprises/1451/users?limit=25&amp;by=name&amp;asc=true"/>
  <link rel="last" href="http://localhost:9009/api/admin/enterprises/1451/users?startwith=0&amp;limit=25&amp;by=name&amp;asc=true"/>
  <totalSize>1</totalSize>
  <user>
    <link title="875" rel="enterprise" type="application/vnd.abiquo.enterprise+xml" href="http://localhost:9009/api/admin/enterprises/1451"/>
    <link title="877" rel="role" type="application/vnd.abiquo.role+xml" href="http://localhost:9009/api/admin/roles/1064"/>
    <link title="881" rel="edit" type="application/vnd.abiquo.user+xml" href="http://localhost:9009/api/admin/enterprises/1451/users/1200"/>
    <link title="Global scope" rel="scope" type="application/vnd.abiquo.scope+xml" href="http://localhost:9009/api/admin/scopes/1119"/>
    <link title="virtual machines" rel="virtualmachines" type="application/vnd.abiquo.virtualmachines+xml" href="http://localhost:9009/api/admin/enterprises/1451/users/1200/action/virtualmachines"/>
    <link title="pending tasks" rel="pendingtasks" type="application/vnd.abiquo.tasks+xml" href="http://localhost:9009/api/admin/enterprises/1451/users/1200/action/pendingtasks"/>
    <link title="applications" rel="applications" type="application/vnd.abiquo.applications+xml" href="http://localhost:9009/api/admin/enterprises/1451/users/1200/applications"/>
    <id>1200</id>
    <nick>881</nick>
    <name>879</name>
    <surname>880</surname>
    <email>abc@example.com</email>
    <locale>882</locale>
    <authType>ABIQUO</authType>
    <active>true</active>
    <firstLogin>false</firstLogin>
    <locked>false</locked>
  </user>
</users>

 

List users of an enterprise with roles

Retrieve users and roles

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/users
Roles Required: AUTHENTICATED,USERS_VIEW,USERS_MANAGE_USERS,USERS_MANAGE_OTHER_ENTERPRISES
Request Headers: Accept: application/vnd.abiquo.userswithroles+json; version=4.4; application/vnd.abiquo.userswithroles+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

startwith

false

0

The first element to be retrieved of the filtered search.

limit

false

25

The number of entities to retrieve.

has

false

""

A way to filter the search.

by

false

name

Sort preference. Depends on the resource, this value affects different to the request.

asc

false

true

If the value of the 'by' parameter must be sorted in ascending way (true) or descending way (false)

connected

false

 

true to search for currently connected users

Request Message Body Entity:
Response Message Body Entity: UsersWithRoles Media Type
Request Example:

 Click here to show or hide the request example

GET_adm_ents_X_users_AC_userswroles_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/1454/users \ 
	 -H 'Accept:application/vnd.abiquo.userswithroles+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "totalSize": 1, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1454/users?limit=25&by=name&asc=true", 
      "rel": "first"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1454/users?startwith=0&limit=25&by=name&asc=true", 
      "rel": "last"
    }
  ], 
  "collection": [
    {
      "authType": "ABIQUO", 
      "surname": "904", 
      "name": "903", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/1454", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "899"
        }, 
        {
          "href": "http://localhost:9009/api/admin/roles/1067", 
          "type": "application/vnd.abiquo.role+json", 
          "rel": "role", 
          "title": "901"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1454/users/1204", 
          "type": "application/vnd.abiquo.user+json", 
          "rel": "edit", 
          "title": "905"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/1121", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1454/users/1204/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1454/users/1204/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1454/users/1204/applications", 
          "type": "application/vnd.abiquo.applications+json", 
          "rel": "applications", 
          "title": "applications"
        }
      ], 
      "locale": "906", 
      "id": 1204, 
      "nick": "905", 
      "firstLogin": false, 
      "role": {
        "name": "901", 
        "links": [
          {
            "href": "http://localhost:9009/api/admin/roles/1067", 
            "type": "application/vnd.abiquo.role+json", 
            "rel": "edit", 
            "title": "901"
          }, 
          {
            "href": "http://localhost:9009/api/admin/roles/1067/action/privileges", 
            "type": "application/vnd.abiquo.privileges+json", 
            "rel": "privileges", 
            "title": "privileges"
          }
        ], 
        "privileges": {
          "links": [], 
          "collection": [
            {
              "name": "AUTHENTICATED", 
              "events": [
                "APPLICATION_CREATE", 
                "APPLICATION_DELETE", 
                "SESSION_LOGIN", 
                "SESSION_LOGOUT", 
                "TASK_FIND"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88326", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "AUTHENTICATED"
                }
              ], 
              "id": 88326
            }, 
            {
              "name": "APPLIB_ALLOW_MODIFY", 
              "events": [
                "DISK_AVAILABLE", 
                "DISK_CONVERSION_AVAILABLE", 
                "DISK_CONVERSION_CREATED_IN_REPO", 
                "DISK_COPY_FROM_TEMPLATE", 
                "DISK_COPY_FROM_TEMPLATE_START", 
                "DISK_CREATE", 
                "DISK_CREATED_IN_REPO", 
                "DISK_CREATE_FROM_DEF_FINISH", 
                "DISK_CREATE_FROM_INST_FINISH", 
                "DISK_DELETE", 
                "DISK_MODIFY", 
                "DISK_PERSISTENT_DELETE", 
                "DISK_REPLACE", 
                "DISK_UNAVAILABLE", 
                "TEMPLATE_DEFINITION_LIST_CREATE", 
                "TEMPLATE_DEFINITION_LIST_DELETE", 
                "TEMPLATE_DEFINITION_LIST_MODIFY", 
                "VIRTUAL_IMAGE_CONVERSION_AVAILABLE", 
                "VIRTUAL_IMAGE_CONVERSION_CONVERSION", 
                "VIRTUAL_IMAGE_CONVERSION_CONVERSION_FINISH", 
                "VIRTUAL_IMAGE_CONVERSION_CONVERSION_INSTANCE_FINISH", 
                "VIRTUAL_IMAGE_CONVERSION_CONVERSION_TASK_ENQUEUE", 
                "VIRTUAL_IMAGE_CONVERSION_CREATED_IN_REPO", 
                "VIRTUAL_IMAGE_CONVERSION_UNAVAILABLE", 
                "VIRTUAL_MACHINE_TEMPLATE_AVAILABLE", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATED_IN_REPO", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATE_FROM_DEF_FINISH", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATE_FROM_DEF_START", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATE_FROM_INST_FINISH", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATE_FROM_INST_START", 
                "VIRTUAL_MACHINE_TEMPLATE_DELETE", 
                "VIRTUAL_MACHINE_TEMPLATE_DISK_COPY_FROM_TEMPLATE_FINISH", 
                "VIRTUAL_MACHINE_TEMPLATE_EXPORT_TASK_ENQUEUE", 
                "VIRTUAL_MACHINE_TEMPLATE_IMPORTED_IN_REPO", 
                "VIRTUAL_MACHINE_TEMPLATE_MODIFY", 
                "VIRTUAL_MACHINE_TEMPLATE_MODIFY_RECOMMENDED_HP", 
                "VIRTUAL_MACHINE_TEMPLATE_UNAVAILABLE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88327", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_ALLOW_MODIFY"
                }
              ], 
              "id": 88327
            }, 
            {
              "name": "APPLIB_DOWNLOAD_IMAGE", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88328", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_DOWNLOAD_IMAGE"
                }
              ], 
              "id": 88328
            }, 
            {
              "name": "APPLIB_MANAGE_CATEGORIES", 
              "events": [
                "CATEGORY_CREATE", 
                "CATEGORY_DELETE", 
                "CATEGORY_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88329", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_MANAGE_CATEGORIES"
                }
              ], 
              "id": 88329
            }, 
            {
              "name": "APPLIB_MANAGE_GLOBAL_CATEGORIES", 
              "events": [
                "CATEGORY_CREATE", 
                "CATEGORY_DELETE", 
                "CATEGORY_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88330", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_MANAGE_GLOBAL_CATEGORIES"
                }
              ], 
              "id": 88330
            }, 
            {
              "name": "APPLIB_MANAGE_REPOSITORY", 
              "events": [
                "DATACENTER_REPOSITORY_REFRESH", 
                "VIRTUAL_IMAGE_CONVERSION_CREATED_IN_REPO", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATED_IN_REPO"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88331", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_MANAGE_REPOSITORY"
                }
              ], 
              "id": 88331
            }, 
            {
              "name": "APPLIB_SHOW_DC_CAPACITY", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88332", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_SHOW_DC_CAPACITY"
                }
              ], 
              "id": 88332
            }, 
            {
              "name": "APPLIB_UPLOAD_IMAGE", 
              "events": [
                "VIRTUAL_IMAGE_CONVERSION_AVAILABLE", 
                "VIRTUAL_IMAGE_CONVERSION_CONVERSION", 
                "VIRTUAL_IMAGE_CONVERSION_CONVERSION_FINISH", 
                "VIRTUAL_IMAGE_CONVERSION_CONVERSION_TASK_ENQUEUE", 
                "VIRTUAL_IMAGE_CONVERSION_CREATED_IN_REPO", 
                "VIRTUAL_IMAGE_CONVERSION_UNAVAILABLE", 
                "VIRTUAL_MACHINE_TEMPLATE_AVAILABLE", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATED_IN_REPO", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATE_FROM_DEF_FINISH", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATE_FROM_DEF_START", 
                "VIRTUAL_MACHINE_TEMPLATE_UNAVAILABLE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88333", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_UPLOAD_IMAGE"
                }
              ], 
              "id": 88333
            }, 
            {
              "name": "APPLIB_VIEW", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88334", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_VIEW"
                }
              ], 
              "id": 88334
            }, 
            {
              "name": "APPLIB_VM_COST_CODE", 
              "events": [
                "VIRTUAL_MACHINE_TEMPLATE_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88335", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_VM_COST_CODE"
                }
              ], 
              "id": 88335
            }, 
            {
              "name": "APPLIB_EXPORT_TO_PUBLIC", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88336", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_EXPORT_TO_PUBLIC"
                }
              ], 
              "id": 88336
            }, 
            {
              "name": "APPLIB_EXPORT_TO_PRIVATE", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88337", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_EXPORT_TO_PRIVATE"
                }
              ], 
              "id": 88337
            }, 
            {
              "name": "APPLIB_DOWNLOAD_FROM_REMOTE_REPOSITORY", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88338", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_DOWNLOAD_FROM_REMOTE_REPOSITORY"
                }
              ], 
              "id": 88338
            }, 
            {
              "name": "ENTERPRISE_ADMINISTER_ALL", 
              "events": [
                "USER_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88339", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "ENTERPRISE_ADMINISTER_ALL"
                }
              ], 
              "id": 88339
            }, 
            {
              "name": "ENTERPRISE_ENUMERATE", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88340", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "ENTERPRISE_ENUMERATE"
                }
              ], 
              "id": 88340
            }, 
            {
              "name": "ENTERPRISE_RESOURCE_SUMMARY_ENT", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88341", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "ENTERPRISE_RESOURCE_SUMMARY_ENT"
                }
              ], 
              "id": 88341
            }, 
            {
              "name": "ENTERPRISE_SHOW_STATS_LIMITS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88342", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "ENTERPRISE_SHOW_STATS_LIMITS"
                }
              ], 
              "id": 88342
            }, 
            {
              "name": "EVENTLOG_VIEW_ALL", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88343", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "EVENTLOG_VIEW_ALL"
                }
              ], 
              "id": 88343
            }, 
            {
              "name": "EVENTLOG_VIEW_ENTERPRISE", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88344", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "EVENTLOG_VIEW_ENTERPRISE"
                }
              ], 
              "id": 88344
            }, 
            {
              "name": "ASSIGN_FIREWALLS", 
              "events": [
                "VIRTUAL_MACHINE_FIREWALL_POLICY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88345", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "ASSIGN_FIREWALLS"
                }
              ], 
              "id": 88345
            }, 
            {
              "name": "MANAGE_FIREWALLS", 
              "events": [
                "FIREWALL_POLICY_CREATE", 
                "FIREWALL_POLICY_DELETE", 
                "FIREWALL_POLICY_MODIFY", 
                "FIREWALL_POLICY_RULES_MODIFY", 
                "FIREWALL_POLICY_VIRTUAL_MACHINES"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88346", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_FIREWALLS"
                }
              ], 
              "id": 88346
            }, 
            {
              "name": "ASSIGN_LOADBALANCERS", 
              "events": [
                "LOAD_BALANCER_SYNCH_VIRTUAL_MACHINES", 
                "LOAD_BALANCER_SYNCH_VIRTUAL_MACHINES_DELETE", 
                "LOAD_BALANCER_VIRTUAL_MACHINES"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88347", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "ASSIGN_LOADBALANCERS"
                }
              ], 
              "id": 88347
            }, 
            {
              "name": "MANAGE_LOADBALANCERS", 
              "events": [
                "HEALTH_CHECK_CREATE", 
                "HEALTH_CHECK_DELETE", 
                "HEALTH_CHECK_MODIFY", 
                "LOAD_BALANCER_CREATE", 
                "LOAD_BALANCER_DELETE", 
                "LOAD_BALANCER_MODIFY", 
                "LOAD_BALANCER_SYNCH_CREATE", 
                "LOAD_BALANCER_SYNCH_DELETE", 
                "LOAD_BALANCER_SYNCH_MODIFY", 
                "LOAD_BALANCER_SYNCH_VIRTUAL_MACHINES", 
                "LOAD_BALANCER_SYNCH_VIRTUAL_MACHINES_DELETE", 
                "LOAD_BALANCER_ADDRESS_CREATE", 
                "LOAD_BALANCER_ADDRESS_DELETE", 
                "LOAD_BALANCER_ADDRESS_MODIFY", 
                "ROUTING_RULE_CREATE", 
                "ROUTING_RULE_DELETE", 
                "ROUTING_RULE_MODIFY", 
                "SSL_CERTIFICATE_CREATE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88348", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_LOADBALANCERS"
                }
              ], 
              "id": 88348
            }, 
            {
              "name": "MANAGE_FLOATINGIPS", 
              "events": [
                "PUBLIC_IP_CREATE_FLOATINGIP", 
                "PUBLIC_IP_CREATE_IMPORT_FLOATINGIP", 
                "PUBLIC_IP_CREATE_IMPORT_UNAVAILABLE_FLOATINGIP", 
                "PUBLIC_IP_RELEASE_FLOATINGIP", 
                "PUBLIC_IP_RELEASE_IMPORT_FLOATINGIP", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_FLOATINGIP_ADDED"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88349", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_FLOATINGIPS"
                }
              ], 
              "id": 88349
            }, 
            {
              "name": "MANAGE_HARD_DISKS", 
              "events": [
                "HARD_DISK_CREATE", 
                "HARD_DISK_DELETE", 
                "HARD_DISK_MODIFY", 
                "HARD_DISK_MODIFY_PRIMARY", 
                "HARD_DISK_RESIZE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88350", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_HARD_DISKS"
                }
              ], 
              "id": 88350
            }, 
            {
              "name": "PHYS_DC_ALLOW_BACKUP_CONFIG", 
              "events": [
                "BACKUP_MANAGER_CREATE", 
                "BACKUP_MANAGER_DELETE", 
                "BACKUP_MANAGER_MODIFY", 
                "BACKUP_POLICY_ALLOW", 
                "BACKUP_POLICY_CREATE", 
                "BACKUP_POLICY_DELETE", 
                "BACKUP_POLICY_MODIFY", 
                "BACKUP_POLICY_RESTRICT"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88351", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_ALLOW_BACKUP_CONFIG"
                }
              ], 
              "id": 88351
            }, 
            {
              "name": "PHYS_DC_ALLOW_MODIFY_ALLOCATION", 
              "events": [
                "RULES_APPLY", 
                "RULES_LOADBALANCE_APPLY", 
                "RULES_LOADBALANCE_DELETE", 
                "RULES_LOADLEVEL_APPLY", 
                "RULES_LOADLEVEL_DELETE", 
                "RULES_RESTRICTSHARED_APPLY", 
                "RULES_RESTRICTSHARED_DELETE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88352", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_ALLOW_MODIFY_ALLOCATION"
                }
              ], 
              "id": 88352
            }, 
            {
              "name": "PHYS_DC_ALLOW_MODIFY_NETWORK", 
              "events": [
                "EXTERNAL_IP_CREATE", 
                "EXTERNAL_IP_CREATE_BULK", 
                "EXTERNAL_IP_DELETE", 
                "EXTERNAL_IP_SYNC_CREATE", 
                "EXTERNAL_IP_SYNC_DETACH", 
                "EXTERNAL_NETWORK_CREATE", 
                "EXTERNAL_NETWORK_DEFAULT", 
                "EXTERNAL_NETWORK_GATEWAY_OUT_OF_RANGE", 
                "NETWORK_SERVICE_TYPE_CREATE", 
                "NETWORK_SERVICE_TYPE_DELETE", 
                "NETWORK_SERVICE_TYPE_MODIFY", 
                "PRIVATE_IP_CREATE", 
                "PRIVATE_IP_CREATE_BULK", 
                "PRIVATE_IP_SYNC_CREATE", 
                "PRIVATE_IP_SYNC_DETACH", 
                "PRIVATE_NETWORK_CREATE", 
                "PRIVATE_NETWORK_DEFAULT", 
                "PRIVATE_NETWORK_DELETE", 
                "PRIVATE_NETWORK_GATEWAY_OUT_OF_RANGE", 
                "PRIVATE_NETWORK_GATEWAY_OVERWRITE", 
                "PRIVATE_NETWORK_MODIFY", 
                "PRIVATE_NETWORK_SYNC_CREATE", 
                "PRIVATE_NETWORK_SYNC_DETACH", 
                "PRIVATE_NETWORK_SYNC_UPDATE", 
                "PUBLIC_IP_CREATE", 
                "PUBLIC_IP_CREATE_BULK", 
                "PUBLIC_IP_CREATE_FLOATINGIP", 
                "PUBLIC_IP_CREATE_IMPORT_FLOATINGIP", 
                "PUBLIC_IP_CREATE_IMPORT_UNAVAILABLE_FLOATINGIP", 
                "PUBLIC_IP_DELETE", 
                "PUBLIC_IP_PURCHASE", 
                "PUBLIC_IP_RELEASE", 
                "PUBLIC_IP_RELEASE_FLOATINGIP", 
                "PUBLIC_IP_RELEASE_IMPORT_FLOATINGIP", 
                "PUBLIC_NETWORK_CREATE", 
                "PUBLIC_NETWORK_DELETE", 
                "PUBLIC_NETWORK_GATEWAY_OUT_OF_RANGE", 
                "PUBLIC_NETWORK_MODIFY", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_TAG_CONFLICT", 
                "VLAN_TAG_ASSIGN", 
                "VLAN_TAG_UNASSIGN"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88353", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_ALLOW_MODIFY_NETWORK"
                }
              ], 
              "id": 88353
            }, 
            {
              "name": "PHYS_DC_ALLOW_MODIFY_SERVERS", 
              "events": [
                "DATASTORE_TIER_ADD_DATASTORE", 
                "DATASTORE_TIER_ALLOW", 
                "DATASTORE_TIER_CREATE", 
                "DATASTORE_TIER_DELETE", 
                "DATASTORE_TIER_MODIFY", 
                "DATASTORE_TIER_RELEASE_DATASTORE", 
                "DATASTORE_TIER_RESTRICT", 
                "MACHINE_CHECK", 
                "MACHINE_CHECK_STATE", 
                "MACHINE_CLUSTER_DIFFERENT_RACKS", 
                "MACHINE_CREATE", 
                "MACHINE_DELETE", 
                "MACHINE_IMPORT_VIRTUAL_MACHINES", 
                "MACHINE_MODIFY", 
                "MACHINE_NICS_REFRESH", 
                "MACHINE_RECOVERING_STATE", 
                "MACHINE_REFRESH_DATASTORES", 
                "MACHINE_SEND_MAIL", 
                "MACHINE_VIRTUAL_MACHINE_DELETE", 
                "RACK_CREATE", 
                "RACK_DELETE", 
                "RACK_MODIFY", 
                "SCHEDULER_BEST_TARGET", 
                "SCHEDULER_DATASTORE", 
                "SCHEDULER_FIRST_CANDIDATES", 
                "SCHEDULER_FREE_PORT", 
                "SCHEDULER_FREE_VLAN", 
                "VIRTUAL_MACHINE_CAPTURE", 
                "VIRTUAL_MACHINE_CAPTURE_DHCP", 
                "VIRTUAL_MACHINE_IMPORT", 
                "VIRTUAL_MACHINE_MOVE_BY_HA", 
                "VIRTUAL_MACHINE_MOVE_BY_HA_FREE_RESOURCES", 
                "VIRTUAL_MACHINE_RELEASE", 
                "VIRTUAL_MACHINE_VSM_CHANGE_STATE", 
                "VIRTUAL_MACHINE_VSM_VM_DESTROYED", 
                "VIRTUAL_MACHINE_VSM_VM_MOVED", 
                "VIRTUAL_MACHINE_VSM_VM_RETRIEVE", 
                "VIRTUAL_MACHINE_VSM_VM_UNSUBSCRIBE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88354", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_ALLOW_MODIFY_SERVERS"
                }
              ], 
              "id": 88354
            }, 
            {
              "name": "PHYS_DC_ALLOW_MODIFY_STORAGE", 
              "events": [
                "STORAGE_DEVICE_CREATE", 
                "STORAGE_DEVICE_DELETE", 
                "STORAGE_DEVICE_MODIFY", 
                "STORAGE_POOL_CREATE", 
                "STORAGE_POOL_DELETE", 
                "STORAGE_POOL_MODIFY", 
                "TIER_ALLOW", 
                "TIER_CREATE", 
                "TIER_DELETE", 
                "TIER_MODIFY", 
                "TIER_RESTRICT", 
                "VOLUME_CREATE", 
                "VOLUME_DELETE", 
                "VOLUME_MODIFY", 
                "VOLUME_MOVE", 
                "VOLUME_RESIZE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88355", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_ALLOW_MODIFY_STORAGE"
                }
              ], 
              "id": 88355
            }, 
            {
              "name": "PHYS_DC_ENUMERATE", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88356", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_ENUMERATE"
                }
              ], 
              "id": 88356
            }, 
            {
              "name": "PHYS_DC_MANAGE", 
              "events": [
                "DATACENTER_CLOSE_PRODUCER", 
                "DATACENTER_CREATE", 
                "DATACENTER_DELETE", 
                "DATACENTER_ENQUEUE_DC_REQUEST", 
                "DATACENTER_MODIFY", 
                "DATACENTER_REMOTE_SERVICES_CREATE", 
                "DATACENTER_REQUEST_PRODUCER", 
                "DATACENTER_LIMIT_HARD_LIMIT", 
                "EXCLUDED_NETWORK_CREATE", 
                "EXCLUDED_NETWORK_DELETE", 
                "EXCLUDED_NETWORK_MODIFY", 
                "HARDWARE_PROFILE_DATACENTER_CREATE", 
                "HARDWARE_PROFILE_DATACENTER_DELETE", 
                "HARDWARE_PROFILE_DATACENTER_MODIFY", 
                "HARDWARE_PROFILE_PUBLIC_CLOUD_REGION_CREATE", 
                "HARDWARE_PROFILE_PUBLIC_CLOUD_REGION_DELETE", 
                "HARDWARE_PROFILE_PUBLIC_CLOUD_REGION_MODIFY", 
                "PUBLIC_CLOUD_REGION_CREATE", 
                "PUBLIC_CLOUD_REGION_DELETE", 
                "PUBLIC_CLOUD_REGION_MODIFY", 
                "PUBLIC_CLOUD_REGION_REMOTE_SERVICES_CREATE", 
                "REMOTE_SERVICE_CHECK", 
                "REMOTE_SERVICE_CREATE", 
                "REMOTE_SERVICE_DELETE", 
                "REMOTE_SERVICE_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88357", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_MANAGE"
                }
              ], 
              "id": 88357
            }, 
            {
              "name": "PHYS_DC_RETRIEVE_DETAILS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88358", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_RETRIEVE_DETAILS"
                }
              ], 
              "id": 88358
            }, 
            {
              "name": "PHYS_DC_RETRIEVE_RESOURCE_USAGE", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88359", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PHYS_DC_RETRIEVE_RESOURCE_USAGE"
                }
              ], 
              "id": 88359
            }, 
            {
              "name": "PRICING_MANAGE", 
              "events": [
                "COSTCODE_CREATE", 
                "COSTCODE_DELETE", 
                "COSTCODE_MODIFY", 
                "CURRENCY_CREATE", 
                "CURRENCY_DELETE", 
                "CURRENCY_MODIFY", 
                "ENTERPRISE_PRICING_TEMPLATE_ASSIGN", 
                "PRICING_TEMPLATE_CREATE", 
                "PRICING_TEMPLATE_DELETE", 
                "PRICING_TEMPLATE_MODIFY", 
                "PRICING_TEMPLATE_MODIFY_DC"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88360", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PRICING_MANAGE"
                }
              ], 
              "id": 88360
            }, 
            {
              "name": "PRICING_VIEW", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88361", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "PRICING_VIEW"
                }
              ], 
              "id": 88361
            }, 
            {
              "name": "SYSCONFIG_ALLOW_MODIFY", 
              "events": [
                "LICENSE_ADD", 
                "LICENSE_REMOVE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88362", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "SYSCONFIG_ALLOW_MODIFY"
                }
              ], 
              "id": 88362
            }, 
            {
              "name": "SYSCONFIG_SHOW_REPORTS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88363", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "SYSCONFIG_SHOW_REPORTS"
                }
              ], 
              "id": 88363
            }, 
            {
              "name": "SYSCONFIG_VIEW", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88364", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "SYSCONFIG_VIEW"
                }
              ], 
              "id": 88364
            }, 
            {
              "name": "USERS_DEFINE_AS_MANAGER", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88365", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_DEFINE_AS_MANAGER"
                }
              ], 
              "id": 88365
            }, 
            {
              "name": "USERS_ENABLE_DISABLE_VM_METRICS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88366", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_ENABLE_DISABLE_VM_METRICS"
                }
              ], 
              "id": 88366
            }, 
            {
              "name": "USERS_ENUMERATE_CONNECTED", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88367", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_ENUMERATE_CONNECTED"
                }
              ], 
              "id": 88367
            }, 
            {
              "name": "USERS_MANAGE_CHEF_ENTERPRISE", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88368", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_CHEF_ENTERPRISE"
                }
              ], 
              "id": 88368
            }, 
            {
              "name": "USERS_MANAGE_ENTERPRISE", 
              "events": [
                "ENTERPRISE_CREATE", 
                "ENTERPRISE_DELETE", 
                "ENTERPRISE_DISABLE_WORKFLOW", 
                "ENTERPRISE_ENABLE_WORKFLOW", 
                "ENTERPRISE_MODIFY", 
                "ENTERPRISE_PRICING_TEMPLATE_ASSIGN", 
                "HARDWARE_PROFILE_ALLOW", 
                "HARDWARE_PROFILE_RESTRICT"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88369", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_ENTERPRISE"
                }
              ], 
              "id": 88369
            }, 
            {
              "name": "USERS_MANAGE_ENTERPRISE_BRANDING", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88370", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_ENTERPRISE_BRANDING"
                }
              ], 
              "id": 88370
            }, 
            {
              "name": "USERS_MANAGE_OTHER_ENTERPRISES", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88371", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_OTHER_ENTERPRISES"
                }
              ], 
              "id": 88371
            }, 
            {
              "name": "USERS_MANAGE_RESERVED_MACHINES", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88372", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_RESERVED_MACHINES"
                }
              ], 
              "id": 88372
            }, 
            {
              "name": "USERS_MANAGE_ROLES", 
              "events": [
                "ROLE_CREATE", 
                "ROLE_DELETE", 
                "ROLE_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88373", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_ROLES"
                }
              ], 
              "id": 88373
            }, 
            {
              "name": "USERS_MANAGE_ROLES_OTHER_ENTERPRISES", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88374", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_ROLES_OTHER_ENTERPRISES"
                }
              ], 
              "id": 88374
            }, 
            {
              "name": "USERS_MANAGE_SCOPES", 
              "events": [
                "SCOPE_CREATE", 
                "SCOPE_DELETE", 
                "SCOPE_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88375", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_SCOPES"
                }
              ], 
              "id": 88375
            }, 
            {
              "name": "USERS_MANAGE_SYSTEM_ROLES", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88376", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_SYSTEM_ROLES"
                }
              ], 
              "id": 88376
            }, 
            {
              "name": "USERS_MANAGE_USERS", 
              "events": [
                "USER_CREATE", 
                "USER_DELETE", 
                "USER_DISABLE_TWO_FACTOR", 
                "USER_ENABLE_TWO_FACTOR", 
                "USER_FIRST_LOGIN", 
                "USER_MODIFY", 
                "USER_RESET_PSW", 
                "USER_TWO_FACTOR_CODE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88377", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_USERS"
                }
              ], 
              "id": 88377
            }, 
            {
              "name": "USERS_PROHIBIT_VDC_RESTRICTION", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88378", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_PROHIBIT_VDC_RESTRICTION"
                }
              ], 
              "id": 88378
            }, 
            {
              "name": "USERS_SHOW_VM_METRICS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88379", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_SHOW_VM_METRICS"
                }
              ], 
              "id": 88379
            }, 
            {
              "name": "USERS_VIEW", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88380", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_VIEW"
                }
              ], 
              "id": 88380
            }, 
            {
              "name": "USERS_VIEW_PRIVILEGES", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88381", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_VIEW_PRIVILEGES"
                }
              ], 
              "id": 88381
            }, 
            {
              "name": "USERS_PUSH_VM_METRICS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88382", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_PUSH_VM_METRICS"
                }
              ], 
              "id": 88382
            }, 
            {
              "name": "USERS_MANAGE_CREDENTIALS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88383", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_CREDENTIALS"
                }
              ], 
              "id": 88383
            }, 
            {
              "name": "USERS_MANAGE_APPLICATIONS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88384", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_MANAGE_APPLICATIONS"
                }
              ], 
              "id": 88384
            }, 
            {
              "name": "VM_PROTECT_ACTION", 
              "events": [
                "VIRTUAL_MACHINE_PROTECT", 
                "VIRTUAL_MACHINE_UNPROTECT"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88385", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_PROTECT_ACTION"
                }
              ], 
              "id": 88385
            }, 
            {
              "name": "USERS_VM_VIEW_ALARMS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88386", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_VM_VIEW_ALARMS"
                }
              ], 
              "id": 88386
            }, 
            {
              "name": "USERS_VM_MANAGE_ALARMS", 
              "events": [
                "ALARM_CREATE", 
                "ALARM_DELETE", 
                "ALARM_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88387", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_VM_MANAGE_ALARMS"
                }
              ], 
              "id": 88387
            }, 
            {
              "name": "VM_EXCEED_CPU_RAM", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88388", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_EXCEED_CPU_RAM"
                }
              ], 
              "id": 88388
            }, 
            {
              "name": "VM_EDIT_CPU_RAM", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88389", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_EDIT_CPU_RAM"
                }
              ], 
              "id": 88389
            }, 
            {
              "name": "VM_CHECK_USER_PASSWORD", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88390", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_CHECK_USER_PASSWORD"
                }
              ], 
              "id": 88390
            }, 
            {
              "name": "VM_ATTACH_NIC", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88391", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_ATTACH_NIC"
                }
              ], 
              "id": 88391
            }, 
            {
              "name": "VM_DETACH_NIC", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88392", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_DETACH_NIC"
                }
              ], 
              "id": 88392
            }, 
            {
              "name": "MANAGE_ISO", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88393", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_ISO"
                }
              ], 
              "id": 88393
            }, 
            {
              "name": "VAPP_CREATE_INSTANCE", 
              "events": [
                "VIRTUAL_IMAGE_CONVERSION_CONVERSION_INSTANCE_FINISH", 
                "VIRTUAL_MACHINE_INSTANCE_CONVERSION_MASTER_START", 
                "VIRTUAL_MACHINE_INSTANCE_CONVERSION_START", 
                "VIRTUAL_MACHINE_INSTANCE_DISK_COPY", 
                "VIRTUAL_MACHINE_INSTANCE_DUMP_VOLUME", 
                "VIRTUAL_MACHINE_INSTANCE_FINISH", 
                "VIRTUAL_MACHINE_INSTANCE_START", 
                "VIRTUAL_MACHINE_INSTANCE_TEMPLATE_CREATE", 
                "VIRTUAL_MACHINE_LOCK_INSTANCE", 
                "VIRTUAL_MACHINE_START_INSTANCE", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATE_FROM_INST_FINISH", 
                "VIRTUAL_MACHINE_TEMPLATE_CREATE_FROM_INST_START"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88394", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_CREATE_INSTANCE"
                }
              ], 
              "id": 88394
            }, 
            {
              "name": "VAPP_CREATE_STATEFUL", 
              "events": [
                "DISK_PERSISTENT_DELETE", 
                "STORAGE_DEVICE_INITIATOR_ADD", 
                "VIRTUAL_MACHINE_TEMPLATE_MOVE", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_DELETE", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_DUMP_FINISH", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_DUMP_START", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_FINISH", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_MODIFY", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_RAW_CREATE", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_START", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_TASK_ENQUEUE", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_VOLUME_ASSIGN", 
                "VIRTUAL_MACHINE_TEMPLATE_PERSISTENT_VOLUME_CREATE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88395", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_CREATE_STATEFUL"
                }
              ], 
              "id": 88395
            }, 
            {
              "name": "VAPP_CUSTOMISE_SETTINGS", 
              "events": [
                "TASK_RECONFIGURE_CANCEL", 
                "TASK_RECONFIGURE_CONTINUE", 
                "VIRTUAL_MACHINE_ALLOCATE_HD", 
                "VIRTUAL_MACHINE_ALLOCATE_NICS", 
                "VIRTUAL_MACHINE_ALLOCATE_VOLUME", 
                "VIRTUAL_MACHINE_ASYNC_HANDLER_RESPONSE", 
                "VIRTUAL_MACHINE_CHEF_CONNECT", 
                "VIRTUAL_MACHINE_CHEF_RUNLIST_DELETE", 
                "VIRTUAL_MACHINE_CHEF_RUNLIST_UPDATE", 
                "VIRTUAL_MACHINE_DEALLOCATE_HD", 
                "VIRTUAL_MACHINE_DEALLOCATE_NICS", 
                "VIRTUAL_MACHINE_DEALLOCATE_VOLUME", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_CPU_CHANGED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_DATASTORE_CHANGED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_DISK_ADDED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_DISK_REMOVED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_DISK_RESIZE", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_FLOATINGIP_ADDED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_PROFILE_CHANGED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_RAM_CHANGED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_VOLUME_ADDED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_VOLUME_REMOVED", 
                "VIRTUAL_MACHINE_DEFINITION_SYNCER_VOLUME_REPLACED", 
                "VIRTUAL_MACHINE_INITIATOR_MAPPING", 
                "VIRTUAL_MACHINE_LOCK_RECONFIGURE", 
                "VIRTUAL_MACHINE_MODIFY", 
                "VIRTUAL_MACHINE_RECONFIGURE", 
                "VIRTUAL_MACHINE_REFRESH", 
                "VIRTUAL_MACHINE_REFRESH_RESOURCES", 
                "VIRTUAL_MACHINE_STATE", 
                "VIRTUAL_MACHINE_STATE_CHANGE", 
                "VIRTUAL_MACHINE_STORE_RUNLIST", 
                "VIRTUAL_MACHINE_UPDATE_RESOURCES", 
                "VIRTUAL_MACHINE_WORKFLOW_RECONFIGURE_SEND"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88396", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_CUSTOMISE_SETTINGS"
                }
              ], 
              "id": 88396
            }, 
            {
              "name": "VAPP_DEFINE_BACKUP_INFO", 
              "events": [
                "VIRTUAL_MACHINE_METADATA_MODIFIED"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88397", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_DEFINE_BACKUP_INFO"
                }
              ], 
              "id": 88397
            }, 
            {
              "name": "VAPP_DELETE_UNKNOWN_VM", 
              "events": [
                "VIRTUAL_MACHINE_DELETE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88398", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_DELETE_UNKNOWN_VM"
                }
              ], 
              "id": 88398
            }, 
            {
              "name": "VAPP_DEPLOY_UNDEPLOY", 
              "events": [
                "RULES_LOADLEVEL_CPU_EXCEEDED", 
                "RULES_LOADLEVEL_DATASTORE_EXCEEDED", 
                "RULES_LOADLEVEL_RAM_EXCEEDED", 
                "SCHEDULER_VIRTUAL_MACHINE", 
                "TASK_DEPLOY_CANCEL", 
                "TASK_DEPLOY_CONTINUE", 
                "TASK_UNDEPLOY_CANCEL", 
                "TASK_UNDEPLOY_CONTINUE", 
                "VIRTUAL_APPLIANCE_DEPLOY", 
                "VIRTUAL_APPLIANCE_UNDEPLOY", 
                "VIRTUAL_APPLIANCE_WORKFLOW_DEPLOY_BATCH", 
                "VIRTUAL_APPLIANCE_WORKFLOW_UNDEPLOY_BATCH", 
                "VIRTUAL_MACHINE_DEPLOY", 
                "VIRTUAL_MACHINE_DEPLOY_FINISH", 
                "VIRTUAL_MACHINE_DEPLOY_FREE_RESOURCES", 
                "VIRTUAL_MACHINE_DEPLOY_HA", 
                "VIRTUAL_MACHINE_GUEST_PASSWORD_EMAIL", 
                "VIRTUAL_MACHINE_GUEST_PASSWORD_SMS", 
                "VIRTUAL_MACHINE_LOCK_DEPLOY", 
                "VIRTUAL_MACHINE_LOCK_UNDEPLOY", 
                "VIRTUAL_MACHINE_REGISTER", 
                "VIRTUAL_MACHINE_UNDEPLOY", 
                "VIRTUAL_MACHINE_UNDEPLOY_FINISH", 
                "VIRTUAL_MACHINE_UNDEPLOY_HA", 
                "VIRTUAL_MACHINE_UNREGISTER", 
                "VIRTUAL_MACHINE_UPDATE_REGISTER", 
                "VIRTUAL_MACHINE_VALIDATE", 
                "VIRTUAL_MACHINE_WORKFLOW_DEPLOY_SEND", 
                "VIRTUAL_MACHINE_WORKFLOW_UNDEPLOY_SEND", 
                "WORKLOAD_HARD_LIMIT_EXCEEDED", 
                "WORKLOAD_SOFT_LIMIT_EXCEEDED"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88399", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_DEPLOY_UNDEPLOY"
                }
              ], 
              "id": 88399
            }, 
            {
              "name": "VAPP_MANAGE_BACKUP", 
              "events": [
                "VIRTUAL_MACHINE_ADD_BACKUP_POLICY", 
                "VIRTUAL_MACHINE_BACKUP_FINISH", 
                "VIRTUAL_MACHINE_BACKUP_SCHEDULE", 
                "VIRTUAL_MACHINE_BACKUP_WITH_REPLICATION_FINISH", 
                "VIRTUAL_MACHINE_METADATA_MODIFIED", 
                "VIRTUAL_MACHINE_REMOVE_BACKUP_POLICY", 
                "VIRTUAL_MACHINE_REQUEST_BACKUP", 
                "VIRTUAL_MACHINE_REQUEST_BACKUP_WITH_REPLICATION", 
                "VIRTUAL_MACHINE_RESTORE_BACKUP", 
                "VIRTUAL_MACHINE_RESTORE_FINISH"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88400", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_MANAGE_BACKUP"
                }
              ], 
              "id": 88400
            }, 
            {
              "name": "VAPP_MANAGE_BACKUP_DISKS", 
              "events": [
                "VIRTUAL_MACHINE_METADATA_MODIFIED"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88401", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_MANAGE_BACKUP_DISKS"
                }
              ], 
              "id": 88401
            }, 
            {
              "name": "VAPP_MANAGE_LAYERS", 
              "events": [
                "LAYER_CHECK_CAPACITY", 
                "LAYER_REMOVE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88402", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_MANAGE_LAYERS"
                }
              ], 
              "id": 88402
            }, 
            {
              "name": "VAPP_PERFORM_ACTIONS", 
              "events": [
                "VIRTUAL_MACHINE_PAUSE", 
                "VIRTUAL_MACHINE_POWEROFF", 
                "VIRTUAL_MACHINE_POWERON", 
                "VIRTUAL_MACHINE_REQUEST_ACCESS", 
                "VIRTUAL_MACHINE_RESET", 
                "VIRTUAL_MACHINE_RESUME", 
                "VIRTUAL_MACHINE_SHUTDOWN"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88403", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_PERFORM_ACTIONS"
                }
              ], 
              "id": 88403
            }, 
            {
              "name": "VAPP_STATEFUL_VIEW", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88404", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_STATEFUL_VIEW"
                }
              ], 
              "id": 88404
            }, 
            {
              "name": "VAPP_RESTORE_BACKUP", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88405", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VAPP_RESTORE_BACKUP"
                }
              ], 
              "id": 88405
            }, 
            {
              "name": "USERS_VAPP_VIEW_ALERTS", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88406", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_VAPP_VIEW_ALERTS"
                }
              ], 
              "id": 88406
            }, 
            {
              "name": "USERS_VAPP_MANAGE_ALERTS", 
              "events": [
                "ALERT_ACTIVE", 
                "ALERT_CREATE", 
                "ALERT_DELETE", 
                "ALERT_INACTIVE", 
                "ALERT_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88407", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "USERS_VAPP_MANAGE_ALERTS"
                }
              ], 
              "id": 88407
            }, 
            {
              "name": "VDC_ENUMERATE", 
              "events": [
                "PUBLIC_CLOUD_REGION_SYNC", 
                "PUBLIC_CLOUD_REGION_SYNC_FINISHED", 
                "PUBLIC_CLOUD_REGION_SYNC_START"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88408", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VDC_ENUMERATE"
                }
              ], 
              "id": 88408
            }, 
            {
              "name": "VDC_MANAGE", 
              "events": [
                "EXTERNAL_NETWORK_SYNC_CREATE", 
                "EXTERNAL_NETWORK_SYNC_DETACH", 
                "EXTERNAL_NETWORK_SYNC_UPDATE", 
                "VIRTUAL_DATACENTER_CREATE", 
                "VIRTUAL_DATACENTER_DELETE", 
                "VIRTUAL_DATACENTER_MODIFY", 
                "VIRTUAL_DATACENTER_NETWORK_DEFAULT", 
                "VIRTUAL_DATACENTER_SYNC", 
                "VIRTUAL_DATACENTER_SYNC_FINISHED", 
                "VIRTUAL_DATACENTER_SYNC_START", 
                "VIRTUAL_MACHINE_SYNC_CREATE", 
                "VIRTUAL_MACHINE_SYNC_CREATE_HP_NOT_RECOMMENDED", 
                "VIRTUAL_MACHINE_TEMPLATE_SYNCH_AS_IMPORTED"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88409", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VDC_MANAGE"
                }
              ], 
              "id": 88409
            }, 
            {
              "name": "VDC_MANAGE_NETWORK", 
              "events": [
                "EXTERNAL_NETWORK_GATEWAY_OUT_OF_RANGE", 
                "EXTERNAL_NETWORK_SYNC_CREATE", 
                "EXTERNAL_NETWORK_SYNC_DETACH", 
                "PRIVATE_IP_CREATE", 
                "PRIVATE_IP_CREATE_BULK", 
                "PRIVATE_IP_DELETE", 
                "PRIVATE_NETWORK_CREATE", 
                "PRIVATE_NETWORK_DEFAULT", 
                "PRIVATE_NETWORK_DELETE", 
                "PRIVATE_NETWORK_GATEWAY_OUT_OF_RANGE", 
                "PRIVATE_NETWORK_MODIFY", 
                "PUBLIC_NETWORK_GATEWAY_OUT_OF_RANGE", 
                "VIRTUAL_DATACENTER_NETWORK_DEFAULT"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88410", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VDC_MANAGE_NETWORK"
                }
              ], 
              "id": 88410
            }, 
            {
              "name": "VDC_MANAGE_STORAGE", 
              "events": [
                "VIRTUAL_MACHINE_TEMPLATE_MOVE", 
                "VOLUME_CREATE", 
                "VOLUME_DELETE", 
                "VOLUME_MODIFY", 
                "VOLUME_MOVE", 
                "VOLUME_RESIZE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88411", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VDC_MANAGE_STORAGE"
                }
              ], 
              "id": 88411
            }, 
            {
              "name": "VDC_MANAGE_STORAGE_CONTROLLER", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88412", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VDC_MANAGE_STORAGE_CONTROLLER"
                }
              ], 
              "id": 88412
            }, 
            {
              "name": "VDC_MANAGE_VAPP", 
              "events": [
                "VIRTUAL_APPLIANCE_COPY", 
                "VIRTUAL_APPLIANCE_CREATE", 
                "VIRTUAL_APPLIANCE_DELETE", 
                "VIRTUAL_APPLIANCE_DEPLOY", 
                "VIRTUAL_APPLIANCE_LOCK_DELETE", 
                "VIRTUAL_APPLIANCE_MODIFY", 
                "VIRTUAL_APPLIANCE_MOVE", 
                "VIRTUAL_APPLIANCE_UNDEPLOY", 
                "VIRTUAL_APPLIANCE_WORKFLOW_DEPLOY_BATCH", 
                "VIRTUAL_APPLIANCE_WORKFLOW_UNDEPLOY_BATCH", 
                "VIRTUAL_APPLIANCE_SPEC_MATERIALIZE", 
                "VIRTUAL_APPLIANCE_SPEC_ROLLBACK_EXTERNAL_NETWORK", 
                "VIRTUAL_APPLIANCE_SPEC_ROLLBACK_FIREWALL", 
                "VIRTUAL_APPLIANCE_SPEC_ROLLBACK_FLOATING_IP", 
                "VIRTUAL_APPLIANCE_SPEC_ROLLBACK_LOAD_BALANCER", 
                "VIRTUAL_APPLIANCE_SPEC_ROLLBACK_PRIVATE_NETWORK", 
                "VIRTUAL_APPLIANCE_SPEC_ROLLBACK_PUBLIC_IP", 
                "VIRTUAL_APPLIANCE_SPEC_ROLLBACK_VIRTUAL_MACHINE", 
                "VIRTUAL_APPLIANCE_SPEC_ROLLBACK_VOLUME", 
                "VIRTUAL_MACHINE_CLONE", 
                "VIRTUAL_MACHINE_CREATE", 
                "VIRTUAL_MACHINE_DELETE", 
                "VIRTUAL_MACHINE_GUEST_SETUP", 
                "VIRTUAL_MACHINE_LOCK_DELETE", 
                "VIRTUAL_MACHINE_MODIFY", 
                "VIRTUAL_MACHINE_RESTORE_BACKUP"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88413", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VDC_MANAGE_VAPP"
                }
              ], 
              "id": 88413
            }, 
            {
              "name": "MANAGE_PUBLICIPS", 
              "events": [
                "PUBLIC_IP_PURCHASE", 
                "PUBLIC_IP_RELEASE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88414", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_PUBLICIPS"
                }
              ], 
              "id": 88414
            }, 
            {
              "name": "WORKFLOW_OVERRIDE", 
              "events": [
                "TASK_DEPLOY_CANCEL", 
                "TASK_DEPLOY_CONTINUE", 
                "TASK_RECONFIGURE_CANCEL", 
                "TASK_RECONFIGURE_CONTINUE", 
                "TASK_UNDEPLOY_CANCEL", 
                "TASK_UNDEPLOY_CONTINUE", 
                "VIRTUAL_APPLIANCE_WORKFLOW_DEPLOY_BATCH", 
                "VIRTUAL_APPLIANCE_WORKFLOW_UNDEPLOY_BATCH", 
                "VIRTUAL_MACHINE_WORKFLOW_DEPLOY_SEND", 
                "VIRTUAL_MACHINE_WORKFLOW_RECONFIGURE_SEND"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88415", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "WORKFLOW_OVERRIDE"
                }
              ], 
              "id": 88415
            }, 
            {
              "name": "MANAGE_DEVICES", 
              "events": [
                "DEVICE_CREATE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88416", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_DEVICES"
                }
              ], 
              "id": 88416
            }, 
            {
              "name": "MANAGE_VAPP_SPEC", 
              "events": [
                "VIRTUAL_APPLIANCE_SPEC_CREATE", 
                "VIRTUAL_APPLIANCE_SPEC_CREATE_VERSION", 
                "VIRTUAL_APPLIANCE_SPEC_DELETE", 
                "VIRTUAL_APPLIANCE_SPEC_DELETE_SPECS", 
                "VIRTUAL_APPLIANCE_SPEC_MODIFY", 
                "VIRTUAL_APPLIANCE_SPEC_SET_DEFAULT"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88417", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_VAPP_SPEC"
                }
              ], 
              "id": 88417
            }, 
            {
              "name": "CONSUME_VAPP_SPEC", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88418", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "CONSUME_VAPP_SPEC"
                }
              ], 
              "id": 88418
            }, 
            {
              "name": "VM_ACTION_PLAN_MANAGE", 
              "events": [
                "ACTION_PLAN_CREATE", 
                "ACTION_PLAN_DELETE", 
                "ACTION_PLAN_EXECUTION", 
                "ACTION_PLAN_MODIFY"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88419", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_ACTION_PLAN_MANAGE"
                }
              ], 
              "id": 88419
            }, 
            {
              "name": "VM_ACTION_PLAN_VIEW", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88420", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_ACTION_PLAN_VIEW"
                }
              ], 
              "id": 88420
            }, 
            {
              "name": "VM_RELOCATE", 
              "events": [
                "VIRTUAL_MACHINE_RELOCATE"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88421", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VM_RELOCATE"
                }
              ], 
              "id": 88421
            }, 
            {
              "name": "MANAGE_SCALING_GROUPS", 
              "events": [
                "SCALING_GROUP_CAPACITY_ADJUSTED", 
                "SCALING_GROUP_CREATE", 
                "SCALING_GROUP_DELETE", 
                "SCALING_GROUP_END_MAINTENANCE", 
                "SCALING_GROUP_MODIFY", 
                "SCALING_GROUP_SCALE_IN", 
                "SCALING_GROUP_SCALE_OUT", 
                "SCALING_GROUP_START_MAINTENANCE", 
                "SCALING_GROUP_UNABLE_TO_CLONE_MASTER_VM", 
                "SCALING_GROUP_UNABLE_TO_DEPLOY_CLONED_VM", 
                "SCALING_GROUP_UNABLE_TO_UNDEPLOY_VM"
              ], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88422", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "MANAGE_SCALING_GROUPS"
                }
              ], 
              "id": 88422
            }, 
            {
              "name": "SCALING_GROUP_MANAGE_WORKFLOW", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88423", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "SCALING_GROUP_MANAGE_WORKFLOW"
                }
              ], 
              "id": 88423
            }, 
            {
              "name": "APPLIB_DISK_ALLOCATION", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88424", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "APPLIB_DISK_ALLOCATION"
                }
              ], 
              "id": 88424
            }, 
            {
              "name": "VDC_MANAGE_STORAGE_DISK_ALLOCATION", 
              "events": [], 
              "links": [
                {
                  "href": "http://localhost:9009/api/config/privileges/88425", 
                  "type": "application/vnd.abiquo.privilege+json", 
                  "rel": "self", 
                  "title": "VDC_MANAGE_STORAGE_DISK_ALLOCATION"
                }
              ], 
              "id": 88425
            }
          ]
        }, 
        "blocked": false, 
        "id": 1067, 
        "externalRoles": []
      }, 
      "enterprise": {
        "ramHard": 900, 
        "isReservationRestricted": false, 
        "twoFactorAuthenticationMandatory": false, 
        "links": [
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454", 
            "type": "application/vnd.abiquo.enterprise+json", 
            "rel": "edit", 
            "title": "899"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/users", 
            "type": "application/vnd.abiquo.users+json", 
            "rel": "users", 
            "title": "users"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/properties", 
            "type": "application/vnd.abiquo.enterpriseproperties+json", 
            "rel": "properties", 
            "title": "properties"
          }, 
          {
            "href": "http://localhost:9009/api/admin/scopes/1121", 
            "type": "application/vnd.abiquo.scope+json", 
            "rel": "scope", 
            "title": "Global scope"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/appslib/templateDefinitionLists", 
            "type": "application/vnd.abiquo.templatedefinitionlists+json", 
            "rel": "appslib/templateDefinitionLists", 
            "title": "template definitions lists"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/appslib/templateDefinitions", 
            "type": "application/vnd.abiquo.templatedefinitions+json", 
            "rel": "appslib/templateDefinitions", 
            "title": "template defintion paths"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/datacenterrepositories", 
            "type": "application/vnd.abiquo.datacenterrepositories+json", 
            "rel": "datacenterrepositories", 
            "title": "repositories"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/action/virtualmachines", 
            "type": "application/vnd.abiquo.virtualmachines+json", 
            "rel": "virtualmachines", 
            "title": "virtual machines"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/action/virtualappliances", 
            "type": "application/vnd.abiquo.virtualappliances+json", 
            "rel": "virtualappliances", 
            "title": "virtual appliances"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/action/ips", 
            "type": "application/vnd.abiquo.privateips+json", 
            "rel": "ips", 
            "title": "ips"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/action/virtualdatacenters", 
            "type": "application/vnd.abiquo.virtualdatacenters+json", 
            "rel": "cloud/virtualdatacenters", 
            "title": "virtual datacenters"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/reservedmachines", 
            "type": "application/vnd.abiquo.machines+json", 
            "rel": "reservedmachines", 
            "title": "reserved machines"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/limits", 
            "type": "application/vnd.abiquo.limits+json", 
            "rel": "limits", 
            "title": "limits"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/action/volumes", 
            "type": "application/vnd.abiquo.volumes+json", 
            "rel": "volumes", 
            "title": "volumes"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/action/externalnetworks", 
            "type": "application/vnd.abiquo.vlans+json", 
            "rel": "externalnetworks", 
            "title": "external networks"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/action/pendingtasks", 
            "type": "application/vnd.abiquo.tasks+json", 
            "rel": "pendingtasks", 
            "title": "pending tasks"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/credentials", 
            "type": "application/vnd.abiquo.publiccloudcredentialslist+json", 
            "rel": "credentials", 
            "title": "credentials"
          }, 
          {
            "href": "http://localhost:9009/api/admin/enterprises/1454/vappspecs", 
            "type": "application/vnd.abiquo.virtualappliancespecs+json", 
            "rel": "vappspecs", 
            "title": "virtual appliances specs"
          }
        ], 
        "workflow": false, 
        "vlansHard": 0, 
        "storageHardInMb": 0, 
        "repositorySoftInMb": 0, 
        "publicIpsSoft": 0, 
        "vlansSoft": 0, 
        "ramSoft": 900, 
        "diskSoftLimitInMb": 900, 
        "id": 1454, 
        "diskHardLimitInMb": 900, 
        "name": "899", 
        "cpuHard": 900, 
        "storageSoftInMb": 0, 
        "publicIpsHard": 0, 
        "repositoryHardInMb": 0, 
        "cpuSoft": 900
      }, 
      "active": true, 
      "locked": false, 
      "email": "abc@example.com"
    }
  ]
}

Create a user

Create a user

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/users
Roles Required: USERS_MANAGE_USERS,USERS_MANAGE_OTHER_ENTERPRISES
Request Headers: Accept: application/vnd.abiquo.user+json; version=4.4; application/vnd.abiquo.user+xml; version=4.4;  Content-type:  application/vnd.abiquo.user+json; version=4.4; application/vnd.abiquo.user+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: User Media Type
Response Message Body Entity: User Media Type
Request Example:

 Click here to show or hide the request example

POST_adm_ents_X_users_CT_user_j_AC_user_j.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/enterprises/1357/users \ 
	 -H 'Accept:application/vnd.abiquo.user+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.user+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 201

Request payload:

{
  "surname": "Hickey", 
  "name": "Earl", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/roles/967", 
      "rel": "role"
    }, 
    {
      "href": "http://localhost:9009/api/admin/scopes/1029", 
      "rel": "scope"
    }
  ], 
  "locale": "EN", 
  "nick": "ehickey", 
  "firstLogin": true, 
  "phoneNumber": "+45712345678", 
  "active": true, 
  "locked": false, 
  "password": "karmakarma", 
  "email": "earl.hickey@abiquo.com", 
  "description": "user description"
}

Response payload:

{
  "authType": "ABIQUO", 
  "surname": "Hickey", 
  "description": "user description", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1357", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprise", 
      "title": "46"
    }, 
    {
      "href": "http://localhost:9009/api/admin/roles/967", 
      "type": "application/vnd.abiquo.role+json", 
      "rel": "role", 
      "title": "48"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1357/users/1049", 
      "type": "application/vnd.abiquo.user+json", 
      "rel": "edit", 
      "title": "ehickey"
    }, 
    {
      "href": "http://localhost:9009/api/admin/scopes/1029", 
      "type": "application/vnd.abiquo.scope+json", 
      "rel": "scope", 
      "title": "0065"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1357/users/1049/action/virtualmachines", 
      "type": "application/vnd.abiquo.virtualmachines+json", 
      "rel": "virtualmachines", 
      "title": "virtual machines"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1357/users/1049/action/pendingtasks", 
      "type": "application/vnd.abiquo.tasks+json", 
      "rel": "pendingtasks", 
      "title": "pending tasks"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1357/users/1049/applications", 
      "type": "application/vnd.abiquo.applications+json", 
      "rel": "applications", 
      "title": "applications"
    }
  ], 
  "locale": "EN", 
  "email": "earl.hickey@abiquo.com", 
  "nick": "ehickey", 
  "firstLogin": true, 
  "phoneNumber": "+45712345678", 
  "active": true, 
  "locked": false, 
  "id": 1049, 
  "name": "Earl"
}

 

 

 

Get a user

Get a user

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/users/{user}
Roles Required: AUTHENTICATED,USERS_VIEW, PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.user+json; version=4.4; application/vnd.abiquo.user+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

name

false

false

Set to True if we only need to retrieve user name

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: User Media Type
Request Example:

 Click here to show or hide the request example

GET_adm_ents_X_users_X_AC_user_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/24/users/25 \ 
	 -H 'Accept:application/vnd.abiquo.user+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "authType": "ABIQUO", 
  "surname": "13", 
  "name": "12", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/24", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprise", 
      "title": "9"
    }, 
    {
      "href": "http://localhost:9009/api/admin/roles/26", 
      "type": "application/vnd.abiquo.role+json", 
      "rel": "role", 
      "title": "10"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/24/users/25", 
      "type": "application/vnd.abiquo.user+json", 
      "rel": "edit", 
      "title": "14"
    }, 
    {
      "href": "http://localhost:9009/api/admin/scopes/22", 
      "type": "application/vnd.abiquo.scope+json", 
      "rel": "scope", 
      "title": "Global scope"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/24/users/25/action/virtualmachines", 
      "type": "application/vnd.abiquo.virtualmachines+json", 
      "rel": "virtualmachines", 
      "title": "virtual machines"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/24/users/25/action/pendingtasks", 
      "type": "application/vnd.abiquo.tasks+json", 
      "rel": "pendingtasks", 
      "title": "pending tasks"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/24/users/25/applications", 
      "type": "application/vnd.abiquo.applications+json", 
      "rel": "applications", 
      "title": "applications"
    }
  ], 
  "locale": "15", 
  "email": "abc@example.com", 
  "nick": "14", 
  "firstLogin": false, 
  "active": true, 
  "locked": false, 
  "id": 25
}

Update a user

Modify a user

Synopsis: PUT http://example.com/api/admin/enterprises/{enterprise}/users/{user}
Roles Required: AUTHENTICATED,USERS_MANAGE_USERS, ENTERPRISE_ADMINISTER_ALL
Request Headers: Accept: application/vnd.abiquo.user+json; version=4.4; application/vnd.abiquo.user+xml; version=4.4;  Content-type:  application/vnd.abiquo.user+json; version=4.4; application/vnd.abiquo.user+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: User Media Type
Response Message Body Entity: User Media Type
Request Example:

 Click here to show or hide the request example

PUT_adm_ents_X_users_X_CT_user_j_AC_user_j.0001.txt

cURL:

curl -X PUT http://localhost:9000/api/admin/enterprises/1214/users/896 \ 
	 -H 'Accept:application/vnd.abiquo.user+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.user+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

{
  "authType": "ABIQUO", 
  "surname": "56", 
  "name": "55", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprise", 
      "title": "51"
    }, 
    {
      "href": "http://localhost:9009/api/admin/roles/881", 
      "type": "application/vnd.abiquo.role+json", 
      "rel": "role", 
      "title": "59"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214/users/896", 
      "type": "application/vnd.abiquo.user+json", 
      "rel": "edit", 
      "title": "57"
    }, 
    {
      "href": "http://localhost:9009/api/admin/scopes/890", 
      "type": "application/vnd.abiquo.scope+json", 
      "rel": "scope", 
      "title": "Global scope"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214/users/896/action/virtualmachines", 
      "type": "application/vnd.abiquo.virtualmachines+json", 
      "rel": "virtualmachines", 
      "title": "virtual machines"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214/users/896/action/pendingtasks", 
      "type": "application/vnd.abiquo.tasks+json", 
      "rel": "pendingtasks", 
      "title": "pending tasks"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214/users/896/applications", 
      "type": "application/vnd.abiquo.applications+json", 
      "rel": "applications", 
      "title": "applications"
    }
  ], 
  "locale": "58", 
  "email": "abc@example.com", 
  "nick": "57", 
  "firstLogin": false, 
  "active": false, 
  "locked": false, 
  "id": 896
}

Response payload:

{
  "authType": "ABIQUO", 
  "surname": "56", 
  "name": "55", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprise", 
      "title": "51"
    }, 
    {
      "href": "http://localhost:9009/api/admin/roles/881", 
      "type": "application/vnd.abiquo.role+json", 
      "rel": "role", 
      "title": "59"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214/users/896", 
      "type": "application/vnd.abiquo.user+json", 
      "rel": "edit", 
      "title": "57"
    }, 
    {
      "href": "http://localhost:9009/api/admin/scopes/890", 
      "type": "application/vnd.abiquo.scope+json", 
      "rel": "scope", 
      "title": "Global scope"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214/users/896/action/virtualmachines", 
      "type": "application/vnd.abiquo.virtualmachines+json", 
      "rel": "virtualmachines", 
      "title": "virtual machines"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214/users/896/action/pendingtasks", 
      "type": "application/vnd.abiquo.tasks+json", 
      "rel": "pendingtasks", 
      "title": "pending tasks"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1214/users/896/applications", 
      "type": "application/vnd.abiquo.applications+json", 
      "rel": "applications", 
      "title": "applications"
    }
  ], 
  "locale": "58", 
  "email": "abc@example.com", 
  "nick": "57", 
  "firstLogin": false, 
  "active": false, 
  "locked": false, 
  "id": 896
}

 

Delete a user

Delete a user

Synopsis: DELETE http://example.com/api/admin/enterprises/{enterprise}/users/{user}
Roles Required: USERS_MANAGE_USERS
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity:
Request Example:

 Click here to show or hide the request example

DELETE_adm_ents_X_users_X.0001.txt

cURL:

curl -X DELETE http://localhost:9000/api/admin/enterprises/1279/users/961 \ 
	 -H 'Accept:text/json,application/json' \ 
	 -u user:password --verbose 

Success status code: 204

Request payload:

--none--

Response payload:

--none--

 

List virtual machines that belong to a user

Get the virtual machines that belong to a user

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/users/{user}/action/virtualmachines
Roles Required: VAPP_CUSTOMISE_SETTINGS
Request Headers: Accept: application/vnd.abiquo.virtualmachines+json; version=4.4; application/vnd.abiquo.virtualmachines+xml; version=4.4; ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: VirtualMachines Media Type
Request Example:

 Click here to show or hide the request example

GET_adm_ents_X_users_X_act_vms_AC_vms_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/1273/users/956/action/virtualmachines \ 
	 -H 'Accept:application/vnd.abiquo.virtualmachines+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": [
    {
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/895/racks/255/machines/269", 
          "type": "application/vnd.abiquo.machine+json", 
          "rel": "machine", 
          "title": "TEST_HYPERVISOR"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/locations/895", 
          "type": "application/vnd.abiquo.datacenter+json", 
          "rel": "location", 
          "title": "573"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194", 
          "type": "application/vnd.abiquo.virtualmachine+json", 
          "rel": "edit", 
          "title": "597"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/895/racks/255/machines/269/virtualmachines/194/action/sendmail", 
          "type": "application/vnd.abiquo.mail+json", 
          "rel": "sendmail", 
          "title": "send mail"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1273", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "584"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1273/users/956", 
          "type": "application/vnd.abiquo.user+json", 
          "rel": "user", 
          "title": "588 589"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487", 
          "type": "application/vnd.abiquo.virtualdatacenter+json", 
          "rel": "virtualdatacenter", 
          "title": "599"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259", 
          "type": "application/vnd.abiquo.virtualappliance+json", 
          "rel": "virtualappliance", 
          "title": "598"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/metadata", 
          "type": "application/vnd.abiquo.metadata+json", 
          "rel": "metadata", 
          "title": "metadata"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/network/configurations", 
          "type": "application/vnd.abiquo.virtualmachinenetworkconfigurations+json", 
          "rel": "configurations", 
          "title": "vlan network configurations"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/network/nics", 
          "type": "application/vnd.abiquo.nics+json", 
          "rel": "nics", 
          "title": "nics"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/storage/disks", 
          "type": "application/vnd.abiquo.harddisks+json", 
          "rel": "harddisks", 
          "title": "disks"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/state", 
          "type": "application/vnd.abiquo.virtualmachinestate+json", 
          "rel": "state", 
          "title": "NOT_ALLOCATED"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/action/undeploy", 
          "type": "application/vnd.abiquo.acceptedrequest+json", 
          "rel": "undeploy", 
          "title": "virtual machine undeploy"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/action/deploy", 
          "type": "application/vnd.abiquo.acceptedrequest+json", 
          "rel": "deploy", 
          "title": "virtual machine deploy"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/action/reset", 
          "type": "application/vnd.abiquo.acceptedrequest+json", 
          "rel": "reset", 
          "title": "virtual machine reset"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/action/instance", 
          "type": "application/vnd.abiquo.acceptedrequest+json", 
          "rel": "instance", 
          "title": "virtual machine snapshot"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/config/rdpaccess", 
          "type": "application/vnd.abiquo.virtualmachineconsole+json", 
          "rel": "rdpaccess", 
          "title": "remote access"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/tasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "tasks", 
          "title": "tasks"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/firewalls", 
          "type": "application/vnd.abiquo.links+json", 
          "rel": "firewalls", 
          "title": "firewalls"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/loadbalancers", 
          "type": "application/vnd.abiquo.loadbalancers+json", 
          "rel": "loadbalancers", 
          "title": "load balancers"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/backup/action/request", 
          "type": "application/vnd.abiquo.ondemandbackup+json", 
          "rel": "requestbackup", 
          "title": "request on demand backup"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/backup/action/restore", 
          "type": "application/vnd.abiquo.restore+json", 
          "rel": "requestrestore", 
          "title": "request a restore of a backup"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/storage/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/action/protect", 
          "type": "text/plain", 
          "rel": "protect", 
          "title": "protect"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/action/unprotect", 
          "type": "text/plain", 
          "rel": "unprotect", 
          "title": "unprotect"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/metrics", 
          "type": "application/vnd.abiquo.metricsmetadata+json", 
          "rel": "metricsmetadata", 
          "title": "metricsmetadata"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/metrics/collectd", 
          "type": "application/json", 
          "rel": "collectd", 
          "title": "collectd"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/alarms", 
          "type": "application/vnd.abiquo.alarms+json", 
          "rel": "alarms", 
          "title": "alarms"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/actionplans", 
          "type": "application/vnd.abiquo.virtualmachineactionplans+json", 
          "rel": "actionplans", 
          "title": "actionplans"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/actionplans", 
          "type": "application/vnd.abiquo.virtualmachineactionplansflat+json", 
          "rel": "actionplansflat", 
          "title": "actionplansflat"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/487/virtualappliances/259/virtualmachines/194/action/clone", 
          "type": "application/vnd.abiquo.virtualmachinecloneoptions+json", 
          "rel": "clone", 
          "title": "clone"
        }, 
        {
          "href": "http://localhost:9009/api/config/hypervisortypes/TEST_HYPERVISOR", 
          "type": "application/vnd.abiquo.hypervisortype+json", 
          "rel": "hypervisortype", 
          "title": "TestHypervisor"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/1273/datacenterrepositories/895/virtualmachinetemplates/248", 
          "type": "application/vnd.abiquo.virtualmachinetemplate+json", 
          "rel": "virtualmachinetemplate", 
          "title": "593"
        }, 
        {
          "href": "http://localhost:9009/api/config/categories/253", 
          "type": "application/vnd.abiquo.category+json", 
          "rel": "category", 
          "title": "594"
        }
      ], 
      "idType": 0, 
      "variables": {}, 
      "ram": 4, 
      "highDisponibility": 0, 
      "creationTimestamp": 1512487364000, 
      "id": 194, 
      "uuid": "71773a4e-2a86-4642-86fd-a58a0eeed8a3", 
      "vdrpPort": 0, 
      "backuppolicies": [], 
      "monitored": false, 
      "name": "597", 
      "idState": 1, 
      "vdrpEnabled": true, 
      "state": "NOT_ALLOCATED", 
      "protected": false, 
      "lastSynchronize": 1512487364000, 
      "type": "NOT_MANAGED", 
      "cpu": 1, 
      "generateGuestInitialPassword": false, 
      "metadata": null
    }
  ]
}

 

 

List tasks waiting on workflow tool

This resource retrieves all tasks that are in state QUEUEING. This means that workflow integration is enabled and that Abiquo is still waiting for the workflow tool to get back and either start or cancel the task.

This resource is meant as a fallback in case something were to go wrong with the workflow tool and the tasks must be started or cancelled manually.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/users/{user}/action/pendingtasks

Roles Required: AUTHENTICATED
Request Headers: Accept:  application/vnd.abiquo.tasks+json; version=4.4; application/vnd.abiquo.tasks+xml; version=4.4;
Request Parameters:

 

Parameter

Required

Default Value

Description

startwith

false

0

first element to retrieve

has

false

 

name to filter the results

limit

false

25

total number of elements in the result set


Request Message Body Entity:
 

 

Response Message Body Entity: Task Media Type
Request Example:

 

 Click here to expand...

GET_adm_ents_X_users_X_act_pendingtsks_AC_tsks_j.0003.txt

cURL:

curl -X GET http://localhost:9000/api/admin/enterprises/5238/users/5452/action/pendingtasks \ 
	 -H 'Accept:application/vnd.abiquo.tasks+json; version=3.10' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "totalSize": 2, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/5238/users/5452/action/pendingtasks", 
      "rel": "self"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/5238/users/5452", 
      "rel": "parent"
    }
  ], 
  "collection": [
    {
      "jobs": {
        "links": [], 
        "collection": [
          {
            "type": "SCHEDULE", 
            "description": "Deploy task's schedule on virtual machine with id 1653", 
            "links": [], 
            "parentTaskId": "e32e319d-78b7-4a9c-bd89-c9a51625a1dc", 
            "rollbackState": "UNKNOWN", 
            "state": "PENDING", 
            "timestamp": 1479997659, 
            "creationTimestamp": 1479997659, 
            "id": "e32e319d-78b7-4a9c-bd89-c9a51625a1dc.9db4f12e-4067-4624-8042-fac3c7ca196b"
          }, 
          {
            "type": "CONFIGURE", 
            "description": "Deploy task's configure on virtual machine with id 1653", 
            "links": [], 
            "parentTaskId": "e32e319d-78b7-4a9c-bd89-c9a51625a1dc", 
            "rollbackState": "UNKNOWN", 
            "state": "PENDING", 
            "timestamp": 1479997659, 
            "creationTimestamp": 1479997659, 
            "id": "e32e319d-78b7-4a9c-bd89-c9a51625a1dc.32ed89f7-4e21-4c46-8765-43141c6e6182"
          }, 
          {
            "type": "POWER_ON", 
            "description": "Deploy task's power on on virtual machine with id 1653", 
            "links": [], 
            "parentTaskId": "e32e319d-78b7-4a9c-bd89-c9a51625a1dc", 
            "rollbackState": "UNKNOWN", 
            "state": "PENDING", 
            "timestamp": 1479997659, 
            "creationTimestamp": 1479997659, 
            "id": "e32e319d-78b7-4a9c-bd89-c9a51625a1dc.a066c297-f98a-424c-a41d-541bce8ae044"
          }
        ]
      }, 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653/tasks/e32e319d-78b7-4a9c-bd89-c9a51625a1dc", 
          "rel": "self"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653", 
          "rel": "parent"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653/tasks/e32e319d-78b7-4a9c-bd89-c9a51625a1dc/action/cancel", 
          "rel": "cancel"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653/tasks/e32e319d-78b7-4a9c-bd89-c9a51625a1dc/action/continue", 
          "rel": "continue"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653", 
          "rel": "target"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5238/users/5452", 
          "rel": "user"
        }
      ], 
      "timestamp": 1479997659, 
      "userId": "5452", 
      "state": "QUEUEING", 
      "taskId": "e32e319d-78b7-4a9c-bd89-c9a51625a1dc", 
      "type": "DEPLOY", 
      "ownerId": "1653", 
      "creationTimestamp": 1479997659
    }, 
    {
      "jobs": {
        "links": [], 
        "collection": [
          {
            "type": "SCHEDULE", 
            "description": "Deploy task's schedule on virtual machine with id 1653", 
            "links": [], 
            "parentTaskId": "32b30b1f-307c-48c5-98ff-fb6b17539b95", 
            "rollbackState": "UNKNOWN", 
            "state": "PENDING", 
            "timestamp": 1479997659, 
            "creationTimestamp": 1479997659, 
            "id": "32b30b1f-307c-48c5-98ff-fb6b17539b95.334ac029-6d04-4c5f-bceb-ce9230fb3381"
          }, 
          {
            "type": "CONFIGURE", 
            "description": "Deploy task's configure on virtual machine with id 1653", 
            "links": [], 
            "parentTaskId": "32b30b1f-307c-48c5-98ff-fb6b17539b95", 
            "rollbackState": "UNKNOWN", 
            "state": "PENDING", 
            "timestamp": 1479997659, 
            "creationTimestamp": 1479997659, 
            "id": "32b30b1f-307c-48c5-98ff-fb6b17539b95.ed44a638-0a2b-4778-bb91-d21918a5c776"
          }, 
          {
            "type": "POWER_ON", 
            "description": "Deploy task's power on on virtual machine with id 1653", 
            "links": [], 
            "parentTaskId": "32b30b1f-307c-48c5-98ff-fb6b17539b95", 
            "rollbackState": "UNKNOWN", 
            "state": "PENDING", 
            "timestamp": 1479997659, 
            "creationTimestamp": 1479997659, 
            "id": "32b30b1f-307c-48c5-98ff-fb6b17539b95.5cee7fe3-5eb5-4cb2-b688-5f5522215b3b"
          }
        ]
      }, 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653/tasks/32b30b1f-307c-48c5-98ff-fb6b17539b95", 
          "rel": "self"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653", 
          "rel": "parent"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653/tasks/32b30b1f-307c-48c5-98ff-fb6b17539b95/action/cancel", 
          "rel": "cancel"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653/tasks/32b30b1f-307c-48c5-98ff-fb6b17539b95/action/continue", 
          "rel": "continue"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1653", 
          "rel": "target"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5238/users/5452", 
          "rel": "user"
        }
      ], 
      "timestamp": 1479997659, 
      "userId": "5452", 
      "state": "QUEUEING", 
      "taskId": "32b30b1f-307c-48c5-98ff-fb6b17539b95", 
      "type": "DEPLOY", 
      "ownerId": "1653", 
      "creationTimestamp": 1479997659
    }
  ]
}

Enable two-factor authentication for a user

Disables the two-factor authentication functionality for the given user. For more information see Configure your user account#Enabletwo-factorauthentication

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/users/{user}/action/enable2fa 
Roles Required: AUTHENTICATED, USERS_MANAGE_USERS, ENTERPRISE_ADMINISTER_ALL
Request Headers: Accept: application/vnd.abiquo.twofactorauthcredentials+json; version=4.4; application/vnd.abiquo.twofactorauthcredentials+xml; version=4.4; ; Content-type: application/vnd.abiquo.twofactorauthprovider+json; version=4.4; application/vnd.abiquo.twofactorauthprovider+xml; version=4.4; ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: application/xml
Request Example:

 Click here to show or hide the request example

POST_adm_ents_X_users_X_act_enable2fa_CT_twofauthpro_j_AC_twofauthcreds_j.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/enterprises/933/users/615/action/enable2fa \ 
	 -H 'Accept:application/vnd.abiquo.twofactorauthcredentials+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.twofactorauthprovider+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 201

Request payload:

{
  "type": "GOOGLE_AUTHENTICATOR", 
  "links": []
}

Response payload:

{
  "authenticatorURL": "otpauth://totp/12:sysadmin?secret=TAHICOX4NN24QZSI&issuer=Abiquo", 
  "scratchcodes": [
    "51123768", 
    "93109084", 
    "48717094", 
    "83055263", 
    "67777480"
  ], 
  "links": [], 
  "provider": "GOOGLE_AUTHENTICATOR"
}
 

Disable two-factor authentication for a user

Disables the two-factor authentication functionality for the given user. For more information see Configure your user account#Enabletwo-factorauthentication

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/users/{user}/action/disable2fa 
Roles Required: AUTHENTICATED, USERS_MANAGE_USERS, ENTERPRISE_ADMINISTER_ALL
Request Headers: Accept: application/xml; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: application/xml
Request Example:

 Click here to show or hide the request example

POST_adm_ents_X_users_X_act_disable2fa.0001.txt

cURL:

curl -X POST http://localhost:9000/api/admin/enterprises/1206/users/887/action/disable2fa \ 
	 -H 'Accept:application/xml' \ 
	 -u user:password --verbose 

Success status code: 204

Request payload:

--none--

Response payload:

--none--