Skip to content

API Calls in SSH / Access for Infrastructure tutorial out of date #25844

@wuyang-oss

Description

@wuyang-oss

Existing documentation URL(s)

Example URL(s)
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/ssh-infrastructure-access/#7-configure-ssh-server

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":[]}%

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions