We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.network.getNatGateway
Explore with Pulumi AI
Use this data source to access information about an existing NAT Gateway.
Using getNatGateway
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 getNatGateway(args: GetNatGatewayArgs, opts?: InvokeOptions): Promise<GetNatGatewayResult>
function getNatGatewayOutput(args: GetNatGatewayOutputArgs, opts?: InvokeOptions): Output<GetNatGatewayResult>
def get_nat_gateway(name: Optional[str] = None,
public_ip_address_ids: Optional[Sequence[str]] = None,
public_ip_prefix_ids: Optional[Sequence[str]] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNatGatewayResult
def get_nat_gateway_output(name: Optional[pulumi.Input[str]] = None,
public_ip_address_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
public_ip_prefix_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNatGatewayResult]
func LookupNatGateway(ctx *Context, args *LookupNatGatewayArgs, opts ...InvokeOption) (*LookupNatGatewayResult, error)
func LookupNatGatewayOutput(ctx *Context, args *LookupNatGatewayOutputArgs, opts ...InvokeOption) LookupNatGatewayResultOutput
> Note: This function is named LookupNatGateway
in the Go SDK.
public static class GetNatGateway
{
public static Task<GetNatGatewayResult> InvokeAsync(GetNatGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetNatGatewayResult> Invoke(GetNatGatewayInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNatGatewayResult> getNatGateway(GetNatGatewayArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:network/getNatGateway:getNatGateway
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Specifies the Name of the NAT Gateway.
- Resource
Group stringName - Specifies the name of the Resource Group where the NAT Gateway exists.
- Public
Ip List<string>Address Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- Public
Ip List<string>Prefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- Name string
- Specifies the Name of the NAT Gateway.
- Resource
Group stringName - Specifies the name of the Resource Group where the NAT Gateway exists.
- Public
Ip []stringAddress Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- Public
Ip []stringPrefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- name String
- Specifies the Name of the NAT Gateway.
- resource
Group StringName - Specifies the name of the Resource Group where the NAT Gateway exists.
- public
Ip List<String>Address Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- public
Ip List<String>Prefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- name string
- Specifies the Name of the NAT Gateway.
- resource
Group stringName - Specifies the name of the Resource Group where the NAT Gateway exists.
- public
Ip string[]Address Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- public
Ip string[]Prefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- name str
- Specifies the Name of the NAT Gateway.
- resource_
group_ strname - Specifies the name of the Resource Group where the NAT Gateway exists.
- public_
ip_ Sequence[str]address_ ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- public_
ip_ Sequence[str]prefix_ ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- name String
- Specifies the Name of the NAT Gateway.
- resource
Group StringName - Specifies the name of the Resource Group where the NAT Gateway exists.
- public
Ip List<String>Address Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- public
Ip List<String>Prefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
getNatGateway Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Idle
Timeout intIn Minutes - The idle timeout in minutes which is used for the NAT Gateway.
- Location string
- The location where the NAT Gateway exists.
- Name string
- Public
Ip List<string>Address Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- Public
Ip List<string>Prefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- Resource
Group stringName - Resource
Guid string - The Resource GUID of the NAT Gateway.
- Sku
Name string - The SKU used by the NAT Gateway.
- Dictionary<string, string>
- A mapping of tags assigned to the resource.
- Zones List<string>
- A list of Availability Zones which the NAT Gateway exists in.
- Id string
- The provider-assigned unique ID for this managed resource.
- Idle
Timeout intIn Minutes - The idle timeout in minutes which is used for the NAT Gateway.
- Location string
- The location where the NAT Gateway exists.
- Name string
- Public
Ip []stringAddress Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- Public
Ip []stringPrefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- Resource
Group stringName - Resource
Guid string - The Resource GUID of the NAT Gateway.
- Sku
Name string - The SKU used by the NAT Gateway.
- map[string]string
- A mapping of tags assigned to the resource.
- Zones []string
- A list of Availability Zones which the NAT Gateway exists in.
- id String
- The provider-assigned unique ID for this managed resource.
- idle
Timeout IntegerIn Minutes - The idle timeout in minutes which is used for the NAT Gateway.
- location String
- The location where the NAT Gateway exists.
- name String
- public
Ip List<String>Address Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- public
Ip List<String>Prefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- resource
Group StringName - resource
Guid String - The Resource GUID of the NAT Gateway.
- sku
Name String - The SKU used by the NAT Gateway.
- Map<String,String>
- A mapping of tags assigned to the resource.
- zones List<String>
- A list of Availability Zones which the NAT Gateway exists in.
- id string
- The provider-assigned unique ID for this managed resource.
- idle
Timeout numberIn Minutes - The idle timeout in minutes which is used for the NAT Gateway.
- location string
- The location where the NAT Gateway exists.
- name string
- public
Ip string[]Address Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- public
Ip string[]Prefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- resource
Group stringName - resource
Guid string - The Resource GUID of the NAT Gateway.
- sku
Name string - The SKU used by the NAT Gateway.
- {[key: string]: string}
- A mapping of tags assigned to the resource.
- zones string[]
- A list of Availability Zones which the NAT Gateway exists in.
- id str
- The provider-assigned unique ID for this managed resource.
- idle_
timeout_ intin_ minutes - The idle timeout in minutes which is used for the NAT Gateway.
- location str
- The location where the NAT Gateway exists.
- name str
- public_
ip_ Sequence[str]address_ ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- public_
ip_ Sequence[str]prefix_ ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- resource_
group_ strname - resource_
guid str - The Resource GUID of the NAT Gateway.
- sku_
name str - The SKU used by the NAT Gateway.
- Mapping[str, str]
- A mapping of tags assigned to the resource.
- zones Sequence[str]
- A list of Availability Zones which the NAT Gateway exists in.
- id String
- The provider-assigned unique ID for this managed resource.
- idle
Timeout NumberIn Minutes - The idle timeout in minutes which is used for the NAT Gateway.
- location String
- The location where the NAT Gateway exists.
- name String
- public
Ip List<String>Address Ids - A list of existing Public IP Address resource IDs which the NAT Gateway is using.
- public
Ip List<String>Prefix Ids - A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
- resource
Group StringName - resource
Guid String - The Resource GUID of the NAT Gateway.
- sku
Name String - The SKU used by the NAT Gateway.
- Map<String>
- A mapping of tags assigned to the resource.
- zones List<String>
- A list of Availability Zones which the NAT Gateway exists in.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.