|
6 | 6 | - jsonType |
7 | 7 | --- |
8 | 8 |
|
9 | | -import { APIRequest, Aside, AnchorHeading, Render, TabItem, Tabs } from "~/components"; |
| 9 | +import { APIRequest, Aside, AnchorHeading, CURL, Render, TabItem, Tabs } from "~/components"; |
10 | 10 |
|
11 | 11 | { props.magicWord === "breakout" && ( |
12 | 12 | <> |
@@ -96,11 +96,11 @@ The traffic for the application you chose {props.whatHappensApp}. |
96 | 96 | 2. Send a [`POST` request](/api/resources/magic_transit/subresources/apps/methods/create/) to add new apps to the breakout traffic policy. |
97 | 97 |
|
98 | 98 | <APIRequest |
99 | | - path="/accounts/{account_id}/magic/apps" |
| 99 | + path="/accounts/{account_id}/magic/sites/{site_id}/app_configs" |
100 | 100 | method="POST" |
101 | 101 | json={{ |
102 | | - "name": "<MANAGED_APP_ID>", |
103 | | - "type": "<BREAKOUT_OR_PRIORITY>" |
| 102 | + "managed_app_id": "<MANAGED_APP_ID>", |
| 103 | + "breakout": true |
104 | 104 | }} |
105 | 105 | /> |
106 | 106 |
|
@@ -138,45 +138,43 @@ The traffic for the application you chose {props.whatHappensApp}. |
138 | 138 | 1. Send a [`GET` request](/api/resources/magic_transit/subresources/apps/methods/list/) to list the applications associated with a site. |
139 | 139 |
|
140 | 140 | <APIRequest |
141 | | - path="/accounts/{account_id}/magic/apps" |
| 141 | + path="/accounts/{account_id}/magic/sites/{site_id}/app_configs" |
142 | 142 | method="GET" |
143 | 143 | /> |
144 | 144 |
|
145 | 145 | ```json output |
146 | 146 | { |
147 | 147 | "result": [ |
148 | 148 | { |
149 | | - "managed_app_id": "<APP_ID>", |
150 | | - "name": "<APP_NAME>", |
151 | | - "type": "File Sharing", |
152 | | - "hostnames": [ |
153 | | - "<app_name.com>", |
154 | | - "<app-name.info>" |
155 | | - ] |
| 149 | + "id": "<APP_ID>", |
| 150 | + "site_id": "<SITE_ID>", |
| 151 | + "managed_app_id": "<APP_NAME>", |
| 152 | + "breakout": true |
156 | 153 | } |
157 | 154 | ] |
158 | 155 | } |
159 | 156 | ``` |
160 | 157 |
|
161 | | - Take note of the `"account_app_id"` value for the application that want to delete. |
| 158 | + Take note of the `"id"` value for the application that want to delete. |
162 | 159 |
|
163 | 160 | 2. Send a [`DELETE` request](/api/resources/magic_transit/subresources/apps/methods/delete/) to delete an application from the breakout traffic policy. |
164 | 161 |
|
165 | | - <APIRequest |
166 | | - path="/accounts/{account_id}/magic/apps/{account_app_id}" |
| 162 | + <CURL |
| 163 | + url="https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{site_id}/app_configs/{id}" |
167 | 164 | method="DELETE" |
168 | 165 | /> |
169 | 166 |
|
170 | 167 | ```json output |
171 | 168 | { |
172 | | - "result": { |
173 | | - "account_app_id": "<APP_ID>", |
174 | | - "name": "<APP_NAME>", |
175 | | - "type": "<BREAKOUT_OR_PRIORITY>" |
176 | | - }, |
177 | | - "success": true, |
178 | | - "errors": [], |
179 | | - "messages": [] |
| 169 | + "result": { |
| 170 | + "id": "<APP_ID>", |
| 171 | + "site_id": "<SITE_ID>", |
| 172 | + "managed_app_id": "<APP_NAME>", |
| 173 | + "breakout": true |
| 174 | + }, |
| 175 | + "success": true, |
| 176 | + "errors": [], |
| 177 | + "messages": [] |
180 | 178 | } |
181 | 179 | ``` |
182 | 180 |
|
|
0 commit comments