|
| 1 | +--- |
| 2 | +myst: |
| 3 | + html_meta: |
| 4 | + description: Learn about the basic commands for managing Hypernode Object Storage |
| 5 | + title: Hypernode Object Storage | Basic Commands |
| 6 | +--- |
| 7 | + |
| 8 | +# Basic Commands |
| 9 | + |
| 10 | +This guide covers the fundamental commands for managing your Hypernode Object Storage workspace. These commands allow you to create, view, update, and cancel your object storage workspace. |
| 11 | + |
| 12 | +## Creating a Workspace |
| 13 | + |
| 14 | +The `create` command initializes a new Object Storage workspace. |
| 15 | + |
| 16 | +```console |
| 17 | +hypernode-object-storage create |
| 18 | +``` |
| 19 | + |
| 20 | +### Options |
| 21 | + |
| 22 | +- `--name`: Specify a custom name for your workspace |
| 23 | +- `--plan`: Select a storage plan (e.g., OS50GB, OS200GB) |
| 24 | +- `--coupon`: Apply a coupon code for discounts |
| 25 | + |
| 26 | +### Example |
| 27 | + |
| 28 | +```console |
| 29 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage create --name my-storage --plan OS200GB |
| 30 | +``` |
| 31 | + |
| 32 | +## Viewing Workspace Information |
| 33 | + |
| 34 | +The `info` command displays details about your current Object Storage workspace. |
| 35 | + |
| 36 | +```console |
| 37 | +hypernode-object-storage info |
| 38 | +``` |
| 39 | + |
| 40 | +### Options |
| 41 | + |
| 42 | +- `--with-credentials`: Display sensitive credentials |
| 43 | +- `--verbose`: Show detailed debug information |
| 44 | +- `-F {text,json}`: Choose output format (text or JSON) |
| 45 | + |
| 46 | +### Example Output |
| 47 | + |
| 48 | +```console |
| 49 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage info |
| 50 | +UUID | d8770125-6c90-4770-b00f-1716f699990a |
| 51 | +Name | example-storage |
| 52 | +Plan | OS200GB |
| 53 | +Versioning | Disabled |
| 54 | +Hypernodes | example |
| 55 | +Endpoint URL | **sensitive** |
| 56 | +Access Key | **sensitive** |
| 57 | +Secret Key | **sensitive** |
| 58 | +``` |
| 59 | + |
| 60 | +### JSON Output Example |
| 61 | + |
| 62 | +```console |
| 63 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage info -F json |
| 64 | +{ |
| 65 | + "UUID": "2667238b-9976-437f-98f5-cd7491b76fd8", |
| 66 | + "Name": "my workspace", |
| 67 | + "Plan": { |
| 68 | + "code": "OS200GB", |
| 69 | + "name": "Growth Node", |
| 70 | + "description": "Great for expanding stores", |
| 71 | + "price": 2000, |
| 72 | + "storage_size_in_gb": 200, |
| 73 | + "is_popular": true |
| 74 | + }, |
| 75 | + "Versioning": false, |
| 76 | + "Hypernodes": "example", |
| 77 | + "Credentials": { |
| 78 | + "management_url": "**sensitive**", |
| 79 | + "access_key": "**sensitive**", |
| 80 | + "secret_key": "**sensitive**" |
| 81 | + } |
| 82 | +} |
| 83 | +``` |
| 84 | + |
| 85 | +## Updating Workspace Settings |
| 86 | + |
| 87 | +The `update` command allows you to modify your Object Storage workspace settings. |
| 88 | + |
| 89 | +```console |
| 90 | +hypernode-object-storage update |
| 91 | +``` |
| 92 | + |
| 93 | +### Options |
| 94 | + |
| 95 | +- `--enable-versioning`: Enable object versioning |
| 96 | +- `--disable-versioning`: Disable object versioning |
| 97 | + |
| 98 | +### Example |
| 99 | + |
| 100 | +```console |
| 101 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage update --enable-versioning |
| 102 | +Enabling versioning... |
| 103 | +Versioning enabled successfully! |
| 104 | +``` |
| 105 | + |
| 106 | +```{note} |
| 107 | +Enabling versioning increases storage usage as each version of an object is stored separately. Consider your storage plan size when enabling this feature. |
| 108 | +``` |
| 109 | + |
| 110 | +## Canceling a Workspace |
| 111 | + |
| 112 | +The `cancel` command initiates the cancellation process for your Object Storage workspace. |
| 113 | + |
| 114 | +```console |
| 115 | +hypernode-object-storage cancel |
| 116 | +``` |
| 117 | + |
| 118 | +### Important Notes |
| 119 | + |
| 120 | +1. **Cancellation Timing** |
| 121 | + |
| 122 | + - Cancellation takes effect at the end of the current billing period |
| 123 | + - You will be billed for the full period |
| 124 | + |
| 125 | +1. **Data Retention** |
| 126 | + |
| 127 | + - Data remains accessible for 7 days after cancellation |
| 128 | + - Use this period to retrieve any needed data |
| 129 | + |
| 130 | +### Example |
| 131 | + |
| 132 | +```console |
| 133 | +app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage cancel |
| 134 | +Are you sure you want to cancel your Object Storage workspace? [y/N]: y |
| 135 | +Cancellation initiated. Your workspace will be canceled at the end of the current billing period. |
| 136 | +Data will remain accessible for 7 days after cancellation. |
| 137 | +``` |
0 commit comments