Abiquo 2.6


Skip to end of metadata
Go to start of metadata

Rules Resource

Exposed Resources Hierarchy
Rules Resource

Contents:

The allocation rules resource contains operations to manage datacenter allocation rules. It is possible to get or apply rules (global for all datacenters or local to a single datacenter)

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/rules

Exposed Methods

Get allocation rules

Get global rules or datacenter rules if the datacenter identifier is supplied.

Synopsis: GET http://example.com/api/admin/rules
Roles Required: ROLE_PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.rules+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

idDatacenter

false

 

If you supply the id of a datacenter, the allocation rules of the
datacenter with the given id will be retrieved. If no id is supplied, global
allocation rules will be retrieved

 

 

 

 

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

 Click here to show or hide the request example
Get allocation rules example
curl  -X GET 'http://example.com/api/admin/rules?idDatacenter=2' \
        -H "Accept:application/rules+xml; version=2.4" \
        -u user:pass --verbosec
> GET /api/admin/rules?idDatacenter=2 HTTP/1.1
< HTTP/1.1 200 OK
< Content-Type: application/vnd.abiquo.rules+xml;version=2.2
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rules>
    <enterpriseExclusionRules/>
    <fitPolicyRules/>
    <machineLoadRules>
        <machineLoadRule>
            <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/2"/>
            <link rel="edit" type="application/vnd.abiquo.machineloadrule+xml" href="http://localhost:80/api/admin/rules/machineLoadLevel/1"/>
            <cpuLoadPercentage>80</cpuLoadPercentage>
            <id>1</id>
            <ramLoadPercentage>75</ramLoadPercentage>
        </machineLoadRule>
    </machineLoadRules>
</rules>


Apply allocation rules

Global allocation rules are created over the admin/rules URI. Call this method once to create ALL the rules you want to implement for global policies and for datacenter-specific policies. A POST over this URI will override ALL the previously defined rules.

Synopsis: POST http://example.com/api/admin/rules
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION
Request Headers: Accept: application/vnd.abiquo.rules+xml; version=2.4; Content-type: application/vnd.abiquo.rules+xml; version=2.4;
Request Parameters:

Parameter

Required

Default Value

Description

idDatacenter

true

 

The id of the datacenter in which allocation datacenter rules will be
applied should be indicated. Thus rules.xml will include global rules and a set of
datacenter rules to be applied in the datacenter with the id given in the query
parameter

 

 

 

 

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

 Click here to show or hide the request example
Apply allocation rules example
curl -X POST "http://example.com/api/admin/rules?idDatacenter=1" \
       -d @rules.xml \
       -u user:pass \
       -H "Content-type:application/vnd.abiquo.rules+xml;version=2.4" \
       -H "Accept:application/vnd.abiquo.rules+xml;version=2.4"
> POST /api/admin/rules HTTP/1.1
> Content-type:application/vnd.abiquo.rules+xml;version=2.4
> Accept:application/vnd.abiquo.rules+xml;version=2.4
< HTTP/1.1 201 Created
< Server: Apache-Coyote/1.1
< Content-Type: application/vnd.abiquo.rules+xml;version=2.4
<rules>
   <enterpriseExclusionRules>
    <enterpriseExclusionRule>
            <link href="http://localhost/api/admin/enterprises/1" rel="enterprise" title="enterprise1"/>
            <link href="http://localhost/api/admin/enterprises/3" rel="enterprise" title="enterprise2"/>
    </enterpriseExclusionRule>
    </enterpriseExclusionRules>
    <fitPolicyRules> 
    <fitPolicyRule>
        <fitPolicy>PROGRESSIVE</fitPolicy>
    </fitPolicyRule>
    <fitPolicyRule>
        <link href="http://localhost/api/admin/datacenters/1" rel="datacenter"/>
        <fitPolicy>PERFORMANCE</fitPolicy>
    </fitPolicyRule> 
    </fitPolicyRules> 
    <machineLoadRules>
    <machineLoadRule>
        <link href="http://localhost/api/admin/datacenters/1" rel="datacenter"/>
        <ramLoadPercentage>30</ramLoadPercentage>
        <cpuLoadPercentage>40</cpuLoadPercentage>
    </machineLoadRule>
    <machineLoadRule>
        <link href="http://localhost/api/admin/datacenters/1/racks/1" rel="rack"/>
        <ramLoadPercentage>25</ramLoadPercentage>
        <cpuLoadPercentage>75</cpuLoadPercentage>
    </machineLoadRule>
    <machineLoadRule>
        <link href="http://localhost/api/admin/datacenters/1/racks/1/machines/1" rel="machine"/>
        <ramLoadPercentage>50</ramLoadPercentage>
        <cpuLoadPercentage>60</cpuLoadPercentage>
    </machineLoadRule>
   </machineLoadRules>
</rules>

Download a template

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

Fit Policies Resource

Exposed Resources Hierarchy
Fit Policies Resource

Load balance rules customize which physical machine a virtual machine will be allocated to. There are two types of load balance rules: PERFORMANCE: This rule makes the scheduler choose a different physical machine for each virtual machine to allocate. PROGRESSIVE: This rule means that all virtual machines will be allocated in the same physical machine, until it is full. This rule makes the scheduler fill a physical machine, then change to another one.

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/rules/fitsPolicy

Exposed Methods

Retrieve a list of fit policy rules

Get a list of global or datacenter fit policy rules

Synopsis: GET http://example.com/api/admin/rules/fitsPolicy
Roles Required: ROLE_PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.fitpolicyrules+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

idDatacenter

false

 

If you supply the id of a datacenter, the fit policy rule of the
datacenter with the given id will be retrieved. If no id is supplied, all fit
policy rules will be retrieved

 

 

 

 

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

 Click here to show or hide the request example
Retrieve a list of fit policy rules example
curl --verbose 'http://example.com/api/admin/rules/fitsPolicy?idDatacenter=2' \
        -X GET \
        -H "Accept:application/vnd.abiquo.fitpolicyrules+xml;version=2.4" \
        -u user:password
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fitPolicyRules>
    <fitPolicyRule>
        <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/2"/>
        <link rel="edit" type="application/vnd.abiquo.fitpolicyrule+xml" href="http://localhost:80/api/admin/rules/fitsPolicy/57"/>
        <fitPolicy>PERFORMANCE</fitPolicy>
        <id>57</id>
    </fitPolicyRule>
</fitPolicyRules>


Apply a fit policy rule

It is possible to apply a global fit policy rule or a datacenter fit policy rule. If the link of a datacenter is supplied in the XML file, the policy will be applied to this datacenter. If no link is supplied, a global fit policy will be applied.

Synopsis: POST http://example.com/api/admin/rules/fitsPolicy
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION
Request Headers: Accept: application/vnd.abiquo.fitpolicyrule+xml; version=2.4; Content-type: application/vnd.abiquo.fitpolicyrule+xml; version=2.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Apply a fit policy rule example
curl -X POST "http://example.com/api/admin/rules/fitsPolicy" \
       -d @fitPolicyRule.xml \
       -u user:pass \
       -H "Content-type:application/vnd.abiquo.fitpolicyrule+xml;version=2.0" \
       -H "Accept:application/vnd.abiquo.fitpolicyrule+xml;version=2.0" \
 
> POST /api/admin/rules/fitsPolicy HTTP/1.1
> Content-type:application/vnd.abiquo.fitpolicyrule+xml;version=2.0
> Accept:application/vnd.abiquo.fitpolicyrule+xml;version=2.0
< HTTP/1.1 201 Created
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fitPolicyRule>
    <link href="http://localhost:80/api/admin/datacenters/2" rel="datacenter"/>
    <link href="http://localhost:80/api/admin/rules/fitsPolicy/18" rel="edit" type="application/vnd.abiquo.fitpolicyrule+xml"/>
    <fitPolicy>PROGRESSIVE</fitPolicy>
    <id>18</id>
</fitPolicyRule>

Download a template

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

Fit Policy Resource

Exposed Resources Hierarchy
Fit Policy Resource

This class operates mainly over the Resource URI: /admin/rules/fitsPolicy/{fitPolicy}

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/rules/fitsPolicy/{fitPolicy}

Exposed Methods

Get a fit policy rule

Get a fit policy rule.

Synopsis: GET http://example.com/api/admin/rules/fitsPolicy/{fitPolicy}
Roles Required: ROLE_PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.fitpolicyrule+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Get a fit policy rule example
curl -X GET 'http://example.com/api/admin/rules/fitsPolicy/57' \
     -H "Accept:application/vnd.abiquo.fitpolicyrule+xml;version=2.4" \
     -u user:password --verbose
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fitPolicyRule>
    <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/2"/>
    <link rel="edit" type="application/vnd.abiquo.fitpolicyrule+xml" href="http://localhost:80/api/admin/rules/fitsPolicy/57"/>
    <fitPolicy>PERFORMANCE</fitPolicy>
    <id>57</id>
</fitPolicyRule>



Delete a fit policy rule

Delete a fit policy rule.

Synopsis: DELETE http://example.com/api/admin/rules/fitsPolicy/{fitPolicy}
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION
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 fit policy rule example
curl -X DELETE "http://example.com/api/admin/rules/fitsPolicy/2" \
       -u user:password --verbose

> DELETE /api/admin/rules/fitsPolicy/2 HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: localhost
> Accept: */*

Machine Load Level Rules Resource

Exposed Resources Hierarchy
Machine Load Level Rules Resource

Load level rules allow you to configure allocation parameters based on machine load. There are three levels where load level rules apply. ** All racks: if selected, the load level rule will apply to all machines from all racks of the selected datacenter. ** All servers: The rule will apply to all machines from the selected rack of the datacenter. ** Specific server: The rule will only apply to the selected machine. If there is more than one rule that applies to a server, the most specific rule takes precedence over other more general rules.

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/rules/machineLoadLevel

Exposed Methods

Retrieve a list of machine load level rules

Synopsis: GET http://example.com/api/admin/rules/machineLoadLevel
Roles Required: ROLE_PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.machineloadrules+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

idDatacenter

false

 

If you supply a datacenter id just machine load rules of the datacenter
with the given id will be retrieved.

 

 

 

 

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

 Click here to show or hide the request example
Retrieve a list of machine load level rules example
curl --verbose 'http://example.com/api/admin/rules/machineLoadLevel' \
        -X GET \
        -H "Accept:application/xml" \
        -u user:password
<machineLoadRules>
    <machineLoadRule>
        <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/2"/>
        <link rel="edit" type="application/vnd.abiquo.machineloadrule+xml" href="http://localhost:80/api/admin/rules/machineLoadLevel/23"/>
        <link rel="machine" type="application/vnd.abiquo.machine+xml" href="http://localhost:80/api/admin/datacenters/2/racks/1/machines/1"/>
        <link rel="rack" type="application/vnd.abiquo.rack+xml" href="http://localhost:80/api/admin/datacenters/2/racks/1"/>
        <cpuLoadPercentage>75</cpuLoadPercentage>
        <id>23</id>
        <ramLoadPercentage>80</ramLoadPercentage>
    </machineLoadRule>
    <machineLoadRule>
        <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/2"/>
        <link rel="edit" type="application/vnd.abiquo.machineloadrule+xml" href="http://localhost:80/api/admin/rules/machineLoadLevel/24"/>
        <cpuLoadPercentage>85</cpuLoadPercentage>
        <id>24</id>
        <ramLoadPercentage>90</ramLoadPercentage>
    </machineLoadRule>
</machineLoadRules>


Apply a machine load level rule

Synopsis: POST http://example.com/api/admin/rules/machineLoadLevel
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION
Request Headers: Accept: application/vnd.abiquo.machineloadrule+xml; version=2.4; Content-type: application/vnd.abiquo.machineloadrule+xml; version=2.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Apply a machine load level rule example
curl -X POST "http://example.com/api/admin/rules/machineLoadLevel" \
       -d @machineLoadLevelRule.xml
       -u user:pass
       -H "Content-type:application/vnd.abiquo.machineloadrules+xml;version=2.4"
       -H "Accept:application/vnd.abiquo.machineloadrules+xml;version=2.4"
 
> POST /api/admin/rules/machineLoadLevel HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: localhost
> Content-type:application/vnd.abiquo.machineloadrules+xml;version=2.4
> Accept:application/vnd.abiquo.machineloadrules+xml;version=2.4
> Content-Length: 418


Download a template

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

Machine Load Level Rule Resource

Exposed Resources Hierarchy
Machine Load Level Rule Resource

Resource with operations to get and delete a machine load level rule.

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/rules/machineLoadLevel/{loadLevel}

Exposed Methods

Retrieve a machine load level rule

Get a machine load level rule

Synopsis: GET http://example.com/api/admin/rules/machineLoadLevel/{loadLevel}
Roles Required: ROLE_PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.machineloadrule+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Retrieve a machine load level rule example
curl -X GET 'http://example.com/api/admin/rules/machineLoadLevel/23' \
     -H "Accept:application/vnd.abiquo.machineloadrule+xml;version=2.4" \
     -u user:password   --verbose
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<machineLoadRule>
    <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/2"/>
    <link rel="edit" type="application/vnd.abiquo.machineloadrule+xml" href="http://localhost:80/api/admin/rules/machineLoadLevel/23"/>
    <link rel="machine" type="application/vnd.abiquo.machine+xml" href="http://localhost:80/api/admin/datacenters/2/racks/1/machines/1"/>
    <link rel="rack" type="application/vnd.abiquo.rack+xml" href="http://localhost:80/api/admin/datacenters/2/racks/1"/>
    <cpuLoadPercentage>75</cpuLoadPercentage>
    <id>23</id>
    <ramLoadPercentage>80</ramLoadPercentage>
</machineLoadRule>


Delete a machine load level rule

Delete a machine load level rule.

Synopsis: DELETE http://example.com/api/admin/rules/machineLoadLevel/{loadLevel}
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION
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 machine load level rule example
curl -X DELETE "http://example.com/api/admin/rules/machineLoadLevel/2" \
       -u user:password --verbose

> DELETE /api/admin/rules/machineLoadLevel/23 HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: localhost
> Accept: */*
< HTTP/1.1 204 No Content

Enterprise Exclusion Rules Resource

Exposed Resources Hierarchy
Enterprise Exclusion Rules Resource

These requests enable you to customize enterprise exclusion rules because enterprises may want to ensure that their appliances will not be deployed on the same physical machine as the appliances of another enterprise. The Restrict shared server rules enable you to guarantee that all appliances of each of the enterprises will be properly isolated.

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/rules/enterpriseExclusions

Exposed Methods

Get a list of enterprise exclusion rules

Get a list of enterprise exclusion rules

Synopsis: GET http://example.com/api/admin/rules/enterpriseExclusions
Roles Required: ROLE_PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.enterpriseexclusionrules+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Get a list of enterprise exclusion rules example
curl --verbose 'http://example.com/api/admin/rules/enterpriseExclusions' \
        -X GET \
        -H "Accept:application/vnd.abiquo.enterpriseexclusionrules+xml;version=2.4" \
        -u user:password

> GET /api/admin/rules/enterpriseExclusions HTTP/1.1
> User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: example.com
> Accept:application/vnd.abiquo.enterpriseexclusionrules+xml;version=2.4
< HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<enterpriseExclusionRules>
    <enterpriseExclusionRule>
        <link href="http://localhost:80/api/admin/rules/enterpriseExclusions/4" rel="edit" type="application/vnd.abiquo.enterpriseexclusionrules+xml"/>
        <link href="http://localhost:80/api/admin/enterprises/3" rel="edit"/>
        <link href="http://localhost:80/api/admin/enterprises/4" rel="edit"/>
        <id>4</id>
    </enterpriseExclusionRule>
</enterpriseExclusionRules>


Apply an enterprise exclusion rule

Apply an enterprise exclusion rule

Synopsis: POST http://example.com/api/admin/rules/enterpriseExclusions
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION
Request Headers: Accept: application/vnd.abiquo.enterpriseexclusionrule+xml; version=2.4; Content-type: application/vnd.abiquo.enterpriseexclusionrule+xml; version=2.4;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Apply an enterprise exclusion rule example
curl -X POST "http://example.com/api/admin/rules/enterpriseExclusions" \
       -d @enterpriseExclusionRule.xml
       -u user:pass
       -H "Content-type:application/vnd.abiquo.enterpriseexclusionrule+xml;version=2.4"
       -H "Accept:application/vnd.abiquo.enterpriseexclusionrule+xml;version=2.4"
 
> POST /api/admin/rules/enterpriseExclusions HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: localhost
> Content-type:application/vnd.abiquo.enterpriseexclusionrule+xml;version=2.4
> Accept:application/vnd.abiquo.enterpriseexclusionrule+xml;version=2.4

Download a template

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

Enterprise Exclusion Rule Resource

Exposed Resources Hierarchy
Enterprise Exclusion Rule Resource

Resource with operations to get and delete an enterprise exclusion rule.

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/rules/enterpriseExclusions/{enterpriseExclusion}

Exposed Methods

Get an enterprise exclusion rule

Get an enterprise exclusion rule.

Synopsis: GET http://example.com/api/admin/rules/enterpriseExclusions/{enterpriseExclusion}
Roles Required: ROLE_PHYS_DC_RETRIEVE_DETAILS
Request Headers: Accept: application/vnd.abiquo.enterpriseexclusionrule+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Get an enterprise exclusion rule example
curl -X GET "http://example.com/api/admin/rules/enterpriseExclusions/21" \
     -H "Accept:application/vnd.abiquo.enterpriseexclusionrule+xml;version=2.4" \
     -u user:password --verbose
> GET /api/admin/rules/enterpriseExclusions/21 HTTP/1.1
> Accept:application/vnd.abiquo.enterpriseexclusionrule+xml;version=2.4
< HTTP/1.1 200 OK
<enterpriseExclusionRule>
    <link rel="edit" type="application/vnd.abiquo.enterpriseexclusionrule+xml" href="http://localhost:80/api/admin/rules/enterpriseExclusions/21"/>
    <link title="enterprise1" rel="enterprise" type="application/vnd.abiquo.enterprise+xml" href="http://localhost:80/api/admin/enterprises/1"/>
    <link title="enterprise2" rel="enterprise" type="application/vnd.abiquo.enterprise+xml" href="http://localhost:80/api/admin/enterprises/3"/>
    <id>21</id>
</enterpriseExclusionRule>


Delete an enterprise exclusion rule

Delete an enterprise exclusion rule.

Synopsis: DELETE http://example.com/api/admin/rules/enterpriseExclusions/{enterpriseExclusion}
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION
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 an enterprise exclusion rule example
curl -X DELETE "http://example.com/api/admin/rules/enterpriseExclusions/21" \
       -u user:password --verbose

> DELETE /api/admin/rules/enterpriseExclusions/2 HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: localhost
> Accept:application/vnd.abiquo.enterpriseexclusionrule+xml;version=2.4