Skip to content
Start here

Magic Cloud Networking

Magic Cloud NetworkingCatalog Syncs

List Catalog Syncs
client.MagicCloudNetworking.CatalogSyncs.List(ctx, query) (*SinglePage[CatalogSyncListResponse], error)
GET/accounts/{account_id}/magic/cloud/catalog-syncs
Read Catalog Sync
client.MagicCloudNetworking.CatalogSyncs.Get(ctx, syncID, query) (*CatalogSyncGetResponse, error)
GET/accounts/{account_id}/magic/cloud/catalog-syncs/{sync_id}
Create Catalog Sync
client.MagicCloudNetworking.CatalogSyncs.New(ctx, params) (*CatalogSyncNewResponse, error)
POST/accounts/{account_id}/magic/cloud/catalog-syncs
Update Catalog Sync
client.MagicCloudNetworking.CatalogSyncs.Update(ctx, syncID, params) (*CatalogSyncUpdateResponse, error)
PUT/accounts/{account_id}/magic/cloud/catalog-syncs/{sync_id}
Patch Catalog Sync
client.MagicCloudNetworking.CatalogSyncs.Edit(ctx, syncID, params) (*CatalogSyncEditResponse, error)
PATCH/accounts/{account_id}/magic/cloud/catalog-syncs/{sync_id}
Delete Catalog Sync
client.MagicCloudNetworking.CatalogSyncs.Delete(ctx, syncID, params) (*CatalogSyncDeleteResponse, error)
DELETE/accounts/{account_id}/magic/cloud/catalog-syncs/{sync_id}
Run Catalog Sync
client.MagicCloudNetworking.CatalogSyncs.Refresh(ctx, syncID, body) (*string, error)
POST/accounts/{account_id}/magic/cloud/catalog-syncs/{sync_id}/refresh

Magic Cloud NetworkingCatalog SyncsPrebuilt Policies

List Prebuilt Policies
client.MagicCloudNetworking.CatalogSyncs.PrebuiltPolicies.List(ctx, params) (*SinglePage[CatalogSyncPrebuiltPolicyListResponse], error)
GET/accounts/{account_id}/magic/cloud/catalog-syncs/prebuilt-policies

Magic Cloud NetworkingOn Ramps

List On-ramps
client.MagicCloudNetworking.OnRamps.List(ctx, params) (*SinglePage[OnRampListResponse], error)
GET/accounts/{account_id}/magic/cloud/onramps
Read On-ramp
client.MagicCloudNetworking.OnRamps.Get(ctx, onrampID, params) (*OnRampGetResponse, error)
GET/accounts/{account_id}/magic/cloud/onramps/{onramp_id}
Create On-ramp
client.MagicCloudNetworking.OnRamps.New(ctx, params) (*OnRampNewResponse, error)
POST/accounts/{account_id}/magic/cloud/onramps
Update On-ramp
client.MagicCloudNetworking.OnRamps.Update(ctx, onrampID, params) (*OnRampUpdateResponse, error)
PUT/accounts/{account_id}/magic/cloud/onramps/{onramp_id}
Patch On-ramp
client.MagicCloudNetworking.OnRamps.Edit(ctx, onrampID, params) (*OnRampEditResponse, error)
PATCH/accounts/{account_id}/magic/cloud/onramps/{onramp_id}
Delete On-ramp
client.MagicCloudNetworking.OnRamps.Delete(ctx, onrampID, params) (*OnRampDeleteResponse, error)
DELETE/accounts/{account_id}/magic/cloud/onramps/{onramp_id}
Apply On-ramp
client.MagicCloudNetworking.OnRamps.Apply(ctx, onrampID, body) (*OnRampApplyResponse, error)
POST/accounts/{account_id}/magic/cloud/onramps/{onramp_id}/apply
Export as Terraform
client.MagicCloudNetworking.OnRamps.Export(ctx, onrampID, body) (*Response, error)
POST/accounts/{account_id}/magic/cloud/onramps/{onramp_id}/export
Plan On-ramp
client.MagicCloudNetworking.OnRamps.Plan(ctx, onrampID, body) (*OnRampPlanResponse, error)
POST/accounts/{account_id}/magic/cloud/onramps/{onramp_id}/plan

Magic Cloud NetworkingOn RampsAddress Spaces

Read Magic WAN Address Space
client.MagicCloudNetworking.OnRamps.AddressSpaces.List(ctx, query) (*OnRampAddressSpaceListResponse, error)
GET/accounts/{account_id}/magic/cloud/onramps/magic_wan_address_space
Update Magic WAN Address Space
client.MagicCloudNetworking.OnRamps.AddressSpaces.Update(ctx, params) (*OnRampAddressSpaceUpdateResponse, error)
PUT/accounts/{account_id}/magic/cloud/onramps/magic_wan_address_space
Patch Magic WAN Address Space
client.MagicCloudNetworking.OnRamps.AddressSpaces.Edit(ctx, params) (*OnRampAddressSpaceEditResponse, error)
PATCH/accounts/{account_id}/magic/cloud/onramps/magic_wan_address_space

Magic Cloud NetworkingCloud Integrations

List Cloud Integrations
client.MagicCloudNetworking.CloudIntegrations.List(ctx, params) (*SinglePage[CloudIntegrationListResponse], error)
GET/accounts/{account_id}/magic/cloud/providers
Read Cloud Integration
client.MagicCloudNetworking.CloudIntegrations.Get(ctx, providerID, params) (*CloudIntegrationGetResponse, error)
GET/accounts/{account_id}/magic/cloud/providers/{provider_id}
Create Cloud Integration
client.MagicCloudNetworking.CloudIntegrations.New(ctx, params) (*CloudIntegrationNewResponse, error)
POST/accounts/{account_id}/magic/cloud/providers
Update Cloud Integration
client.MagicCloudNetworking.CloudIntegrations.Update(ctx, providerID, params) (*CloudIntegrationUpdateResponse, error)
PUT/accounts/{account_id}/magic/cloud/providers/{provider_id}
Patch Cloud Integration
client.MagicCloudNetworking.CloudIntegrations.Edit(ctx, providerID, params) (*CloudIntegrationEditResponse, error)
PATCH/accounts/{account_id}/magic/cloud/providers/{provider_id}
Delete Cloud Integration
client.MagicCloudNetworking.CloudIntegrations.Delete(ctx, providerID, body) (*CloudIntegrationDeleteResponse, error)
DELETE/accounts/{account_id}/magic/cloud/providers/{provider_id}
Run Discovery for All Integrations
client.MagicCloudNetworking.CloudIntegrations.DiscoverAll(ctx, body) (*CloudIntegrationDiscoverAllResponse, error)
POST/accounts/{account_id}/magic/cloud/providers/discover
Run Discovery
client.MagicCloudNetworking.CloudIntegrations.Discover(ctx, providerID, params) (*CloudIntegrationDiscoverResponse, error)
POST/accounts/{account_id}/magic/cloud/providers/{provider_id}/discover
Get Cloud Integration Setup Config
client.MagicCloudNetworking.CloudIntegrations.InitialSetup(ctx, providerID, query) (*CloudIntegrationInitialSetupResponse, error)
GET/accounts/{account_id}/magic/cloud/providers/{provider_id}/initial_setup

Magic Cloud NetworkingResources

List Resources
client.MagicCloudNetworking.Resources.List(ctx, params) (*V4PagePaginationArray[ResourceListResponse], error)
GET/accounts/{account_id}/magic/cloud/resources
Read Resource
client.MagicCloudNetworking.Resources.Get(ctx, resourceID, params) (*ResourceGetResponse, error)
GET/accounts/{account_id}/magic/cloud/resources/{resource_id}
Export Resources
client.MagicCloudNetworking.Resources.Export(ctx, params) (*Response, error)
GET/accounts/{account_id}/magic/cloud/resources/export
Preview Rego Query
client.MagicCloudNetworking.Resources.PolicyPreview(ctx, params) (*string, error)
POST/accounts/{account_id}/magic/cloud/resources/policy-preview