- 
                Notifications
    
You must be signed in to change notification settings  - Fork 9.8k
 
Description
Existing documentation URL(s)
What changes are you suggesting?
In section 7 - 7. Configure SSH server, the API calls listed in order to make a POST/GET for generating a Cloudflare SSH CA are listed as follows
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/gateway_ca"
--request POST
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/gateway_ca"
--request GET
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
The correct calls should be (for POST and GET), as listed here https://developers.cloudflare.com/api/resources/zero_trust/subresources/access/subresources/gateway_ca/
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/gateway_ca
-X POST
-H "X-Auth-Email: $CLOUDFLARE_EMAIL"
-H "X-Auth-Key: $CLOUDFLARE_API_KEY"
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/gateway_ca
-H "X-Auth-Email: $CLOUDFLARE_EMAIL"
-H "X-Auth-Key: $CLOUDFLARE_API_KEY"
Additional information
Additional information
We tested this and the calls listed in the api documentation seems to be the correct ones. Using the call listed in the docs produces a 7003 error {"result":null,"success":false,"errors":[{"code":7003,"message":"Could not route to /client/v4/accounts/$ACCOUNTID/access/gateway_ca, perhaps your object identifier is invalid?"}],"messages":[]}%