Skip to main content

List container stack command results

GET 

/api/v1/devices/{deviceId}/docker/stacks/commands/results

Overview: Retrieves paginated command execution results for a specific device and stack.

• Latest mode: When range is set to "latest", only the most recent command result is returned

• Pagination support: Supports skip and take for result pagination

• Sorting support: The sorting value selects direction only: "ExecutedAt asc" reverses the list. Entries are always ordered by data.createdAt, newest first by default

• Cache-based: Results are cached in memory for 1 hour

• Execution status: data.status is 0 when the command succeeded and 1 when it failed. A failed entry also carries data.error with the failure code and message. data.error.code is one of: serviceUnavailable, offlineDevice, invalidParameters, notFound, badRequest, internalServerError.

• Timestamps: data.createdAt is set when the command is accepted; data.executedAt and data.completedAt are reported by the device and stay null until it does

Request​

Responses​

Paginated list of command execution results for the specified device and stack.