Skip to content

Commit a0d7009

Browse files
authored
[China Network] Use APIRequest component (#21922)
1 parent a5590f3 commit a0d7009

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

src/content/docs/china-network/reference/infrastructure.mdx

+27-22
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ title: Infrastructure
33
pcx_content_type: reference
44
sidebar:
55
order: 3
6-
76
---
87

8+
import { APIRequest } from "~/components";
9+
910
## China data centers
1011

1112
For up-to-date information, refer to the [Cloudflare China Network](https://www.cloudflare.com/china-network/) page.
@@ -16,30 +17,34 @@ Cloudflare publishes a list of IP addresses for JD Cloud data centers, used by C
1617

1718
You can obtain the list of JD Cloud data center IP addresses via Cloudflare API. Use the [Cloudflare/JD Cloud IP Details](/api/resources/ips/methods/list/) operation with the `networks=jdcloud` query string parameter:
1819

19-
```sh title="Example request"
20-
$ curl https://api.cloudflare.com/client/v4/ips?networks=jdcloud
21-
```
20+
<APIRequest
21+
path="/ips"
22+
method="GET"
23+
parameters={{
24+
networks: "jdcloud",
25+
}}
26+
/>
2227

23-
IP addresses of JD Cloud data centers will be returned in the `jdcloud_cidrs` array:
24-
25-
```json title="Example response" {9,10,11}
28+
```json output {9-11}
2629
{
27-
"result": {
28-
"ipv4_cidrs": [
29-
// (...)
30-
],
31-
"ipv6_cidrs": [
32-
// (...)
33-
],
34-
"jdcloud_cidrs": [
35-
// (...)
36-
],
37-
"etag": "<ETAG>"
38-
},
39-
"success": true,
40-
"errors": [],
41-
"messages": []
30+
"result": {
31+
"ipv4_cidrs": [
32+
// (...)
33+
],
34+
"ipv6_cidrs": [
35+
// (...)
36+
],
37+
"jdcloud_cidrs": [
38+
// (...)
39+
],
40+
"etag": "<ETAG>"
41+
},
42+
"success": true,
43+
"errors": [],
44+
"messages": []
4245
}
4346
```
4447

48+
The `jdcloud_cidrs` array lists the IP addresses of JD Cloud data centers.
49+
4550
Cloudflare will add new IP addresses to this list 30 days in advance before connecting from those IP addresses to an origin server. If you are using the China Network on JD Cloud, you should update your firewalls to reflect any IP address changes at least once every 30 days.

0 commit comments

Comments
 (0)