Axon Cloud :: How to use the API from a CI/CD platform

How do I create Spaces on Axon Cloud from my CI/CD pipeline? I had a look at the swagger definition but could not use it even with my personal token provided as a bearer token.

Found it!

  1. Create a token from the console
  2. Ask for a bearer token with the personal token:
    GET https://console.cloud.axoniq.io/api/public/auth/pat/exchange?email=email&pat=personal token
  3. Use the returned token from the previous call:
    POST https://console.cloud.axoniq.io/api/space
    { “name”: “name of the space” }
    Authorization: Bearer token

Hi @frederic.gendebien, glad you found it!

Other than that, I would like to add the axon-cloud-cli which can pretty sure can be used on your pipeline as well!

KR,