Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 695 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 695 Bytes

Usage examples

You must first get a API Token and the Project ID to access the metalstack.cloud api then export this as environment variables.

You can get the Project ID from the console as described here.

export API_TOKEN=yourapitoken
export PROJECT_ID=yourprojectuuid

Then you can execute them as following:

Golang:
go run go/cluster-list.go

Typescript:
cd ts

With npm:
npm install
npx tsx cluster-list.ts

With bun (bun >= v1.1.0):
bun install
bun cluster-list.ts


Ansible:
ansible-playbook ansible/cluster-list.yaml

Curl:
sh curl/cluster-list.sh