1. Packages
  2. Packages
  3. Megaport Provider
  4. API Docs
  5. getNatGatewaySessions
Viewing docs for megaport 1.13.0
published on Thursday, Jul 30, 2026 by megaport
Viewing docs for megaport 1.13.0
published on Thursday, Jul 30, 2026 by megaport

    Exposes the NAT Gateway speed and session-count availability matrix so HCL can reference valid combinations explicitly. Useful in for_each, validation, or locals to discover supported speed/session_count pairs at plan time instead of relying on apply-time API errors.

    Using getNatGatewaySessions

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getNatGatewaySessions(opts?: InvokeOptions): Promise<GetNatGatewaySessionsResult>
    function getNatGatewaySessionsOutput(opts?: InvokeOptions): Output<GetNatGatewaySessionsResult>
    def get_nat_gateway_sessions(opts: Optional[InvokeOptions] = None) -> GetNatGatewaySessionsResult
    def get_nat_gateway_sessions_output(opts: Optional[InvokeOptions] = None) -> Output[GetNatGatewaySessionsResult]
    func GetNatGatewaySessions(ctx *Context, opts ...InvokeOption) (*GetNatGatewaySessionsResult, error)
    func GetNatGatewaySessionsOutput(ctx *Context, opts ...InvokeOption) GetNatGatewaySessionsResultOutput

    > Note: This function is named GetNatGatewaySessions in the Go SDK.

    public static class GetNatGatewaySessions 
    {
        public static Task<GetNatGatewaySessionsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetNatGatewaySessionsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNatGatewaySessionsResult> getNatGatewaySessions(InvokeOptions options)
    public static Output<GetNatGatewaySessionsResult> getNatGatewaySessions(InvokeOptions options)
    
    fn::invoke:
      function: megaport:index/getNatGatewaySessions:getNatGatewaySessions
      arguments:
        # arguments dictionary
    data "megaport_get_nat_gateway_sessions" "name" {
        # arguments
    }

    getNatGatewaySessions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Sessions List<GetNatGatewaySessionsSession>
    All supported NAT Gateway speed / session-count pairings.
    Id string
    The provider-assigned unique ID for this managed resource.
    Sessions []GetNatGatewaySessionsSession
    All supported NAT Gateway speed / session-count pairings.
    id string
    The provider-assigned unique ID for this managed resource.
    sessions list(object)
    All supported NAT Gateway speed / session-count pairings.
    id String
    The provider-assigned unique ID for this managed resource.
    sessions List<GetNatGatewaySessionsSession>
    All supported NAT Gateway speed / session-count pairings.
    id string
    The provider-assigned unique ID for this managed resource.
    sessions GetNatGatewaySessionsSession[]
    All supported NAT Gateway speed / session-count pairings.
    id str
    The provider-assigned unique ID for this managed resource.
    sessions Sequence[GetNatGatewaySessionsSession]
    All supported NAT Gateway speed / session-count pairings.
    id String
    The provider-assigned unique ID for this managed resource.
    sessions List<Property Map>
    All supported NAT Gateway speed / session-count pairings.

    Supporting Types

    GetNatGatewaySessionsSession

    SessionCounts List<double>
    Session counts permitted at this speed.
    SpeedMbps double
    Supported NAT Gateway speed in Mbps.
    SessionCounts []float64
    Session counts permitted at this speed.
    SpeedMbps float64
    Supported NAT Gateway speed in Mbps.
    session_counts list(number)
    Session counts permitted at this speed.
    speed_mbps number
    Supported NAT Gateway speed in Mbps.
    sessionCounts List<Double>
    Session counts permitted at this speed.
    speedMbps Double
    Supported NAT Gateway speed in Mbps.
    sessionCounts number[]
    Session counts permitted at this speed.
    speedMbps number
    Supported NAT Gateway speed in Mbps.
    session_counts Sequence[float]
    Session counts permitted at this speed.
    speed_mbps float
    Supported NAT Gateway speed in Mbps.
    sessionCounts List<Number>
    Session counts permitted at this speed.
    speedMbps Number
    Supported NAT Gateway speed in Mbps.

    Package Details

    Repository
    megaport megaport/terraform-provider-megaport
    License
    Notes
    This Pulumi package is based on the megaport Terraform Provider.
    Viewing docs for megaport 1.13.0
    published on Thursday, Jul 30, 2026 by megaport

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial