Stop a deployment
const url = 'http://localhost:3000/api/v1/deployments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stop';const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/deployments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stop \ --header 'X-API-Key: <X-API-Key>'Stops a running deployment.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Deployment UUID
Header Parameters
Section titled “Header Parameters”UUID of the organization (tenant) the request acts in. It selects the tenant and grants nothing: the server checks membership or an open tenant switch. Not needed for global operations. A malformed value returns 400. API keys are fixed to their own organization; another organization returns 403. The x-organization-source header grants nothing.
Responses
Section titled “Responses”Deployment stopped successfully
object
object
Labels a device must carry (all must match)
object
Label expressions a device must satisfy (all must match)
object
Label key
Match operator
Label values (for In and NotIn)
Application parameter overrides
object
FM-1447: the revision number the deployment targets (1, then +1 per re-deploy). Set on the detail response only.
FM-846: the manifest deploymentProfiles[].id this deployment deploys; absent when the description declared nothing to choose between
FM-1362: the deployed profile summarised (type + component names); absent when no profile is recorded or it is not in the manifest any more
object
The manifest deploymentProfiles[].id
Rc2 wire type of the profile’s own type; absent for an off-spec type
object
Component name
FM-1159: the grouping key shared by every deployment created from the same multi-profile submission; absent for an ungrouped deployment
FM-1159: every sibling row of this deployment group, including this one, in creation order. Absent when the deployment is ungrouped.
object
The deployment group id
All members including the deployment this group is attached to, in creation order
object
The manifest deploymentProfiles[].id this member deploys
FM-1362: the member’s profile summarised (type + components), when resolvable
object
The manifest deploymentProfiles[].id
Rc2 wire type of the profile’s own type; absent for an off-spec type
object
Component name
FM-1258: the operator-chosen Margo metadata.namespace; absent when the organization slug (tenant default) is used
FM-1201: the device groups targeted at create time (name snapshots)
object
Device group UUID; absent when the group was deleted
Name of the group when the deployment was created
True when the group no longer exists
The live group’s current name, when it differs from the snapshot
FM-1412: the deployment this one was split from, if any
FM-1484: when the deployment was deleted. Set while the removal is not finalised (status is REMOVING); the deployment is then read-only.
Priority (0-100)
object
Rollout strategy type
Current rollout phase
Rollout configuration (strategy-specific)
object
Rollback configuration (enabled, thresholdType, thresholdValue)
object
Current batch number (for rolling/canary)
Total number of batches
FM-1475: when the deployment last changed state (newest of creation, start, completion and any instance status-history entry). Set on list responses only.
object
Application version string
object
object
Digest of the bundle served to the device
Download progress in percent
Number of deploy attempts so far
FM-845: per-component states from the most recent status report. Empty until the device has reported.
object
Component name
Component state as reported by the device (rc2, lowercase)
object
Machine-readable error code
Component or subsystem that raised the error
Human-readable error message
FM-845: the structured status.error from the most recent report
object
Machine-readable error code
Component or subsystem that raised the error
Human-readable error message
Batch number for rolling updates (1-based)
Whether this instance is part of the canary group
FM-1301: when the operator removed the deployment from this device alone. The device stays excluded until it is re-included.
FM-1301: users.id of the operator who removed the deployment from this device
FM-1411: the Margo ApplicationDeployment.id the device knows this item by. Equals deploymentId unless the item was split off another deployment.
FM-1202: the targeted device groups that contained the device at create time
FM-1202: selected directly (device list or label selector)
object
Margo clientId the device authenticates with
Device display name
Device status
Recent status history entries for this instance (up to 10, newest first)
object
Status the instance moved to
Who or what reported the change
FM-845: per-component states reported at this point in time
object
Component name
Component state as reported by the device (rc2, lowercase)
object
Machine-readable error code
Component or subsystem that raised the error
Human-readable error message
FM-845: the structured top-level error reported at this point in time
object
Machine-readable error code
Component or subsystem that raised the error
Human-readable error message
Number of targeted instances
Number of instances in status INSTALLED
Number of instances in status FAILED
Example
{ "deviceSelector": { "matchExpressions": [ { "operator": "In" } ] }, "deploymentProfile": { "type": "helm" }, "deploymentGroup": { "members": [ { "status": "PENDING", "deploymentProfile": { "type": "helm" } } ] }, "desiredState": "PENDING", "status": "PENDING", "rolloutStrategy": "IMMEDIATE", "rolloutPhase": "PENDING", "instances": [ { "status": "PENDING" } ]}Forbidden — caller lacks required permission
Deployment not found