GET /api/dlmlocks
List all DLM locks

Parametri

Nome parametro Descrizione
search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

ordina risultati

Validations:

  • Must be a String

page
opzionale

paginazione risultati

Validations:

  • Must be a String

per_page
opzionale

numero di voci per richiesta

Validations:

  • Must be a String


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

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

Errori

Codice Descrizione
404 Lock could not be found.

Parametri

Nome parametro Descrizione
id
richiesto

Id or name of the DLM lock

Validations:

  • Must be a String


POST /api/dlmlocks
Create a DLM lock

Parametri

Nome parametro Descrizione
dlmlock
richiesto

Validations:

  • Must be a Hash

dlmlock[name]
richiesto

Nome

Validations:

  • Must be a String

dlmlock[type]
richiesto

Type, e.g. Dlmlock:Update

Validations:

  • Must be one of: Dlmlock:Update.

dlmlock[enabled]
opzionale , consentito nil

Enable the lock

Validations:

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


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

Parametri

Nome parametro Descrizione
id
richiesto

Id or name of the DLM lock

Validations:

  • Must be a String

dlmlock
richiesto

Validations:

  • Must be a Hash

dlmlock[name]
opzionale

Nome

Validations:

  • Must be a String

dlmlock[type]
opzionale

Type, e.g. Dlmlock:Update

Validations:

  • Must be one of: Dlmlock:Update.

dlmlock[enabled]
opzionale , consentito nil

Enable the lock

Validations:

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


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

Parametri

Nome parametro Descrizione
id
richiesto

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.

Errori

Codice Descrizione
200 Lock acquired successfully.
412 Lock could not be acquired.

Parametri

Nome parametro Descrizione
id
richiesto

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.

Errori

Codice Descrizione
200 Lock released successfully.
412 Lock could not be released.

Parametri

Nome parametro Descrizione
id
richiesto

Id or name of the DLM lock

Validations:

  • Must be a String