opentelekomcloud.PrivateNatTransitIpV3
Explore with Pulumi AI
Up-to-date reference of API arguments for Private NAT Transit IP you can get at documentation portal
Manages a V3 Private NAT Transit IP resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const networkId = config.requireObject("networkId");
const transitIp1 = new opentelekomcloud.PrivateNatTransitIpV3("transitIp1", {
virsubnetId: networkId,
tags: {
kuh: "muh",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
network_id = config.require_object("networkId")
transit_ip1 = opentelekomcloud.PrivateNatTransitIpV3("transitIp1",
virsubnet_id=network_id,
tags={
"kuh": "muh",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
networkId := cfg.RequireObject("networkId")
_, err := opentelekomcloud.NewPrivateNatTransitIpV3(ctx, "transitIp1", &opentelekomcloud.PrivateNatTransitIpV3Args{
VirsubnetId: pulumi.Any(networkId),
Tags: pulumi.StringMap{
"kuh": pulumi.String("muh"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var networkId = config.RequireObject<dynamic>("networkId");
var transitIp1 = new Opentelekomcloud.PrivateNatTransitIpV3("transitIp1", new()
{
VirsubnetId = networkId,
Tags =
{
{ "kuh", "muh" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.PrivateNatTransitIpV3;
import com.pulumi.opentelekomcloud.PrivateNatTransitIpV3Args;
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 config = ctx.config();
final var networkId = config.get("networkId");
var transitIp1 = new PrivateNatTransitIpV3("transitIp1", PrivateNatTransitIpV3Args.builder()
.virsubnetId(networkId)
.tags(Map.of("kuh", "muh"))
.build());
}
}
configuration:
networkId:
type: dynamic
resources:
transitIp1:
type: opentelekomcloud:PrivateNatTransitIpV3
properties:
virsubnetId: ${networkId}
tags:
kuh: muh
Create PrivateNatTransitIpV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateNatTransitIpV3(name: string, args: PrivateNatTransitIpV3Args, opts?: CustomResourceOptions);
@overload
def PrivateNatTransitIpV3(resource_name: str,
args: PrivateNatTransitIpV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateNatTransitIpV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
virsubnet_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
ip_address: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[PrivateNatTransitIpV3TimeoutsArgs] = None)
func NewPrivateNatTransitIpV3(ctx *Context, name string, args PrivateNatTransitIpV3Args, opts ...ResourceOption) (*PrivateNatTransitIpV3, error)
public PrivateNatTransitIpV3(string name, PrivateNatTransitIpV3Args args, CustomResourceOptions? opts = null)
public PrivateNatTransitIpV3(String name, PrivateNatTransitIpV3Args args)
public PrivateNatTransitIpV3(String name, PrivateNatTransitIpV3Args args, CustomResourceOptions options)
type: opentelekomcloud:PrivateNatTransitIpV3
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 PrivateNatTransitIpV3Args
- 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 PrivateNatTransitIpV3Args
- 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 PrivateNatTransitIpV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateNatTransitIpV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateNatTransitIpV3Args
- 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 privateNatTransitIpV3Resource = new Opentelekomcloud.PrivateNatTransitIpV3("privateNatTransitIpV3Resource", new()
{
VirsubnetId = "string",
EnterpriseProjectId = "string",
IpAddress = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.PrivateNatTransitIpV3TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := opentelekomcloud.NewPrivateNatTransitIpV3(ctx, "privateNatTransitIpV3Resource", &opentelekomcloud.PrivateNatTransitIpV3Args{
VirsubnetId: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
IpAddress: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.PrivateNatTransitIpV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var privateNatTransitIpV3Resource = new PrivateNatTransitIpV3("privateNatTransitIpV3Resource", PrivateNatTransitIpV3Args.builder()
.virsubnetId("string")
.enterpriseProjectId("string")
.ipAddress("string")
.tags(Map.of("string", "string"))
.timeouts(PrivateNatTransitIpV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
private_nat_transit_ip_v3_resource = opentelekomcloud.PrivateNatTransitIpV3("privateNatTransitIpV3Resource",
virsubnet_id="string",
enterprise_project_id="string",
ip_address="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
})
const privateNatTransitIpV3Resource = new opentelekomcloud.PrivateNatTransitIpV3("privateNatTransitIpV3Resource", {
virsubnetId: "string",
enterpriseProjectId: "string",
ipAddress: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:PrivateNatTransitIpV3
properties:
enterpriseProjectId: string
ipAddress: string
tags:
string: string
timeouts:
create: string
delete: string
virsubnetId: string
PrivateNatTransitIpV3 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 PrivateNatTransitIpV3 resource accepts the following input properties:
- Virsubnet
Id string - Specifies the subnet ID of the current project.
- Enterprise
Project stringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - Ip
Address string - Specifies the transit IP address.
- Dictionary<string, string>
- Specifies the tag list in key/value format.
- Timeouts
Private
Nat Transit Ip V3Timeouts
- Virsubnet
Id string - Specifies the subnet ID of the current project.
- Enterprise
Project stringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - Ip
Address string - Specifies the transit IP address.
- map[string]string
- Specifies the tag list in key/value format.
- Timeouts
Private
Nat Transit Ip V3Timeouts Args
- virsubnet
Id String - Specifies the subnet ID of the current project.
- enterprise
Project StringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - ip
Address String - Specifies the transit IP address.
- Map<String,String>
- Specifies the tag list in key/value format.
- timeouts
Private
Nat Transit Ip V3Timeouts
- virsubnet
Id string - Specifies the subnet ID of the current project.
- enterprise
Project stringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - ip
Address string - Specifies the transit IP address.
- {[key: string]: string}
- Specifies the tag list in key/value format.
- timeouts
Private
Nat Transit Ip V3Timeouts
- virsubnet_
id str - Specifies the subnet ID of the current project.
- enterprise_
project_ strid - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - ip_
address str - Specifies the transit IP address.
- Mapping[str, str]
- Specifies the tag list in key/value format.
- timeouts
Private
Nat Transit Ip V3Timeouts Args
- virsubnet
Id String - Specifies the subnet ID of the current project.
- enterprise
Project StringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - ip
Address String - Specifies the transit IP address.
- Map<String>
- Specifies the tag list in key/value format.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateNatTransitIpV3 resource produces the following output properties:
- Created
At string - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Gateway
Id string - Indicates the ID of the private NAT gateway associated with the transit IP address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface stringId - Indicates the network interface ID of the transit IP address.
- Project
Id string - Indicates the project ID.
- Status string
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - Updated
At string - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Created
At string - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Gateway
Id string - Indicates the ID of the private NAT gateway associated with the transit IP address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface stringId - Indicates the network interface ID of the transit IP address.
- Project
Id string - Indicates the project ID.
- Status string
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - Updated
At string - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- created
At String - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- gateway
Id String - Indicates the ID of the private NAT gateway associated with the transit IP address.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Interface StringId - Indicates the network interface ID of the transit IP address.
- project
Id String - Indicates the project ID.
- status String
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - updated
At String - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- created
At string - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- gateway
Id string - Indicates the ID of the private NAT gateway associated with the transit IP address.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Interface stringId - Indicates the network interface ID of the transit IP address.
- project
Id string - Indicates the project ID.
- status string
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - updated
At string - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- created_
at str - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- gateway_
id str - Indicates the ID of the private NAT gateway associated with the transit IP address.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
interface_ strid - Indicates the network interface ID of the transit IP address.
- project_
id str - Indicates the project ID.
- status str
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - updated_
at str - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- created
At String - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- gateway
Id String - Indicates the ID of the private NAT gateway associated with the transit IP address.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Interface StringId - Indicates the network interface ID of the transit IP address.
- project
Id String - Indicates the project ID.
- status String
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - updated
At String - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
Look up Existing PrivateNatTransitIpV3 Resource
Get an existing PrivateNatTransitIpV3 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?: PrivateNatTransitIpV3State, opts?: CustomResourceOptions): PrivateNatTransitIpV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
gateway_id: Optional[str] = None,
ip_address: Optional[str] = None,
network_interface_id: Optional[str] = None,
project_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[PrivateNatTransitIpV3TimeoutsArgs] = None,
updated_at: Optional[str] = None,
virsubnet_id: Optional[str] = None) -> PrivateNatTransitIpV3
func GetPrivateNatTransitIpV3(ctx *Context, name string, id IDInput, state *PrivateNatTransitIpV3State, opts ...ResourceOption) (*PrivateNatTransitIpV3, error)
public static PrivateNatTransitIpV3 Get(string name, Input<string> id, PrivateNatTransitIpV3State? state, CustomResourceOptions? opts = null)
public static PrivateNatTransitIpV3 get(String name, Output<String> id, PrivateNatTransitIpV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:PrivateNatTransitIpV3 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.
- Created
At string - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Enterprise
Project stringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - Gateway
Id string - Indicates the ID of the private NAT gateway associated with the transit IP address.
- Ip
Address string - Specifies the transit IP address.
- Network
Interface stringId - Indicates the network interface ID of the transit IP address.
- Project
Id string - Indicates the project ID.
- Status string
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - Dictionary<string, string>
- Specifies the tag list in key/value format.
- Timeouts
Private
Nat Transit Ip V3Timeouts - Updated
At string - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Virsubnet
Id string - Specifies the subnet ID of the current project.
- Created
At string - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Enterprise
Project stringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - Gateway
Id string - Indicates the ID of the private NAT gateway associated with the transit IP address.
- Ip
Address string - Specifies the transit IP address.
- Network
Interface stringId - Indicates the network interface ID of the transit IP address.
- Project
Id string - Indicates the project ID.
- Status string
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - map[string]string
- Specifies the tag list in key/value format.
- Timeouts
Private
Nat Transit Ip V3Timeouts Args - Updated
At string - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- Virsubnet
Id string - Specifies the subnet ID of the current project.
- created
At String - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- enterprise
Project StringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - gateway
Id String - Indicates the ID of the private NAT gateway associated with the transit IP address.
- ip
Address String - Specifies the transit IP address.
- network
Interface StringId - Indicates the network interface ID of the transit IP address.
- project
Id String - Indicates the project ID.
- status String
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - Map<String,String>
- Specifies the tag list in key/value format.
- timeouts
Private
Nat Transit Ip V3Timeouts - updated
At String - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- virsubnet
Id String - Specifies the subnet ID of the current project.
- created
At string - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- enterprise
Project stringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - gateway
Id string - Indicates the ID of the private NAT gateway associated with the transit IP address.
- ip
Address string - Specifies the transit IP address.
- network
Interface stringId - Indicates the network interface ID of the transit IP address.
- project
Id string - Indicates the project ID.
- status string
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - {[key: string]: string}
- Specifies the tag list in key/value format.
- timeouts
Private
Nat Transit Ip V3Timeouts - updated
At string - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- virsubnet
Id string - Specifies the subnet ID of the current project.
- created_
at str - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- enterprise_
project_ strid - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - gateway_
id str - Indicates the ID of the private NAT gateway associated with the transit IP address.
- ip_
address str - Specifies the transit IP address.
- network_
interface_ strid - Indicates the network interface ID of the transit IP address.
- project_
id str - Indicates the project ID.
- status str
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - Mapping[str, str]
- Specifies the tag list in key/value format.
- timeouts
Private
Nat Transit Ip V3Timeouts Args - updated_
at str - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- virsubnet_
id str - Specifies the subnet ID of the current project.
- created
At String - Indicates the time when the private NAT Transit IP was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- enterprise
Project StringId - Specifies the ID of the enterprise project that is associated with the transit IP address when the transit IP address is being assigned. Default:
0
. - gateway
Id String - Indicates the ID of the private NAT gateway associated with the transit IP address.
- ip
Address String - Specifies the transit IP address.
- network
Interface StringId - Indicates the network interface ID of the transit IP address.
- project
Id String - Indicates the project ID.
- status String
- Indicates the private NAT transit IP status. The value can be:
ACTIVE
(The Transit IP is running properly) orFROZEN
(The Transit IP is frozen). - Map<String>
- Specifies the tag list in key/value format.
- timeouts Property Map
- updated
At String - Indicates the time when the private NAT Transit IP was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
- virsubnet
Id String - Specifies the subnet ID of the current project.
Supporting Types
PrivateNatTransitIpV3Timeouts, PrivateNatTransitIpV3TimeoutsArgs
Import
Private NAT Transit IP V3 resource can be imported using the Transit IP ID, id
.
$ pulumi import opentelekomcloud:index/privateNatTransitIpV3:PrivateNatTransitIpV3 ip_1 <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.