megaport.Port
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as megaport from "@pulumi/megaport";
const port = new megaport.Port("port", {
contractTermMonths: 1,
costCentre: "Megaport Single Port Example",
locationId: 6,
marketplaceVisibility: false,
portSpeed: 1000,
productName: "Megaport Port Example",
});
import pulumi
import pulumi_megaport as megaport
port = megaport.Port("port",
contract_term_months=1,
cost_centre="Megaport Single Port Example",
location_id=6,
marketplace_visibility=False,
port_speed=1000,
product_name="Megaport Port Example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/megaport/megaport"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := megaport.NewPort(ctx, "port", &megaport.PortArgs{
ContractTermMonths: pulumi.Float64(1),
CostCentre: pulumi.String("Megaport Single Port Example"),
LocationId: pulumi.Float64(6),
MarketplaceVisibility: pulumi.Bool(false),
PortSpeed: pulumi.Float64(1000),
ProductName: pulumi.String("Megaport Port Example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Megaport = Pulumi.Megaport;
return await Deployment.RunAsync(() =>
{
var port = new Megaport.Port("port", new()
{
ContractTermMonths = 1,
CostCentre = "Megaport Single Port Example",
LocationId = 6,
MarketplaceVisibility = false,
PortSpeed = 1000,
ProductName = "Megaport Port Example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.megaport.Port;
import com.pulumi.megaport.PortArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var port = new Port("port", PortArgs.builder()
.contractTermMonths(1)
.costCentre("Megaport Single Port Example")
.locationId(6)
.marketplaceVisibility(false)
.portSpeed(1000)
.productName("Megaport Port Example")
.build());
}
}
resources:
port:
type: megaport:Port
properties:
contractTermMonths: 1
costCentre: Megaport Single Port Example
locationId: 6
marketplaceVisibility: false
portSpeed: 1000
productName: Megaport Port Example
Create Port Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Port(name: string, args: PortArgs, opts?: CustomResourceOptions);
@overload
def Port(resource_name: str,
args: PortArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Port(resource_name: str,
opts: Optional[ResourceOptions] = None,
contract_term_months: Optional[float] = None,
location_id: Optional[float] = None,
marketplace_visibility: Optional[bool] = None,
port_speed: Optional[float] = None,
product_name: Optional[str] = None,
cost_centre: Optional[str] = None,
diversity_zone: Optional[str] = None,
promo_code: Optional[str] = None,
resource_tags: Optional[Mapping[str, str]] = None)
func NewPort(ctx *Context, name string, args PortArgs, opts ...ResourceOption) (*Port, error)
public Port(string name, PortArgs args, CustomResourceOptions? opts = null)
type: megaport:Port
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var portResource = new Megaport.Port("portResource", new()
{
ContractTermMonths = 0,
LocationId = 0,
MarketplaceVisibility = false,
PortSpeed = 0,
ProductName = "string",
CostCentre = "string",
DiversityZone = "string",
PromoCode = "string",
ResourceTags =
{
{ "string", "string" },
},
});
example, err := megaport.NewPort(ctx, "portResource", &megaport.PortArgs{
ContractTermMonths: pulumi.Float64(0),
LocationId: pulumi.Float64(0),
MarketplaceVisibility: pulumi.Bool(false),
PortSpeed: pulumi.Float64(0),
ProductName: pulumi.String("string"),
CostCentre: pulumi.String("string"),
DiversityZone: pulumi.String("string"),
PromoCode: pulumi.String("string"),
ResourceTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var portResource = new Port("portResource", PortArgs.builder()
.contractTermMonths(0)
.locationId(0)
.marketplaceVisibility(false)
.portSpeed(0)
.productName("string")
.costCentre("string")
.diversityZone("string")
.promoCode("string")
.resourceTags(Map.of("string", "string"))
.build());
port_resource = megaport.Port("portResource",
contract_term_months=0,
location_id=0,
marketplace_visibility=False,
port_speed=0,
product_name="string",
cost_centre="string",
diversity_zone="string",
promo_code="string",
resource_tags={
"string": "string",
})
const portResource = new megaport.Port("portResource", {
contractTermMonths: 0,
locationId: 0,
marketplaceVisibility: false,
portSpeed: 0,
productName: "string",
costCentre: "string",
diversityZone: "string",
promoCode: "string",
resourceTags: {
string: "string",
},
});
type: megaport:Port
properties:
contractTermMonths: 0
costCentre: string
diversityZone: string
locationId: 0
marketplaceVisibility: false
portSpeed: 0
productName: string
promoCode: string
resourceTags:
string: string
Port Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Port resource accepts the following input properties:
- Contract
Term doubleMonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- Location
Id double - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- Marketplace
Visibility bool - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- Port
Speed double - The speed of the port in Mbps.
- Product
Name string - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- Cost
Centre string - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- Diversity
Zone string - The diversity zone of the product.
- Promo
Code string - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- Dictionary<string, string>
- The resource tags associated with the product.
- Contract
Term float64Months - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- Location
Id float64 - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- Marketplace
Visibility bool - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- Port
Speed float64 - The speed of the port in Mbps.
- Product
Name string - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- Cost
Centre string - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- Diversity
Zone string - The diversity zone of the product.
- Promo
Code string - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- map[string]string
- The resource tags associated with the product.
- contract
Term DoubleMonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- location
Id Double - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- marketplace
Visibility Boolean - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- port
Speed Double - The speed of the port in Mbps.
- product
Name String - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- cost
Centre String - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- diversity
Zone String - The diversity zone of the product.
- promo
Code String - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- Map<String,String>
- The resource tags associated with the product.
- contract
Term numberMonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- location
Id number - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- marketplace
Visibility boolean - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- port
Speed number - The speed of the port in Mbps.
- product
Name string - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- cost
Centre string - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- diversity
Zone string - The diversity zone of the product.
- promo
Code string - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- {[key: string]: string}
- The resource tags associated with the product.
- contract_
term_ floatmonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- location_
id float - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- marketplace_
visibility bool - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- port_
speed float - The speed of the port in Mbps.
- product_
name str - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- cost_
centre str - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- diversity_
zone str - The diversity zone of the product.
- promo_
code str - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- Mapping[str, str]
- The resource tags associated with the product.
- contract
Term NumberMonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- location
Id Number - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- marketplace
Visibility Boolean - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- port
Speed Number - The speed of the port in Mbps.
- product
Name String - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- cost
Centre String - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- diversity
Zone String - The diversity zone of the product.
- promo
Code String - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- Map<String>
- The resource tags associated with the product.
Outputs
All input properties are implicitly available as output properties. Additionally, the Port resource produces the following output properties:
- Cancelable bool
- Whether the product is cancelable.
- Company
Uid string - The unique identifier of the company.
- Contract
End stringDate - The date the contract ends.
- Contract
Start stringDate - The date the contract started.
- Create
Date string - The date the product was created.
- Created
By string - The user who created the product.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - The last time the resource was updated.
- Live
Date string - The date the product went live.
- Locked bool
- Whether the product is locked.
- Market string
- The market the product is in.
- Product
Id double - The numeric ID of the product.
- Product
Uid string - The unique identifier for the resource.
- Provisioning
Status string - The provisioning status of the product.
- Resources
Port
Resources - Resources attached to port.
- Terminate
Date string - The date the product will be terminated.
- Usage
Algorithm string - The usage algorithm for the product.
- Virtual bool
- Whether the product is virtual.
- Vxc
Auto boolApproval - Whether VXC is auto-approved on this product.
- Vxc
Permitted bool - Whether VXC is permitted on this product.
- Cancelable bool
- Whether the product is cancelable.
- Company
Uid string - The unique identifier of the company.
- Contract
End stringDate - The date the contract ends.
- Contract
Start stringDate - The date the contract started.
- Create
Date string - The date the product was created.
- Created
By string - The user who created the product.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - The last time the resource was updated.
- Live
Date string - The date the product went live.
- Locked bool
- Whether the product is locked.
- Market string
- The market the product is in.
- Product
Id float64 - The numeric ID of the product.
- Product
Uid string - The unique identifier for the resource.
- Provisioning
Status string - The provisioning status of the product.
- Resources
Port
Resources - Resources attached to port.
- Terminate
Date string - The date the product will be terminated.
- Usage
Algorithm string - The usage algorithm for the product.
- Virtual bool
- Whether the product is virtual.
- Vxc
Auto boolApproval - Whether VXC is auto-approved on this product.
- Vxc
Permitted bool - Whether VXC is permitted on this product.
- cancelable Boolean
- Whether the product is cancelable.
- company
Uid String - The unique identifier of the company.
- contract
End StringDate - The date the contract ends.
- contract
Start StringDate - The date the contract started.
- create
Date String - The date the product was created.
- created
By String - The user who created the product.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - The last time the resource was updated.
- live
Date String - The date the product went live.
- locked Boolean
- Whether the product is locked.
- market String
- The market the product is in.
- product
Id Double - The numeric ID of the product.
- product
Uid String - The unique identifier for the resource.
- provisioning
Status String - The provisioning status of the product.
- resources
Port
Resources - Resources attached to port.
- terminate
Date String - The date the product will be terminated.
- usage
Algorithm String - The usage algorithm for the product.
- virtual Boolean
- Whether the product is virtual.
- vxc
Auto BooleanApproval - Whether VXC is auto-approved on this product.
- vxc
Permitted Boolean - Whether VXC is permitted on this product.
- cancelable boolean
- Whether the product is cancelable.
- company
Uid string - The unique identifier of the company.
- contract
End stringDate - The date the contract ends.
- contract
Start stringDate - The date the contract started.
- create
Date string - The date the product was created.
- created
By string - The user who created the product.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - The last time the resource was updated.
- live
Date string - The date the product went live.
- locked boolean
- Whether the product is locked.
- market string
- The market the product is in.
- product
Id number - The numeric ID of the product.
- product
Uid string - The unique identifier for the resource.
- provisioning
Status string - The provisioning status of the product.
- resources
Port
Resources - Resources attached to port.
- terminate
Date string - The date the product will be terminated.
- usage
Algorithm string - The usage algorithm for the product.
- virtual boolean
- Whether the product is virtual.
- vxc
Auto booleanApproval - Whether VXC is auto-approved on this product.
- vxc
Permitted boolean - Whether VXC is permitted on this product.
- cancelable bool
- Whether the product is cancelable.
- company_
uid str - The unique identifier of the company.
- contract_
end_ strdate - The date the contract ends.
- contract_
start_ strdate - The date the contract started.
- create_
date str - The date the product was created.
- created_
by str - The user who created the product.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - The last time the resource was updated.
- live_
date str - The date the product went live.
- locked bool
- Whether the product is locked.
- market str
- The market the product is in.
- product_
id float - The numeric ID of the product.
- product_
uid str - The unique identifier for the resource.
- provisioning_
status str - The provisioning status of the product.
- resources
Port
Resources - Resources attached to port.
- terminate_
date str - The date the product will be terminated.
- usage_
algorithm str - The usage algorithm for the product.
- virtual bool
- Whether the product is virtual.
- vxc_
auto_ boolapproval - Whether VXC is auto-approved on this product.
- vxc_
permitted bool - Whether VXC is permitted on this product.
- cancelable Boolean
- Whether the product is cancelable.
- company
Uid String - The unique identifier of the company.
- contract
End StringDate - The date the contract ends.
- contract
Start StringDate - The date the contract started.
- create
Date String - The date the product was created.
- created
By String - The user who created the product.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - The last time the resource was updated.
- live
Date String - The date the product went live.
- locked Boolean
- Whether the product is locked.
- market String
- The market the product is in.
- product
Id Number - The numeric ID of the product.
- product
Uid String - The unique identifier for the resource.
- provisioning
Status String - The provisioning status of the product.
- resources Property Map
- Resources attached to port.
- terminate
Date String - The date the product will be terminated.
- usage
Algorithm String - The usage algorithm for the product.
- virtual Boolean
- Whether the product is virtual.
- vxc
Auto BooleanApproval - Whether VXC is auto-approved on this product.
- vxc
Permitted Boolean - Whether VXC is permitted on this product.
Look up Existing Port Resource
Get an existing Port resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PortState, opts?: CustomResourceOptions): Port
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cancelable: Optional[bool] = None,
company_uid: Optional[str] = None,
contract_end_date: Optional[str] = None,
contract_start_date: Optional[str] = None,
contract_term_months: Optional[float] = None,
cost_centre: Optional[str] = None,
create_date: Optional[str] = None,
created_by: Optional[str] = None,
diversity_zone: Optional[str] = None,
last_updated: Optional[str] = None,
live_date: Optional[str] = None,
location_id: Optional[float] = None,
locked: Optional[bool] = None,
market: Optional[str] = None,
marketplace_visibility: Optional[bool] = None,
port_speed: Optional[float] = None,
product_id: Optional[float] = None,
product_name: Optional[str] = None,
product_uid: Optional[str] = None,
promo_code: Optional[str] = None,
provisioning_status: Optional[str] = None,
resource_tags: Optional[Mapping[str, str]] = None,
resources: Optional[PortResourcesArgs] = None,
terminate_date: Optional[str] = None,
usage_algorithm: Optional[str] = None,
virtual: Optional[bool] = None,
vxc_auto_approval: Optional[bool] = None,
vxc_permitted: Optional[bool] = None) -> Port
func GetPort(ctx *Context, name string, id IDInput, state *PortState, opts ...ResourceOption) (*Port, error)
public static Port Get(string name, Input<string> id, PortState? state, CustomResourceOptions? opts = null)
public static Port get(String name, Output<String> id, PortState state, CustomResourceOptions options)
resources: _: type: megaport:Port get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cancelable bool
- Whether the product is cancelable.
- Company
Uid string - The unique identifier of the company.
- Contract
End stringDate - The date the contract ends.
- Contract
Start stringDate - The date the contract started.
- Contract
Term doubleMonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- Cost
Centre string - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- Create
Date string - The date the product was created.
- Created
By string - The user who created the product.
- Diversity
Zone string - The diversity zone of the product.
- Last
Updated string - The last time the resource was updated.
- Live
Date string - The date the product went live.
- Location
Id double - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- Locked bool
- Whether the product is locked.
- Market string
- The market the product is in.
- Marketplace
Visibility bool - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- Port
Speed double - The speed of the port in Mbps.
- Product
Id double - The numeric ID of the product.
- Product
Name string - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- Product
Uid string - The unique identifier for the resource.
- Promo
Code string - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- Provisioning
Status string - The provisioning status of the product.
- Dictionary<string, string>
- The resource tags associated with the product.
- Resources
Port
Resources - Resources attached to port.
- Terminate
Date string - The date the product will be terminated.
- Usage
Algorithm string - The usage algorithm for the product.
- Virtual bool
- Whether the product is virtual.
- Vxc
Auto boolApproval - Whether VXC is auto-approved on this product.
- Vxc
Permitted bool - Whether VXC is permitted on this product.
- Cancelable bool
- Whether the product is cancelable.
- Company
Uid string - The unique identifier of the company.
- Contract
End stringDate - The date the contract ends.
- Contract
Start stringDate - The date the contract started.
- Contract
Term float64Months - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- Cost
Centre string - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- Create
Date string - The date the product was created.
- Created
By string - The user who created the product.
- Diversity
Zone string - The diversity zone of the product.
- Last
Updated string - The last time the resource was updated.
- Live
Date string - The date the product went live.
- Location
Id float64 - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- Locked bool
- Whether the product is locked.
- Market string
- The market the product is in.
- Marketplace
Visibility bool - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- Port
Speed float64 - The speed of the port in Mbps.
- Product
Id float64 - The numeric ID of the product.
- Product
Name string - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- Product
Uid string - The unique identifier for the resource.
- Promo
Code string - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- Provisioning
Status string - The provisioning status of the product.
- map[string]string
- The resource tags associated with the product.
- Resources
Port
Resources Args - Resources attached to port.
- Terminate
Date string - The date the product will be terminated.
- Usage
Algorithm string - The usage algorithm for the product.
- Virtual bool
- Whether the product is virtual.
- Vxc
Auto boolApproval - Whether VXC is auto-approved on this product.
- Vxc
Permitted bool - Whether VXC is permitted on this product.
- cancelable Boolean
- Whether the product is cancelable.
- company
Uid String - The unique identifier of the company.
- contract
End StringDate - The date the contract ends.
- contract
Start StringDate - The date the contract started.
- contract
Term DoubleMonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- cost
Centre String - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- create
Date String - The date the product was created.
- created
By String - The user who created the product.
- diversity
Zone String - The diversity zone of the product.
- last
Updated String - The last time the resource was updated.
- live
Date String - The date the product went live.
- location
Id Double - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- locked Boolean
- Whether the product is locked.
- market String
- The market the product is in.
- marketplace
Visibility Boolean - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- port
Speed Double - The speed of the port in Mbps.
- product
Id Double - The numeric ID of the product.
- product
Name String - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- product
Uid String - The unique identifier for the resource.
- promo
Code String - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- provisioning
Status String - The provisioning status of the product.
- Map<String,String>
- The resource tags associated with the product.
- resources
Port
Resources - Resources attached to port.
- terminate
Date String - The date the product will be terminated.
- usage
Algorithm String - The usage algorithm for the product.
- virtual Boolean
- Whether the product is virtual.
- vxc
Auto BooleanApproval - Whether VXC is auto-approved on this product.
- vxc
Permitted Boolean - Whether VXC is permitted on this product.
- cancelable boolean
- Whether the product is cancelable.
- company
Uid string - The unique identifier of the company.
- contract
End stringDate - The date the contract ends.
- contract
Start stringDate - The date the contract started.
- contract
Term numberMonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- cost
Centre string - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- create
Date string - The date the product was created.
- created
By string - The user who created the product.
- diversity
Zone string - The diversity zone of the product.
- last
Updated string - The last time the resource was updated.
- live
Date string - The date the product went live.
- location
Id number - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- locked boolean
- Whether the product is locked.
- market string
- The market the product is in.
- marketplace
Visibility boolean - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- port
Speed number - The speed of the port in Mbps.
- product
Id number - The numeric ID of the product.
- product
Name string - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- product
Uid string - The unique identifier for the resource.
- promo
Code string - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- provisioning
Status string - The provisioning status of the product.
- {[key: string]: string}
- The resource tags associated with the product.
- resources
Port
Resources - Resources attached to port.
- terminate
Date string - The date the product will be terminated.
- usage
Algorithm string - The usage algorithm for the product.
- virtual boolean
- Whether the product is virtual.
- vxc
Auto booleanApproval - Whether VXC is auto-approved on this product.
- vxc
Permitted boolean - Whether VXC is permitted on this product.
- cancelable bool
- Whether the product is cancelable.
- company_
uid str - The unique identifier of the company.
- contract_
end_ strdate - The date the contract ends.
- contract_
start_ strdate - The date the contract started.
- contract_
term_ floatmonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- cost_
centre str - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- create_
date str - The date the product was created.
- created_
by str - The user who created the product.
- diversity_
zone str - The diversity zone of the product.
- last_
updated str - The last time the resource was updated.
- live_
date str - The date the product went live.
- location_
id float - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- locked bool
- Whether the product is locked.
- market str
- The market the product is in.
- marketplace_
visibility bool - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- port_
speed float - The speed of the port in Mbps.
- product_
id float - The numeric ID of the product.
- product_
name str - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- product_
uid str - The unique identifier for the resource.
- promo_
code str - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- provisioning_
status str - The provisioning status of the product.
- Mapping[str, str]
- The resource tags associated with the product.
- resources
Port
Resources Args - Resources attached to port.
- terminate_
date str - The date the product will be terminated.
- usage_
algorithm str - The usage algorithm for the product.
- virtual bool
- Whether the product is virtual.
- vxc_
auto_ boolapproval - Whether VXC is auto-approved on this product.
- vxc_
permitted bool - Whether VXC is permitted on this product.
- cancelable Boolean
- Whether the product is cancelable.
- company
Uid String - The unique identifier of the company.
- contract
End StringDate - The date the contract ends.
- contract
Start StringDate - The date the contract started.
- contract
Term NumberMonths - The term of the contract in months: valid values are 1, 12, 24, and 36. To set the product to a month-to-month contract with no minimum term, set the value to 1.
- cost
Centre String - A customer reference number to be included in billing information and invoices. Also known as the service level reference (SLR) number. Specify a unique identifying number for the product to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service. Please note that a VXC associated with the Port is not automatically updated with the Port service level reference number.
- create
Date String - The date the product was created.
- created
By String - The user who created the product.
- diversity
Zone String - The diversity zone of the product.
- last
Updated String - The last time the resource was updated.
- live
Date String - The date the product went live.
- location
Id Number - The numeric location ID of the product. This value can be retrieved from the data source megaport_location.
- locked Boolean
- Whether the product is locked.
- market String
- The market the product is in.
- marketplace
Visibility Boolean - Whether the product is visible in the marketplace. By default, the Port is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to Private, the Port is not searchable in the Megaport Marketplace (however, others can still connect to you using a service key). Click Public to make the new Port and profile visible on the Megaport network for inbound connection requests. It is possible to change the Port from Private to Public after the initial setup.
- port
Speed Number - The speed of the port in Mbps.
- product
Id Number - The numeric ID of the product.
- product
Name String - The name of the product. Specify a name for the Port that is easily identifiable, particularly if you plan on having more than one Port.
- product
Uid String - The unique identifier for the resource.
- promo
Code String - Promo code is an optional string that can be used to enter a promotional code for the service order. The code is not validated, so if the code doesn't exist or doesn't work for the service, the request will still be successful.
- provisioning
Status String - The provisioning status of the product.
- Map<String>
- The resource tags associated with the product.
- resources Property Map
- Resources attached to port.
- terminate
Date String - The date the product will be terminated.
- usage
Algorithm String - The usage algorithm for the product.
- virtual Boolean
- Whether the product is virtual.
- vxc
Auto BooleanApproval - Whether VXC is auto-approved on this product.
- vxc
Permitted Boolean - Whether VXC is permitted on this product.
Supporting Types
PortResources, PortResourcesArgs
- Interface
Port
Resources Interface - Port interface details.
- Interface
Port
Resources Interface - Port interface details.
- interface_
Port
Resources Interface - Port interface details.
- interface
Port
Resources Interface - Port interface details.
- interface
Port
Resources Interface - Port interface details.
- interface Property Map
- Port interface details.
PortResourcesInterface, PortResourcesInterfaceArgs
- Demarcation string
- The demarcation of the interface.
- Up double
- The up status of the interface.
- Demarcation string
- The demarcation of the interface.
- Up float64
- The up status of the interface.
- demarcation String
- The demarcation of the interface.
- up Double
- The up status of the interface.
- demarcation string
- The demarcation of the interface.
- up number
- The up status of the interface.
- demarcation str
- The demarcation of the interface.
- up float
- The up status of the interface.
- demarcation String
- The demarcation of the interface.
- up Number
- The up status of the interface.
Import
Order can be imported by specifying the Product UID.
$ pulumi import megaport:index/port:Port example "<PRODUCT_UID>"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- megaport megaport/terraform-provider-megaport
- License
- Notes
- This Pulumi package is based on the
megaport
Terraform Provider.