Perform Baremetal Servers Action

Perform Baremetal Servers Action
Perform action on a batch of baremetal servers.

Perform action on a batch of baremetal servers.

Request
URI
POST
https://{api_host}/baremetal/servers
COPY
Query Parameters
string
action
Required

Action to perform on baremetal servers.

Possible values are : BATCH_UPGRADE, BATCH_DELETE,

Request Body

List of baremetal server IDs.

BaremetalServerIdList of type(s) application/json
Required
{
    "ids": [
        "string"
    ]
}
array of string
ids
Optional

List of baremetal server ids.

Authentication
This operation uses the following authentication methods.
Responses
202

Accepted

Returns AsyncApiResponseList of type(s) application/json
{
    "results": [
        {
            "id": "string",
            "status_url": "string"
        }
    ]
}
array of object
results
Optional

List of async api responses.


default

Error response on API failure.

Returns Error of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required

Message describing the error.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/baremetal/servers