subscriptions

Subscriptions are the configured payment methods for an organization.

subscriptions create

Note

This command is only available for superusers.

Create a new contract subscription in an organization.

Usage: croud subscriptions create [-h] --type {contract} --org-id ORG_ID
                                  [--region REGION]
                                  [--output-fmt {table,wide,json,yaml}]
                                  [--sudo]

Required Arguments

--type

Possible choices: contract

The subscription type to use.

--org-id

The organization ID to use.

Optional Arguments

--region, -r

Temporarily use the specified region that command will be run in.

--output-fmt, --format, -o

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud subscriptions create --type contract --org-id a0df2925-cc73-4365-8a10-7ef847632b81 --sudo
+--------------------------------------+-------------------+---------+------------+
| id                                   | name              | state   | provider   |
|--------------------------------------+-------------------+---------+------------|
| 4841eb8a-257d-460d-9dcf-c6a7f0dcc09d | contract-YeBfJLWA | active  | cloud      |
+--------------------------------------+-------------------+---------+------------+
==> Success: Subscription created.

subscriptions list

List all subscriptions the current user has access to.

Usage: croud subscriptions list [-h] [--org-id ORG_ID] [--region REGION]
                                [--output-fmt {table,wide,json,yaml}] [--sudo]

Optional Arguments

--org-id

The organization ID to use.

--region, -r

Temporarily use the specified region that command will be run in.

--output-fmt, --format, -o

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud subscriptions list
+--------------------------------------+---------------------------------------+--------------------------------------+---------+----------+
| id                                   | name                                  | organization_id                      | state   | provider |
|--------------------------------------+---------------------------------------+--------------------------------------+---------+----------|
| 56149db0-ea40-4616-88d1-885f6a491989 | my-azure-subscription                 | a0df2925-cc73-4365-8a10-7ef847632b81 | active  | azure    |
| 99f26f04-5cef-4c82-b7bb-4a7d14b4b3c1 | contract-KFXfYlOX                     | a0df2925-cc73-4365-8a10-7ef847632b81 | active  | contract |
+--------------------------------------+---------------------------------------+--------------------------------------+---------+----------+

subscriptions delete

Warning

Please note that this will delete any clusters running in this subscription, so use carefully.

Cancel a Stripe or contract subscription in an organisation.

Usage: croud subscriptions delete [-h] --subscription-id SUBSCRIPTION_ID [-y]
                                  [--region REGION]
                                  [--output-fmt {table,wide,json,yaml}]
                                  [--sudo]

Required Arguments

--subscription-id

The ID of the subscription.

Optional Arguments

-y, --yes

Default: False

--region, -r

Temporarily use the specified region that command will be run in.

--output-fmt, --format, -o

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud subscriptions delete --subscription-id 035f1161-402e-44b4-9073-0749586091e0
Are you sure you want to cancel this subscription? This will delete any clusters running in this subscription. [yN] y
==> Success: Subscription cancelled.