published on Thursday, Apr 9, 2026 by civo
published on Thursday, Apr 9, 2026 by civo
Create VpcReservedIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcReservedIp(name: string, args?: VpcReservedIpArgs, opts?: CustomResourceOptions);@overload
def VpcReservedIp(resource_name: str,
args: Optional[VpcReservedIpArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def VpcReservedIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
region: Optional[str] = None,
vpc_reserved_ip_id: Optional[str] = None)func NewVpcReservedIp(ctx *Context, name string, args *VpcReservedIpArgs, opts ...ResourceOption) (*VpcReservedIp, error)public VpcReservedIp(string name, VpcReservedIpArgs? args = null, CustomResourceOptions? opts = null)
public VpcReservedIp(String name, VpcReservedIpArgs args)
public VpcReservedIp(String name, VpcReservedIpArgs args, CustomResourceOptions options)
type: civo:VpcReservedIp
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 VpcReservedIpArgs
- 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 VpcReservedIpArgs
- 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 VpcReservedIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcReservedIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcReservedIpArgs
- 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 vpcReservedIpResource = new Civo.Index.VpcReservedIp("vpcReservedIpResource", new()
{
Name = "string",
Region = "string",
VpcReservedIpId = "string",
});
example, err := civo.NewVpcReservedIp(ctx, "vpcReservedIpResource", &civo.VpcReservedIpArgs{
Name: pulumi.String("string"),
Region: pulumi.String("string"),
VpcReservedIpId: pulumi.String("string"),
})
var vpcReservedIpResource = new VpcReservedIp("vpcReservedIpResource", VpcReservedIpArgs.builder()
.name("string")
.region("string")
.vpcReservedIpId("string")
.build());
vpc_reserved_ip_resource = civo.VpcReservedIp("vpcReservedIpResource",
name="string",
region="string",
vpc_reserved_ip_id="string")
const vpcReservedIpResource = new civo.VpcReservedIp("vpcReservedIpResource", {
name: "string",
region: "string",
vpcReservedIpId: "string",
});
type: civo:VpcReservedIp
properties:
name: string
region: string
vpcReservedIpId: string
VpcReservedIp 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 VpcReservedIp resource accepts the following input properties:
- Name string
- Name for the ip address
- Region string
- The region of the ip
- Vpc
Reserved stringIp Id
- Name string
- Name for the ip address
- Region string
- The region of the ip
- Vpc
Reserved stringIp Id
- name String
- Name for the ip address
- region String
- The region of the ip
- vpc
Reserved StringIp Id
- name string
- Name for the ip address
- region string
- The region of the ip
- vpc
Reserved stringIp Id
- name str
- Name for the ip address
- region str
- The region of the ip
- vpc_
reserved_ strip_ id
- name String
- Name for the ip address
- region String
- The region of the ip
- vpc
Reserved StringIp Id
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcReservedIp resource produces the following output properties:
Look up Existing VpcReservedIp Resource
Get an existing VpcReservedIp 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?: VpcReservedIpState, opts?: CustomResourceOptions): VpcReservedIp@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ip: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
vpc_reserved_ip_id: Optional[str] = None) -> VpcReservedIpfunc GetVpcReservedIp(ctx *Context, name string, id IDInput, state *VpcReservedIpState, opts ...ResourceOption) (*VpcReservedIp, error)public static VpcReservedIp Get(string name, Input<string> id, VpcReservedIpState? state, CustomResourceOptions? opts = null)public static VpcReservedIp get(String name, Output<String> id, VpcReservedIpState state, CustomResourceOptions options)resources: _: type: civo:VpcReservedIp 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.
- Ip string
- The IP Address of the resource
- Name string
- Name for the ip address
- Region string
- The region of the ip
- Vpc
Reserved stringIp Id
- Ip string
- The IP Address of the resource
- Name string
- Name for the ip address
- Region string
- The region of the ip
- Vpc
Reserved stringIp Id
- ip String
- The IP Address of the resource
- name String
- Name for the ip address
- region String
- The region of the ip
- vpc
Reserved StringIp Id
- ip string
- The IP Address of the resource
- name string
- Name for the ip address
- region string
- The region of the ip
- vpc
Reserved stringIp Id
- ip str
- The IP Address of the resource
- name str
- Name for the ip address
- region str
- The region of the ip
- vpc_
reserved_ strip_ id
- ip String
- The IP Address of the resource
- name String
- Name for the ip address
- region String
- The region of the ip
- vpc
Reserved StringIp Id
Package Details
- Repository
- Civo civo/terraform-provider-civo
- License
- Notes
- This Pulumi package is based on the
civoTerraform Provider.
published on Thursday, Apr 9, 2026 by civo
