Skip to content
Start here

Cloud Integrations

List Cloud Integrations
client.magicCloudNetworking.cloudIntegrations.list(CloudIntegrationListParams { account_id, cloudflare, desc, 2 more } params, RequestOptionsoptions?): SinglePage<CloudIntegrationListResponse { id, cloud_type, friendly_name, 11 more } >
GET/accounts/{account_id}/magic/cloud/providers
Read Cloud Integration
client.magicCloudNetworking.cloudIntegrations.get(stringproviderId, CloudIntegrationGetParams { account_id, status } params, RequestOptionsoptions?): CloudIntegrationGetResponse { id, cloud_type, friendly_name, 11 more }
GET/accounts/{account_id}/magic/cloud/providers/{provider_id}
Create Cloud Integration
client.magicCloudNetworking.cloudIntegrations.create(CloudIntegrationCreateParams { account_id, cloud_type, friendly_name, 2 more } params, RequestOptionsoptions?): CloudIntegrationCreateResponse { id, cloud_type, friendly_name, 11 more }
POST/accounts/{account_id}/magic/cloud/providers
Update Cloud Integration
client.magicCloudNetworking.cloudIntegrations.update(stringproviderId, CloudIntegrationUpdateParams { account_id, aws_arn, azure_subscription_id, 5 more } params, RequestOptionsoptions?): CloudIntegrationUpdateResponse { id, cloud_type, friendly_name, 11 more }
PUT/accounts/{account_id}/magic/cloud/providers/{provider_id}
Patch Cloud Integration
client.magicCloudNetworking.cloudIntegrations.edit(stringproviderId, CloudIntegrationEditParams { account_id, aws_arn, azure_subscription_id, 5 more } params, RequestOptionsoptions?): CloudIntegrationEditResponse { id, cloud_type, friendly_name, 11 more }
PATCH/accounts/{account_id}/magic/cloud/providers/{provider_id}
Delete Cloud Integration
client.magicCloudNetworking.cloudIntegrations.delete(stringproviderId, CloudIntegrationDeleteParams { account_id } params, RequestOptionsoptions?): CloudIntegrationDeleteResponse { id }
DELETE/accounts/{account_id}/magic/cloud/providers/{provider_id}
Run Discovery for All Integrations
client.magicCloudNetworking.cloudIntegrations.discoverAll(CloudIntegrationDiscoverAllParams { account_id } params, RequestOptionsoptions?): CloudIntegrationDiscoverAllResponse { errors, messages, success }
POST/accounts/{account_id}/magic/cloud/providers/discover
Run Discovery
client.magicCloudNetworking.cloudIntegrations.discover(stringproviderId, CloudIntegrationDiscoverParams { account_id, v2 } params, RequestOptionsoptions?): CloudIntegrationDiscoverResponse { errors, messages, success }
POST/accounts/{account_id}/magic/cloud/providers/{provider_id}/discover
Get Cloud Integration Setup Config
client.magicCloudNetworking.cloudIntegrations.initialSetup(stringproviderId, CloudIntegrationInitialSetupParams { account_id } params, RequestOptionsoptions?): CloudIntegrationInitialSetupResponse
GET/accounts/{account_id}/magic/cloud/providers/{provider_id}/initial_setup
ModelsExpand Collapse
CloudIntegrationListResponse { id, cloud_type, friendly_name, 11 more }
id: string
formatuuid
cloud_type: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE"
One of the following:
"AWS"
"AZURE"
"GOOGLE"
"CLOUDFLARE"
friendly_name: string
last_updated: string
lifecycle_state: "ACTIVE" | "PENDING_SETUP" | "RETIRED"
One of the following:
"ACTIVE"
"PENDING_SETUP"
"RETIRED"
state: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
state_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
aws_arn?: string
azure_subscription_id?: string
azure_tenant_id?: string
description?: string
gcp_project_id?: string
gcp_service_account_email?: string
status?: Status { discovery_progress, discovery_progress_v2, last_discovery_status, 13 more }
discovery_progress: DiscoveryProgress { done, total, unit }
done: number
total: number
unit: string
discovery_progress_v2: DiscoveryProgressV2 { done, total, unit }
done: number
total: number
unit: string
last_discovery_status: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
last_discovery_status_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
regions: Array<string>
credentials_good_since?: string
credentials_missing_since?: string
credentials_rejected_since?: string
discovery_message?: string
discovery_message_v2?: string
in_use_by?: Array<InUseBy>
id: string
formatuuid
client_type: "MAGIC_WAN_CLOUD_ONRAMP"
name: string
last_discovery_completed_at?: string
last_discovery_completed_at_v2?: string
last_discovery_started_at?: string
last_discovery_started_at_v2?: string
last_updated?: string
CloudIntegrationGetResponse { id, cloud_type, friendly_name, 11 more }
id: string
formatuuid
cloud_type: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE"
One of the following:
"AWS"
"AZURE"
"GOOGLE"
"CLOUDFLARE"
friendly_name: string
last_updated: string
lifecycle_state: "ACTIVE" | "PENDING_SETUP" | "RETIRED"
One of the following:
"ACTIVE"
"PENDING_SETUP"
"RETIRED"
state: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
state_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
aws_arn?: string
azure_subscription_id?: string
azure_tenant_id?: string
description?: string
gcp_project_id?: string
gcp_service_account_email?: string
status?: Status { discovery_progress, discovery_progress_v2, last_discovery_status, 13 more }
discovery_progress: DiscoveryProgress { done, total, unit }
done: number
total: number
unit: string
discovery_progress_v2: DiscoveryProgressV2 { done, total, unit }
done: number
total: number
unit: string
last_discovery_status: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
last_discovery_status_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
regions: Array<string>
credentials_good_since?: string
credentials_missing_since?: string
credentials_rejected_since?: string
discovery_message?: string
discovery_message_v2?: string
in_use_by?: Array<InUseBy>
id: string
formatuuid
client_type: "MAGIC_WAN_CLOUD_ONRAMP"
name: string
last_discovery_completed_at?: string
last_discovery_completed_at_v2?: string
last_discovery_started_at?: string
last_discovery_started_at_v2?: string
last_updated?: string
CloudIntegrationCreateResponse { id, cloud_type, friendly_name, 11 more }
id: string
formatuuid
cloud_type: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE"
One of the following:
"AWS"
"AZURE"
"GOOGLE"
"CLOUDFLARE"
friendly_name: string
last_updated: string
lifecycle_state: "ACTIVE" | "PENDING_SETUP" | "RETIRED"
One of the following:
"ACTIVE"
"PENDING_SETUP"
"RETIRED"
state: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
state_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
aws_arn?: string
azure_subscription_id?: string
azure_tenant_id?: string
description?: string
gcp_project_id?: string
gcp_service_account_email?: string
status?: Status { discovery_progress, discovery_progress_v2, last_discovery_status, 13 more }
discovery_progress: DiscoveryProgress { done, total, unit }
done: number
total: number
unit: string
discovery_progress_v2: DiscoveryProgressV2 { done, total, unit }
done: number
total: number
unit: string
last_discovery_status: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
last_discovery_status_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
regions: Array<string>
credentials_good_since?: string
credentials_missing_since?: string
credentials_rejected_since?: string
discovery_message?: string
discovery_message_v2?: string
in_use_by?: Array<InUseBy>
id: string
formatuuid
client_type: "MAGIC_WAN_CLOUD_ONRAMP"
name: string
last_discovery_completed_at?: string
last_discovery_completed_at_v2?: string
last_discovery_started_at?: string
last_discovery_started_at_v2?: string
last_updated?: string
CloudIntegrationUpdateResponse { id, cloud_type, friendly_name, 11 more }
id: string
formatuuid
cloud_type: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE"
One of the following:
"AWS"
"AZURE"
"GOOGLE"
"CLOUDFLARE"
friendly_name: string
last_updated: string
lifecycle_state: "ACTIVE" | "PENDING_SETUP" | "RETIRED"
One of the following:
"ACTIVE"
"PENDING_SETUP"
"RETIRED"
state: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
state_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
aws_arn?: string
azure_subscription_id?: string
azure_tenant_id?: string
description?: string
gcp_project_id?: string
gcp_service_account_email?: string
status?: Status { discovery_progress, discovery_progress_v2, last_discovery_status, 13 more }
discovery_progress: DiscoveryProgress { done, total, unit }
done: number
total: number
unit: string
discovery_progress_v2: DiscoveryProgressV2 { done, total, unit }
done: number
total: number
unit: string
last_discovery_status: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
last_discovery_status_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
regions: Array<string>
credentials_good_since?: string
credentials_missing_since?: string
credentials_rejected_since?: string
discovery_message?: string
discovery_message_v2?: string
in_use_by?: Array<InUseBy>
id: string
formatuuid
client_type: "MAGIC_WAN_CLOUD_ONRAMP"
name: string
last_discovery_completed_at?: string
last_discovery_completed_at_v2?: string
last_discovery_started_at?: string
last_discovery_started_at_v2?: string
last_updated?: string
CloudIntegrationEditResponse { id, cloud_type, friendly_name, 11 more }
id: string
formatuuid
cloud_type: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE"
One of the following:
"AWS"
"AZURE"
"GOOGLE"
"CLOUDFLARE"
friendly_name: string
last_updated: string
lifecycle_state: "ACTIVE" | "PENDING_SETUP" | "RETIRED"
One of the following:
"ACTIVE"
"PENDING_SETUP"
"RETIRED"
state: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
state_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
aws_arn?: string
azure_subscription_id?: string
azure_tenant_id?: string
description?: string
gcp_project_id?: string
gcp_service_account_email?: string
status?: Status { discovery_progress, discovery_progress_v2, last_discovery_status, 13 more }
discovery_progress: DiscoveryProgress { done, total, unit }
done: number
total: number
unit: string
discovery_progress_v2: DiscoveryProgressV2 { done, total, unit }
done: number
total: number
unit: string
last_discovery_status: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
last_discovery_status_v2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | 2 more
One of the following:
"UNSPECIFIED"
"PENDING"
"DISCOVERING"
"FAILED"
"SUCCEEDED"
regions: Array<string>
credentials_good_since?: string
credentials_missing_since?: string
credentials_rejected_since?: string
discovery_message?: string
discovery_message_v2?: string
in_use_by?: Array<InUseBy>
id: string
formatuuid
client_type: "MAGIC_WAN_CLOUD_ONRAMP"
name: string
last_discovery_completed_at?: string
last_discovery_completed_at_v2?: string
last_discovery_started_at?: string
last_discovery_started_at_v2?: string
last_updated?: string
CloudIntegrationDeleteResponse { id }
id: string
formatuuid
CloudIntegrationDiscoverAllResponse { errors, messages, success }
errors: Array<Error>
maxLength0
code: 1001 | 1002 | 1003 | 152 more
One of the following:
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
3001
3002
3003
3004
3005
3006
3007
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
5001
5002
5003
5004
102000
102001
102002
102003
102004
102005
102006
102007
102008
102009
102010
102011
102012
102013
102014
102015
102016
102017
102018
102019
102020
102021
102022
102023
102024
102025
102026
102027
102028
102029
102030
102031
102032
102033
102034
102035
102036
102037
102038
102039
102040
102041
102042
102043
102044
102045
102046
102047
102048
102049
102050
102051
102052
102053
102054
102055
102056
102057
102058
102059
102060
102061
102062
102063
102064
102065
102066
102067
102068
102069
102070
102071
102072
103001
103002
103003
103004
103005
103006
103007
103008
message: string
documentation_url?: string
meta?: Meta { l10n_key, loggable_error, template_data, trace_id }
l10n_key?: string
loggable_error?: string
template_data?: unknown
trace_id?: string
source?: Source { parameter, parameter_value_index, pointer }
parameter?: string
parameter_value_index?: number
pointer?: string
messages: Array<Message>
code: 1001 | 1002 | 1003 | 152 more
One of the following:
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
3001
3002
3003
3004
3005
3006
3007
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
5001
5002
5003
5004
102000
102001
102002
102003
102004
102005
102006
102007
102008
102009
102010
102011
102012
102013
102014
102015
102016
102017
102018
102019
102020
102021
102022
102023
102024
102025
102026
102027
102028
102029
102030
102031
102032
102033
102034
102035
102036
102037
102038
102039
102040
102041
102042
102043
102044
102045
102046
102047
102048
102049
102050
102051
102052
102053
102054
102055
102056
102057
102058
102059
102060
102061
102062
102063
102064
102065
102066
102067
102068
102069
102070
102071
102072
103001
103002
103003
103004
103005
103006
103007
103008
message: string
documentation_url?: string
meta?: Meta { l10n_key, loggable_error, template_data, trace_id }
l10n_key?: string
loggable_error?: string
template_data?: unknown
trace_id?: string
source?: Source { parameter, parameter_value_index, pointer }
parameter?: string
parameter_value_index?: number
pointer?: string
success: boolean
CloudIntegrationDiscoverResponse { errors, messages, success }
errors: Array<Error>
maxLength0
code: 1001 | 1002 | 1003 | 152 more
One of the following:
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
3001
3002
3003
3004
3005
3006
3007
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
5001
5002
5003
5004
102000
102001
102002
102003
102004
102005
102006
102007
102008
102009
102010
102011
102012
102013
102014
102015
102016
102017
102018
102019
102020
102021
102022
102023
102024
102025
102026
102027
102028
102029
102030
102031
102032
102033
102034
102035
102036
102037
102038
102039
102040
102041
102042
102043
102044
102045
102046
102047
102048
102049
102050
102051
102052
102053
102054
102055
102056
102057
102058
102059
102060
102061
102062
102063
102064
102065
102066
102067
102068
102069
102070
102071
102072
103001
103002
103003
103004
103005
103006
103007
103008
message: string
documentation_url?: string
meta?: Meta { l10n_key, loggable_error, template_data, trace_id }
l10n_key?: string
loggable_error?: string
template_data?: unknown
trace_id?: string
source?: Source { parameter, parameter_value_index, pointer }
parameter?: string
parameter_value_index?: number
pointer?: string
messages: Array<Message>
code: 1001 | 1002 | 1003 | 152 more
One of the following:
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
3001
3002
3003
3004
3005
3006
3007
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
5001
5002
5003
5004
102000
102001
102002
102003
102004
102005
102006
102007
102008
102009
102010
102011
102012
102013
102014
102015
102016
102017
102018
102019
102020
102021
102022
102023
102024
102025
102026
102027
102028
102029
102030
102031
102032
102033
102034
102035
102036
102037
102038
102039
102040
102041
102042
102043
102044
102045
102046
102047
102048
102049
102050
102051
102052
102053
102054
102055
102056
102057
102058
102059
102060
102061
102062
102063
102064
102065
102066
102067
102068
102069
102070
102071
102072
103001
103002
103003
103004
103005
103006
103007
103008
message: string
documentation_url?: string
meta?: Meta { l10n_key, loggable_error, template_data, trace_id }
l10n_key?: string
loggable_error?: string
template_data?: unknown
trace_id?: string
source?: Source { parameter, parameter_value_index, pointer }
parameter?: string
parameter_value_index?: number
pointer?: string
success: boolean
CloudIntegrationInitialSetupResponse = McnAwsTrustPolicy { aws_trust_policy, item_type } | McnAzureSetup { azure_consent_url, integration_identity_tag, item_type, tag_cli_command } | McnGcpSetup { integration_identity_tag, item_type, tag_cli_command }
One of the following:
McnAwsTrustPolicy { aws_trust_policy, item_type }
aws_trust_policy: string
item_type: string
McnAzureSetup { azure_consent_url, integration_identity_tag, item_type, tag_cli_command }
integration_identity_tag: string
item_type: string
tag_cli_command: string
McnGcpSetup { integration_identity_tag, item_type, tag_cli_command }
integration_identity_tag: string
item_type: string
tag_cli_command: string