GET /api/foreman_datacenter/device_bays
List all DeviceBays

Params

Param name Description
search
optional

filter results

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return, 'all' to return all results

Validations:

  • Must match regular expression /\A([1-9]\d*|all)\Z$/.

Search fields

Field name Type Possible values
name

GET /api/foreman_datacenter/device_bays/:id
Show a DeviceBay

Params

Param name Description
id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/foreman_datacenter/device_bays
Create a DeviceBay

Params

Param name Description
device_bay
required

Validations:

  • Must be a Hash

device_bay[name]
required

Validations:

  • Must be a String

device_bay[device_id]
optional , nil allowed

Device ID

Validations:

  • Must be a number.


PUT /api/foreman_datacenter/device_bays/:id
Update a DeviceBay

Params

Param name Description
id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

device_bay
required

Validations:

  • Must be a Hash

device_bay[name]
optional

Validations:

  • Must be a String

device_bay[device_id]
optional , nil allowed

Device ID

Validations:

  • Must be a number.


DELETE /api/foreman_datacenter/device_bays/:id
Delete a DeviceBay

Params

Param name Description
id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


PATCH /api/foreman_datacenter/device_bays/:id/populate
Populate

Params

Param name Description
id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

device_bay
required

Validations:

  • Must be a Hash

device_bay[name]
optional

Validations:

  • Must be a String

device_bay[device_id]
optional , nil allowed

Device ID

Validations:

  • Must be a number.

installed_device_id
optional

Installed Device ID

Validations:

  • Must be a number.


DELETE /api/foreman_datacenter/device_bays/:id/depopulate
Depopulate

Params

Param name Description
id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

device_bay
required

Validations:

  • Must be a Hash

device_bay[name]
optional

Validations:

  • Must be a String

device_bay[device_id]
optional , nil allowed

Device ID

Validations:

  • Must be a number.