Baremetal Server API reference (1.0.0)

Download OpenAPI specification:Download

This manual explains how to use the Smart Data Platform Baremetal Server API

Server

The following API manages to generate, update, list and delete baremetal servers. To get management console information, power on, power off and reboot specified baremetal server, please refer Server Actions.

List Servers

This API lists your baremetal servers information.

path Parameters
tenant_id
required
string <uuid>

ID for the tenant.

query Parameters
changes-since
string <date-time>

A time/date stamp for when the server last changed status.

marker
string <uuid>

UUID of the server at which you want to set a marker. Find servers from the next UUID of the given one.

limit
integer

Integer value for the limit of values to return.

name
string

Name of the server as a string.

image
string

Name of the image in URL format. This parameter can be obtained by GET /images API.

flavor
string

Name of the flavor in URL format. This parameter can be obtained by GET /flavors API.

status
string

Value of the status of the server so that you can filter on.

Responses

200

OK

400

Bad Request

401

Unauthorized

404

Not Found

405

Method Not Allowed

413

Payload Too Large

500

Internal Server Error

get/{tenant_id}/servers
https://{api_endpoint}/v2/{tenant_id}/servers

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Create Server

This API creates additional baremetal servers.

path Parameters
tenant_id
required
string
Request Body schema: application/json
One of
  • Standard Plan RHEL, CentOS, Ubuntu(without LVM)
  • Standard Plan RHEL, CentOS, Ubuntu(with LVM)
  • Standard Plan Windows
  • Standard Plan ESXi
  • Custom Plan
server
object

Responses

200

OK

400

Bad Request

401

Unauthorized

404

Not Found

405

Method Not Allowed

413

Payload Too Large

500

Internal Server Error

503

Service Unavailable

post/{tenant_id}/servers
https://{api_endpoint}/v2/{tenant_id}/servers

Request samples

Content type
application/json
Example
Copy
Expand all Collapse all
{
  • "server":
    {
    }
}

Response samples

Content type
application/json
Copy
Expand all Collapse all

Show Server

This API shows your baremetal server information.

path Parameters
tenant_id
required
string <uuid>

ID for the tenant.

server_id
required
string <uuid>

ID for the server.

Responses

200

OK

400

Bad Request

401

Unauthorized

404

Not Found

405

Method Not Allowed

500

Internal Server Error

get/{tenant_id}/servers/{server_id}
https://{api_endpoint}/v2/{tenant_id}/servers/{server_id}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "server":
    {
    }
}