Skip to content

Commit d60ca9d

Browse files
[Mconn] API Connector patch (#20872)
* corrected create app * corrected app list * corrected api * changed to curl * corrected response
1 parent 057b15a commit d60ca9d

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

src/content/partials/magic-wan/connector/app-aware-policies/breakout-prioritized.mdx

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ params:
66
- jsonType
77
---
88

9-
import { APIRequest, Aside, AnchorHeading, Render, TabItem, Tabs } from "~/components";
9+
import { APIRequest, Aside, AnchorHeading, CURL, Render, TabItem, Tabs } from "~/components";
1010

1111
{ props.magicWord === "breakout" && (
1212
<>
@@ -96,11 +96,11 @@ The traffic for the application you chose {props.whatHappensApp}.
9696
2. Send a [`POST` request](/api/resources/magic_transit/subresources/apps/methods/create/) to add new apps to the breakout traffic policy.
9797

9898
<APIRequest
99-
path="/accounts/{account_id}/magic/apps"
99+
path="/accounts/{account_id}/magic/sites/{site_id}/app_configs"
100100
method="POST"
101101
json={{
102-
"name": "<MANAGED_APP_ID>",
103-
"type": "<BREAKOUT_OR_PRIORITY>"
102+
"managed_app_id": "<MANAGED_APP_ID>",
103+
"breakout": true
104104
}}
105105
/>
106106

@@ -138,45 +138,43 @@ The traffic for the application you chose {props.whatHappensApp}.
138138
1. Send a [`GET` request](/api/resources/magic_transit/subresources/apps/methods/list/) to list the applications associated with a site.
139139

140140
<APIRequest
141-
path="/accounts/{account_id}/magic/apps"
141+
path="/accounts/{account_id}/magic/sites/{site_id}/app_configs"
142142
method="GET"
143143
/>
144144

145145
```json output
146146
{
147147
"result": [
148148
{
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
156153
}
157154
]
158155
}
159156
```
160157

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.
162159

163160
2. Send a [`DELETE` request](/api/resources/magic_transit/subresources/apps/methods/delete/) to delete an application from the breakout traffic policy.
164161

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}"
167164
method="DELETE"
168165
/>
169166

170167
```json output
171168
{
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": []
180178
}
181179
```
182180

0 commit comments

Comments
 (0)