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:
- VpcId string
- VPC unique ID.
- Description string
- The IP description is retained on the intranet.
- IpAddress 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.
- ReserveIp stringAddress Id 
- ID of the resource.
- SubnetId string
- Subnet ID.
- Dictionary<string, string>
- Tags.
- VpcId string
- VPC unique ID.
- Description string
- The IP description is retained on the intranet.
- IpAddress 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.
- ReserveIp stringAddress Id 
- ID of the resource.
- SubnetId string
- Subnet ID.
- map[string]string
- Tags.
- vpcId String
- VPC unique ID.
- description String
- The IP description is retained on the intranet.
- ipAddress 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.
- reserveIp StringAddress Id 
- ID of the resource.
- subnetId String
- Subnet ID.
- Map<String,String>
- Tags.
- vpcId string
- VPC unique ID.
- description string
- The IP description is retained on the intranet.
- ipAddress 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.
- reserveIp stringAddress Id 
- ID of the resource.
- subnetId 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.
- vpcId String
- VPC unique ID.
- description String
- The IP description is retained on the intranet.
- ipAddress 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.
- reserveIp StringAddress Id 
- ID of the resource.
- subnetId 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:
- CreatedTime string
- Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- IpType double
- Ip type for product application.
- ReserveIp stringId 
- Reserve ip ID.
- ResourceId string
- The intranet retains the resource instance ID bound to the IPs.
- State string
- Binding status.
- CreatedTime string
- Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- IpType float64
- Ip type for product application.
- ReserveIp stringId 
- Reserve ip ID.
- ResourceId string
- The intranet retains the resource instance ID bound to the IPs.
- State string
- Binding status.
- createdTime String
- Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- ipType Double
- Ip type for product application.
- reserveIp StringId 
- Reserve ip ID.
- resourceId String
- The intranet retains the resource instance ID bound to the IPs.
- state String
- Binding status.
- createdTime string
- Created time.
- id string
- The provider-assigned unique ID for this managed resource.
- ipType number
- Ip type for product application.
- reserveIp stringId 
- Reserve ip ID.
- resourceId 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.
- createdTime String
- Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- ipType Number
- Ip type for product application.
- reserveIp StringId 
- Reserve ip ID.
- resourceId 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) -> ReserveIpAddressfunc 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.
- CreatedTime string
- Created time.
- Description string
- The IP description is retained on the intranet.
- IpAddress string
- Specify the reserved IP address of the intranet for which the IP application is requested.
- IpType double
- Ip type for product application.
- Name string
- The IP name is reserved for the intranet.
- ReserveIp stringAddress Id 
- ID of the resource.
- ReserveIp stringId 
- Reserve ip ID.
- ResourceId string
- The intranet retains the resource instance ID bound to the IPs.
- State string
- Binding status.
- SubnetId string
- Subnet ID.
- Dictionary<string, string>
- Tags.
- VpcId string
- VPC unique ID.
- CreatedTime string
- Created time.
- Description string
- The IP description is retained on the intranet.
- IpAddress string
- Specify the reserved IP address of the intranet for which the IP application is requested.
- IpType float64
- Ip type for product application.
- Name string
- The IP name is reserved for the intranet.
- ReserveIp stringAddress Id 
- ID of the resource.
- ReserveIp stringId 
- Reserve ip ID.
- ResourceId string
- The intranet retains the resource instance ID bound to the IPs.
- State string
- Binding status.
- SubnetId string
- Subnet ID.
- map[string]string
- Tags.
- VpcId string
- VPC unique ID.
- createdTime String
- Created time.
- description String
- The IP description is retained on the intranet.
- ipAddress String
- Specify the reserved IP address of the intranet for which the IP application is requested.
- ipType Double
- Ip type for product application.
- name String
- The IP name is reserved for the intranet.
- reserveIp StringAddress Id 
- ID of the resource.
- reserveIp StringId 
- Reserve ip ID.
- resourceId String
- The intranet retains the resource instance ID bound to the IPs.
- state String
- Binding status.
- subnetId String
- Subnet ID.
- Map<String,String>
- Tags.
- vpcId String
- VPC unique ID.
- createdTime string
- Created time.
- description string
- The IP description is retained on the intranet.
- ipAddress string
- Specify the reserved IP address of the intranet for which the IP application is requested.
- ipType number
- Ip type for product application.
- name string
- The IP name is reserved for the intranet.
- reserveIp stringAddress Id 
- ID of the resource.
- reserveIp stringId 
- Reserve ip ID.
- resourceId string
- The intranet retains the resource instance ID bound to the IPs.
- state string
- Binding status.
- subnetId string
- Subnet ID.
- {[key: string]: string}
- Tags.
- vpcId 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.
- createdTime String
- Created time.
- description String
- The IP description is retained on the intranet.
- ipAddress String
- Specify the reserved IP address of the intranet for which the IP application is requested.
- ipType Number
- Ip type for product application.
- name String
- The IP name is reserved for the intranet.
- reserveIp StringAddress Id 
- ID of the resource.
- reserveIp StringId 
- Reserve ip ID.
- resourceId String
- The intranet retains the resource instance ID bound to the IPs.
- state String
- Binding status.
- subnetId String
- Subnet ID.
- Map<String>
- Tags.
- vpcId 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 tencentcloudTerraform Provider.