Skip to content

Commit

Permalink
Update linux curl command with proper flags (#15381)
Browse files Browse the repository at this point in the history
  • Loading branch information
cascadingstyletrees authored Jun 28, 2024
1 parent a6856f5 commit d3d6b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/logs/logpull/enabling-log-retention/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To make a `POST` call, you must have zone-scoped `edit` permissions, such as Sup
### Check whether log retention is turned on:

```sh
$ curl -s -H "X-Auth-Email: <EMAIL>" -H "X-Auth-Key: <API_KEY>" GET "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/logs/control/retention/flag" | jq .
$ curl -s -H "X-Auth-Email: <EMAIL>" -H "X-Auth-Key: <API_KEY>" -X GET "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/logs/control/retention/flag" | jq .
```

#### Response:
Expand All @@ -47,7 +47,7 @@ $ curl -s -H "X-Auth-Email: <EMAIL>" -H "X-Auth-Key: <API_KEY>" GET "https://api
On Linux or macOS:

```bash
curl -s -H "X-Auth-Email: <EMAIL>" -H "X-Auth-Key: <API_KEY>" POST "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/logs/control/retention/flag" -d'{"flag":true}' | jq .
curl -s -H "X-Auth-Email: <EMAIL>" -H "X-Auth-Key: <API_KEY>" -X POST "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/logs/control/retention/flag" -d'{"flag":true}' | jq .
```

On Windows in Command Prompt:
Expand Down

0 comments on commit d3d6b72

Please sign in to comment.