getNatGateways

This data source provides a list of Nat Gateways owned by an Alibaba Cloud account.

NOTE: Available in 1.37.0+.

Example Usage

configuration:
name:
type: string
default: natGatewaysDatasource
resources:
fooNetwork:
type: alicloud:vpc:Network
name: foo
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/12
fooNatGateway:
type: alicloud:vpc:NatGateway
name: foo
properties:
vpcId: ${fooNetwork.id}
specification: Small
natGateName: ${name}
variables:
default:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: VSwitch
foo:
fn::invoke:
Function: alicloud:vpc:getNatGateways
Arguments:
vpcId: ${fooNetwork.id}
nameRegex: ${fooNatGateway.name}
ids:
- ${fooNatGateway.id}

Return

A collection of values returned by getNatGateways.

Parameters

argument

A collection of arguments for invoking getNatGateways.


suspend fun getNatGateways(dryRun: Boolean? = null, enableDetails: Boolean? = null, ids: List<String>? = null, nameRegex: String? = null, natGatewayName: String? = null, natType: String? = null, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, paymentType: String? = null, resourceGroupId: String? = null, specification: String? = null, status: String? = null, tags: Map<String, Any>? = null, vpcId: String? = null): GetNatGatewaysResult

Return

A collection of values returned by getNatGateways.

Parameters

dryRun

Specifies whether to only precheck the request.

enableDetails

Default to false. Set it to true can output more details about resource attributes.

ids

A list of NAT gateways IDs.

nameRegex

A regex string to filter nat gateways by name.

natGatewayName

The name of NAT gateway.

natType

The nat type of NAT gateway. Valid values Enhanced and Normal.

outputFile

File name where to save data source results (after running pulumi preview).

pageNumber
pageSize
paymentType

The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.

resourceGroupId

The resource group id of NAT gateway.

specification

The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.

status

The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.

tags

The tags of NAT gateway.

vpcId

The ID of the VPC.

See also


Return

A collection of values returned by getNatGateways.

Parameters

argument

Builder for com.pulumi.alicloud.vpc.kotlin.inputs.GetNatGatewaysPlainArgs.

See also