published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
Allocated from the subnet associated with the private NAT gateway for IP address translation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const natGatewayNatIpDemo = new volcenginecc.natgateway.NatIp("NatGatewayNatIpDemo", {
natGatewayId: "ngw-2hgk22kpfp5a874wjohxxxxx",
natIpDescription: "NatGatewayNatIpDemo description",
natIpName: "NatGatewayNatIpDemo",
natIp: "192.168.xxx.xx",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
nat_gateway_nat_ip_demo = volcenginecc.natgateway.NatIp("NatGatewayNatIpDemo",
nat_gateway_id="ngw-2hgk22kpfp5a874wjohxxxxx",
nat_ip_description="NatGatewayNatIpDemo description",
nat_ip_name="NatGatewayNatIpDemo",
nat_ip="192.168.xxx.xx")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/natgateway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := natgateway.NewNatIp(ctx, "NatGatewayNatIpDemo", &natgateway.NatIpArgs{
NatGatewayId: pulumi.String("ngw-2hgk22kpfp5a874wjohxxxxx"),
NatIpDescription: pulumi.String("NatGatewayNatIpDemo description"),
NatIpName: pulumi.String("NatGatewayNatIpDemo"),
NatIp: pulumi.String("192.168.xxx.xx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var natGatewayNatIpDemo = new Volcenginecc.Natgateway.NatIp("NatGatewayNatIpDemo", new()
{
NatGatewayId = "ngw-2hgk22kpfp5a874wjohxxxxx",
NatIpDescription = "NatGatewayNatIpDemo description",
NatIpName = "NatGatewayNatIpDemo",
NatIpValue = "192.168.xxx.xx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.natgateway.NatIp;
import com.volcengine.volcenginecc.natgateway.NatIpArgs;
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) {
var natGatewayNatIpDemo = new NatIp("natGatewayNatIpDemo", NatIpArgs.builder()
.natGatewayId("ngw-2hgk22kpfp5a874wjohxxxxx")
.natIpDescription("NatGatewayNatIpDemo description")
.natIpName("NatGatewayNatIpDemo")
.natIp("192.168.xxx.xx")
.build());
}
}
resources:
natGatewayNatIpDemo:
type: volcenginecc:natgateway:NatIp
name: NatGatewayNatIpDemo
properties:
natGatewayId: ngw-2hgk22kpfp5a874wjohxxxxx
natIpDescription: NatGatewayNatIpDemo description
natIpName: NatGatewayNatIpDemo
natIp: 192.168.xxx.xx
Create NatIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NatIp(name: string, args: NatIpArgs, opts?: CustomResourceOptions);@overload
def NatIp(resource_name: str,
args: NatIpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NatIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
nat_gateway_id: Optional[str] = None,
nat_ip: Optional[str] = None,
nat_ip_description: Optional[str] = None,
nat_ip_name: Optional[str] = None)func NewNatIp(ctx *Context, name string, args NatIpArgs, opts ...ResourceOption) (*NatIp, error)public NatIp(string name, NatIpArgs args, CustomResourceOptions? opts = null)type: volcenginecc:natgateway:NatIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NatIpArgs
- 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 NatIpArgs
- 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 NatIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NatIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NatIpArgs
- 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 natIpResource = new Volcenginecc.Natgateway.NatIp("natIpResource", new()
{
NatGatewayId = "string",
NatIpValue = "string",
NatIpDescription = "string",
NatIpName = "string",
});
example, err := natgateway.NewNatIp(ctx, "natIpResource", &natgateway.NatIpArgs{
NatGatewayId: pulumi.String("string"),
NatIp: pulumi.String("string"),
NatIpDescription: pulumi.String("string"),
NatIpName: pulumi.String("string"),
})
var natIpResource = new NatIp("natIpResource", NatIpArgs.builder()
.natGatewayId("string")
.natIp("string")
.natIpDescription("string")
.natIpName("string")
.build());
nat_ip_resource = volcenginecc.natgateway.NatIp("natIpResource",
nat_gateway_id="string",
nat_ip="string",
nat_ip_description="string",
nat_ip_name="string")
const natIpResource = new volcenginecc.natgateway.NatIp("natIpResource", {
natGatewayId: "string",
natIp: "string",
natIpDescription: "string",
natIpName: "string",
});
type: volcenginecc:natgateway:NatIp
properties:
natGatewayId: string
natIp: string
natIpDescription: string
natIpName: string
NatIp 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 NatIp resource accepts the following input properties:
- Nat
Gateway stringId - Private NAT gateway ID.
- Nat
Ip stringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- Nat
Ip stringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- Nat
Ip stringValue - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- Nat
Gateway stringId - Private NAT gateway ID.
- Nat
Ip string - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- Nat
Ip stringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- Nat
Ip stringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- nat
Gateway StringId - Private NAT gateway ID.
- nat
Ip String - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- nat
Ip StringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- nat
Ip StringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- nat
Gateway stringId - Private NAT gateway ID.
- nat
Ip string - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- nat
Ip stringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- nat
Ip stringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- nat_
gateway_ strid - Private NAT gateway ID.
- nat_
ip str - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- nat_
ip_ strdescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- nat_
ip_ strname - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- nat
Gateway StringId - Private NAT gateway ID.
- nat
Ip String - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- nat
Ip StringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- nat
Ip StringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the NatIp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Whether this is the default transit IP. true: Yes. false: No.
- Nat
Ip stringId - Transit IP ID.
- Status string
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- Using
Status string - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Whether this is the default transit IP. true: Yes. false: No.
- Nat
Ip stringId - Transit IP ID.
- Status string
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- Using
Status string - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Whether this is the default transit IP. true: Yes. false: No.
- nat
Ip StringId - Transit IP ID.
- status String
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- using
Status String - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - Whether this is the default transit IP. true: Yes. false: No.
- nat
Ip stringId - Transit IP ID.
- status string
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- using
Status string - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - Whether this is the default transit IP. true: Yes. false: No.
- nat_
ip_ strid - Transit IP ID.
- status str
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- using_
status str - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Whether this is the default transit IP. true: Yes. false: No.
- nat
Ip StringId - Transit IP ID.
- status String
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- using
Status String - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
Look up Existing NatIp Resource
Get an existing NatIp 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?: NatIpState, opts?: CustomResourceOptions): NatIp@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
is_default: Optional[bool] = None,
nat_gateway_id: Optional[str] = None,
nat_ip: Optional[str] = None,
nat_ip_description: Optional[str] = None,
nat_ip_id: Optional[str] = None,
nat_ip_name: Optional[str] = None,
status: Optional[str] = None,
using_status: Optional[str] = None) -> NatIpfunc GetNatIp(ctx *Context, name string, id IDInput, state *NatIpState, opts ...ResourceOption) (*NatIp, error)public static NatIp Get(string name, Input<string> id, NatIpState? state, CustomResourceOptions? opts = null)public static NatIp get(String name, Output<String> id, NatIpState state, CustomResourceOptions options)resources: _: type: volcenginecc:natgateway:NatIp get: 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.
- Is
Default bool - Whether this is the default transit IP. true: Yes. false: No.
- Nat
Gateway stringId - Private NAT gateway ID.
- Nat
Ip stringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- Nat
Ip stringId - Transit IP ID.
- Nat
Ip stringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- Nat
Ip stringValue - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- Status string
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- Using
Status string - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- Is
Default bool - Whether this is the default transit IP. true: Yes. false: No.
- Nat
Gateway stringId - Private NAT gateway ID.
- Nat
Ip string - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- Nat
Ip stringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- Nat
Ip stringId - Transit IP ID.
- Nat
Ip stringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- Status string
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- Using
Status string - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- is
Default Boolean - Whether this is the default transit IP. true: Yes. false: No.
- nat
Gateway StringId - Private NAT gateway ID.
- nat
Ip String - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- nat
Ip StringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- nat
Ip StringId - Transit IP ID.
- nat
Ip StringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- status String
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- using
Status String - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- is
Default boolean - Whether this is the default transit IP. true: Yes. false: No.
- nat
Gateway stringId - Private NAT gateway ID.
- nat
Ip string - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- nat
Ip stringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- nat
Ip stringId - Transit IP ID.
- nat
Ip stringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- status string
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- using
Status string - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- is_
default bool - Whether this is the default transit IP. true: Yes. false: No.
- nat_
gateway_ strid - Private NAT gateway ID.
- nat_
ip str - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- nat_
ip_ strdescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- nat_
ip_ strid - Transit IP ID.
- nat_
ip_ strname - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- status str
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- using_
status str - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
- is
Default Boolean - Whether this is the default transit IP. true: Yes. false: No.
- nat
Gateway StringId - Private NAT gateway ID.
- nat
Ip String - Transit IP address. If not specified, the system automatically randomly assigns an available IP address from the subnet of the private NAT gateway.
- nat
Ip StringDescription - Description of the transit IP. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。).
- nat
Ip StringId - Transit IP ID.
- nat
Ip StringName - Name of the transit IP. Length limit: 1–128 characters. Must start with a letter, Chinese character, or number; can include period (.), underscore (_), and hyphen (-). If not specified, defaults to the transit IP ID.
- status String
- Status of the transit IP. Creating: Being created. Available: Available. Deleting: Being deleted. Deleted: Deleted.
- using
Status String - Usage status of the transit IP. Idle: Not used. UsedBySnat: Used by SNAT rule. UsedByDnat: Used by DNAT rule. UsedByNat: Used by both SNAT and DNAT rules.
Import
$ pulumi import volcenginecc:natgateway/natIp:NatIp example "nat_ip_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
