published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
The aiven.StaticIp resource allows the creation and deletion of static ips. Please note that once a static ip is in the ‘assigned’ state it is bound to the node it is assigned to and cannot be deleted or disassociated until the node is recycled. Plans that would delete static ips that are in the assigned state will be blocked.
Create StaticIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StaticIp(name: string, args: StaticIpArgs, opts?: CustomResourceOptions);@overload
def StaticIp(resource_name: str,
args: StaticIpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StaticIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_name: Optional[str] = None,
project: Optional[str] = None,
termination_protection: Optional[bool] = None,
timeouts: Optional[StaticIpTimeoutsArgs] = None)func NewStaticIp(ctx *Context, name string, args StaticIpArgs, opts ...ResourceOption) (*StaticIp, error)public StaticIp(string name, StaticIpArgs args, CustomResourceOptions? opts = null)
public StaticIp(String name, StaticIpArgs args)
public StaticIp(String name, StaticIpArgs args, CustomResourceOptions options)
type: aiven:StaticIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aiven_staticip" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args StaticIpArgs
- 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 StaticIpArgs
- 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 StaticIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StaticIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StaticIpArgs
- 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 staticIpResource = new Aiven.StaticIp("staticIpResource", new()
{
CloudName = "string",
Project = "string",
TerminationProtection = false,
Timeouts = new Aiven.Inputs.StaticIpTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := aiven.NewStaticIp(ctx, "staticIpResource", &aiven.StaticIpArgs{
CloudName: pulumi.String("string"),
Project: pulumi.String("string"),
TerminationProtection: pulumi.Bool(false),
Timeouts: &aiven.StaticIpTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "aiven_staticip" "staticIpResource" {
cloud_name = "string"
project = "string"
termination_protection = false
timeouts = {
create = "string"
delete = "string"
read = "string"
update = "string"
}
}
var staticIpResource = new StaticIp("staticIpResource", StaticIpArgs.builder()
.cloudName("string")
.project("string")
.terminationProtection(false)
.timeouts(StaticIpTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
static_ip_resource = aiven.StaticIp("staticIpResource",
cloud_name="string",
project="string",
termination_protection=False,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const staticIpResource = new aiven.StaticIp("staticIpResource", {
cloudName: "string",
project: "string",
terminationProtection: false,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: aiven:StaticIp
properties:
cloudName: string
project: string
terminationProtection: false
timeouts:
create: string
delete: string
read: string
update: string
StaticIp 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 StaticIp resource accepts the following input properties:
- Cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - Project string
- Project name. Changing this property forces recreation of the resource.
- Termination
Protection bool - Static IP address is protected against deletion. The default value is
false. - Timeouts
Static
Ip Timeouts
- Cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - Project string
- Project name. Changing this property forces recreation of the resource.
- Termination
Protection bool - Static IP address is protected against deletion. The default value is
false. - Timeouts
Static
Ip Timeouts Args
- cloud_
name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - project string
- Project name. Changing this property forces recreation of the resource.
- termination_
protection bool - Static IP address is protected against deletion. The default value is
false. - timeouts object
- cloud
Name String - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - project String
- Project name. Changing this property forces recreation of the resource.
- termination
Protection Boolean - Static IP address is protected against deletion. The default value is
false. - timeouts
Static
Ip Timeouts
- cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - project string
- Project name. Changing this property forces recreation of the resource.
- termination
Protection boolean - Static IP address is protected against deletion. The default value is
false. - timeouts
Static
Ip Timeouts
- cloud_
name str - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - project str
- Project name. Changing this property forces recreation of the resource.
- termination_
protection bool - Static IP address is protected against deletion. The default value is
false. - timeouts
Static
Ip Timeouts Args
- cloud
Name String - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - project String
- Project name. Changing this property forces recreation of the resource.
- termination
Protection Boolean - Static IP address is protected against deletion. The default value is
false. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the StaticIp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - IPv4 address.
- Service
Name string - Service name.
- State string
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - Static
Ip stringAddress Id - Static IP address identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - IPv4 address.
- Service
Name string - Service name.
- State string
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - Static
Ip stringAddress Id - Static IP address identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- ip_
address string - IPv4 address.
- service_
name string - Service name.
- state string
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static_
ip_ stringaddress_ id - Static IP address identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - IPv4 address.
- service
Name String - Service name.
- state String
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static
Ip StringAddress Id - Static IP address identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - IPv4 address.
- service
Name string - Service name.
- state string
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static
Ip stringAddress Id - Static IP address identifier.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - IPv4 address.
- service_
name str - Service name.
- state str
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static_
ip_ straddress_ id - Static IP address identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - IPv4 address.
- service
Name String - Service name.
- state String
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static
Ip StringAddress Id - Static IP address identifier.
Look up Existing StaticIp Resource
Get an existing StaticIp 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?: StaticIpState, opts?: CustomResourceOptions): StaticIp@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_name: Optional[str] = None,
ip_address: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
state: Optional[str] = None,
static_ip_address_id: Optional[str] = None,
termination_protection: Optional[bool] = None,
timeouts: Optional[StaticIpTimeoutsArgs] = None) -> StaticIpfunc GetStaticIp(ctx *Context, name string, id IDInput, state *StaticIpState, opts ...ResourceOption) (*StaticIp, error)public static StaticIp Get(string name, Input<string> id, StaticIpState? state, CustomResourceOptions? opts = null)public static StaticIp get(String name, Output<String> id, StaticIpState state, CustomResourceOptions options)resources: _: type: aiven:StaticIp get: id: ${id}import {
to = aiven_staticip.example
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.
- Cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - Ip
Address string - IPv4 address.
- Project string
- Project name. Changing this property forces recreation of the resource.
- Service
Name string - Service name.
- State string
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - Static
Ip stringAddress Id - Static IP address identifier.
- Termination
Protection bool - Static IP address is protected against deletion. The default value is
false. - Timeouts
Static
Ip Timeouts
- Cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - Ip
Address string - IPv4 address.
- Project string
- Project name. Changing this property forces recreation of the resource.
- Service
Name string - Service name.
- State string
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - Static
Ip stringAddress Id - Static IP address identifier.
- Termination
Protection bool - Static IP address is protected against deletion. The default value is
false. - Timeouts
Static
Ip Timeouts Args
- cloud_
name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - ip_
address string - IPv4 address.
- project string
- Project name. Changing this property forces recreation of the resource.
- service_
name string - Service name.
- state string
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static_
ip_ stringaddress_ id - Static IP address identifier.
- termination_
protection bool - Static IP address is protected against deletion. The default value is
false. - timeouts object
- cloud
Name String - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - ip
Address String - IPv4 address.
- project String
- Project name. Changing this property forces recreation of the resource.
- service
Name String - Service name.
- state String
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static
Ip StringAddress Id - Static IP address identifier.
- termination
Protection Boolean - Static IP address is protected against deletion. The default value is
false. - timeouts
Static
Ip Timeouts
- cloud
Name string - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - ip
Address string - IPv4 address.
- project string
- Project name. Changing this property forces recreation of the resource.
- service
Name string - Service name.
- state string
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static
Ip stringAddress Id - Static IP address identifier.
- termination
Protection boolean - Static IP address is protected against deletion. The default value is
false. - timeouts
Static
Ip Timeouts
- cloud_
name str - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - ip_
address str - IPv4 address.
- project str
- Project name. Changing this property forces recreation of the resource.
- service_
name str - Service name.
- state str
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static_
ip_ straddress_ id - Static IP address identifier.
- termination_
protection bool - Static IP address is protected against deletion. The default value is
false. - timeouts
Static
Ip Timeouts Args
- cloud
Name String - Target cloud. Maximum length:
256. Changing this property forces recreation of the resource. - ip
Address String - IPv4 address.
- project String
- Project name. Changing this property forces recreation of the resource.
- service
Name String - Service name.
- state String
- Static IP address state. The possible values are
assigned,available,created,creating,deletedanddeleting. - static
Ip StringAddress Id - Static IP address identifier.
- termination
Protection Boolean - Static IP address is protected against deletion. The default value is
false. - timeouts Property Map
Supporting Types
StaticIpTimeouts, StaticIpTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default_ String
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default str
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default String
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
$ pulumi import aiven:index/staticIp:StaticIp example PROJECT/STATIC_IP_ADDRESS_ID
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
published on Thursday, Apr 23, 2026 by Pulumi
