Abiquo 2.6


Skip to end of metadata
Go to start of metadata

Enterprise limit by Datacenter

Exposed Resources Hierarchy
Enterprise limit by Datacenter

Contents:

Main URI of the Resource

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

Exposed Methods

Retrieve limits by datacenter

Retrieve the limits of a Datacenter given its identifier.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/limits
Roles Required: ROLE_USERS_MANAGE_ENTERPRISE, ROLE_VDC_ENUMERATE, ROLE_APPLIB_VIEW, ROLE_PHYS_DC_ALLOW_MODIFY_NETWORK
Request Headers: Accept: application/vnd.abiquo.limits+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

datacenter

false

 

Optional. Identifier of the datacenter. If informed only check for the
association with this datacenter (if it is allowed).

 

 

 

 

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

 Click here to show or hide the request example
Retrieve limits by datacenter example
curl -X GET http://localhost/api/admin/datacenters/1/action/getlimits\
	 -H 'Accept: application/vnd.abiquo.limits+xml; version=2.4'	\
	 -u user:password --verbose


GET http://localhost/api/admin/datacenters/1/action/getlimits HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.limits+xml;version=2.4


HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:07 GMT
Set-Cookie: JSESSIONID=B43A8F690911D3B0A27E1CA0BBFFD8BF; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIwNzI2ODpiZTExMjYwZDZmM2U3YTY0ZjE3NGVkNTE4NDFlNmZlNTpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:07 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.limits+xml;version=2.4
Content-Length: 4014

<?xml version="1.0" encoding="UTF-8"?>
<limits>
  <limit>
    <link
      href="http://localhost/api/admin/enterprises/1/limits/1/action/virtualappliances"
      rel="action" title="virtualappliances" type="application/vnd.abiquo.virtualappliances+xml"/>
    <link href="http://localhost/api/admin/datacenters/1"
      rel="datacenter" title="JC-b46300d9-bc6"/>
    <link
      href="http://localhost/api/admin/enterprises/1/limits/1/datacenter"
      rel="datacenterByLimit" title="JC-b46300d9-bc6" type="application/vnd.abiquo.datacenter+xml"/>
    <link href="http://localhost/api/admin/enterprises/1/limits/1"
      rel="edit" type="application/vnd.abiquo.limit+xml"/>
    <link href="http://localhost/api/admin/enterprises/1"
      rel="enterprise" type="application/vnd.abiquo.enterprise+xml"/>
    <link
      href="http://localhost/api/admin/enterprises/1/limits/1/externalnetworks"
      rel="externalnetworks" type="application/vnd.abiquo.vlans+xml"/>
    <link
      href="http://localhost/api/admin/enterprises/1/limits/1/hypervisors"
      rel="hypervisor" type="application/vnd.abiquo.hypervisortypes+xml"/>
    <link
      href="http://localhost/api/admin/datacenters/1/storage/tiers/1"
      rel="tier" title="Default Tier 1" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://localhost/api/admin/datacenters/1/storage/tiers/2"
      rel="tier" title="Default Tier 2" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://localhost/api/admin/datacenters/1/storage/tiers/3"
      rel="tier" title="Default Tier 3" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://localhost/api/admin/datacenters/1/storage/tiers/4"
      rel="tier" title="Default Tier 4" type="application/vnd.abiquo.tier+xml"/>
    <cpuHard>0</cpuHard>
    <cpuSoft>0</cpuSoft>
    <hdHard>0</hdHard>
    <hdSoft>0</hdSoft>
    <publicIpsHard>0</publicIpsHard>
    <publicIpsSoft>0</publicIpsSoft>
    <ramHard>0</ramHard>
    <ramSoft>0</ramSoft>
    <storageHard>0</storageHard>
    <storageSoft>0</storageSoft>
    <vlansHard>0</vlansHard>
    <vlansSoft>0</vlansSoft>
    <id>1</id>
    <repositoryHard>0</repositoryHard>
    <repositorySoft>0</repositorySoft>
  </limit>
  <limit>
    <link
      href="http://localhost/api/admin/enterprises/2/limits/2/action/virtualappliances"
      rel="action" title="virtualappliances" type="application/vnd.abiquo.virtualappliances+xml"/>
    <link href="http://localhost/api/admin/datacenters/1"
      rel="datacenter" title="JC-b46300d9-bc6"/>
    <link
      href="http://localhost/api/admin/enterprises/2/limits/2/datacenter"
      rel="datacenterByLimit" title="JC-b46300d9-bc6" type="application/vnd.abiquo.datacenter+xml"/>
    <link href="http://localhost/api/admin/enterprises/2/limits/2"
      rel="edit" type="application/vnd.abiquo.limit+xml"/>
    <link href="http://localhost/api/admin/enterprises/2"
      rel="enterprise" type="application/vnd.abiquo.enterprise+xml"/>
    <link
      href="http://localhost/api/admin/enterprises/2/limits/2/externalnetworks"
      rel="externalnetworks" type="application/vnd.abiquo.vlans+xml"/>
    <link
      href="http://localhost/api/admin/enterprises/2/limits/2/hypervisors"
      rel="hypervisor" type="application/vnd.abiquo.hypervisortypes+xml"/>
    <link
      href="http://localhost/api/admin/datacenters/1/storage/tiers/1"
      rel="tier" title="Default Tier 1" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://localhost/api/admin/datacenters/1/storage/tiers/2"
      rel="tier" title="Default Tier 2" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://localhost/api/admin/datacenters/1/storage/tiers/3"
      rel="tier" title="Default Tier 3" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://localhost/api/admin/datacenters/1/storage/tiers/4"
      rel="tier" title="Default Tier 4" type="application/vnd.abiquo.tier+xml"/>
    <cpuHard>0</cpuHard>
    <cpuSoft>0</cpuSoft>
    <hdHard>0</hdHard>
    <hdSoft>0</hdSoft>
    <publicIpsHard>0</publicIpsHard>
    <publicIpsSoft>0</publicIpsSoft>
    <ramHard>0</ramHard>
    <ramSoft>0</ramSoft>
    <storageHard>0</storageHard>
    <storageSoft>0</storageSoft>
    <vlansHard>0</vlansHard>
    <vlansSoft>0</vlansSoft>
    <id>2</id>
    <repositoryHard>0</repositoryHard>
    <repositorySoft>0</repositorySoft>
  </limit>
</limits>


Create a datacenter limit

Allow an enterprise to use a datacenter.

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/limits
Roles Required: ROLE_USERS_MANAGE_ENTERPRISE
Request Headers: Accept: application/vnd.abiquo.limit+xml; version=2.4; Content-type: application/vnd.abiquo.limit+xml; version=2.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Create a datacenter limit example
curl -X POST http://localhost:80/api/admin/enterprises/3/limits?datacenter=1\
     -H 'Accept: application/vnd.abiquo.limit+xml; version=2.4' \
     -H 'Content-Type: application/vnd.abiquo.limit+xml; version=2.4'   \
     -d @entity.xml \
     -u user:password --verbose


POST http://localhost:80/api/admin/enterprises/3/limits?datacenter=1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.limit+xml;version=2.4
Content-Type: application/vnd.abiquo.limit+xml;version=2.4
Content-Length: 575


HTTP/1.1 201 Creado
Date: Fri, 01 Feb 2013 16:33:57 GMT
Location: http://localhost:80/api/admin/enterprises/3/limits/3
Set-Cookie: JSESSIONID=F8C0478080DB529B65C067CCCE19E276.nodeAlbert; Path=/api
Set-Cookie: auth=YWRtaW46MTM1OTczODIzNzQxNTpiMjY1OTA3YTFhMWYxNDIwMDhiZWZkMWNmOWUzYzk1NTpBQklRVU8; Expires=Fri, 01-Feb-2013 17:03:57 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.limit+xml;version=2.4
Content-Length: 2004

<?xml version="1.0" encoding="UTF-8"?>
<limit>
  <link href="http://localhost:80/api/admin/enterprises/3"
    rel="enterprise" type="application/vnd.abiquo.enterprise+xml"/>
  <link href="http://localhost:80/api/admin/datacenters/1"
    rel="datacenter" title="JC-35579fa5-699"/>
  <link
    href="http://localhost:80/api/admin/enterprises/3/limits/3/datacenter"
    rel="datacenterByLimit" title="JC-35579fa5-699" type="application/vnd.abiquo.datacenter+xml"/>
  <link
    href="http://localhost:80/api/admin/enterprises/3/limits/3/hypervisors"
    rel="hypervisor" type="application/vnd.abiquo.hypervisortypes+xml"/>
  <link href="http://localhost:80/api/admin/enterprises/3/limits/3"
    rel="edit" type="application/vnd.abiquo.limit+xml"/>
  <link
    href="http://localhost:80/api/admin/enterprises/3/limits/3/externalnetworks"
    rel="externalnetworks" type="application/vnd.abiquo.vlans+xml"/>
  <link
    href="http://localhost:80/api/admin/enterprises/3/limits/3/action/virtualappliances"
    rel="action" title="virtualappliances" type="application/vnd.abiquo.virtualappliances+xml"/>
  <link
    href="http://localhost:80/api/admin/datacenters/1/storage/tiers/1"
    rel="tier" title="Default Tier 1" type="application/vnd.abiquo.tier+xml"/>
  <link
    href="http://localhost:80/api/admin/datacenters/1/storage/tiers/2"
    rel="tier" title="Default Tier 2" type="application/vnd.abiquo.tier+xml"/>
  <link
    href="http://localhost:80/api/admin/datacenters/1/storage/tiers/3"
    rel="tier" title="Default Tier 3" type="application/vnd.abiquo.tier+xml"/>
  <link
    href="http://localhost:80/api/admin/datacenters/1/storage/tiers/4"
    rel="tier" title="Default Tier 4" type="application/vnd.abiquo.tier+xml"/>
  <id>3</id>
  <cpuHard>0</cpuHard>
  <cpuSoft>0</cpuSoft>
  <ramHard>0</ramHard>
  <ramSoft>0</ramSoft>
  <hdHard>0</hdHard>
  <hdSoft>0</hdSoft>
  <storageHard>0</storageHard>
  <storageSoft>0</storageSoft>
  <vlansHard>0</vlansHard>
  <vlansSoft>0</vlansSoft>
  <publicIpsHard>0</publicIpsHard>
  <publicIpsSoft>0</publicIpsSoft>
  <repositoryHard>0</repositoryHard>
  <repositorySoft>0</repositorySoft>
</limit>

Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

Lookup datacenter using the datacenter limit by enterprise

Get the datacenter for the datacenter limit by enterprise association.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}/datacenter
Roles Required: ROLE_USERS_MANAGE_ENTERPRISE,ROLE_VDC_MANAGE,ROLE_APPLIB_VIEW
Request Headers: Accept: application/vnd.abiquo.datacenter+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Lookup datacenter using the datacenter limit by enterprise example
curl --verbose -X GET "http://admin:xabiquo@10.60.1.223/api/admin/enterprises/1/limits/4/datacenter"
> GET /api/admin/enterprises/1/limits/4/datacenter HTTP/1.1

< HTTP/1.1 200 OK
< Content-Type: application/vnd.abiquo.datacenter+xml;version=2.2
< Content-Length: 2279
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<datacenter>
  <link rel="checkmachineipmi"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/checkmachineipmi" />
  <link rel="checkmachineipmistate"
  type="application/vnd.abiquo.machineipmistate+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/checkmachineipmistate" />
  <link rel="checkmachinestate"
  type="application/vnd.abiquo.machinestate+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/checkmachinestate" />
  <link rel="devices" type="application/vnd.abiquo.datacenters+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/storage/devices" />
  <link rel="discovermultiple"
  type="application/vnd.abiquo.machines+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/discovermultiple" />
  <link rel="discoversingle"
  type="application/vnd.abiquo.machine+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/discoversingle" />
  <link rel="edit" type="application/vnd.abiquo.datacenter+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2" />
  <link rel="enterprises"
  type="application/vnd.abiquo.enterprises+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/enterprises" />
  <link rel="getLimits" type="application/vnd.abiquo.limit+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/getlimits" />
  <link rel="hypervisor" type="text/plain"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/hypervisor" />
  <link rel="hypervisors"
  type="application/vnd.abiquo.hypervisortypes+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/hypervisors" />
  <link rel="network" type="application/vnd.abiquo.vlans+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/network" />
  <link rel="racks" type="application/vnd.abiquo.racks+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/racks" />
  <link rel="remoteservices"
  type="application/vnd.abiquo.remoteservices+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/remoteservices" />
  <link rel="tiers" type="application/vnd.abiquo.tiers+xml"
  href="http://10.60.1.223:80/api/admin/datacenters/2/storage/tiers" />
  <link rel="updateusedresources"
  href="http://10.60.1.223:80/api/admin/datacenters/2/action/updateusedresources" />
  <id>2</id>
  <location>a</location>
  <name>a</name>
  <uuid>agorilado</uuid>
</datacenter>

Retrieves virtual appliances in datacenter by enterprise

Retrieves the list of all virtual appliances defined in an enterprise for the specified datacenter.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}/action/virtualappliances
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_SERVERS
Request Headers: Accept: application/vnd.abiquo.virtualappliances+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Retrieves virtual appliances in datacenter by enterprise example
curl --verbose -X GET "http://admin:xabiquo@10.60.1.223/api/admin/enterprises/1/limits/4/action/virtualappliances"

> GET /api/admin/enterprises/1/limits/4/action/virtualappliances HTTP/1.1
< HTTP/1.1 200 OK
< Content-Type: application/vnd.abiquo.virtualappliances+xml;version=2.2
< Content-Length: 1529
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<virtualAppliances>
  <virtualAppliance>
    <link rel="deploy"
    type="application/vnd.abiquo.acceptedrequest+xml"
    href="http://10.60.1.223:80/api/cloud/virtualdatacenters/6/virtualappliances/3/action/deploy" />
    <link rel="edit"
    type="application/vnd.abiquo.virtualappliance+xml"
    href="http://10.60.1.223:80/api/cloud/virtualdatacenters/6/virtualappliances/3" />
    <link rel="enterprise"
    type="application/vnd.abiquo.enterprise+xml"
    href="http://10.60.1.223:80/api/admin/enterprises/1" />
    <link rel="price" type="text/plain"
    href="http://10.60.1.223:80/api/cloud/virtualdatacenters/6/virtualappliances/3/action/price" />
    <link rel="state"
    type="application/vnd.abiquo.virtualappliancestate+xml"
    href="http://10.60.1.223:80/api/cloud/virtualdatacenters/6/virtualappliances/3/state" />
    <link rel="undeploy"
    type="application/vnd.abiquo.acceptedrequest+xml"
    href="http://10.60.1.223:80/api/cloud/virtualdatacenters/6/virtualappliances/3/action/undeploy" />
    <link rel="virtualdatacenter"
    type="application/vnd.abiquo.virtualdatacenter+xml"
    href="http://10.60.1.223:80/api/cloud/virtualdatacenters/6" />
    <link rel="virtualmachines"
    type="application/vnd.abiquo.virtualmachines+xml"
    href="http://10.60.1.223:80/api/cloud/virtualdatacenters/6/virtualappliances/3/virtualmachines" />
    <error>0</error>
    <highDisponibility>0</highDisponibility>
    <id>3</id>
    <name>a</name>
    <nodeconnections>&lt;connections/&gt;</nodeconnections>
    <publicApp>0</publicApp>
    <state>NOT_DEPLOYED</state>
  </virtualAppliance>
</virtualAppliances>



Retrieves machines in datacenter by enterprise

Retrieves the list of machines defined in an enterprise for the specified datacenter.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}/hypervisors
Roles Required: ROLE_VDC_MANAGE
Request Headers: Accept: application/vnd.abiquo.hypervisortypes+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

datacenter

true

 

identifier of the datacenter

 

 

 

 

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

 Click here to show or hide the request example
Retrieves machines in datacenter by enterprise example
$ curl --verbose -X GET "http://admin:xabiquo@10.60.1.223/api/admin/enterprises/1/limits/4/hypervisors?datacenter=2" 

> GET /api/admin/enterprises/1/limits/4/hypervisors?datacenter=2 HTTP/1.1
< HTTP/1.1 200 OK
< Content-Type: application/vnd.abiquo.hypervisortypes+xml;version=2.2
< Content-Length: 449
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<hypervisorstype>
  <hypervisortype>
    <baseFormat>VDI_FLAT</baseFormat>
    <compatibilityTable>VMDK_SPARSE</compatibilityTable>
    <compatibilityTable>VHD_FLAT</compatibilityTable>
    <compatibilityTable>VHD_SPARSE</compatibilityTable>
    <compatibilityTable>VDI_FLAT</compatibilityTable>
    <compatibilityTable>VDI_SPARSE</compatibilityTable>
    <defaultPort>8889</defaultPort>
    <id>1</id>
  </hypervisortype>
</hypervisorstype>



Retrieve the datacenter limit by enterprise

Get datacenter limits for all the allowed datacenters of the current enterprise.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}
Roles Required: ROLE_USERS_MANAGE_ENTERPRISE
Request Headers: Accept: application/vnd.abiquo.limit+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Retrieve the datacenter limit by enterprise example
curl --verbose -X GET "http://admin:xabiquo@10.60.1.223/api/admin/enterprises/1/limits/4" 
> GET /api/admin/enterprises/1/limits/4 HTTP/1.1

< HTTP/1.1 200 OK
< Content-Type: application/vnd.abiquo.limit+xml;version=2.2
< Content-Length: 1402
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<limit>
  <link title="virtualappliances" rel="action"
  type="application/vnd.abiquo.virtualappliances+xml"
  href="http://10.60.1.223:80/api/admin/enterprises/1/limits/4/action/virtualappliances" />
  <link title="a" rel="datacenter"
  href="http://10.60.1.223:80/api/admin/datacenters/2" />
  <link title="a" rel="datacenterByLimit"
  type="application/vnd.abiquo.datacenter+xml"
  href="http://10.60.1.223:80/api/admin/enterprises/1/limits/4/datacenter" />
  <link rel="edit" type="application/vnd.abiquo.limit+xml"
  href="http://10.60.1.223:80/api/admin/enterprises/1/limits/4" />
  <link rel="enterprise"
  type="application/vnd.abiquo.enterprise+xml"
  href="http://10.60.1.223:80/api/admin/enterprises/1" />
  <link rel="externalnetworks"
  type="application/vnd.abiquo.vlans+xml"
  href="http://10.60.1.223:80/api/admin/enterprises/1/limits/4/externalnetworks" />
  <link rel="hypervisor"
  type="application/vnd.abiquo.hypervisortypes+xml"
  href="http://10.60.1.223:80/api/admin/enterprises/1/limits/4/hypervisors" />
  <cpuHard>0</cpuHard>
  <cpuSoft>0</cpuSoft>
  <hdHard>0</hdHard>
  <hdSoft>0</hdSoft>
  <publicIpsHard>0</publicIpsHard>
  <publicIpsSoft>0</publicIpsSoft>
  <ramHard>0</ramHard>
  <ramSoft>0</ramSoft>
  <storageHard>0</storageHard>
  <storageSoft>0</storageSoft>
  <vlansHard>0</vlansHard>
  <vlansSoft>0</vlansSoft>
  <id>4</id>
  <repositoryHard>0</repositoryHard>
  <repositorySoft>0</repositorySoft>
</limit>



Update datacenter limit by enterprise

Update the limits related to the enterprise in the datacenter. If the has one or more links the corresponding tier will be allowed to be used by the enterprise.

Synopsis: PUT http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}
Roles Required: ROLE_USERS_MANAGE_ENTERPRISE
Request Headers: Accept: application/vnd.abiquo.limit+xml; version=2.4; Content-type: application/vnd.abiquo.limit+xml; version=2.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Update datacenter limit by enterprise example
curl -X PUT 'http://example.com/api/admin/enterprises/1/limits/1' \
      -H "Accept: application/vnd.abiquo.limit+xml;version=2.0" \
      -H "Content-Type: application/vnd.abiquo.limit+xml;version=2.0" \
      -u user:password \
      -d 
      <limit>
        <cpuHard>0</cpuHard>
        <cpuSoft>0</cpuSoft>
        <hdHard>0</hdHard>
        <hdSoft>0</hdSoft>
        <publicIpsHard>0</publicIpsHard>
        <publicIpsSoft>0</publicIpsSoft>
        <ramHard>0</ramHard>
        <ramSoft>0</ramSoft>
        <storageHard>0</storageHard>
        <storageSoft>0</storageSoft>
        <vlansHard>0</vlansHard>
        <vlansSoft>0</vlansSoft>
        <id>0</id>
        <repositoryHard>0</repositoryHard>
        <repositorySoft>0</repositorySoft>
        </limit>
        
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<limit>
    <link title="virtualappliances" rel="action" type="application/vnd.abiquo.virtualappliances+xml" href="http://example.com:80/api/admin/enterprises/1/limits/1/action/virtualappliances"/>
    <link title="dc" rel="datacenter" href="http://example.com:80/api/admin/datacenters/1"/>
    <link title="dc" rel="datacenterByLimit" type="application/vnd.abiquo.datacenter+xml" href="http://example.com:80/api/admin/enterprises/1/limits/1/datacenter"/>
    <link rel="edit" type="application/vnd.abiquo.limit+xml" href="http://example.com:80/api/admin/enterprises/1/limits/1"/>
    <link rel="enterprise" type="application/vnd.abiquo.enterprise+xml" href="http://example.com:80/api/admin/enterprises/1"/>
    <link rel="externalnetworks" type="application/vnd.abiquo.vlans+xml" href="http://example.com:80/api/admin/enterprises/1/limits/1/externalnetworks"/>
    <link rel="hypervisor" type="application/vnd.abiquo.hypervisortypes+xml" href="http://example.com:80/api/admin/enterprises/1/limits/1/hypervisors"/>
    <cpuHard>0</cpuHard>
    <cpuSoft>0</cpuSoft>
    <hdHard>0</hdHard>
    <hdSoft>0</hdSoft>
    <publicIpsHard>0</publicIpsHard>
    <publicIpsSoft>0</publicIpsSoft>
    <ramHard>0</ramHard>
    <ramSoft>0</ramSoft>
    <storageHard>0</storageHard>
    <storageSoft>0</storageSoft>
    <vlansHard>0</vlansHard>
    <vlansSoft>0</vlansSoft>
    <id>1</id>
    <repositoryHard>0</repositoryHard>
    <repositorySoft>0</repositorySoft>
</limit>



Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

Delete a datacenter limit by enterprise

Prohibit datacenter usage for the enterprise.

Synopsis: DELETE http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}
Roles Required: ROLE_USERS_MANAGE_ENTERPRISE
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 a datacenter limit by enterprise example
curl -X DELETE -u user:password 'http://example.com/api/admin/enterprises/1/limits/1'

HTTP/1.1 204 No Content
Date: Thu, 15 Mar 2012 11:11:53 GMT
Set-Cookie: JSESSIONID=2871FFC737519F2ADEFC5F53AAA7A952; Path=/api
Set-Cookie: auth=YWRtaW46MTMzMTgxMTcxMzc0NTpmYmMyN2YzNzk5YTJlM2Q2MWFlMjU5NDk2NTY5NmRiMTpBQklRVU8; Expires=Thu, 15-Mar-2012 11:41:53 GMT; Path=/api
Server: Apache-Coyote/1.1