Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ params:
- jsonType
---

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

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

<APIRequest
path="/accounts/{account_id}/magic/apps"
path="/accounts/{account_id}/magic/sites/{site_id}/app_configs"
method="POST"
json={{
"name": "<MANAGED_APP_ID>",
"type": "<BREAKOUT_OR_PRIORITY>"
"managed_app_id": "<MANAGED_APP_ID>",
"breakout": true
}}
/>

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

<APIRequest
path="/accounts/{account_id}/magic/apps"
path="/accounts/{account_id}/magic/sites/{site_id}/app_configs"
method="GET"
/>

```json output
{
"result": [
{
"managed_app_id": "<APP_ID>",
"name": "<APP_NAME>",
"type": "File Sharing",
"hostnames": [
"<app_name.com>",
"<app-name.info>"
]
"id": "<APP_ID>",
"site_id": "<SITE_ID>",
"managed_app_id": "<APP_NAME>",
"breakout": true
}
]
}
```

Take note of the `"account_app_id"` value for the application that want to delete.
Take note of the `"id"` value for the application that want to delete.

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

<APIRequest
path="/accounts/{account_id}/magic/apps/{account_app_id}"
<CURL
url="https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{site_id}/app_configs/{id}"
method="DELETE"
/>

```json output
{
"result": {
"account_app_id": "<APP_ID>",
"name": "<APP_NAME>",
"type": "<BREAKOUT_OR_PRIORITY>"
},
"success": true,
"errors": [],
"messages": []
"result": {
"id": "<APP_ID>",
"site_id": "<SITE_ID>",
"managed_app_id": "<APP_NAME>",
"breakout": true
},
"success": true,
"errors": [],
"messages": []
}
```

Expand Down