Skip to content
Start here

Apps

List Apps
magic_transit.apps.list(AppListParams**kwargs) -> SyncSinglePage[AppListResponse]
GET/accounts/{account_id}/magic/apps
Create a new App
magic_transit.apps.create(AppCreateParams**kwargs) -> AppCreateResponse
POST/accounts/{account_id}/magic/apps
Update an App
magic_transit.apps.update(straccount_app_id, AppUpdateParams**kwargs) -> AppUpdateResponse
PUT/accounts/{account_id}/magic/apps/{account_app_id}
Update an App
magic_transit.apps.edit(straccount_app_id, AppEditParams**kwargs) -> AppEditResponse
PATCH/accounts/{account_id}/magic/apps/{account_app_id}
Delete Account App
magic_transit.apps.delete(straccount_app_id, AppDeleteParams**kwargs) -> AppDeleteResponse
DELETE/accounts/{account_id}/magic/apps/{account_app_id}
ModelsExpand Collapse

Collection of Hostnames and/or IP Subnets to associate with traffic decisions.

One of the following:
class MagicAccountApp:

Custom app defined for an account.

account_app_id: str

Magic account app ID.

hostnames: Optional[List[str]]

FQDNs to associate with traffic decisions.

ip_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

name: Optional[str]

Display name for the app.

source_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

type: Optional[str]

Category of the app.

class MagicManagedApp:

Managed app defined by Cloudflare.

managed_app_id: str

Managed app ID.

hostnames: Optional[List[str]]

FQDNs to associate with traffic decisions.

ip_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

name: Optional[str]

Display name for the app.

source_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

type: Optional[str]

Category of the app.

class AppCreateResponse:

Custom app defined for an account.

account_app_id: str

Magic account app ID.

hostnames: Optional[List[str]]

FQDNs to associate with traffic decisions.

ip_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

name: Optional[str]

Display name for the app.

source_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

type: Optional[str]

Category of the app.

class AppUpdateResponse:

Custom app defined for an account.

account_app_id: str

Magic account app ID.

hostnames: Optional[List[str]]

FQDNs to associate with traffic decisions.

ip_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

name: Optional[str]

Display name for the app.

source_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

type: Optional[str]

Category of the app.

class AppEditResponse:

Custom app defined for an account.

account_app_id: str

Magic account app ID.

hostnames: Optional[List[str]]

FQDNs to associate with traffic decisions.

ip_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

name: Optional[str]

Display name for the app.

source_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

type: Optional[str]

Category of the app.

class AppDeleteResponse:

Custom app defined for an account.

account_app_id: str

Magic account app ID.

hostnames: Optional[List[str]]

FQDNs to associate with traffic decisions.

ip_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

name: Optional[str]

Display name for the app.

source_subnets: Optional[List[str]]

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

type: Optional[str]

Category of the app.