GET /api/common_parameters
List all global parameters

Параметры

Имя параметра Описание
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

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

Display hidden values

Validations:

  • Must be one of: true, false, 1, 0.

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.

Search fields

Field name Тип Possible values
domain_name
host_group_name
host_name
key_type
location_name
name
organization_name
os_name
parameter_type
subnet_name
type
value

GET /api/common_parameters/: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

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

Display hidden values

Validations:

  • Must be one of: true, false, 1, 0.

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/common_parameters
Создать глобальный параметр

Параметры

Имя параметра Описание
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

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

Validations:

  • Must be a Hash

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

Validations:

  • Must be a String

common_parameter[value]
обязательно

Validations:

  • Must be a String

common_parameter[parameter_type]
обязательно

Type of value

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

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

Validations:

  • Must be one of: true, false.


PUT /api/common_parameters/: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.

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

Validations:

  • Must be a Hash

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

Validations:

  • Must be a String

common_parameter[value]
необязательно

Validations:

  • Must be a String

common_parameter[parameter_type]
необязательно

Type of value

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

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

Validations:

  • Must be one of: true, false.


DELETE /api/common_parameters/: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.