hpecp.lock module

class hpecp.lock.LockController(client)[source]

Bases: object

get()[source]

Retrieve the locks

list()[source]

Retrieve the locks

create(reason=None, timeout_secs=300)[source]

Create a new lock.

reason: str

Provide a reason for the lock.

timeout_secs: int

Time to wait for lock to be successful

APIException

delete(lock_id)[source]

Delete a lock.

lock_id: str

The lock id as retrieved with get() Format: ‘/api/v1/lock/[0-9]+’

APIException

delete_all(timeout_secs=300)[source]

Delete all locks.

timeout_secs: int

How long to wait for internal locks (note these need to be cleared before external locks can be deleted)

APIException