clever-tools icon indicating copy to clipboard operation
clever-tools copied to clipboard

List an owner applications

Open aurrelhebert opened this issue 1 year ago • 2 comments

We should be able to list an owner applications.

This is currently possible threw the following cURL command:

clever curl https://api.clever-cloud.com/v2/organisations/<owner_id>/applications | jq '.[].name'

aurrelhebert avatar May 06 '24 08:05 aurrelhebert

Have you an idea of how to do that ?

miton18 avatar May 06 '24 08:05 miton18

Should we create a new clever list command?

This one could list or

  • your organisations (or owners?)
  • your applications
  • your addons

This could be like

clever list organisations
clever list applications --owner <OwnerId>

I am open to any alternative as this is just a first guess

aurrelhebert avatar May 06 '24 12:05 aurrelhebert

As discussed today, we need a way to support it in a non breaking way for now, and unify how we list things (add-ons, applications, backups, etc.) later.

For example we could use clever applications in a non-linked context to show such a list, and introduce à --list when the user is in a linked context.

davlgd avatar May 23 '24 16:05 davlgd