Create Lease
Create a lease for a specific Machine within an app using the details provided in the request body. Machine leases can be used to obtain an exclusive lock on modifying a Machine.
Create a lease for a specific Machine within an app using the details provided in the request body. Machine leases can be used to obtain an exclusive lock on modifying a Machine.
Authorization
bearerAuth A Fly.io access token. Create one with fly tokens create.
In: header
Path Parameters
Fly App Name
Machine ID
Header Parameters
Existing lease nonce to refresh by ttl, empty or non-existent to create a new lease
Request Body
application/json
Request body
seconds lease will be valid
Response Body
application/json
curl -X POST "https://example.com/apps/string/machines/string/lease" \ -H "Content-Type: application/json" \ -d '{}'{ "description": "string", "expires_at": 0, "nonce": "string", "owner": "string", "version": "string"}Get Lease GET
Retrieve the current lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine.
Release Lease DELETE
Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine.