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:

Tiers Resource

The Tier Resource enables you to represent service levels and quality of service for volumes of external storage. The service levels can have different networking speeds, volume replication, availability and so on, which must be configured by the Storage Administrators outside of the platform.

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/datacenters/{datacenter}/storage/tiers

Exposed Methods

List tiers

Retrieves the list of tiers in a specified datacenter

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/tiers
Roles Required: PHYS_DC_RETRIEVE_DETAILS,VDC_MANAGE_STORAGE,VAPP_CREATE_STATEFUL,PRICING_VIEW,USERS_MANAGE_ENTERPRISE
Request Headers: Accept: application/vnd.abiquo.tiers+json; version=4.4; application/vnd.abiquo.tiers+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

GET_adm_dcs_X_stg_trs_AC_trs_j.0001.txt

cURL:

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

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": [
    {
      "storageAllocationPolicy": "PROGRESSIVE", 
      "description": "8", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1383", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "edit", 
          "title": "Tier 1"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623", 
          "type": "application/vnd.abiquo.datacenter+json", 
          "rel": "datacenter", 
          "title": "6"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1383/pools", 
          "type": "application/vnd.abiquo.storagepools+json", 
          "rel": "pools", 
          "title": "pools"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1383/enterprises", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprises", 
          "title": "enterprises"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1383/action/allowallenterprises", 
          "type": "", 
          "rel": "allowallenterprises", 
          "title": "allow all enterprises"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1383/action/restrictallenterprises", 
          "type": "", 
          "rel": "restrictallenterprises", 
          "title": "restrict all enterprises"
        }
      ], 
      "defaultAllowed": true, 
      "enabled": true, 
      "id": 1383, 
      "name": "Tier 1"
    }, 
    {
      "storageAllocationPolicy": "PROGRESSIVE", 
      "description": "9", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1384", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "edit", 
          "title": "Tier 2"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623", 
          "type": "application/vnd.abiquo.datacenter+json", 
          "rel": "datacenter", 
          "title": "6"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1384/pools", 
          "type": "application/vnd.abiquo.storagepools+json", 
          "rel": "pools", 
          "title": "pools"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1384/enterprises", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprises", 
          "title": "enterprises"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1384/action/allowallenterprises", 
          "type": "", 
          "rel": "allowallenterprises", 
          "title": "allow all enterprises"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1384/action/restrictallenterprises", 
          "type": "", 
          "rel": "restrictallenterprises", 
          "title": "restrict all enterprises"
        }
      ], 
      "defaultAllowed": true, 
      "enabled": true, 
      "id": 1384, 
      "name": "Tier 2"
    }, 
    {
      "storageAllocationPolicy": "PROGRESSIVE", 
      "description": "10", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1385", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "edit", 
          "title": "Tier 3"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623", 
          "type": "application/vnd.abiquo.datacenter+json", 
          "rel": "datacenter", 
          "title": "6"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1385/pools", 
          "type": "application/vnd.abiquo.storagepools+json", 
          "rel": "pools", 
          "title": "pools"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1385/enterprises", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprises", 
          "title": "enterprises"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1385/action/allowallenterprises", 
          "type": "", 
          "rel": "allowallenterprises", 
          "title": "allow all enterprises"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1385/action/restrictallenterprises", 
          "type": "", 
          "rel": "restrictallenterprises", 
          "title": "restrict all enterprises"
        }
      ], 
      "defaultAllowed": true, 
      "enabled": true, 
      "id": 1385, 
      "name": "Tier 3"
    }, 
    {
      "storageAllocationPolicy": "PROGRESSIVE", 
      "description": "11", 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1386", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "edit", 
          "title": "Tier 4"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623", 
          "type": "application/vnd.abiquo.datacenter+json", 
          "rel": "datacenter", 
          "title": "6"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1386/pools", 
          "type": "application/vnd.abiquo.storagepools+json", 
          "rel": "pools", 
          "title": "pools"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1386/enterprises", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprises", 
          "title": "enterprises"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1386/action/allowallenterprises", 
          "type": "", 
          "rel": "allowallenterprises", 
          "title": "allow all enterprises"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/5623/storage/tiers/1386/action/restrictallenterprises", 
          "type": "", 
          "rel": "restrictallenterprises", 
          "title": "restrict all enterprises"
        }
      ], 
      "defaultAllowed": true, 
      "enabled": true, 
      "id": 1386, 
      "name": "Tier 4"
    }
  ]
}

Get a tier

Retrieve a tier.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/tiers/{tier}
Roles Required: PHYS_DC_RETRIEVE_DETAILS,VDC_MANAGE_STORAGE,VAPP_CREATE_STATEFUL,PRICING_VIEW,USERS_MANAGE_ENTERPRISE
Request Headers: Accept: application/vnd.abiquo.tier+json; version=4.4; application/vnd.abiquo.tier+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

GET_adm_dcs_X_stg_trs_X_AC_tr_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/datacenters/4652/storage/tiers/1100 \ 
	 -H 'Accept:application/vnd.abiquo.tier+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "storageAllocationPolicy": "PROGRESSIVE", 
  "description": "219", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100", 
      "type": "application/vnd.abiquo.tier+json", 
      "rel": "edit", 
      "title": "Tier modified"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652", 
      "type": "application/vnd.abiquo.datacenter+json", 
      "rel": "datacenter", 
      "title": "217"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100/pools", 
      "type": "application/vnd.abiquo.storagepools+json", 
      "rel": "pools", 
      "title": "pools"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100/enterprises", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprises", 
      "title": "enterprises"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100/action/allowallenterprises", 
      "type": "", 
      "rel": "allowallenterprises", 
      "title": "allow all enterprises"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100/action/restrictallenterprises", 
      "type": "", 
      "rel": "restrictallenterprises", 
      "title": "restrict all enterprises"
    }
  ], 
  "defaultAllowed": true, 
  "enabled": true, 
  "id": 1100, 
  "name": "Tier modified"
}

Update a tier

Update a tier.

Synopsis: PUT http://example.com/api/admin/datacenters/{datacenter}/storage/tiers/{tier}
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE
Request Headers: Accept: application/vnd.abiquo.tier+json; version=4.4; application/vnd.abiquo.tier+xml; version=4.4;  Content-type:  application/vnd.abiquo.tier+json; version=4.4; application/vnd.abiquo.tier+xml; version=4.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

PUT_adm_dcs_X_stg_trs_X_CT_tr_j_AC_tr_j.0001.txt

cURL:

curl -X PUT http://localhost:9000/api/admin/datacenters/4652/storage/tiers/1100 \ 
	 -H 'Accept:application/vnd.abiquo.tier+json; version=4.2' \ 
	 -H 'Content-Type:application/vnd.abiquo.tier+json; version=4.2' \ 
	 -d @requestpayload.json \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

{
  "storageAllocationPolicy": "PROGRESSIVE", 
  "description": "219", 
  "links": [], 
  "defaultAllowed": true, 
  "enabled": true, 
  "id": 1100, 
  "name": "Tier modified"
}

Response payload:

{
  "storageAllocationPolicy": "PROGRESSIVE", 
  "description": "219", 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100", 
      "type": "application/vnd.abiquo.tier+json", 
      "rel": "edit", 
      "title": "Tier modified"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652", 
      "type": "application/vnd.abiquo.datacenter+json", 
      "rel": "datacenter", 
      "title": "217"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100/pools", 
      "type": "application/vnd.abiquo.storagepools+json", 
      "rel": "pools", 
      "title": "pools"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100/enterprises", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprises", 
      "title": "enterprises"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100/action/allowallenterprises", 
      "type": "", 
      "rel": "allowallenterprises", 
      "title": "allow all enterprises"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4652/storage/tiers/1100/action/restrictallenterprises", 
      "type": "", 
      "rel": "restrictallenterprises", 
      "title": "restrict all enterprises"
    }
  ], 
  "defaultAllowed": true, 
  "enabled": true, 
  "id": 1100, 
  "name": "Tier modified"
}

 

List pools by tier with devices

Retrieve a list of pools by tier, including the representation of the device that each pool belongs to.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/tiers/{tier}/pools
Roles Required: PHYS_DC_RETRIEVE_DETAILS,VAPP_CREATE_STATEFUL
Request Headers: Accept: application/vnd.abiquo.storagepoolswithdevice+json; version=4.4; application/vnd.abiquo.storagepoolswithdevice+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

GET_adm_dcs_X_stg_trs_X_pls_AC_stgplswdev_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/admin/datacenters/4566/storage/tiers/1166/pools \ 
	 -H 'Accept:application/vnd.abiquo.storagepoolswithdevice+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": []
}

List pools by tier

Retrieve a list of pools by tier.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/tiers/{tier}/pools
Roles Required: PHYS_DC_RETRIEVE_DETAILS,VAPP_CREATE_STATEFUL
Request Headers: Accept: application/vnd.abiquo.storagepools+json; version=4.4; application/vnd.abiquo.storagepools+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to expand...

GET_adm_dcs_X_stg_trs_X_pls_AC_stgpls_j.txt

cURL:

curl -X GET http://localhost:9000/api/admin/datacenters/1/storage/tiers/1/pools \ 
	 -H 'Accept:application/vnd.abiquo.storagepools+json; version=3.4' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
    "links": [],
    "collection": [
        {
            "links": [
                {
                    "title": "/NFSstorage",
                    "rel": "edit",
                    "type": "application/vnd.abiquo.storagepool+json",
                    "href": "https://preprod-abiquo.bcn.abiquo.com:443/api/admin/datacenters/1/storage/devices/1/pools/3c2cb30e-0b1e-4e10-9d2b-9751d7f05863"
                },
                {
                    "title": "Tier 1: NFS Tier",
                    "rel": "tier",
                    "type": "application/vnd.abiquo.tier+json",
                    "href": "https://preprod-abiquo.bcn.abiquo.com:443/api/admin/datacenters/1/storage/tiers/1"
                },
                {
                    "title": "Tier 1: NFS Storage",
                    "rel": "device",
                    "type": "application/vnd.abiquo.storagedevice+json",
                    "href": "https://preprod-abiquo.bcn.abiquo.com:443/api/admin/datacenters/1/storage/devices/1"
                },
                {
                    "title": "volumes",
                    "rel": "volumes",
                    "type": "application/vnd.abiquo.volumes+json",
                    "href": "https://preprod-abiquo.bcn.abiquo.com:443/api/admin/datacenters/1/storage/devices/1/pools/3c2cb30e-0b1e-4e10-9d2b-9751d7f05863/action/volumes"
                }
            ],
            "idStorage": "3c2cb30e-0b1e-4e10-9d2b-9751d7f05863",
            "name": "/NFSstorage",
            "totalSizeInMb": 50397,
            "usedSizeInMb": 22092,
            "availableSizeInMb": 25745,
            "enabled": false,
            "type": "NFS",
            "maxVolumes": 0,
            "usablePercent": 100
        }
    ]
}

 

List allowed enterprises for a tier

Retrieve the list of enterprises that are allowed to access the given tier.

Paging Method

This method works with paging. Check out Basic Behaviors for information about how it works

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/storage/tiers/{tier}/enterprises
Roles Required: PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.enterprises+json; version=4.4; application/vnd.abiquo.enterprises+xml; version=4.4;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

startwith

false

0

first element to retrieve

limit

false

25

number of elements to return

by

false

name

ordering the request.

has

false

 

filter the request. With this parameter the response just contains the elements
which name matches the filter value.

asc

false

true

order ascendant or descendant. By default the sort mode is ascending.

 

 

 

 

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

 Click here to show or hide the request example

GET_adm_dcs_X_stg_trs_X_ents_AC_ents_j.0001.txt

cURL:

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

Success status code: 200

Request payload:

--none--

Response payload:

{
  "totalSize": 5, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/datacenters/4645/storage/tiers/1093/enterprises?limit=25&by=name&asc=true", 
      "rel": "first"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/4645/storage/tiers/1093/enterprises?startwith=0&limit=25&by=name&asc=true", 
      "rel": "last"
    }
  ], 
  "collection": [
    {
      "ramHard": 11, 
      "isReservationRestricted": false, 
      "twoFactorAuthenticationMandatory": false, 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "edit", 
          "title": "10"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/users", 
          "type": "application/vnd.abiquo.users+json", 
          "rel": "users", 
          "title": "users"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/properties", 
          "type": "application/vnd.abiquo.enterpriseproperties+json", 
          "rel": "properties", 
          "title": "properties"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/5101", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/appslib/templateDefinitionLists", 
          "type": "application/vnd.abiquo.templatedefinitionlists+json", 
          "rel": "appslib/templateDefinitionLists", 
          "title": "template definitions lists"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/appslib/templateDefinitions", 
          "type": "application/vnd.abiquo.templatedefinitions+json", 
          "rel": "appslib/templateDefinitions", 
          "title": "template defintion paths"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/datacenterrepositories", 
          "type": "application/vnd.abiquo.datacenterrepositories+json", 
          "rel": "datacenterrepositories", 
          "title": "repositories"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/action/virtualappliances", 
          "type": "application/vnd.abiquo.virtualappliances+json", 
          "rel": "virtualappliances", 
          "title": "virtual appliances"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/action/ips", 
          "type": "application/vnd.abiquo.privateips+json", 
          "rel": "ips", 
          "title": "ips"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/action/virtualdatacenters", 
          "type": "application/vnd.abiquo.virtualdatacenters+json", 
          "rel": "cloud/virtualdatacenters", 
          "title": "virtual datacenters"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/reservedmachines", 
          "type": "application/vnd.abiquo.machines+json", 
          "rel": "reservedmachines", 
          "title": "reserved machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/limits", 
          "type": "application/vnd.abiquo.limits+json", 
          "rel": "limits", 
          "title": "limits"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/action/externalnetworks", 
          "type": "application/vnd.abiquo.vlans+json", 
          "rel": "externalnetworks", 
          "title": "external networks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/credentials", 
          "type": "application/vnd.abiquo.publiccloudcredentialslist+json", 
          "rel": "credentials", 
          "title": "credentials"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5301/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": 11, 
      "diskSoftLimitInMb": 11, 
      "id": 5301, 
      "diskHardLimitInMb": 11, 
      "name": "10", 
      "cpuHard": 11, 
      "storageSoftInMb": 0, 
      "publicIpsHard": 0, 
      "repositoryHardInMb": 0, 
      "cpuSoft": 11
    }, 
    {
      "ramHard": 13, 
      "isReservationRestricted": false, 
      "twoFactorAuthenticationMandatory": false, 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "edit", 
          "title": "12"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/users", 
          "type": "application/vnd.abiquo.users+json", 
          "rel": "users", 
          "title": "users"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/properties", 
          "type": "application/vnd.abiquo.enterpriseproperties+json", 
          "rel": "properties", 
          "title": "properties"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/5101", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/appslib/templateDefinitionLists", 
          "type": "application/vnd.abiquo.templatedefinitionlists+json", 
          "rel": "appslib/templateDefinitionLists", 
          "title": "template definitions lists"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/appslib/templateDefinitions", 
          "type": "application/vnd.abiquo.templatedefinitions+json", 
          "rel": "appslib/templateDefinitions", 
          "title": "template defintion paths"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/datacenterrepositories", 
          "type": "application/vnd.abiquo.datacenterrepositories+json", 
          "rel": "datacenterrepositories", 
          "title": "repositories"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/action/virtualappliances", 
          "type": "application/vnd.abiquo.virtualappliances+json", 
          "rel": "virtualappliances", 
          "title": "virtual appliances"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/action/ips", 
          "type": "application/vnd.abiquo.privateips+json", 
          "rel": "ips", 
          "title": "ips"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/action/virtualdatacenters", 
          "type": "application/vnd.abiquo.virtualdatacenters+json", 
          "rel": "cloud/virtualdatacenters", 
          "title": "virtual datacenters"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/reservedmachines", 
          "type": "application/vnd.abiquo.machines+json", 
          "rel": "reservedmachines", 
          "title": "reserved machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/limits", 
          "type": "application/vnd.abiquo.limits+json", 
          "rel": "limits", 
          "title": "limits"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/action/externalnetworks", 
          "type": "application/vnd.abiquo.vlans+json", 
          "rel": "externalnetworks", 
          "title": "external networks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/credentials", 
          "type": "application/vnd.abiquo.publiccloudcredentialslist+json", 
          "rel": "credentials", 
          "title": "credentials"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5302/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": 13, 
      "diskSoftLimitInMb": 13, 
      "id": 5302, 
      "diskHardLimitInMb": 13, 
      "name": "12", 
      "cpuHard": 13, 
      "storageSoftInMb": 0, 
      "publicIpsHard": 0, 
      "repositoryHardInMb": 0, 
      "cpuSoft": 13
    }, 
    {
      "ramHard": 15, 
      "isReservationRestricted": false, 
      "twoFactorAuthenticationMandatory": false, 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "edit", 
          "title": "14"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/users", 
          "type": "application/vnd.abiquo.users+json", 
          "rel": "users", 
          "title": "users"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/properties", 
          "type": "application/vnd.abiquo.enterpriseproperties+json", 
          "rel": "properties", 
          "title": "properties"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/5101", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/appslib/templateDefinitionLists", 
          "type": "application/vnd.abiquo.templatedefinitionlists+json", 
          "rel": "appslib/templateDefinitionLists", 
          "title": "template definitions lists"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/appslib/templateDefinitions", 
          "type": "application/vnd.abiquo.templatedefinitions+json", 
          "rel": "appslib/templateDefinitions", 
          "title": "template defintion paths"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/datacenterrepositories", 
          "type": "application/vnd.abiquo.datacenterrepositories+json", 
          "rel": "datacenterrepositories", 
          "title": "repositories"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/action/virtualappliances", 
          "type": "application/vnd.abiquo.virtualappliances+json", 
          "rel": "virtualappliances", 
          "title": "virtual appliances"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/action/ips", 
          "type": "application/vnd.abiquo.privateips+json", 
          "rel": "ips", 
          "title": "ips"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/action/virtualdatacenters", 
          "type": "application/vnd.abiquo.virtualdatacenters+json", 
          "rel": "cloud/virtualdatacenters", 
          "title": "virtual datacenters"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/reservedmachines", 
          "type": "application/vnd.abiquo.machines+json", 
          "rel": "reservedmachines", 
          "title": "reserved machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/limits", 
          "type": "application/vnd.abiquo.limits+json", 
          "rel": "limits", 
          "title": "limits"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/action/externalnetworks", 
          "type": "application/vnd.abiquo.vlans+json", 
          "rel": "externalnetworks", 
          "title": "external networks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/credentials", 
          "type": "application/vnd.abiquo.publiccloudcredentialslist+json", 
          "rel": "credentials", 
          "title": "credentials"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5303/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": 15, 
      "diskSoftLimitInMb": 15, 
      "id": 5303, 
      "diskHardLimitInMb": 15, 
      "name": "14", 
      "cpuHard": 15, 
      "storageSoftInMb": 0, 
      "publicIpsHard": 0, 
      "repositoryHardInMb": 0, 
      "cpuSoft": 15
    }, 
    {
      "ramHard": 17, 
      "isReservationRestricted": false, 
      "twoFactorAuthenticationMandatory": false, 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "edit", 
          "title": "16"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/users", 
          "type": "application/vnd.abiquo.users+json", 
          "rel": "users", 
          "title": "users"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/properties", 
          "type": "application/vnd.abiquo.enterpriseproperties+json", 
          "rel": "properties", 
          "title": "properties"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/5101", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/appslib/templateDefinitionLists", 
          "type": "application/vnd.abiquo.templatedefinitionlists+json", 
          "rel": "appslib/templateDefinitionLists", 
          "title": "template definitions lists"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/appslib/templateDefinitions", 
          "type": "application/vnd.abiquo.templatedefinitions+json", 
          "rel": "appslib/templateDefinitions", 
          "title": "template defintion paths"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/datacenterrepositories", 
          "type": "application/vnd.abiquo.datacenterrepositories+json", 
          "rel": "datacenterrepositories", 
          "title": "repositories"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/action/virtualappliances", 
          "type": "application/vnd.abiquo.virtualappliances+json", 
          "rel": "virtualappliances", 
          "title": "virtual appliances"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/action/ips", 
          "type": "application/vnd.abiquo.privateips+json", 
          "rel": "ips", 
          "title": "ips"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/action/virtualdatacenters", 
          "type": "application/vnd.abiquo.virtualdatacenters+json", 
          "rel": "cloud/virtualdatacenters", 
          "title": "virtual datacenters"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/reservedmachines", 
          "type": "application/vnd.abiquo.machines+json", 
          "rel": "reservedmachines", 
          "title": "reserved machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/limits", 
          "type": "application/vnd.abiquo.limits+json", 
          "rel": "limits", 
          "title": "limits"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/action/externalnetworks", 
          "type": "application/vnd.abiquo.vlans+json", 
          "rel": "externalnetworks", 
          "title": "external networks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/credentials", 
          "type": "application/vnd.abiquo.publiccloudcredentialslist+json", 
          "rel": "credentials", 
          "title": "credentials"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5304/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": 17, 
      "diskSoftLimitInMb": 17, 
      "id": 5304, 
      "diskHardLimitInMb": 17, 
      "name": "16", 
      "cpuHard": 17, 
      "storageSoftInMb": 0, 
      "publicIpsHard": 0, 
      "repositoryHardInMb": 0, 
      "cpuSoft": 17
    }, 
    {
      "ramHard": 19, 
      "isReservationRestricted": false, 
      "twoFactorAuthenticationMandatory": false, 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "edit", 
          "title": "18"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/users", 
          "type": "application/vnd.abiquo.users+json", 
          "rel": "users", 
          "title": "users"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/properties", 
          "type": "application/vnd.abiquo.enterpriseproperties+json", 
          "rel": "properties", 
          "title": "properties"
        }, 
        {
          "href": "http://localhost:9009/api/admin/scopes/5101", 
          "type": "application/vnd.abiquo.scope+json", 
          "rel": "scope", 
          "title": "Global scope"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/appslib/templateDefinitionLists", 
          "type": "application/vnd.abiquo.templatedefinitionlists+json", 
          "rel": "appslib/templateDefinitionLists", 
          "title": "template definitions lists"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/appslib/templateDefinitions", 
          "type": "application/vnd.abiquo.templatedefinitions+json", 
          "rel": "appslib/templateDefinitions", 
          "title": "template defintion paths"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/datacenterrepositories", 
          "type": "application/vnd.abiquo.datacenterrepositories+json", 
          "rel": "datacenterrepositories", 
          "title": "repositories"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/action/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/action/virtualappliances", 
          "type": "application/vnd.abiquo.virtualappliances+json", 
          "rel": "virtualappliances", 
          "title": "virtual appliances"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/action/ips", 
          "type": "application/vnd.abiquo.privateips+json", 
          "rel": "ips", 
          "title": "ips"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/action/virtualdatacenters", 
          "type": "application/vnd.abiquo.virtualdatacenters+json", 
          "rel": "cloud/virtualdatacenters", 
          "title": "virtual datacenters"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/reservedmachines", 
          "type": "application/vnd.abiquo.machines+json", 
          "rel": "reservedmachines", 
          "title": "reserved machines"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/limits", 
          "type": "application/vnd.abiquo.limits+json", 
          "rel": "limits", 
          "title": "limits"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/action/volumes", 
          "type": "application/vnd.abiquo.volumes+json", 
          "rel": "volumes", 
          "title": "volumes"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/action/externalnetworks", 
          "type": "application/vnd.abiquo.vlans+json", 
          "rel": "externalnetworks", 
          "title": "external networks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/action/pendingtasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "pendingtasks", 
          "title": "pending tasks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/credentials", 
          "type": "application/vnd.abiquo.publiccloudcredentialslist+json", 
          "rel": "credentials", 
          "title": "credentials"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/5305/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": 19, 
      "diskSoftLimitInMb": 19, 
      "id": 5305, 
      "diskHardLimitInMb": 19, 
      "name": "18", 
      "cpuHard": 19, 
      "storageSoftInMb": 0, 
      "publicIpsHard": 0, 
      "repositoryHardInMb": 0, 
      "cpuSoft": 19
    }
  ]
}

 

Allow the tier to all enterprises

This action allows the tier to be used by all enterprises that use the tier's datacenter. The value of the enabled attribute does not affect this functionality, because a tier will be allowed to all enterprises independently of whether it is enabled or disabled, which will be a second level of restriction. Similarly the value of the defaultAllowed attribute of the tier does not affect this functionality.

Synopsis: PUT http://example.com/api/admin/datacenters/{datacenter}/storage/tiers/{tier}/action/allowallenterprises
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE
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

PUT_adm_dcs_X_stg_trs_X_act_allowallents.0001.txt

cURL:

curl -X PUT http://localhost:9000/api/admin/datacenters/4645/storage/tiers/1093/action/allowallenterprises \ 
	 -H 'Accept:text/json,application/json' \ 
	 -u user:password --verbose 

Success status code: 204

Request payload:

--none--

Response payload:

--none--

Restrict the tier for all enterprises

This action restricts the tier for all enterprises. This means that the tier cannot be used by any enterprise. This action supports the use of the force parameter. If the force parameter is false and some enterprise have volumes in the tier, then a list of errors will be returned and no action will be executed. If the force parameter is true and some enterprises have volumes in the tier, then a list of errors will be returned but the enterprises without volumes will be restricted, so they cannot use this tier. If the request is successful, i.e. no enterprises have volumes in the tier, then the parameter does not modify the result and a 204 (NO CONTENT) response code will be returned

Synopsis: PUT http://example.com/api/admin/datacenters/{datacenter}/storage/tiers/{tier}/action/restrictallenterprises
Roles Required: PHYS_DC_ALLOW_MODIFY_STORAGE
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

force

false

false

force

 

 

 

 

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

 Click here to show or hide the request example

PUT_adm_dcs_X_stg_trs_X_act_restallents_force_F.0001.txt

cURL:

curl -X PUT http://localhost:9000/api/admin/datacenters/4648/storage/tiers/1096/action/restrictallenterprises?force=false \ 
	 -H 'Accept:text/json,application/json' \ 
	 -u user:password --verbose 

Success status code: 204

Request payload:

--none--

Response payload:

--none--