GET /api/foreman_datacenter/manufacturers
List all manufacturers

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
created_at
name
updated_at

GET /api/foreman_datacenter/manufacturers/:id
Show a manufacturer

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/manufacturers
Create a manufacturer

Params

Param name Description
manufacturer
required

Validations:

  • Must be a Hash

manufacturer[name]
required

Validations:

  • Must be a String


PUT /api/foreman_datacenter/manufacturers/:id
Update a manufacturer

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.

manufacturer
required

Validations:

  • Must be a Hash

manufacturer[name]
optional

Validations:

  • Must be a String


DELETE /api/foreman_datacenter/manufacturers/:id
Delete a manufacturer

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.