GET /api/dlmlocks
List all DLM locks

Parámetros

Nombre del parámetro Descripción
search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

organizar resultados

Validations:

  • Must be a String

page
opcional

paginar resultados

Validations:

  • Must be a String

per_page
opcional

número de entradas por solicitud

Validations:

  • Must be a String


GET /api/dlmlocks/:id
Show a DLM lock

GET /api/dlmlocks/:id/lock
Show a DLM lock

Errores

Code Description
404 Lock could not be found.

Parámetros

Nombre del parámetro Descripción
id
requerido

Id or name of the DLM lock

Validations:

  • Must be a String


POST /api/dlmlocks
Create a DLM lock

Parámetros

Nombre del parámetro Descripción
dlmlock
requerido

Validations:

  • Must be a Hash

dlmlock[name]
requerido

Nombre

Validations:

  • Must be a String

dlmlock[type]
requerido

Type, e.g. Dlmlock:Update

Validations:

  • Must be one of: Dlmlock:Update.

dlmlock[enabled]
opcional , nil permitido

Enable the lock

Validations:

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


PUT /api/dlmlocks/:id
Update a DLM lock

Parámetros

Nombre del parámetro Descripción
id
requerido

Id or name of the DLM lock

Validations:

  • Must be a String

dlmlock
requerido

Validations:

  • Must be a Hash

dlmlock[name]
opcional

Nombre

Validations:

  • Must be a String

dlmlock[type]
opcional

Type, e.g. Dlmlock:Update

Validations:

  • Must be one of: Dlmlock:Update.

dlmlock[enabled]
opcional , nil permitido

Enable the lock

Validations:

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


DELETE /api/dlmlocks/:id
Delete a DLM lock

Parámetros

Nombre del parámetro Descripción
id
requerido

Id or name of the DLM lock

Validations:

  • Must be a String


PUT /api/dlmlocks/:id/lock
Acquire a DLM lock

Acquire a lock

This action acquires a lock. It fails, if the lock is currently taken by another host.

Authentication & Host Identification

The host is authenticated via a client certificate and identified via the CN of that certificate.

Errores

Code Description
200 Lock acquired successfully.
412 Lock could not be acquired.

Parámetros

Nombre del parámetro Descripción
id
requerido

Id or name of the DLM lock

Validations:

  • Must be a String


DELETE /api/dlmlocks/:id/lock
Release a DLM lock

Release a lock

This action releases a lock.
It fails, if the lock is currently taken by another host.

Authentication & Host Identification

The host is authenticated via a client certificate and identified via the CN of that certificate.

Errores

Code Description
200 Lock released successfully.
412 Lock could not be released.

Parámetros

Nombre del parámetro Descripción
id
requerido

Id or name of the DLM lock

Validations:

  • Must be a String