flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getNatGatewayV2
Start a Neo task
Explain and create a flexibleengine.getNatGatewayV2 resource
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get the information of an available FlexibleEngine NAT gateway.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const natgateway = flexibleengine.getNatGatewayV2({
name: "test_natgateway",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
natgateway = flexibleengine.get_nat_gateway_v2(name="test_natgateway")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.LookupNatGatewayV2(ctx, &flexibleengine.LookupNatGatewayV2Args{
Name: pulumi.StringRef("test_natgateway"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var natgateway = Flexibleengine.GetNatGatewayV2.Invoke(new()
{
Name = "test_natgateway",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetNatGatewayV2Args;
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) {
final var natgateway = FlexibleengineFunctions.getNatGatewayV2(GetNatGatewayV2Args.builder()
.name("test_natgateway")
.build());
}
}
variables:
natgateway:
fn::invoke:
function: flexibleengine:getNatGatewayV2
arguments:
name: test_natgateway
Using getNatGatewayV2
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 getNatGatewayV2(args: GetNatGatewayV2Args, opts?: InvokeOptions): Promise<GetNatGatewayV2Result>
function getNatGatewayV2Output(args: GetNatGatewayV2OutputArgs, opts?: InvokeOptions): Output<GetNatGatewayV2Result>def get_nat_gateway_v2(description: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
spec: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNatGatewayV2Result
def get_nat_gateway_v2_output(description: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
spec: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNatGatewayV2Result]func LookupNatGatewayV2(ctx *Context, args *LookupNatGatewayV2Args, opts ...InvokeOption) (*LookupNatGatewayV2Result, error)
func LookupNatGatewayV2Output(ctx *Context, args *LookupNatGatewayV2OutputArgs, opts ...InvokeOption) LookupNatGatewayV2ResultOutput> Note: This function is named LookupNatGatewayV2 in the Go SDK.
public static class GetNatGatewayV2
{
public static Task<GetNatGatewayV2Result> InvokeAsync(GetNatGatewayV2Args args, InvokeOptions? opts = null)
public static Output<GetNatGatewayV2Result> Invoke(GetNatGatewayV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNatGatewayV2Result> getNatGatewayV2(GetNatGatewayV2Args args, InvokeOptions options)
public static Output<GetNatGatewayV2Result> getNatGatewayV2(GetNatGatewayV2Args args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getNatGatewayV2:getNatGatewayV2
arguments:
# arguments dictionaryThe following arguments are supported:
- Description string
- Specifies the description of the NAT gateway. The value contains 0 to 255 characters, and angle brackets (<) and (>) are not allowed.
- Id string
- Specifies the ID of the NAT gateway.
- Name string
- Specifies the NAT gateway name. The name can contain only digits, letters, underscores (_), and hyphens(-).
- Region string
- The region in which to query the data source. If omitted, the provider-level region will be used.
- Spec string
- The NAT gateway type. The value can be:
- Status string
- Specifies the status of the NAT gateway.
- Subnet
Id string - Specifies the ID of the VPC Subnet of the downstream interface (the next hop of the DVR) of the NAT gateway.
- Vpc
Id string - Specifies the ID of the VPC this NAT gateway belongs to.
- Description string
- Specifies the description of the NAT gateway. The value contains 0 to 255 characters, and angle brackets (<) and (>) are not allowed.
- Id string
- Specifies the ID of the NAT gateway.
- Name string
- Specifies the NAT gateway name. The name can contain only digits, letters, underscores (_), and hyphens(-).
- Region string
- The region in which to query the data source. If omitted, the provider-level region will be used.
- Spec string
- The NAT gateway type. The value can be:
- Status string
- Specifies the status of the NAT gateway.
- Subnet
Id string - Specifies the ID of the VPC Subnet of the downstream interface (the next hop of the DVR) of the NAT gateway.
- Vpc
Id string - Specifies the ID of the VPC this NAT gateway belongs to.
- description String
- Specifies the description of the NAT gateway. The value contains 0 to 255 characters, and angle brackets (<) and (>) are not allowed.
- id String
- Specifies the ID of the NAT gateway.
- name String
- Specifies the NAT gateway name. The name can contain only digits, letters, underscores (_), and hyphens(-).
- region String
- The region in which to query the data source. If omitted, the provider-level region will be used.
- spec String
- The NAT gateway type. The value can be:
- status String
- Specifies the status of the NAT gateway.
- subnet
Id String - Specifies the ID of the VPC Subnet of the downstream interface (the next hop of the DVR) of the NAT gateway.
- vpc
Id String - Specifies the ID of the VPC this NAT gateway belongs to.
- description string
- Specifies the description of the NAT gateway. The value contains 0 to 255 characters, and angle brackets (<) and (>) are not allowed.
- id string
- Specifies the ID of the NAT gateway.
- name string
- Specifies the NAT gateway name. The name can contain only digits, letters, underscores (_), and hyphens(-).
- region string
- The region in which to query the data source. If omitted, the provider-level region will be used.
- spec string
- The NAT gateway type. The value can be:
- status string
- Specifies the status of the NAT gateway.
- subnet
Id string - Specifies the ID of the VPC Subnet of the downstream interface (the next hop of the DVR) of the NAT gateway.
- vpc
Id string - Specifies the ID of the VPC this NAT gateway belongs to.
- description str
- Specifies the description of the NAT gateway. The value contains 0 to 255 characters, and angle brackets (<) and (>) are not allowed.
- id str
- Specifies the ID of the NAT gateway.
- name str
- Specifies the NAT gateway name. The name can contain only digits, letters, underscores (_), and hyphens(-).
- region str
- The region in which to query the data source. If omitted, the provider-level region will be used.
- spec str
- The NAT gateway type. The value can be:
- status str
- Specifies the status of the NAT gateway.
- subnet_
id str - Specifies the ID of the VPC Subnet of the downstream interface (the next hop of the DVR) of the NAT gateway.
- vpc_
id str - Specifies the ID of the VPC this NAT gateway belongs to.
- description String
- Specifies the description of the NAT gateway. The value contains 0 to 255 characters, and angle brackets (<) and (>) are not allowed.
- id String
- Specifies the ID of the NAT gateway.
- name String
- Specifies the NAT gateway name. The name can contain only digits, letters, underscores (_), and hyphens(-).
- region String
- The region in which to query the data source. If omitted, the provider-level region will be used.
- spec String
- The NAT gateway type. The value can be:
- status String
- Specifies the status of the NAT gateway.
- subnet
Id String - Specifies the ID of the VPC Subnet of the downstream interface (the next hop of the DVR) of the NAT gateway.
- vpc
Id String - Specifies the ID of the VPC this NAT gateway belongs to.
getNatGatewayV2 Result
The following output properties are available:
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
