tencentcloud.ReserveIpAddress
Explore with Pulumi AI
Provides a resource to create a vpc reserve ip addresses
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const reserveIp = new tencentcloud.ReserveIpAddress("reserveIp", {
description: "description",
ipAddress: "10.0.0.13",
subnetId: "xxxxxx",
tags: {
test1: "test1",
},
vpcId: "xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
reserve_ip = tencentcloud.ReserveIpAddress("reserveIp",
description="description",
ip_address="10.0.0.13",
subnet_id="xxxxxx",
tags={
"test1": "test1",
},
vpc_id="xxxxxx")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewReserveIpAddress(ctx, "reserveIp", &tencentcloud.ReserveIpAddressArgs{
Description: pulumi.String("description"),
IpAddress: pulumi.String("10.0.0.13"),
SubnetId: pulumi.String("xxxxxx"),
Tags: pulumi.StringMap{
"test1": pulumi.String("test1"),
},
VpcId: pulumi.String("xxxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var reserveIp = new Tencentcloud.ReserveIpAddress("reserveIp", new()
{
Description = "description",
IpAddress = "10.0.0.13",
SubnetId = "xxxxxx",
Tags =
{
{ "test1", "test1" },
},
VpcId = "xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ReserveIpAddress;
import com.pulumi.tencentcloud.ReserveIpAddressArgs;
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 reserveIp = new ReserveIpAddress("reserveIp", ReserveIpAddressArgs.builder()
.description("description")
.ipAddress("10.0.0.13")
.subnetId("xxxxxx")
.tags(Map.of("test1", "test1"))
.vpcId("xxxxxx")
.build());
}
}
resources:
reserveIp:
type: tencentcloud:ReserveIpAddress
properties:
description: description
ipAddress: 10.0.0.13
subnetId: xxxxxx
tags:
test1: test1
vpcId: xxxxxx
Create ReserveIpAddress Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReserveIpAddress(name: string, args: ReserveIpAddressArgs, opts?: CustomResourceOptions);
@overload
def ReserveIpAddress(resource_name: str,
args: ReserveIpAddressArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReserveIpAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
description: Optional[str] = None,
ip_address: Optional[str] = None,
name: Optional[str] = None,
reserve_ip_address_id: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewReserveIpAddress(ctx *Context, name string, args ReserveIpAddressArgs, opts ...ResourceOption) (*ReserveIpAddress, error)
public ReserveIpAddress(string name, ReserveIpAddressArgs args, CustomResourceOptions? opts = null)
public ReserveIpAddress(String name, ReserveIpAddressArgs args)
public ReserveIpAddress(String name, ReserveIpAddressArgs args, CustomResourceOptions options)
type: tencentcloud:ReserveIpAddress
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 ReserveIpAddressArgs
- 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 ReserveIpAddressArgs
- 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 ReserveIpAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReserveIpAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReserveIpAddressArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ReserveIpAddress 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 ReserveIpAddress resource accepts the following input properties:
- Vpc
Id string - VPC unique ID.
- Description string
- The IP description is retained on the intranet.
- Ip
Address string - Specify the reserved IP address of the intranet for which the IP application is requested.
- Name string
- The IP name is reserved for the intranet.
- Reserve
Ip stringAddress Id - ID of the resource.
- Subnet
Id string - Subnet ID.
- Dictionary<string, string>
- Tags.
- Vpc
Id string - VPC unique ID.
- Description string
- The IP description is retained on the intranet.
- Ip
Address string - Specify the reserved IP address of the intranet for which the IP application is requested.
- Name string
- The IP name is reserved for the intranet.
- Reserve
Ip stringAddress Id - ID of the resource.
- Subnet
Id string - Subnet ID.
- map[string]string
- Tags.
- vpc
Id String - VPC unique ID.
- description String
- The IP description is retained on the intranet.
- ip
Address String - Specify the reserved IP address of the intranet for which the IP application is requested.
- name String
- The IP name is reserved for the intranet.
- reserve
Ip StringAddress Id - ID of the resource.
- subnet
Id String - Subnet ID.
- Map<String,String>
- Tags.
- vpc
Id string - VPC unique ID.
- description string
- The IP description is retained on the intranet.
- ip
Address string - Specify the reserved IP address of the intranet for which the IP application is requested.
- name string
- The IP name is reserved for the intranet.
- reserve
Ip stringAddress Id - ID of the resource.
- subnet
Id string - Subnet ID.
- {[key: string]: string}
- Tags.
- vpc_
id str - VPC unique ID.
- description str
- The IP description is retained on the intranet.
- ip_
address str - Specify the reserved IP address of the intranet for which the IP application is requested.
- name str
- The IP name is reserved for the intranet.
- reserve_
ip_ straddress_ id - ID of the resource.
- subnet_
id str - Subnet ID.
- Mapping[str, str]
- Tags.
- vpc
Id String - VPC unique ID.
- description String
- The IP description is retained on the intranet.
- ip
Address String - Specify the reserved IP address of the intranet for which the IP application is requested.
- name String
- The IP name is reserved for the intranet.
- reserve
Ip StringAddress Id - ID of the resource.
- subnet
Id String - Subnet ID.
- Map<String>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReserveIpAddress resource produces the following output properties:
- Created
Time string - Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Type double - Ip type for product application.
- Reserve
Ip stringId - Reserve ip ID.
- Resource
Id string - The intranet retains the resource instance ID bound to the IPs.
- State string
- Binding status.
- Created
Time string - Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Type float64 - Ip type for product application.
- Reserve
Ip stringId - Reserve ip ID.
- Resource
Id string - The intranet retains the resource instance ID bound to the IPs.
- State string
- Binding status.
- created
Time String - Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Type Double - Ip type for product application.
- reserve
Ip StringId - Reserve ip ID.
- resource
Id String - The intranet retains the resource instance ID bound to the IPs.
- state String
- Binding status.
- created
Time string - Created time.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Type number - Ip type for product application.
- reserve
Ip stringId - Reserve ip ID.
- resource
Id string - The intranet retains the resource instance ID bound to the IPs.
- state string
- Binding status.
- created_
time str - Created time.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
type float - Ip type for product application.
- reserve_
ip_ strid - Reserve ip ID.
- resource_
id str - The intranet retains the resource instance ID bound to the IPs.
- state str
- Binding status.
- created
Time String - Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Type Number - Ip type for product application.
- reserve
Ip StringId - Reserve ip ID.
- resource
Id String - The intranet retains the resource instance ID bound to the IPs.
- state String
- Binding status.
Look up Existing ReserveIpAddress Resource
Get an existing ReserveIpAddress 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?: ReserveIpAddressState, opts?: CustomResourceOptions): ReserveIpAddress
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
ip_address: Optional[str] = None,
ip_type: Optional[float] = None,
name: Optional[str] = None,
reserve_ip_address_id: Optional[str] = None,
reserve_ip_id: Optional[str] = None,
resource_id: Optional[str] = None,
state: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None) -> ReserveIpAddress
func GetReserveIpAddress(ctx *Context, name string, id IDInput, state *ReserveIpAddressState, opts ...ResourceOption) (*ReserveIpAddress, error)
public static ReserveIpAddress Get(string name, Input<string> id, ReserveIpAddressState? state, CustomResourceOptions? opts = null)
public static ReserveIpAddress get(String name, Output<String> id, ReserveIpAddressState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ReserveIpAddress 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
Time string - Created time.
- Description string
- The IP description is retained on the intranet.
- Ip
Address string - Specify the reserved IP address of the intranet for which the IP application is requested.
- Ip
Type double - Ip type for product application.
- Name string
- The IP name is reserved for the intranet.
- Reserve
Ip stringAddress Id - ID of the resource.
- Reserve
Ip stringId - Reserve ip ID.
- Resource
Id string - The intranet retains the resource instance ID bound to the IPs.
- State string
- Binding status.
- Subnet
Id string - Subnet ID.
- Dictionary<string, string>
- Tags.
- Vpc
Id string - VPC unique ID.
- Created
Time string - Created time.
- Description string
- The IP description is retained on the intranet.
- Ip
Address string - Specify the reserved IP address of the intranet for which the IP application is requested.
- Ip
Type float64 - Ip type for product application.
- Name string
- The IP name is reserved for the intranet.
- Reserve
Ip stringAddress Id - ID of the resource.
- Reserve
Ip stringId - Reserve ip ID.
- Resource
Id string - The intranet retains the resource instance ID bound to the IPs.
- State string
- Binding status.
- Subnet
Id string - Subnet ID.
- map[string]string
- Tags.
- Vpc
Id string - VPC unique ID.
- created
Time String - Created time.
- description String
- The IP description is retained on the intranet.
- ip
Address String - Specify the reserved IP address of the intranet for which the IP application is requested.
- ip
Type Double - Ip type for product application.
- name String
- The IP name is reserved for the intranet.
- reserve
Ip StringAddress Id - ID of the resource.
- reserve
Ip StringId - Reserve ip ID.
- resource
Id String - The intranet retains the resource instance ID bound to the IPs.
- state String
- Binding status.
- subnet
Id String - Subnet ID.
- Map<String,String>
- Tags.
- vpc
Id String - VPC unique ID.
- created
Time string - Created time.
- description string
- The IP description is retained on the intranet.
- ip
Address string - Specify the reserved IP address of the intranet for which the IP application is requested.
- ip
Type number - Ip type for product application.
- name string
- The IP name is reserved for the intranet.
- reserve
Ip stringAddress Id - ID of the resource.
- reserve
Ip stringId - Reserve ip ID.
- resource
Id string - The intranet retains the resource instance ID bound to the IPs.
- state string
- Binding status.
- subnet
Id string - Subnet ID.
- {[key: string]: string}
- Tags.
- vpc
Id string - VPC unique ID.
- created_
time str - Created time.
- description str
- The IP description is retained on the intranet.
- ip_
address str - Specify the reserved IP address of the intranet for which the IP application is requested.
- ip_
type float - Ip type for product application.
- name str
- The IP name is reserved for the intranet.
- reserve_
ip_ straddress_ id - ID of the resource.
- reserve_
ip_ strid - Reserve ip ID.
- resource_
id str - The intranet retains the resource instance ID bound to the IPs.
- state str
- Binding status.
- subnet_
id str - Subnet ID.
- Mapping[str, str]
- Tags.
- vpc_
id str - VPC unique ID.
- created
Time String - Created time.
- description String
- The IP description is retained on the intranet.
- ip
Address String - Specify the reserved IP address of the intranet for which the IP application is requested.
- ip
Type Number - Ip type for product application.
- name String
- The IP name is reserved for the intranet.
- reserve
Ip StringAddress Id - ID of the resource.
- reserve
Ip StringId - Reserve ip ID.
- resource
Id String - The intranet retains the resource instance ID bound to the IPs.
- state String
- Binding status.
- subnet
Id String - Subnet ID.
- Map<String>
- Tags.
- vpc
Id String - VPC unique ID.
Import
vpc reserve_ip_addresses can be imported using the id, e.g.
$ pulumi import tencentcloud:index/reserveIpAddress:ReserveIpAddress reserve_ip_addresses ${vpcId}#${reserveIpId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.