published on Thursday, May 21, 2026 by megaport
published on Thursday, May 21, 2026 by megaport
Create NatGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NatGateway(name: string, args: NatGatewayArgs, opts?: CustomResourceOptions);@overload
def NatGateway(resource_name: str,
args: NatGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NatGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
contract_term_months: Optional[float] = None,
diversity_zone: Optional[str] = None,
location_id: Optional[float] = None,
product_name: Optional[str] = None,
session_count: Optional[float] = None,
speed: Optional[float] = None,
asn: Optional[float] = None,
auto_renew_term: Optional[bool] = None,
bgp_shutdown_default: Optional[bool] = None,
promo_code: Optional[str] = None,
resource_tags: Optional[Mapping[str, str]] = None)func NewNatGateway(ctx *Context, name string, args NatGatewayArgs, opts ...ResourceOption) (*NatGateway, error)public NatGateway(string name, NatGatewayArgs args, CustomResourceOptions? opts = null)
public NatGateway(String name, NatGatewayArgs args)
public NatGateway(String name, NatGatewayArgs args, CustomResourceOptions options)
type: megaport:NatGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "megaport_natgateway" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args NatGatewayArgs
- 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 NatGatewayArgs
- 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 NatGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NatGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NatGatewayArgs
- 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 natGatewayResource = new Megaport.NatGateway("natGatewayResource", new()
{
ContractTermMonths = 0,
DiversityZone = "string",
LocationId = 0,
ProductName = "string",
SessionCount = 0,
Speed = 0,
Asn = 0,
AutoRenewTerm = false,
BgpShutdownDefault = false,
PromoCode = "string",
ResourceTags =
{
{ "string", "string" },
},
});
example, err := megaport.NewNatGateway(ctx, "natGatewayResource", &megaport.NatGatewayArgs{
ContractTermMonths: pulumi.Float64(0),
DiversityZone: pulumi.String("string"),
LocationId: pulumi.Float64(0),
ProductName: pulumi.String("string"),
SessionCount: pulumi.Float64(0),
Speed: pulumi.Float64(0),
Asn: pulumi.Float64(0),
AutoRenewTerm: pulumi.Bool(false),
BgpShutdownDefault: pulumi.Bool(false),
PromoCode: pulumi.String("string"),
ResourceTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "megaport_natgateway" "natGatewayResource" {
contract_term_months = 0
diversity_zone = "string"
location_id = 0
product_name = "string"
session_count = 0
speed = 0
asn = 0
auto_renew_term = false
bgp_shutdown_default = false
promo_code = "string"
resource_tags = {
"string" = "string"
}
}
var natGatewayResource = new NatGateway("natGatewayResource", NatGatewayArgs.builder()
.contractTermMonths(0.0)
.diversityZone("string")
.locationId(0.0)
.productName("string")
.sessionCount(0.0)
.speed(0.0)
.asn(0.0)
.autoRenewTerm(false)
.bgpShutdownDefault(false)
.promoCode("string")
.resourceTags(Map.of("string", "string"))
.build());
nat_gateway_resource = megaport.NatGateway("natGatewayResource",
contract_term_months=float(0),
diversity_zone="string",
location_id=float(0),
product_name="string",
session_count=float(0),
speed=float(0),
asn=float(0),
auto_renew_term=False,
bgp_shutdown_default=False,
promo_code="string",
resource_tags={
"string": "string",
})
const natGatewayResource = new megaport.NatGateway("natGatewayResource", {
contractTermMonths: 0,
diversityZone: "string",
locationId: 0,
productName: "string",
sessionCount: 0,
speed: 0,
asn: 0,
autoRenewTerm: false,
bgpShutdownDefault: false,
promoCode: "string",
resourceTags: {
string: "string",
},
});
type: megaport:NatGateway
properties:
asn: 0
autoRenewTerm: false
bgpShutdownDefault: false
contractTermMonths: 0
diversityZone: string
locationId: 0
productName: string
promoCode: string
resourceTags:
string: string
sessionCount: 0
speed: 0
NatGateway 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 NatGateway resource accepts the following input properties:
- Contract
Term doubleMonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- Diversity
Zone string - The diversity zone of the NAT Gateway.
- Location
Id double - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- Product
Name string - The name of the NAT Gateway.
- Session
Count double - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- Speed double
- The speed of the NAT Gateway in Mbps.
- Asn double
- The Autonomous System Number (ASN) for the NAT Gateway.
- Auto
Renew boolTerm - Whether the NAT Gateway contract will auto-renew.
- Bgp
Shutdown boolDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- Promo
Code string - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- Dictionary<string, string>
- Resource tags for the NAT Gateway.
- Contract
Term float64Months - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- Diversity
Zone string - The diversity zone of the NAT Gateway.
- Location
Id float64 - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- Product
Name string - The name of the NAT Gateway.
- Session
Count float64 - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- Speed float64
- The speed of the NAT Gateway in Mbps.
- Asn float64
- The Autonomous System Number (ASN) for the NAT Gateway.
- Auto
Renew boolTerm - Whether the NAT Gateway contract will auto-renew.
- Bgp
Shutdown boolDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- Promo
Code string - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- map[string]string
- Resource tags for the NAT Gateway.
- contract_
term_ numbermonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- diversity_
zone string - The diversity zone of the NAT Gateway.
- location_
id number - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- product_
name string - The name of the NAT Gateway.
- session_
count number - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed number
- The speed of the NAT Gateway in Mbps.
- asn number
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto_
renew_ boolterm - Whether the NAT Gateway contract will auto-renew.
- bgp_
shutdown_ booldefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- promo_
code string - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- map(string)
- Resource tags for the NAT Gateway.
- contract
Term DoubleMonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- diversity
Zone String - The diversity zone of the NAT Gateway.
- location
Id Double - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- product
Name String - The name of the NAT Gateway.
- session
Count Double - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed Double
- The speed of the NAT Gateway in Mbps.
- asn Double
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto
Renew BooleanTerm - Whether the NAT Gateway contract will auto-renew.
- bgp
Shutdown BooleanDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- promo
Code String - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- Map<String,String>
- Resource tags for the NAT Gateway.
- contract
Term numberMonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- diversity
Zone string - The diversity zone of the NAT Gateway.
- location
Id number - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- product
Name string - The name of the NAT Gateway.
- session
Count number - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed number
- The speed of the NAT Gateway in Mbps.
- asn number
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto
Renew booleanTerm - Whether the NAT Gateway contract will auto-renew.
- bgp
Shutdown booleanDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- promo
Code string - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- {[key: string]: string}
- Resource tags for the NAT Gateway.
- contract_
term_ floatmonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- diversity_
zone str - The diversity zone of the NAT Gateway.
- location_
id float - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- product_
name str - The name of the NAT Gateway.
- session_
count float - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed float
- The speed of the NAT Gateway in Mbps.
- asn float
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto_
renew_ boolterm - Whether the NAT Gateway contract will auto-renew.
- bgp_
shutdown_ booldefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- promo_
code str - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- Mapping[str, str]
- Resource tags for the NAT Gateway.
- contract
Term NumberMonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- diversity
Zone String - The diversity zone of the NAT Gateway.
- location
Id Number - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- product
Name String - The name of the NAT Gateway.
- session
Count Number - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed Number
- The speed of the NAT Gateway in Mbps.
- asn Number
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto
Renew BooleanTerm - Whether the NAT Gateway contract will auto-renew.
- bgp
Shutdown BooleanDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- promo
Code String - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- Map<String>
- Resource tags for the NAT Gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the NatGateway resource produces the following output properties:
- Admin
Locked bool - Whether the NAT Gateway is admin locked.
- Contract
End stringDate - The end date of the contract for the NAT Gateway.
- Create
Date string - The date the NAT Gateway was created.
- Created
By string - The user who created the NAT Gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Locked bool
- Whether the NAT Gateway is locked.
- Product
Uid string - The unique identifier of the NAT Gateway.
- Provisioning
Status string - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- Service
Level stringReference - A service level reference for the NAT Gateway.
- Admin
Locked bool - Whether the NAT Gateway is admin locked.
- Contract
End stringDate - The end date of the contract for the NAT Gateway.
- Create
Date string - The date the NAT Gateway was created.
- Created
By string - The user who created the NAT Gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Locked bool
- Whether the NAT Gateway is locked.
- Product
Uid string - The unique identifier of the NAT Gateway.
- Provisioning
Status string - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- Service
Level stringReference - A service level reference for the NAT Gateway.
- admin_
locked bool - Whether the NAT Gateway is admin locked.
- contract_
end_ stringdate - The end date of the contract for the NAT Gateway.
- create_
date string - The date the NAT Gateway was created.
- created_
by string - The user who created the NAT Gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- locked bool
- Whether the NAT Gateway is locked.
- product_
uid string - The unique identifier of the NAT Gateway.
- provisioning_
status string - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- service_
level_ stringreference - A service level reference for the NAT Gateway.
- admin
Locked Boolean - Whether the NAT Gateway is admin locked.
- contract
End StringDate - The end date of the contract for the NAT Gateway.
- create
Date String - The date the NAT Gateway was created.
- created
By String - The user who created the NAT Gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- locked Boolean
- Whether the NAT Gateway is locked.
- product
Uid String - The unique identifier of the NAT Gateway.
- provisioning
Status String - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- service
Level StringReference - A service level reference for the NAT Gateway.
- admin
Locked boolean - Whether the NAT Gateway is admin locked.
- contract
End stringDate - The end date of the contract for the NAT Gateway.
- create
Date string - The date the NAT Gateway was created.
- created
By string - The user who created the NAT Gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- locked boolean
- Whether the NAT Gateway is locked.
- product
Uid string - The unique identifier of the NAT Gateway.
- provisioning
Status string - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- service
Level stringReference - A service level reference for the NAT Gateway.
- admin_
locked bool - Whether the NAT Gateway is admin locked.
- contract_
end_ strdate - The end date of the contract for the NAT Gateway.
- create_
date str - The date the NAT Gateway was created.
- created_
by str - The user who created the NAT Gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- locked bool
- Whether the NAT Gateway is locked.
- product_
uid str - The unique identifier of the NAT Gateway.
- provisioning_
status str - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- service_
level_ strreference - A service level reference for the NAT Gateway.
- admin
Locked Boolean - Whether the NAT Gateway is admin locked.
- contract
End StringDate - The end date of the contract for the NAT Gateway.
- create
Date String - The date the NAT Gateway was created.
- created
By String - The user who created the NAT Gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- locked Boolean
- Whether the NAT Gateway is locked.
- product
Uid String - The unique identifier of the NAT Gateway.
- provisioning
Status String - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- service
Level StringReference - A service level reference for the NAT Gateway.
Look up Existing NatGateway Resource
Get an existing NatGateway 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?: NatGatewayState, opts?: CustomResourceOptions): NatGateway@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_locked: Optional[bool] = None,
asn: Optional[float] = None,
auto_renew_term: Optional[bool] = None,
bgp_shutdown_default: Optional[bool] = None,
contract_end_date: Optional[str] = None,
contract_term_months: Optional[float] = None,
create_date: Optional[str] = None,
created_by: Optional[str] = None,
diversity_zone: Optional[str] = None,
location_id: Optional[float] = None,
locked: Optional[bool] = 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,
service_level_reference: Optional[str] = None,
session_count: Optional[float] = None,
speed: Optional[float] = None) -> NatGatewayfunc GetNatGateway(ctx *Context, name string, id IDInput, state *NatGatewayState, opts ...ResourceOption) (*NatGateway, error)public static NatGateway Get(string name, Input<string> id, NatGatewayState? state, CustomResourceOptions? opts = null)public static NatGateway get(String name, Output<String> id, NatGatewayState state, CustomResourceOptions options)resources: _: type: megaport:NatGateway get: id: ${id}import {
to = megaport_natgateway.example
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.
- Admin
Locked bool - Whether the NAT Gateway is admin locked.
- Asn double
- The Autonomous System Number (ASN) for the NAT Gateway.
- Auto
Renew boolTerm - Whether the NAT Gateway contract will auto-renew.
- Bgp
Shutdown boolDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- Contract
End stringDate - The end date of the contract for the NAT Gateway.
- Contract
Term doubleMonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- Create
Date string - The date the NAT Gateway was created.
- Created
By string - The user who created the NAT Gateway.
- Diversity
Zone string - The diversity zone of the NAT Gateway.
- Location
Id double - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- Locked bool
- Whether the NAT Gateway is locked.
- Product
Name string - The name of the NAT Gateway.
- Product
Uid string - The unique identifier of the NAT Gateway.
- Promo
Code string - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- Provisioning
Status string - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- Dictionary<string, string>
- Resource tags for the NAT Gateway.
- Service
Level stringReference - A service level reference for the NAT Gateway.
- Session
Count double - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- Speed double
- The speed of the NAT Gateway in Mbps.
- Admin
Locked bool - Whether the NAT Gateway is admin locked.
- Asn float64
- The Autonomous System Number (ASN) for the NAT Gateway.
- Auto
Renew boolTerm - Whether the NAT Gateway contract will auto-renew.
- Bgp
Shutdown boolDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- Contract
End stringDate - The end date of the contract for the NAT Gateway.
- Contract
Term float64Months - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- Create
Date string - The date the NAT Gateway was created.
- Created
By string - The user who created the NAT Gateway.
- Diversity
Zone string - The diversity zone of the NAT Gateway.
- Location
Id float64 - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- Locked bool
- Whether the NAT Gateway is locked.
- Product
Name string - The name of the NAT Gateway.
- Product
Uid string - The unique identifier of the NAT Gateway.
- Promo
Code string - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- Provisioning
Status string - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- map[string]string
- Resource tags for the NAT Gateway.
- Service
Level stringReference - A service level reference for the NAT Gateway.
- Session
Count float64 - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- Speed float64
- The speed of the NAT Gateway in Mbps.
- admin_
locked bool - Whether the NAT Gateway is admin locked.
- asn number
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto_
renew_ boolterm - Whether the NAT Gateway contract will auto-renew.
- bgp_
shutdown_ booldefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- contract_
end_ stringdate - The end date of the contract for the NAT Gateway.
- contract_
term_ numbermonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- create_
date string - The date the NAT Gateway was created.
- created_
by string - The user who created the NAT Gateway.
- diversity_
zone string - The diversity zone of the NAT Gateway.
- location_
id number - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- locked bool
- Whether the NAT Gateway is locked.
- product_
name string - The name of the NAT Gateway.
- product_
uid string - The unique identifier of the NAT Gateway.
- promo_
code string - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- provisioning_
status string - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- map(string)
- Resource tags for the NAT Gateway.
- service_
level_ stringreference - A service level reference for the NAT Gateway.
- session_
count number - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed number
- The speed of the NAT Gateway in Mbps.
- admin
Locked Boolean - Whether the NAT Gateway is admin locked.
- asn Double
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto
Renew BooleanTerm - Whether the NAT Gateway contract will auto-renew.
- bgp
Shutdown BooleanDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- contract
End StringDate - The end date of the contract for the NAT Gateway.
- contract
Term DoubleMonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- create
Date String - The date the NAT Gateway was created.
- created
By String - The user who created the NAT Gateway.
- diversity
Zone String - The diversity zone of the NAT Gateway.
- location
Id Double - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- locked Boolean
- Whether the NAT Gateway is locked.
- product
Name String - The name of the NAT Gateway.
- product
Uid String - The unique identifier of the NAT Gateway.
- promo
Code String - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- provisioning
Status String - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- Map<String,String>
- Resource tags for the NAT Gateway.
- service
Level StringReference - A service level reference for the NAT Gateway.
- session
Count Double - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed Double
- The speed of the NAT Gateway in Mbps.
- admin
Locked boolean - Whether the NAT Gateway is admin locked.
- asn number
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto
Renew booleanTerm - Whether the NAT Gateway contract will auto-renew.
- bgp
Shutdown booleanDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- contract
End stringDate - The end date of the contract for the NAT Gateway.
- contract
Term numberMonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- create
Date string - The date the NAT Gateway was created.
- created
By string - The user who created the NAT Gateway.
- diversity
Zone string - The diversity zone of the NAT Gateway.
- location
Id number - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- locked boolean
- Whether the NAT Gateway is locked.
- product
Name string - The name of the NAT Gateway.
- product
Uid string - The unique identifier of the NAT Gateway.
- promo
Code string - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- provisioning
Status string - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- {[key: string]: string}
- Resource tags for the NAT Gateway.
- service
Level stringReference - A service level reference for the NAT Gateway.
- session
Count number - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed number
- The speed of the NAT Gateway in Mbps.
- admin_
locked bool - Whether the NAT Gateway is admin locked.
- asn float
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto_
renew_ boolterm - Whether the NAT Gateway contract will auto-renew.
- bgp_
shutdown_ booldefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- contract_
end_ strdate - The end date of the contract for the NAT Gateway.
- contract_
term_ floatmonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- create_
date str - The date the NAT Gateway was created.
- created_
by str - The user who created the NAT Gateway.
- diversity_
zone str - The diversity zone of the NAT Gateway.
- location_
id float - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- locked bool
- Whether the NAT Gateway is locked.
- product_
name str - The name of the NAT Gateway.
- product_
uid str - The unique identifier of the NAT Gateway.
- promo_
code str - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- provisioning_
status str - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- Mapping[str, str]
- Resource tags for the NAT Gateway.
- service_
level_ strreference - A service level reference for the NAT Gateway.
- session_
count float - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed float
- The speed of the NAT Gateway in Mbps.
- admin
Locked Boolean - Whether the NAT Gateway is admin locked.
- asn Number
- The Autonomous System Number (ASN) for the NAT Gateway.
- auto
Renew BooleanTerm - Whether the NAT Gateway contract will auto-renew.
- bgp
Shutdown BooleanDefault - Whether BGP sessions are shut down by default on the NAT Gateway.
- contract
End StringDate - The end date of the contract for the NAT Gateway.
- contract
Term NumberMonths - The contract term for the NAT Gateway in months. Valid values are 1, 12, 24, 36, 48, or 60.
- create
Date String - The date the NAT Gateway was created.
- created
By String - The user who created the NAT Gateway.
- diversity
Zone String - The diversity zone of the NAT Gateway.
- location
Id Number - The numeric location ID of the NAT Gateway. This value can be retrieved from the data source megaport_location.
- locked Boolean
- Whether the NAT Gateway is locked.
- product
Name String - The name of the NAT Gateway.
- product
Uid String - The unique identifier of the NAT Gateway.
- promo
Code String - A promotional code for the NAT Gateway order. Changing this value requires the resource to be replaced, as promo codes can only be applied during initial provisioning.
- provisioning
Status String - The provisioning status of the NAT Gateway (e.g. CONFIGURED, LIVE).
- Map<String>
- Resource tags for the NAT Gateway.
- service
Level StringReference - A service level reference for the NAT Gateway.
- session
Count Number - The NAT session count for the gateway. Must be a valid pairing with speed — see the nat-gateway session matrix for allowed combinations.
- speed Number
- The speed of the NAT Gateway in Mbps.
Package Details
- Repository
- megaport megaport/terraform-provider-megaport
- License
- Notes
- This Pulumi package is based on the
megaportTerraform Provider.
published on Thursday, May 21, 2026 by megaport