GET /api/foreman_datacenter/management_devices
List all ManagementDevices

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$/.


GET /api/foreman_datacenter/management_devices/:id
Show a ManagementDevice

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/management_devices
Create a management_device

Params

Param name Description
management_device
required

Validations:

  • Must be a Hash

management_device[device_id]
required

Validations:

  • Must be a number.

management_device[console_url]
required

Validations:

  • Must be a String

management_device[login]
required

Validations:

  • Must be a String

management_device[password]
required

Validations:

  • Must be a String


PUT /api/foreman_datacenter/management_devices/:id
Update a management_device

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.

management_device
required

Validations:

  • Must be a Hash

management_device[device_id]
optional

Validations:

  • Must be a number.

management_device[console_url]
optional

Validations:

  • Must be a String

management_device[login]
optional

Validations:

  • Must be a String

management_device[password]
optional

Validations:

  • Must be a String


DELETE /api/foreman_datacenter/management_devices/:id
Delete a management_device

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.