Skip to content

Commit 326350f

Browse files
Revert service-bindings use for cohesiveness with auth explanation
1 parent 42c99b1 commit 326350f

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/content/docs/byoip/service-bindings/magic-transit-with-cdn.mdx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ At this point, continuing the [example](#before-you-begin), you should have a ma
6666

6767
<Example>
6868

69-
<APIRequest
70-
path="/accounts/{account_id}/addressing/prefixes/{prefix_id}/bindings"
71-
method="GET"
72-
/>
69+
```bash
70+
curl https://api.cloudflare.com/client/v4/accounts/{account_id}/addressing/prefixes/{prefix_id}/bindings \
71+
--header "Authorization: Bearer <API_TOKEN>"
72+
```
7373

7474
</Example>
7575

@@ -87,15 +87,16 @@ Continuing the example, `203.0.113.100/32` designates an IP address that is with
8787

8888
Replace the `{prefix_id}` in the URI with your prefix ID from previous steps. Within the request body, the `cidr` value should correspond to the IP address or subnet that you are configuring for use with CDN.
8989

90+
```bash
9091

91-
<APIRequest
92-
path="/accounts/{account_id}/addressing/prefixes/{prefix_id}/bindings"
93-
method="POST"
94-
json={{
95-
"cidr": "203.0.113.100/32",
96-
"service_id": "<SERVICE_ID>",
97-
}}
98-
/>
92+
curl https://api.cloudflare.com/client/v4/accounts/{account_id}/addressing/prefixes/{prefix_id}/bindings \
93+
--header "Authorization: Bearer <API_TOKEN>" \
94+
--header "Content-Type: application/json" \
95+
--data '{
96+
"cidr": "203.0.113.100/32",
97+
"service_id": "<SERVICE_ID>"
98+
}'
99+
```
99100

100101
In the response body, the initial provisioning state should be `provisioning`.
101102

0 commit comments

Comments
 (0)