Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(operations cancel): add new convenience command to cancel an operation #333

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

reubenmiller
Copy link
Owner

@reubenmiller reubenmiller commented Jan 1, 2024

Simple command to update an operation by setting the status to FAILED and using a standard failureReason.

Example

c8y operations list --device 1234 --status EXECUTING | c8y operations cancel

The above command will send the following body to the HTTP request:

{
  "failureReason": "User cancelled operation",
  "status": "FAILED"
}

@reubenmiller reubenmiller merged commit 8cf5da4 into v2 Jan 1, 2024
4 checks passed
@reubenmiller reubenmiller deleted the simple-cancel-operation branch January 1, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant