| Cloud Admin | Enterprise Admin | User |
|---|---|---|
| |
|
|
Contents:
Datacenter Resource offers the functionality of managing the datacenter infrastructure in a logical way. Feel free to distribute your machines into the Datacenters resource.
Datacenter Data Model
| Field Name | Type | Occurs | Required | Description |
|---|---|---|---|---|
| name | String | 1 | true | The name of the datacenter |
| location | String | 1 | true | The location of the datacenter |
| racks | Link | 1 | true | Link to the list of racks |
| edit | Link | 1 | true | Link to the url for edit the resource |
Methods related to Datacenter Resource
Retrieve a list of datacenters
Synopsis: GET http://example.com/api/admin/datacenters/
Request Headers: Accept, Content-Type.
Request Parameters: N/A.
Request Message Body: Datacenter.
Request example: Retrieve all the datacenters
Response Headers: Content-Length, Content-Type.
Response Message Body: Datacenter
Response Status: 201, 400, 401, 403.
Response example: The creation response
Create a new Datacenter
Synopsis: POST http://example.com/api/admin/datacenters/
Request Headers: Accept, Content-Type.
Request Parameters: N/A.
Request Message Body: Datacenter.
Request example: Create new Datacenter
Response Headers: Content-Length, Content-Type.
Response Message Body: Datacenter
Response Status: 201, 400, 401, 403.
Response example: The creation response
Retrieve a Datacenter
Synopsis: GET http://example.com/api/admin/datacenters/2
Request Headers: Accept, Content-Type.
Request Parameters: N/A.
Request Message Body: N/A.
Example Request: Retrieve information about a Datacenter.
Response Headers: Content-Length, Content-Type.
Response Message Body: Datacenter.
Response Status: 200, 401, 403.
Example Response: Response of the GET over a datacenter
Updates an existing Datacenter.
Synopsis: PUT http://example.com/api/admin/datacenters/{$idDatacenter}
Request Headers: Accept, Content-Type.
Request Parameters: N/A.
Request Message Body: Datacenter.
Example Request: Update information about an infrastructure.
Response Headers: Content-Length, Content-Type.
Response Message Body: N/A.
Response Status: 200, 400, 401, 403.
Example Response: Response of the update
Delete an existing Datacenter.
Synopsis: DELETE [http://example.com/server/admin/datacenters/{$idDatacenter}
Request Headers: Accept, Content-Type.
Request Parameters: N/A.
Request Message Body: N/A.
Example Request: Delete information about an infrastructure.
Response Headers: Content-Length, Content-Type.
Response Message Body: N/A.
Response Status: 200, 401, 403, 409
Example Response: Response of the deletion

