Service Provisioning Methods
Megaport offers three primary methods for provisioning and managing services: the Portal, API, and Terraform. The optimal choice depends on the customer’s need for automation, the complexity of the deployment, and the user’s role.
The table below provides a quick-reference guide to suitable users and scenarios for each method.
| Method | Key Benefits | Use Cases | Typical Users |
|---|---|---|---|
| Portal |
|
|
|
| API |
|
|
|
| Terraform |
|
|
|
Important
If an organization chooses to adopt Terraform to manage certain Megaport services, it must commit to using Terraform exclusively for those services.
Mixing service management via the Megaport Portal and/or API with Terraform will inevitably cause Terraform state drift. That is, the Terraform state will become inconsistent with the actual infrastructure configuration managed through the Portal and cause Terraform errors. For more information, see Understanding Terraform state for Megaport resources.
Choosing your Megaport services provisioning method
Megaport Portal (UI)
The Portal is the ideal choice for manual, visual configuration and quick, hands-on management. It offers the fastest path to provisioning for one-off needs.
Choose the Portal when you need to:
- Quickly provision a service manually for immediate use.
- Conduct initial setups, demos, or training on new features.
- Perform a one-time deployment that doesn’t require version control.
- Prefer a visual, click-through workflow rather than system integration.
Megaport API
The API is best suited for achieving dynamic automation and system integration. It allows teams to build custom logic that interacts directly with Megaport services without requiring a user interface login.
Choose the API when you need to:
- Build a custom application or orchestrator for provisioning.
- Enable event-driven or dynamic configuration based on internal business logic.
- Perform frequent, programmatic configuration updates across services.
- Integrate Megaport provisioning into a large, existing internal system or customer-facing platform.
Terraform (Infrastructure as Code - IaC)
Terraform is the preferred method for users who require auditable, repeatable, and version-controlled deployments at scale. It offers full control over the lifecycle of your infrastructure.
Choose Terraform when you need to:
- Implement Infrastructure as Code (IaC) for your network resources.
- Manage services across multiple environments (Dev, Staging, Production) reliably.
- Connect to multiple clouds or manage large-scale hybrid environments.
- Ensure a standardized, auditable, and repeatable process for network builds and governance.