-
Notifications
You must be signed in to change notification settings - Fork 10k
Closed
Closed
Copy link
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsmore-information-neededproduct:cloudflare-one
Description
Existing documentation URL(s)
What changes are you suggesting?
$ curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/cfd_tunnel/$TUNNEL_ID/configurations" \
--request PUT \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json '{
"config": {
"ingress": [
{
"hostname": "example.org",
"service": "http://localhost:8001",
"originRequest": {}
},
{
"service": "http_status:404"
}
]
}
}'
{"success":false,"errors":[{"code":10000,"message":"PUT method not allowed for the api_token authentication scheme"}]}
I assume this means that I should use the Global API Key, but this also fails:
$ curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/cfd_tunnel/$TUNNEL_ID/configurations" \
--request PUT \
--header "X-Auth-Email: $MY_CLOUDFLARE_EMAIL" \
--header "X-Auth-Key: $CLOUDFLARE_API_KEY" \
--json '{
"config": {
"ingress": [
{
"hostname": "example.org",
"service": "http://localhost:8001",
"originRequest": {}
},
{
"service": "http_status:404"
}
]
}
}'
{"success":false,"errors":[{"code":1089,"message":"Method Not Allowed"}],"messages":[],"result":null}%
Additional information
No response
Metadata
Metadata
Assignees
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsmore-information-neededproduct:cloudflare-one