Retrieve Runner Access Key
You can retrieve the runner access key via this api
Example Runner Access Key
An example Runner Access Key:
accessKey: the-returned-access-key
apiVersion: management.loft.sh/v1
kind: RunnerAccessKey
metadata:
creationTimestamp: null
Runner Access Key Reference
accessKey
required string pro
AccessKey is the access key used by the runner
accessKey
required string proRunner Access Key (Get)
You can retrieve the runner access key via this api.
- kubectl
- curl
Run the following command:
# Exchange my-object in the url below with the name of the Runner Access Key
kubectl get --raw "/kubernetes/management/apis/management.loft.sh/v1/runners/my-object/accesskey"
Run the following curl command:
# Exchange my-object in the url below with the name of the Runner Access Key
curl -s -X GET --insecure \
"https://$LOFT_DOMAIN/kubernetes/management/apis/management.loft.sh/v1/runners/my-object/accesskey" \
-H "Authorization: Bearer $ACCESS_KEY"