subscriptions

subscriptions create

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.

Note

This command is only available for superusers.

subscriptions list

Print the subscriptions in a user’s organization:

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                                  | state  | provider |
|--------------------------------------+---------------------------------------+--------+----------|
| 56149db0-ea40-4616-88d1-885f6a491989 | my-azure-subscription                 | active | azure    |
| b01b93e0-fd18-4896-ba88-288efe759bf0 | x43z8qxk9nh7l7mq7nxd3907z-zWG1GEiPuM4 | active | aws      |
+--------------------------------------+---------------------------------------+--------+----------+

subscriptions delete

Cancel a Stripe subscription in a user’s organisation. Please note that this will delete any clusters running in this subscription, so use carefully:

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.

Feedback

How helpful was this page?