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:

Enterprise limit for the Datacenter

To enable an enterprise to use a datacenter or public cloud region, you must create a datacenter limit for the enterprise. The platform will then create the cloud location for the enterprise that represents this datacenter or public cloud region. A datacenter limit can also contain allocation limits for the enterprise in this datacenter or public cloud region. And the limit can also allow the enterprise to access other resources, such as datastore tiers and backup policies.

Main URI of the Resource

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

Exposed Methods

List datacenter limits of an enterprise

Retrieve the limits of an enterprise in all datacenters, or in a single datacenter given its identifier. If an enterprise does not have a datacenter limit for a particular datacenter, the enterprise is not allowed to use that datacenter. This functionality also applies to public cloud regions in the same way.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/limits
Roles Required: USERS_MANAGE_ENTERPRISE, VDC_ENUMERATE, APPLIB_VIEW, PHYS_DC_ALLOW_MODIFY_NETWORK
Request Headers: Accept: application/vnd.abiquo.limits+json; version=4.4; application/vnd.abiquo.limits+xml; version=4.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

GET_adm_ents_X_lmts_AC_lmts_j.0001.txt

cURL:

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

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": [
    {
      "ramHard": 0, 
      "repositorySoftInMb": 0, 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "369"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392/limits/3015", 
          "type": "application/vnd.abiquo.limit+json", 
          "rel": "edit", 
          "title": "edit datacenter limits 3015"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392/limits/3015/externalnetworks", 
          "type": "application/vnd.abiquo.vlans+json", 
          "rel": "externalnetworks", 
          "title": "external networks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392/limits/3015/action/virtualappliances", 
          "type": "application/vnd.abiquo.virtualappliances+json", 
          "rel": "action", 
          "title": "virtualappliances"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392/limits/3015/externalnetworks/1306", 
          "type": "application/vnd.abiquo.vlan+json", 
          "rel": "default", 
          "title": "378"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/3747", 
          "type": "application/vnd.abiquo.datacenter+json", 
          "rel": "location", 
          "title": "371"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/3747/storage/tiers/805", 
          "type": "application/vnd.abiquo.tier+json", 
          "rel": "tier", 
          "title": "385"
        }
      ], 
      "vlansHard": 0, 
      "storageHardInMb": 0, 
      "publicIpsSoft": 0, 
      "vlansSoft": 0, 
      "ramSoft": 0, 
      "diskSoftLimitInMb": 0, 
      "id": 3015, 
      "diskHardLimitInMb": 0, 
      "cpuHard": 0, 
      "storageSoftInMb": 0, 
      "publicIpsHard": 0, 
      "enabledHardwareProfiles": false, 
      "repositoryHardInMb": 0, 
      "cpuSoft": 0
    }, 
    {
      "ramHard": 0, 
      "repositorySoftInMb": 0, 
      "links": [
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "369"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392/limits/3016", 
          "type": "application/vnd.abiquo.limit+json", 
          "rel": "edit", 
          "title": "edit datacenter limits 3016"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392/limits/3016/externalnetworks", 
          "type": "application/vnd.abiquo.vlans+json", 
          "rel": "externalnetworks", 
          "title": "external networks"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392/limits/3016/action/virtualappliances", 
          "type": "application/vnd.abiquo.virtualappliances+json", 
          "rel": "action", 
          "title": "virtualappliances"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4392/limits/3016/externalnetworks/1307", 
          "type": "application/vnd.abiquo.vlan+json", 
          "rel": "default", 
          "title": "382"
        }, 
        {
          "href": "http://localhost:9009/api/admin/datacenters/3748", 
          "type": "application/vnd.abiquo.datacenter+json", 
          "rel": "location", 
          "title": "373"
        }
      ], 
      "vlansHard": 0, 
      "storageHardInMb": 0, 
      "publicIpsSoft": 0, 
      "vlansSoft": 0, 
      "ramSoft": 0, 
      "diskSoftLimitInMb": 0, 
      "id": 3016, 
      "diskHardLimitInMb": 0, 
      "cpuHard": 0, 
      "storageSoftInMb": 0, 
      "publicIpsHard": 0, 
      "enabledHardwareProfiles": false, 
      "repositoryHardInMb": 0, 
      "cpuSoft": 0
    }
  ]
}

Create a datacenter limit

Allow an enterprise to use a datacenter or public cloud region. When you create the datacenter limit, a cloud location is created for the enterprise. To allow an enterprise to use a datacenter with unlimited resources at this level, set limit values to 0. To create a datacenter limit, the data entity should contain a link to a datacenter or public cloud region with a "rel" value  of "location".  It may also include links to resources that the enterprise is allowed to use in a dataenter, such as datastore tiers and backup policies.

Synopsis: POST http://example.com/api/admin/enterprises/{enterprise}/limits
Roles Required: USERS_MANAGE_ENTERPRISE
Request Headers: Accept: application/vnd.abiquo.limit+json; version=4.4; application/vnd.abiquo.limit+xml; version=4.4;  Content-type:  application/vnd.abiquo.limit+json; version=4.4; application/vnd.abiquo.limit+xml; version=4.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
POST_adm_ents_X_lmts_CT_lmt_j_AC_lmt_j.0001.txt

cURL:

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

Success status code: 201

Request payload:

{
  "ramHard": 0, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/publiccloudregions/791", 
      "rel": "location"
    }
  ], 
  "cpuHard": 0, 
  "vlansHard": 0, 
  "publicIpsHard": 0, 
  "publicIpsSoft": 0, 
  "enabledHardwareProfiles": false, 
  "vlansSoft": 0, 
  "ramSoft": 0, 
  "cpuSoft": 0
}

Response payload:

{
  "ramHard": 0, 
  "repositorySoftInMb": 0, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/1038", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprise", 
      "title": "95"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1038/limits/390", 
      "type": "application/vnd.abiquo.limit+json", 
      "rel": "edit", 
      "title": "edit datacenter limits 390"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1038/limits/390/externalnetworks", 
      "type": "application/vnd.abiquo.vlans+json", 
      "rel": "externalnetworks", 
      "title": "external networks"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/1038/limits/390/action/virtualappliances", 
      "type": "application/vnd.abiquo.virtualappliances+json", 
      "rel": "action", 
      "title": "virtualappliances"
    }, 
    {
      "href": "http://localhost:9009/api/admin/publiccloudregions/791", 
      "type": "application/vnd.abiquo.publiccloudregion+json", 
      "rel": "location", 
      "title": "90"
    }
  ], 
  "vlansHard": 0, 
  "storageHardInMb": 0, 
  "publicIpsSoft": 0, 
  "vlansSoft": 0, 
  "ramSoft": 0, 
  "diskSoftLimitInMb": 0, 
  "id": 390, 
  "diskHardLimitInMb": 0, 
  "cpuHard": 0, 
  "storageSoftInMb": 0, 
  "publicIpsHard": 0, 
  "enabledHardwareProfiles": true, 
  "repositoryHardInMb": 0, 
  "cpuSoft": 0
}

 

List virtual appliances of an enterprise in a datacenter

Retrieves the list of all virtual appliances defined in datacenter by an enterprise, given a datacenter limit.

Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}/action/virtualappliances
Roles Required: PHYS_DC_ALLOW_MODIFY_SERVERS
Request Headers: Accept: application/vnd.abiquo.virtualappliances+json; version=4.4; application/vnd.abiquo.virtualappliances+xml; version=4.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
GET_adm_ents_X_lmts_X_act_vapps_AC_vapps_j.0001.txt

cURL:

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

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": [
    {
      "offVirtualMachines": 0, 
      "name": "152", 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382", 
          "type": "application/vnd.abiquo.virtualappliance+json", 
          "rel": "edit", 
          "title": "152"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549", 
          "type": "application/vnd.abiquo.virtualdatacenter+json", 
          "rel": "virtualdatacenter", 
          "title": "150"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4294", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "146"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/state", 
          "type": "application/vnd.abiquo.virtualappliancestate+json", 
          "rel": "state", 
          "title": "virtual appliances state"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/action/undeploy", 
          "type": "application/vnd.abiquo.acceptedrequest+json", 
          "rel": "undeploy", 
          "title": "undeploy"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/action/deploy", 
          "type": "application/vnd.abiquo.acceptedrequest+json", 
          "rel": "deploy", 
          "title": "deploy"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/action/price", 
          "type": "text/plain", 
          "rel": "price", 
          "title": "price"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/layers", 
          "type": "application/vnd.abiquo.layers+json", 
          "rel": "layers", 
          "title": "layers"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/alerts", 
          "type": "application/vnd.abiquo.alerts+json", 
          "rel": "alerts", 
          "title": "alerts"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/action/spec", 
          "type": "application/vnd.abiquo.virtualappliancespec+json", 
          "rel": "spec", 
          "title": "spec"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/tasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "tasks", 
          "title": "tasks"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/scalinggroups", 
          "type": "application/vnd.abiquo.scalinggroups+json", 
          "rel": "scalinggroups", 
          "title": "scalinggroups"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/metrics", 
          "type": "application/vnd.abiquo.metricsmetadata+json", 
          "rel": "metricsmetadata", 
          "title": "metricsmetadata"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1382/metrics/collectd", 
          "type": "application/json", 
          "rel": "collectd", 
          "title": "collectd"
        }
      ], 
      "lockedVirtualMachines": 0, 
      "highDisponibility": 0, 
      "state": "EMPTY", 
      "onVirtualMachines": 0, 
      "notAllocatedVirtualMachines": 0, 
      "configuredVirtualMachines": 0, 
      "pausedVirtualMachines": 0, 
      "allocatedVirtualMachines": 0, 
      "error": 0, 
      "publicApp": 0, 
      "id": 1382, 
      "unknownVirtualMachines": 0
    }, 
    {
      "offVirtualMachines": 0, 
      "name": "154", 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383", 
          "type": "application/vnd.abiquo.virtualappliance+json", 
          "rel": "edit", 
          "title": "154"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549", 
          "type": "application/vnd.abiquo.virtualdatacenter+json", 
          "rel": "virtualdatacenter", 
          "title": "150"
        }, 
        {
          "href": "http://localhost:9009/api/admin/enterprises/4294", 
          "type": "application/vnd.abiquo.enterprise+json", 
          "rel": "enterprise", 
          "title": "146"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/virtualmachines", 
          "type": "application/vnd.abiquo.virtualmachines+json", 
          "rel": "virtualmachines", 
          "title": "virtual machines"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/state", 
          "type": "application/vnd.abiquo.virtualappliancestate+json", 
          "rel": "state", 
          "title": "virtual appliances state"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/action/undeploy", 
          "type": "application/vnd.abiquo.acceptedrequest+json", 
          "rel": "undeploy", 
          "title": "undeploy"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/action/deploy", 
          "type": "application/vnd.abiquo.acceptedrequest+json", 
          "rel": "deploy", 
          "title": "deploy"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/action/price", 
          "type": "text/plain", 
          "rel": "price", 
          "title": "price"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/layers", 
          "type": "application/vnd.abiquo.layers+json", 
          "rel": "layers", 
          "title": "layers"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/alerts", 
          "type": "application/vnd.abiquo.alerts+json", 
          "rel": "alerts", 
          "title": "alerts"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/action/spec", 
          "type": "application/vnd.abiquo.virtualappliancespec+json", 
          "rel": "spec", 
          "title": "spec"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/tasks", 
          "type": "application/vnd.abiquo.tasks+json", 
          "rel": "tasks", 
          "title": "tasks"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/scalinggroups", 
          "type": "application/vnd.abiquo.scalinggroups+json", 
          "rel": "scalinggroups", 
          "title": "scalinggroups"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/metrics", 
          "type": "application/vnd.abiquo.metricsmetadata+json", 
          "rel": "metricsmetadata", 
          "title": "metricsmetadata"
        }, 
        {
          "href": "http://localhost:9009/api/cloud/virtualdatacenters/2549/virtualappliances/1383/metrics/collectd", 
          "type": "application/json", 
          "rel": "collectd", 
          "title": "collectd"
        }
      ], 
      "lockedVirtualMachines": 0, 
      "highDisponibility": 0, 
      "state": "EMPTY", 
      "onVirtualMachines": 0, 
      "notAllocatedVirtualMachines": 0, 
      "configuredVirtualMachines": 0, 
      "pausedVirtualMachines": 0, 
      "allocatedVirtualMachines": 0, 
      "error": 0, 
      "publicApp": 0, 
      "id": 1383, 
      "unknownVirtualMachines": 0
    }
  ]
}

List machines for an enterprise in a datacenter

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

This method has been removed from the Abiquo API


Synopsis: GET http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}/hypervisors
Roles Required: VDC_MANAGE
Request Headers: Accept: application/vnd.abiquo.hypervisortypes+json; version=4.4; application/vnd.abiquo.hypervisortypes+xml; version=4.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:


Get a datacenter limit

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: MANAGE_ENTERPRISE
Request Headers: Accept: application/vnd.abiquo.limit+json; version=4.4; application/vnd.abiquo.limit+xml; version=4.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

GET_adm_ents_X_lmts_X_AC_lmt_j.0001.txt

cURL:

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

Success status code: 200

Request payload:

--none--

Response payload:

{
  "ramHard": 0, 
  "repositorySoftInMb": 0, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/427", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprise", 
      "title": "8"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/427/limits/272", 
      "type": "application/vnd.abiquo.limit+json", 
      "rel": "edit", 
      "title": "edit datacenter limits 272"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/427/limits/272/externalnetworks", 
      "type": "application/vnd.abiquo.vlans+json", 
      "rel": "externalnetworks", 
      "title": "external networks"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/427/limits/272/action/virtualappliances", 
      "type": "application/vnd.abiquo.virtualappliances+json", 
      "rel": "action", 
      "title": "virtualappliances"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/335", 
      "type": "application/vnd.abiquo.datacenter+json", 
      "rel": "location", 
      "title": "14"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/335/datastoretiers/196", 
      "type": "application/vnd.abiquo.datastoretier+json", 
      "rel": "datastoretier", 
      "title": "Datastore Tier 1"
    }
  ], 
  "vlansHard": 0, 
  "storageHardInMb": 0, 
  "publicIpsSoft": 0, 
  "vlansSoft": 0, 
  "ramSoft": 0, 
  "diskSoftLimitInMb": 0, 
  "id": 272, 
  "diskHardLimitInMb": 0, 
  "cpuHard": 0, 
  "storageSoftInMb": 0, 
  "publicIpsHard": 0, 
  "enabledHardwareProfiles": false, 
  "repositoryHardInMb": 0, 
  "cpuSoft": 0
}

Update a datacenter limit

Update the limit for the enterprise in a given datacenter or public cloud region. If the limit has links to one or more tiers, the platform will allow the enterprise to use the corresponding tiers.

Synopsis: PUT http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}
Roles Required: USERS_MANAGE_ENTERPRISE
Request Headers: Accept: application/vnd.abiquo.limit+json; version=4.4; application/vnd.abiquo.limit+xml; version=4.4;  Content-type:  application/vnd.abiquo.limit+json; version=4.4; application/vnd.abiquo.limit+xml; version=4.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

PUT_adm_ents_X_lmts_X_CT_lmt_j_AC_lmt_j.0001.txt

cURL:

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

Success status code: 200

Request payload:

{
  "ramHard": 0, 
  "repositorySoftInMb": 0, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/4298", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprise", 
      "title": "176"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/4298/limits/2972", 
      "type": "application/vnd.abiquo.limit+json", 
      "rel": "edit", 
      "title": "edit datacenter limits 2972"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/4298/limits/2972/externalnetworks", 
      "type": "application/vnd.abiquo.vlans+json", 
      "rel": "externalnetworks", 
      "title": "external networks"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/4298/limits/2972/action/virtualappliances", 
      "type": "application/vnd.abiquo.virtualappliances+json", 
      "rel": "action", 
      "title": "virtualappliances"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3689", 
      "type": "application/vnd.abiquo.datacenter+json", 
      "rel": "location", 
      "title": "178"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3689/storage/tiers/764", 
      "type": "application/vnd.abiquo.tier+json", 
      "rel": "tier", 
      "title": "184"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3689/backuppolicies/29", 
      "type": "application/vnd.abiquo.backuppolicy+json", 
      "rel": "backuppolicy", 
      "title": "name1"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3689/backuppolicies/30", 
      "type": "application/vnd.abiquo.backuppolicy+json", 
      "rel": "backuppolicy", 
      "title": "name2"
    }
  ], 
  "vlansHard": 0, 
  "storageHardInMb": 0, 
  "publicIpsSoft": 0, 
  "vlansSoft": 0, 
  "ramSoft": 0, 
  "diskSoftLimitInMb": 0, 
  "id": 2972, 
  "diskHardLimitInMb": 0, 
  "cpuHard": 100, 
  "storageSoftInMb": 0, 
  "publicIpsHard": 0, 
  "enabledHardwareProfiles": false, 
  "repositoryHardInMb": 0, 
  "cpuSoft": 10
}

Response payload:

{
  "ramHard": 0, 
  "repositorySoftInMb": 0, 
  "links": [
    {
      "href": "http://localhost:9009/api/admin/enterprises/4298", 
      "type": "application/vnd.abiquo.enterprise+json", 
      "rel": "enterprise", 
      "title": "176"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/4298/limits/2972", 
      "type": "application/vnd.abiquo.limit+json", 
      "rel": "edit", 
      "title": "edit datacenter limits 2972"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/4298/limits/2972/externalnetworks", 
      "type": "application/vnd.abiquo.vlans+json", 
      "rel": "externalnetworks", 
      "title": "external networks"
    }, 
    {
      "href": "http://localhost:9009/api/admin/enterprises/4298/limits/2972/action/virtualappliances", 
      "type": "application/vnd.abiquo.virtualappliances+json", 
      "rel": "action", 
      "title": "virtualappliances"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3689", 
      "type": "application/vnd.abiquo.datacenter+json", 
      "rel": "location", 
      "title": "178"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3689/storage/tiers/764", 
      "type": "application/vnd.abiquo.tier+json", 
      "rel": "tier", 
      "title": "184"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3689/backuppolicies/29", 
      "type": "application/vnd.abiquo.backuppolicy+json", 
      "rel": "backuppolicy", 
      "title": "name1"
    }, 
    {
      "href": "http://localhost:9009/api/admin/datacenters/3689/backuppolicies/30", 
      "type": "application/vnd.abiquo.backuppolicy+json", 
      "rel": "backuppolicy", 
      "title": "name2"
    }
  ], 
  "vlansHard": 0, 
  "storageHardInMb": 0, 
  "publicIpsSoft": 0, 
  "vlansSoft": 0, 
  "ramSoft": 0, 
  "diskSoftLimitInMb": 0, 
  "id": 2972, 
  "diskHardLimitInMb": 0, 
  "cpuHard": 100, 
  "storageSoftInMb": 0, 
  "publicIpsHard": 0, 
  "enabledHardwareProfiles": false, 
  "repositoryHardInMb": 0, 
  "cpuSoft": 10
}

 

Delete a datacenter limit

Prohibit an enterprise from using a datacenter or public cloud region.

Synopsis: DELETE http://example.com/api/admin/enterprises/{enterprise}/limits/{limit}
Roles Required: 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_adm_ents_X_lmts_X.0001.txt

cURL:

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

Success status code: 204

Request payload:

--none--

Response payload:

--none--