examples/

directory
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: MIT

README

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL