Class RemoteApiV1Action
java.lang.Object
org.jenkins.plugins.lockableresources.actions.RemoteApiV1Action
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class RemoteApiV1Action
extends Object
Serves the remote lock REST API under
/lockable-resources/remote/v1/.
Endpoints:
POST /acquire- enqueue an acquire requestGET /acquire/{lockId}- poll acquire statusPOST /lease/{lockId}/heartbeat- renew leasePOST /lease/{lockId}/release- release lock
All endpoints require the dedicated LockableResourcesRootAction.REMOTE
permission (implied by ADMINISTER). Grant it to the machine users whose API
tokens remote client controllers use as credentialsId.
If Remote API is disabled (see LockableResourcesManager.isRemoteApiEnabled())
every endpoint returns 403.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classServesGET /acquire/{lockId}.static final classServesPOST /lease/{lockId}/heartbeatandPOST /lease/{lockId}/release.static final class -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RemoteApiV1Action
public RemoteApiV1Action()
-
-
Method Details
-
getDynamic
-