Skip to main content

Reject

Reject a pending machine.

Rejects a pending machine, and keeps a record of the decision, so a machine that asks again is flagged.

osapi client admission reject [flags]

Examples​

osapi client admission reject --machine-id d530664edc1c431eb5ef1e9dfd6617a5 --reason "unknown host"

Permission​

It needs the admission:write permission. osapi token roles get --name <role> shows what a role grants.

Flags​

FlagDescriptionDefault
--machine-idThe machine ID of the node (required)
--reasonWhy the machine is rejected; the machine and the record keep it

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml
--urlURL the client will connect tohttp://0.0.0.0:8080

Output tells how the result is printed, and what --json gives.