|
1 | 1 | --- |
2 | 2 | {} |
| 3 | + |
3 | 4 | --- |
4 | 5 |
|
5 | | -import { Render, Details } from "~/components"; |
| 6 | +import { Render, Details } from "~/components" |
6 | 7 |
|
7 | | -1. [Create an API token](/fundamentals/api/get-started/create-token/) with the following permissions: |
| 8 | +1. [Create an API token](/fundamentals/api/get-started/create-token/) with the following permissions: |
8 | 9 |
|
9 | | - | Type | Item | Permission | |
10 | | - | ------- | ---------------- | ---------- | |
11 | | - | Account | Access: SSH Auditing | Edit | |
| 10 | + | Type | Item | Permission | |
| 11 | + | ------- | ---------------- | ---------- | |
| 12 | + | Account | Access: SSH Auditing | Edit | |
12 | 13 |
|
13 | | -2. If you have not yet generated a Cloudflare SSH CA, make a `POST` request to the Cloudflare API: |
| 14 | +2. If you have not yet generated a Cloudflare SSH CA, make a `POST` request to the Cloudflare API: |
14 | 15 |
|
15 | | - ```bash |
16 | | - curl --request POST \ |
17 | | - "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/gateway_ca" \ |
18 | | - --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" |
19 | | - ``` |
| 16 | + ```bash |
| 17 | + curl --request POST \ |
| 18 | + "https://api.cloudflare.com/client/v4/accounts/{account_id}/access/gateway_ca" \ |
| 19 | + --header "Authorization: Bearer <API_TOKEN>" |
| 20 | + ``` |
20 | 21 |
|
21 | | -3. If you have already created a Cloudflare SSH CA or receive the error message `access.api.error.gateway_ca_already_exists`, make a `GET` request instead: |
| 22 | +3. If you have already created a Cloudflare SSH CA or receive the error message `access.api.error.gateway_ca_already_exists`, make a `GET` request instead: |
22 | 23 |
|
23 | | - ```bash |
24 | | - curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/gateway_ca \ |
25 | | - --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" |
26 | | - ``` |
| 24 | + ```bash |
| 25 | + curl https://api.cloudflare.com/client/v4/accounts/{account_id}/access/gateway_ca \ |
| 26 | + --header "Authorization: Bearer <API_TOKEN>" |
| 27 | + ``` |
27 | 28 |
|
28 | | -4. Copy the `public_key` value returned in the response. |
| 29 | +4. Copy the `public_key` value returned in the response. |
0 commit comments