GET /api/architectures
Список всех архитектур

GET /api/operatingsystems/:operatingsystem_id/architectures
Список архитектур для операционной системы

Параметры

Имя параметра Описание
location_id
необязательно

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
необязательно

Set the current organization context for the request

Validations:

  • Must be a Integer

search
необязательно

отфильтровать результаты

Validations:

  • Must be a String

order
необязательно

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
необязательно

Номер страницы, начиная с 1

Validations:

  • Must be a number.

per_page
необязательно

Число элементов на странице

Validations:

  • Must be a number.

operatingsystem_id
необязательно

Код операционной системы

Validations:

  • Must be a String

Search fields

Field name Тип Possible values
name

GET /api/architectures/:id
Показать архитектуру

Параметры

Имя параметра Описание
location_id
необязательно

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
необязательно

Set the current organization context for the request

Validations:

  • Must be a Integer

id
обязательно

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/architectures
Создать архитектуру

Параметры

Имя параметра Описание
location_id
необязательно

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
необязательно

Set the current organization context for the request

Validations:

  • Must be a Integer

architecture
обязательно

Validations:

  • Must be a Hash

architecture[name]
обязательно

Validations:

  • Must be a String

architecture[operatingsystem_ids]
необязательно , nil разрешен

Коды операционных систем

Validations:

  • Must be an array of any type


PUT /api/architectures/:id
Изменить архитектуру

Параметры

Имя параметра Описание
location_id
необязательно

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
необязательно

Set the current organization context for the request

Validations:

  • Must be a Integer

id
обязательно

Validations:

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

architecture
обязательно

Validations:

  • Must be a Hash

architecture[name]
необязательно

Validations:

  • Must be a String

architecture[operatingsystem_ids]
необязательно , nil разрешен

Коды операционных систем

Validations:

  • Must be an array of any type


DELETE /api/architectures/:id
Удалить архитектуру

Параметры

Имя параметра Описание
location_id
необязательно

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
необязательно

Set the current organization context for the request

Validations:

  • Must be a Integer

id
обязательно

Validations:

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