Skip to main content

Admit

Admit a pending machine.

Run osapi agent admission get on the machine, and give the fingerprint that it prints. The controller admits the machine only when the fingerprint is the one of the key in its request.

osapi client admission admit [flags]

Examples​

osapi client admission admit --machine-id d530664edc1c431eb5ef1e9dfd6617a5 --fingerprint SHA256:1f53dea6...

Permission​

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

Flags​

FlagDescriptionDefault
--fingerprintThe fingerprint that osapi agent admission get prints on the machine (required)
--machine-idThe machine ID of the node (required)

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.