AcquireLock
Acquire an exclusive operation lock on a specific agent to prevent concurrent changes
POST
/api/v1/agents/locksOperation ID
AcquireLockSince
1.0.0Execution Mode
SynchronousAuth Context
Auth RequiredAuth Context
Send these values as request headers when calling this API.
AuthorizationstringRequiredBearer Token
X-Tenant-IDstringX-Tenant-ID
Request Inputs
application/jsonBody Fields
lockObjectRequiredThe lock value
agentIdStringUUID of the agent to acquire the lock on
Example: agent-abc123-def456
operationTypeStringType of operation requiring the lock (e.g. upgrade, restart)
Example: upgrade
holderStringIdentity of the lock holder (user or system component)
Example: upgrade-service
ttlSecondsIntegerLock expiry duration in seconds
Example: 300
