GET /api/foreman_datacenter/power_outlet_templates
List all PowerOutletTemplates

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/power_outlet_templates/:id
Show a PowerOutletTemplates

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/power_outlet_templates
Create a PowerOutletTemplate

Params

Param name Description
power_outlet_template
required

Validations:

  • Must be a Hash

power_outlet_template[name]
required

Validations:

  • Must be a String

power_outlet_template[device_type_id]
optional , nil allowed

DeviceType ID

Validations:

  • Must be a number.


DELETE /api/foreman_datacenter/power_outlet_templates/:id
Delete a PowerOutletTemplate

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.