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:

Privileges Resource

The Privilege resource represents user permissions. You can use its methods to retrieve the available privileges. Each user has a role with a group of privileges that specify the actions that the user can perform on the platform.   

Main URI of the Resource

This class operates mainly over the Resource URI: /config/privileges

Exposed Methods

Retrieve all privileges

Returns all privileges from Abiquo.

Synopsis: GET http://example.com/api/config/privileges
Roles Required: SYSCONFIG_VIEW,USERS_VIEW
Request Headers: Accept: application/vnd.abiquo.privileges+json; version=4.4; application/vnd.abiquo.privileges+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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


 Click here to show or hide the request example

 

GET_cfg_privs_AC_privs_j.txt

cURL:

curl -X GET http://localhost:9000/api/config/privileges \ 
	 -H 'Accept:application/vnd.abiquo.privileges+json; version=3.4' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
    "links": [],
    "collection": [
        {
            "links": [
                {
                    "title": "ENTERPRISE_ENUMERATE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/1"
                }
            ],
            "id": 1,
            "name": "ENTERPRISE_ENUMERATE"
        },
        {
            "links": [
                {
                    "title": "ENTERPRISE_ADMINISTER_ALL",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/2"
                }
            ],
            "id": 2,
            "name": "ENTERPRISE_ADMINISTER_ALL"
        },
        {
            "links": [
                {
                    "title": "ENTERPRISE_RESOURCE_SUMMARY_ENT",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/3"
                }
            ],
            "id": 3,
            "name": "ENTERPRISE_RESOURCE_SUMMARY_ENT"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_ENUMERATE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/4"
                }
            ],
            "id": 4,
            "name": "PHYS_DC_ENUMERATE"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_RETRIEVE_RESOURCE_USAGE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/5"
                }
            ],
            "id": 5,
            "name": "PHYS_DC_RETRIEVE_RESOURCE_USAGE"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_MANAGE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/6"
                }
            ],
            "id": 6,
            "name": "PHYS_DC_MANAGE"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_RETRIEVE_DETAILS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/7"
                }
            ],
            "id": 7,
            "name": "PHYS_DC_RETRIEVE_DETAILS"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_ALLOW_MODIFY_SERVERS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/8"
                }
            ],
            "id": 8,
            "name": "PHYS_DC_ALLOW_MODIFY_SERVERS"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_ALLOW_MODIFY_NETWORK",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/9"
                }
            ],
            "id": 9,
            "name": "PHYS_DC_ALLOW_MODIFY_NETWORK"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_ALLOW_MODIFY_STORAGE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/10"
                }
            ],
            "id": 10,
            "name": "PHYS_DC_ALLOW_MODIFY_STORAGE"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_ALLOW_MODIFY_ALLOCATION",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/11"
                }
            ],
            "id": 11,
            "name": "PHYS_DC_ALLOW_MODIFY_ALLOCATION"
        },
        {
            "links": [
                {
                    "title": "VDC_ENUMERATE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/12"
                }
            ],
            "id": 12,
            "name": "VDC_ENUMERATE"
        },
        {
            "links": [
                {
                    "title": "VDC_MANAGE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/13"
                }
            ],
            "id": 13,
            "name": "VDC_MANAGE"
        },
        {
            "links": [
                {
                    "title": "VDC_MANAGE_VAPP",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/14"
                }
            ],
            "id": 14,
            "name": "VDC_MANAGE_VAPP"
        },
        {
            "links": [
                {
                    "title": "VDC_MANAGE_NETWORK",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/15"
                }
            ],
            "id": 15,
            "name": "VDC_MANAGE_NETWORK"
        },
        {
            "links": [
                {
                    "title": "VDC_MANAGE_STORAGE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/16"
                }
            ],
            "id": 16,
            "name": "VDC_MANAGE_STORAGE"
        },
        {
            "links": [
                {
                    "title": "VAPP_CUSTOMISE_SETTINGS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/17"
                }
            ],
            "id": 17,
            "name": "VAPP_CUSTOMISE_SETTINGS"
        },
        {
            "links": [
                {
                    "title": "VAPP_DEPLOY_UNDEPLOY",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/18"
                }
            ],
            "id": 18,
            "name": "VAPP_DEPLOY_UNDEPLOY"
        },
        {
            "links": [
                {
                    "title": "VAPP_PERFORM_ACTIONS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/21"
                }
            ],
            "id": 21,
            "name": "VAPP_PERFORM_ACTIONS"
        },
        {
            "links": [
                {
                    "title": "VAPP_CREATE_STATEFUL",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/22"
                }
            ],
            "id": 22,
            "name": "VAPP_CREATE_STATEFUL"
        },
        {
            "links": [
                {
                    "title": "VAPP_CREATE_INSTANCE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/23"
                }
            ],
            "id": 23,
            "name": "VAPP_CREATE_INSTANCE"
        },
        {
            "links": [
                {
                    "title": "APPLIB_VIEW",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/24"
                }
            ],
            "id": 24,
            "name": "APPLIB_VIEW"
        },
        {
            "links": [
                {
                    "title": "APPLIB_ALLOW_MODIFY",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/25"
                }
            ],
            "id": 25,
            "name": "APPLIB_ALLOW_MODIFY"
        },
        {
            "links": [
                {
                    "title": "APPLIB_UPLOAD_IMAGE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/26"
                }
            ],
            "id": 26,
            "name": "APPLIB_UPLOAD_IMAGE"
        },
        {
            "links": [
                {
                    "title": "APPLIB_MANAGE_REPOSITORY",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/27"
                }
            ],
            "id": 27,
            "name": "APPLIB_MANAGE_REPOSITORY"
        },
        {
            "links": [
                {
                    "title": "APPLIB_DOWNLOAD_IMAGE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/28"
                }
            ],
            "id": 28,
            "name": "APPLIB_DOWNLOAD_IMAGE"
        },
        {
            "links": [
                {
                    "title": "APPLIB_MANAGE_CATEGORIES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/29"
                }
            ],
            "id": 29,
            "name": "APPLIB_MANAGE_CATEGORIES"
        },
        {
            "links": [
                {
                    "title": "USERS_VIEW",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/30"
                }
            ],
            "id": 30,
            "name": "USERS_VIEW"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_ENTERPRISE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/31"
                }
            ],
            "id": 31,
            "name": "USERS_MANAGE_ENTERPRISE"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_USERS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/32"
                }
            ],
            "id": 32,
            "name": "USERS_MANAGE_USERS"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_OTHER_ENTERPRISES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/33"
                }
            ],
            "id": 33,
            "name": "USERS_MANAGE_OTHER_ENTERPRISES"
        },
        {
            "links": [
                {
                    "title": "USERS_PROHIBIT_VDC_RESTRICTION",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/34"
                }
            ],
            "id": 34,
            "name": "USERS_PROHIBIT_VDC_RESTRICTION"
        },
        {
            "links": [
                {
                    "title": "USERS_VIEW_PRIVILEGES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/35"
                }
            ],
            "id": 35,
            "name": "USERS_VIEW_PRIVILEGES"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_ROLES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/36"
                }
            ],
            "id": 36,
            "name": "USERS_MANAGE_ROLES"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_ROLES_OTHER_ENTERPRISES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/37"
                }
            ],
            "id": 37,
            "name": "USERS_MANAGE_ROLES_OTHER_ENTERPRISES"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_SYSTEM_ROLES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/38"
                }
            ],
            "id": 38,
            "name": "USERS_MANAGE_SYSTEM_ROLES"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_LDAP_GROUP",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/39"
                }
            ],
            "id": 39,
            "name": "USERS_MANAGE_LDAP_GROUP"
        },
        {
            "links": [
                {
                    "title": "USERS_ENUMERATE_CONNECTED",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/40"
                }
            ],
            "id": 40,
            "name": "USERS_ENUMERATE_CONNECTED"
        },
        {
            "links": [
                {
                    "title": "SYSCONFIG_VIEW",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/41"
                }
            ],
            "id": 41,
            "name": "SYSCONFIG_VIEW"
        },
        {
            "links": [
                {
                    "title": "SYSCONFIG_ALLOW_MODIFY",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/42"
                }
            ],
            "id": 42,
            "name": "SYSCONFIG_ALLOW_MODIFY"
        },
        {
            "links": [
                {
                    "title": "EVENTLOG_VIEW_ENTERPRISE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/43"
                }
            ],
            "id": 43,
            "name": "EVENTLOG_VIEW_ENTERPRISE"
        },
        {
            "links": [
                {
                    "title": "EVENTLOG_VIEW_ALL",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/44"
                }
            ],
            "id": 44,
            "name": "EVENTLOG_VIEW_ALL"
        },
        {
            "links": [
                {
                    "title": "APPLIB_VM_COST_CODE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/45"
                }
            ],
            "id": 45,
            "name": "APPLIB_VM_COST_CODE"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_ENTERPRISE_BRANDING",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/46"
                }
            ],
            "id": 46,
            "name": "USERS_MANAGE_ENTERPRISE_BRANDING"
        },
        {
            "links": [
                {
                    "title": "SYSCONFIG_SHOW_REPORTS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/47"
                }
            ],
            "id": 47,
            "name": "SYSCONFIG_SHOW_REPORTS"
        },
        {
            "links": [
                {
                    "title": "USERS_DEFINE_AS_MANAGER",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/48"
                }
            ],
            "id": 48,
            "name": "USERS_DEFINE_AS_MANAGER"
        },
        {
            "links": [
                {
                    "title": "PRICING_VIEW",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/49"
                }
            ],
            "id": 49,
            "name": "PRICING_VIEW"
        },
        {
            "links": [
                {
                    "title": "PRICING_MANAGE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/50"
                }
            ],
            "id": 50,
            "name": "PRICING_MANAGE"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_CHEF_ENTERPRISE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/51"
                }
            ],
            "id": 51,
            "name": "USERS_MANAGE_CHEF_ENTERPRISE"
        },
        {
            "links": [
                {
                    "title": "MANAGE_HARD_DISKS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/52"
                }
            ],
            "id": 52,
            "name": "MANAGE_HARD_DISKS"
        },
        {
            "links": [
                {
                    "title": "APPLIB_MANAGE_GLOBAL_CATEGORIES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/53"
                }
            ],
            "id": 53,
            "name": "APPLIB_MANAGE_GLOBAL_CATEGORIES"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_SCOPES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/54"
                }
            ],
            "id": 54,
            "name": "USERS_MANAGE_SCOPES"
        },
        {
            "links": [
                {
                    "title": "USERS_MANAGE_RESERVED_MACHINES",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/55"
                }
            ],
            "id": 55,
            "name": "USERS_MANAGE_RESERVED_MACHINES"
        },
        {
            "links": [
                {
                    "title": "VAPP_MANAGE_LAYERS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/56"
                }
            ],
            "id": 56,
            "name": "VAPP_MANAGE_LAYERS"
        },
        {
            "links": [
                {
                    "title": "ENTERPRISE_SHOW_STATS_LIMITS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/57"
                }
            ],
            "id": 57,
            "name": "ENTERPRISE_SHOW_STATS_LIMITS"
        },
        {
            "links": [
                {
                    "title": "PHYS_DC_ALLOW_BACKUP_CONFIG",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/58"
                }
            ],
            "id": 58,
            "name": "PHYS_DC_ALLOW_BACKUP_CONFIG"
        },
        {
            "links": [
                {
                    "title": "VAPP_MANAGE_BACKUP",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/59"
                }
            ],
            "id": 59,
            "name": "VAPP_MANAGE_BACKUP"
        },
        {
            "links": [
                {
                    "title": "VAPP_DEFINE_BACKUP_INFO",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/60"
                }
            ],
            "id": 60,
            "name": "VAPP_DEFINE_BACKUP_INFO"
        },
        {
            "links": [
                {
                    "title": "WORKFLOW_OVERRIDE",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/61"
                }
            ],
            "id": 61,
            "name": "WORKFLOW_OVERRIDE"
        },
        {
            "links": [
                {
                    "title": "APPLIB_SHOW_DC_CAPACITY",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/62"
                }
            ],
            "id": 62,
            "name": "APPLIB_SHOW_DC_CAPACITY"
        },
        {
            "links": [
                {
                    "title": "VAPP_DELETE_UNKNOWN_VM",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/63"
                }
            ],
            "id": 63,
            "name": "VAPP_DELETE_UNKNOWN_VM"
        },
        {
            "links": [
                {
                    "title": "VAPP_MANAGE_BACKUP_DISKS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/64"
                }
            ],
            "id": 64,
            "name": "VAPP_MANAGE_BACKUP_DISKS"
        },
        {
            "links": [
                {
                    "title": "MANAGE_FLOATINGIPS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/65"
                }
            ],
            "id": 65,
            "name": "MANAGE_FLOATINGIPS"
        },
        {
            "links": [
                {
                    "title": "ASSIGN_FIREWALLS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/66"
                }
            ],
            "id": 66,
            "name": "ASSIGN_FIREWALLS"
        },
        {
            "links": [
                {
                    "title": "MANAGE_FIREWALLS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/67"
                }
            ],
            "id": 67,
            "name": "MANAGE_FIREWALLS"
        },
        {
            "links": [
                {
                    "title": "VAPP_STATEFUL_VIEW",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/68"
                }
            ],
            "id": 68,
            "name": "VAPP_STATEFUL_VIEW"
        },
        {
            "links": [
                {
                    "title": "ASSIGN_LOADBALANCERS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/69"
                }
            ],
            "id": 69,
            "name": "ASSIGN_LOADBALANCERS"
        },
        {
            "links": [
                {
                    "title": "MANAGE_LOADBALANCERS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/70"
                }
            ],
            "id": 70,
            "name": "MANAGE_LOADBALANCERS"
        },
        {
            "links": [
                {
                    "title": "USERS_ENABLE_DISABLE_VM_METRICS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/71"
                }
            ],
            "id": 71,
            "name": "USERS_ENABLE_DISABLE_VM_METRICS"
        },
        {
            "links": [
                {
                    "title": "USERS_SHOW_VM_METRICS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/72"
                }
            ],
            "id": 72,
            "name": "USERS_SHOW_VM_METRICS"
        },
        {
            "links": [
                {
                    "title": "VAPP_RESTORE_BACKUP",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/73"
                }
            ],
            "id": 73,
            "name": "VAPP_RESTORE_BACKUP"
        },
        {
            "links": [
                {
                    "title": "USERS_PUSH_VM_METRICS",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/74"
                }
            ],
            "id": 74,
            "name": "USERS_PUSH_VM_METRICS"
        },
        {
            "links": [
                {
                    "title": "VM_PROTECT_ACTION",
                    "rel": "privilege",
                    "type": "application/vnd.abiquo.privilege+json",
                    "href": "http://localhost:9000/api/config/privileges/75"
            <    }
            ],
            "id": 75,
            "name": "VM_PROTECT_ACTION"
        }
    ]
}

 

Retrieve a privilege

Returns a specific privilege.

Synopsis: GET http://example.com/api/config/privileges/{privilege}
Roles Required: AUTHENTICATED,USERS_VIEW_PRIVILEGES,USERS_VIEW
Request Headers: Accept: application/vnd.abiquo.privilege+json; version=4.4; application/vnd.abiquo.privilege+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

GET_cfg_privs_X_AC_priv_j.txt

cURL:

curl -X GET http://localhost:9000/api/config/privileges/1 \ 
	 -H 'Accept:application/vnd.abiquo.privilege+json; version=4.2;' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
    "id": 1,
    "name": "ENTERPRISE_ENUMERATE",
    "events": [],
    "links": [
        {
            "title": "ENTERPRISE_ENUMERATE",
            "rel": "self",
            "type": "application/vnd.abiquo.privilege+json",
            "href": "https://mjsabiquo.bcn.abiquo.com:443/api/config/privileges/1"
        },
        {
            "title": "ENTERPRISE_ENUMERATE",
            "rel": "self",
            "type": "application/vnd.abiquo.privilege+json",
            "href": "https://mjsabiquo.bcn.abiquo.com:443/api/config/privileges/1"
        }
    ]
}