Get cluster provisioning token via API

Hi, I’m trying to setup automatic bare-metal (manually provisioned virtual machines actually) cluster deployment process using Rancher. Rancher agent docker container requires a token available after a cluster creation in the UI. I’ve tried to find it in the API but couldn’t.
Does anyone know how to get this token programmatically?
Many thanks in advance.

Automation examples are in the quickstart repository:

They are also available using the Rancher CLI

1 Like

So it’s the clusterregistrationtoken endpoint which I was looking for, thank you, @superseb, very appreciate