Weles/Docs

CLI command

weles tasks cancel

Cancel one task with --reason through the public task API (POST /api/v1/tasks/<id>/cancel) with the bearer of the item playing --role, and print what it answered.

Purpose#

Cancel one task with --reason through the public task API (POST /api/v1/tasks/<id>/cancel) with the bearer of the item playing --role, and print what it answered.

Invocation#

Usage
weles tasks cancel <task-id> --reason <text> (--consumer <consumer> | --endpoint <url>) --role <role> [--idempotency-key <key>] [--json]

Options#

Options of weles tasks cancel
OptionEffect
--reasonweles --help names this option in the usage line and gives it no description.
--consumertasks: the Stado consumer the caller is; the API is the route 'stado service directory connect weles-admission --consumer <consumer>' gives.
--endpointtasks: the public task API's address instead of a consumer's route.
--roletasks: the vault role whose item holds the bearer (token) and, for cancel, the organization (organization_id) the API admits.
--idempotency-keyweles --help names this option in the usage line and gives it no description.
--jsonPrint the answer as one JSON document instead of key: value lines. release surface always prints its JSON document: it is the file a release carries.

Help#

`weles tasks cancel --help` prints these usage lines and never runs the command.