forked from cloudflare-api/python-cloudflare-v4
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverse usage of utf-8 in README introduced in commit da73108
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -916,7 +916,7 @@ $ cli4 --post [email protected] /zones/:example.com/dns_records/import | |
} | ||
$ | ||
``` | ||
|
||
### Zone file upload (i.e. import) Python examples (uses BIND format files) | ||
|
||
Because `import` is a reserved word in Python there needs to be a slight workaround to calling this within code. | ||
|
@@ -1106,42 +1106,42 @@ The `cli4` command along with the Python libaries can be used to control the ins | |
|
||
To query the states of the instant logs: | ||
``` | ||
$ cli4 /zones/:███████████.com/logpush/edge/jobs | jq . | ||
$ cli4 /zones/:example.com/logpush/edge/jobs | jq . | ||
[] | ||
$ | ||
``` | ||
|
||
To add monitoring: | ||
``` | ||
$ cli4 --post \ | ||
='{ | ||
"fields": "ClientIP,ClientRequestHost,ClientRequestMethod,ClientRequestURI,EdgeEndTimestamp,EdgeResponseBytes,EdgeResponseStatus,EdgeStartTimestamp,RayID", | ||
"sample": 1, | ||
"filter": "", | ||
"kind": "instant-logs" | ||
}' \ | ||
/zones/:███████████.com/logpush/edge/jobs | jq . | ||
='{ | ||
"fields": "ClientIP,ClientRequestHost,ClientRequestMethod,ClientRequestURI,EdgeEndTimestamp,EdgeResponseBytes,EdgeResponseStatus,EdgeStartTimestamp,RayID", | ||
"sample": 1, | ||
"filter": "", | ||
"kind": "instant-logs" | ||
}' \ | ||
/zones/:example.com/logpush/edge/jobs | jq . | ||
{ | ||
"destination_conf": "wss://logs.cloudflare.com/instant-logs/ws/sessions/████████████████████████████████", | ||
"destination_conf": "wss://logs.cloudflare.com/instant-logs/ws/sessions/00000000000000000000000000000000", | ||
"fields": "ClientIP,ClientRequestHost,ClientRequestMethod,ClientRequestURI,EdgeEndTimestamp,EdgeResponseBytes,EdgeResponseStatus,EdgeStartTimestamp,RayID", | ||
"filter": "", | ||
"kind": "instant-logs", | ||
"sample": 1, | ||
"session_id": "████████████████████████████████" | ||
"session_id": "00000000000000000000000000000000" | ||
} | ||
$ | ||
``` | ||
|
||
To see the results: | ||
``` | ||
$ cli4 /zones/:███████████.com/logpush/edge/jobs | jq . | ||
$ cli4 /zones/:example.com/logpush/edge/jobs | jq . | ||
[ | ||
{ | ||
"fields": "ClientIP,ClientRequestHost,ClientRequestMethod,ClientRequestURI,EdgeEndTimestamp,EdgeResponseBytes,EdgeResponseStatus,EdgeStartTimestamp,RayID", | ||
"filter": "", | ||
"kind": "instant-logs", | ||
"sample": 1, | ||
"session_id": "████████████████████████████████" | ||
"session_id": "00000000000000000000000000000000" | ||
} | ||
] | ||
$ | ||
|