DatastoreLoadLevelsResource


Create a datastore load rule


To create a load rule, send a link to the datacenter, datastore tier, or datastore, and the load level to apply.

POST https://example.com/api/admin/rules/datastoreloadlevel

Roles : [ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION]

Content-Type : datastoreloadrule Accept : datastoreloadrule

Error Codes

  • DATASTORE-9 - Invalid datastore link
  • DC-0 - The requested datacenter does not exist
  • DSTIER-0 - The requested datastore tier does not exist
  • RULE-7 - Duplicated rule for the same set of infrastructure elements. Please check and remove existent rules first.
  • RULE-8 - The storage percentage indicated is null or invalid
  • RULE-9 - Expected one link with the rel attribute with possible values (datacenter/datastoretier/datastore)

Example

List datastore load rules


Retrieve a list of datastore load rules for the given datacenter.

GET https://example.com/api/admin/rules/datastoreloadlevel

Roles : [ROLE_PHYS_DC_RETRIEVE_DETAILS]

Parameter Type Default Value Description
idDatacenter Integer The datacenter ID where the datastore load rules apply

Example

Delete a datastore load rule


DELETE https://example.com/api/admin/rules/datastoreloadlevel/{loadleveldatastore}

Roles : [ROLE_PHYS_DC_ALLOW_MODIFY_ALLOCATION]

Example

Get a datastore load rule


GET https://example.com/api/admin/rules/datastoreloadlevel/{loadleveldatastore}

Roles : [ROLE_PHYS_DC_RETRIEVE_DETAILS]

Error Codes

  • RULE-3 - The requested load level rule does not exist

Example