GET /api/dlmlocks
List all DLM locks

Parâmentros

Nome parâmetro Descrição
search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

ordenar resultados

Validations:

  • Must be a String

page
opcional

paginar resultados

Validations:

  • Must be a String

per_page
opcional

número de entradas por requisições

Validations:

  • Must be a String


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

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

Erros

Code Description
404 Lock could not be found.

Parâmentros

Nome parâmetro Descrição
id
requerido

Id or name of the DLM lock

Validations:

  • Must be a String


POST /api/dlmlocks
Create a DLM lock

Parâmentros

Nome parâmetro Descrição
dlmlock
requerido

Validations:

  • Must be a Hash

dlmlock[name]
requerido

Nome

Validations:

  • Must be a String

dlmlock[type]
requerido

Type, e.g. Dlmlock:Update

Validations:

  • Must be one of: Dlmlock:Update.

dlmlock[enabled]
opcional , nulo permitido

Enable the lock

Validations:

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


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

Parâmentros

Nome parâmetro Descrição
id
requerido

Id or name of the DLM lock

Validations:

  • Must be a String

dlmlock
requerido

Validations:

  • Must be a Hash

dlmlock[name]
opcional

Nome

Validations:

  • Must be a String

dlmlock[type]
opcional

Type, e.g. Dlmlock:Update

Validations:

  • Must be one of: Dlmlock:Update.

dlmlock[enabled]
opcional , nulo permitido

Enable the lock

Validations:

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


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

Parâmentros

Nome parâmetro Descrição
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.

Erros

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

Parâmentros

Nome parâmetro Descrição
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.

Erros

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

Parâmentros

Nome parâmetro Descrição
id
requerido

Id or name of the DLM lock

Validations:

  • Must be a String