GET /api/usergroups
Listar todos los grupos de usuarios

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Orden y campo de clasificación, p. ej., 'id DESC'

Validations:

  • Must be a String

page
opcional

Número de página, comenzando por 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para devolver

Validations:

  • Must be a number.

Campos de búsqueda

Nombre del campo Tipo Valores posibles
name
role
role_id

GET /api/usergroups/:id
Mostrar un grupo de usuarios

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

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/usergroups
Crear un grupo de usuarios

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup
requerido

Validations:

  • Must be a Hash

usergroup[name]
requerido

Validations:

  • Must be a String

usergroup[admin]
opcional , nil permitido

es un grupo de usuarios administradores

Validations:

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

usergroup[user_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type

usergroup[usergroup_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type

usergroup[role_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type


PUT /api/usergroups/:id
Actualizar un grupo de usuarios

User groups linked to external groups (LDAP) are automatically synced with these groups on update. Remember this synchronization will remove any LDAP users manually added to the Foreman user group. Only LDAP users in the external groups will remain. Internal users can be added or removed freely.

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String

usergroup
requerido

Validations:

  • Must be a Hash

usergroup[name]
opcional

Validations:

  • Must be a String

usergroup[admin]
opcional , nil permitido

es un grupo de usuarios administradores

Validations:

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

usergroup[user_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type

usergroup[usergroup_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type

usergroup[role_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type


DELETE /api/usergroups/:id
Borrar un grupo de usuarios

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String