|
| 1 | +<!-- DO NOT EDIT: this file is automatically generated using scw-doc-gen --> |
| 2 | +# Documentation for `scw account` |
| 3 | +Account API |
| 4 | + |
| 5 | +- [SSH keys management commands](#ssh-keys-management-commands) |
| 6 | + - [Add a SSH key to your organization](#add-a-ssh-key-to-your-organization) |
| 7 | + - [Get a SSH key from your organization](#get-a-ssh-key-from-your-organization) |
| 8 | + - [Initialize SSH key](#initialize-ssh-key) |
| 9 | + - [List all SSH keys of your organization](#list-all-ssh-keys-of-your-organization) |
| 10 | + - [Remove a SSH key from your organization](#remove-a-ssh-key-from-your-organization) |
| 11 | + - [Update a SSH key on your organization](#update-a-ssh-key-on-your-organization) |
| 12 | + |
| 13 | + |
| 14 | +## SSH keys management commands |
| 15 | + |
| 16 | +SSH keys management commands. |
| 17 | + |
| 18 | + |
| 19 | +### Add a SSH key to your organization |
| 20 | + |
| 21 | +Add a SSH key to your organization. |
| 22 | + |
| 23 | +**Usage:** |
| 24 | + |
| 25 | +``` |
| 26 | +scw account ssh-key add [arg=value ...] |
| 27 | +``` |
| 28 | + |
| 29 | + |
| 30 | +**Args:** |
| 31 | + |
| 32 | +| Name | | Description | |
| 33 | +|------|---|-------------| |
| 34 | +| name | | The name of the SSH key | |
| 35 | +| public-key | Required | SSH public key. Currently ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported | |
| 36 | +| project-id | | Project owning the resource | |
| 37 | +| organization-id | | Organization ID to use. If none is passed will use default organization ID from the config | |
| 38 | + |
| 39 | + |
| 40 | +**Examples:** |
| 41 | + |
| 42 | + |
| 43 | +Add a given ssh key |
| 44 | +``` |
| 45 | +scw account ssh-key add name=foobar public_key="$(cat <path/to/your/public/key>)" |
| 46 | +``` |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +### Get a SSH key from your organization |
| 52 | + |
| 53 | +Get a SSH key from your organization. |
| 54 | + |
| 55 | +**Usage:** |
| 56 | + |
| 57 | +``` |
| 58 | +scw account ssh-key get <ssh-key-id ...> [arg=value ...] |
| 59 | +``` |
| 60 | + |
| 61 | + |
| 62 | +**Args:** |
| 63 | + |
| 64 | +| Name | | Description | |
| 65 | +|------|---|-------------| |
| 66 | +| ssh-key-id | Required | The ID of the SSH key | |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | +### Initialize SSH key |
| 71 | + |
| 72 | +Initialize SSH key. |
| 73 | + |
| 74 | +**Usage:** |
| 75 | + |
| 76 | +``` |
| 77 | +scw account ssh-key init |
| 78 | +``` |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +### List all SSH keys of your organization |
| 83 | + |
| 84 | +List all SSH keys of your organization. |
| 85 | + |
| 86 | +**Usage:** |
| 87 | + |
| 88 | +``` |
| 89 | +scw account ssh-key list [arg=value ...] |
| 90 | +``` |
| 91 | + |
| 92 | + |
| 93 | +**Args:** |
| 94 | + |
| 95 | +| Name | | Description | |
| 96 | +|------|---|-------------| |
| 97 | +| order-by | One of: `created_at_asc`, `created_at_desc`, `updated_at_asc`, `updated_at_desc`, `name_asc`, `name_desc` | | |
| 98 | +| name | | | |
| 99 | +| project-id | | | |
| 100 | +| organization-id | | | |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | +### Remove a SSH key from your organization |
| 105 | + |
| 106 | +Remove a SSH key from your organization. |
| 107 | + |
| 108 | +**Usage:** |
| 109 | + |
| 110 | +``` |
| 111 | +scw account ssh-key remove <ssh-key-id ...> [arg=value ...] |
| 112 | +``` |
| 113 | + |
| 114 | + |
| 115 | +**Args:** |
| 116 | + |
| 117 | +| Name | | Description | |
| 118 | +|------|---|-------------| |
| 119 | +| ssh-key-id | Required | | |
| 120 | + |
| 121 | + |
| 122 | +**Examples:** |
| 123 | + |
| 124 | + |
| 125 | +Remove a given SSH key |
| 126 | +``` |
| 127 | +scw account ssh-key remove 11111111-1111-1111-1111-111111111111 |
| 128 | +``` |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | +### Update a SSH key on your organization |
| 134 | + |
| 135 | +Update a SSH key on your organization. |
| 136 | + |
| 137 | +**Usage:** |
| 138 | + |
| 139 | +``` |
| 140 | +scw account ssh-key update <ssh-key-id ...> [arg=value ...] |
| 141 | +``` |
| 142 | + |
| 143 | + |
| 144 | +**Args:** |
| 145 | + |
| 146 | +| Name | | Description | |
| 147 | +|------|---|-------------| |
| 148 | +| ssh-key-id | Required | | |
| 149 | +| name | | | |
| 150 | + |
| 151 | + |
| 152 | + |
0 commit comments