1. Packages
  2. Packages
  3. Aiven Provider
  4. API Docs
  5. StaticIp
Viewing docs for Aiven v6.53.1
published on Thursday, Apr 23, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v6.53.1
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:

    CloudName 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.
    TerminationProtection bool
    Static IP address is protected against deletion. The default value is false.
    Timeouts StaticIpTimeouts
    CloudName 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.
    TerminationProtection bool
    Static IP address is protected against deletion. The default value is false.
    Timeouts StaticIpTimeoutsArgs
    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
    cloudName 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.
    terminationProtection Boolean
    Static IP address is protected against deletion. The default value is false.
    timeouts StaticIpTimeouts
    cloudName 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.
    terminationProtection boolean
    Static IP address is protected against deletion. The default value is false.
    timeouts StaticIpTimeouts
    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 StaticIpTimeoutsArgs
    cloudName 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.
    terminationProtection 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.
    IpAddress string
    IPv4 address.
    ServiceName string
    Service name.
    State string
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    StaticIpAddressId string
    Static IP address identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddress string
    IPv4 address.
    ServiceName string
    Service name.
    State string
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    StaticIpAddressId string
    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, deleted and deleting.
    static_ip_address_id string
    Static IP address identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    IPv4 address.
    serviceName String
    Service name.
    state String
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    staticIpAddressId String
    Static IP address identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    ipAddress string
    IPv4 address.
    serviceName string
    Service name.
    state string
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    staticIpAddressId string
    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, deleted and deleting.
    static_ip_address_id str
    Static IP address identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    IPv4 address.
    serviceName String
    Service name.
    state String
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    staticIpAddressId String
    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) -> StaticIp
    func 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.
    The following state arguments are supported:
    CloudName string
    Target cloud. Maximum length: 256. Changing this property forces recreation of the resource.
    IpAddress string
    IPv4 address.
    Project string
    Project name. Changing this property forces recreation of the resource.
    ServiceName string
    Service name.
    State string
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    StaticIpAddressId string
    Static IP address identifier.
    TerminationProtection bool
    Static IP address is protected against deletion. The default value is false.
    Timeouts StaticIpTimeouts
    CloudName string
    Target cloud. Maximum length: 256. Changing this property forces recreation of the resource.
    IpAddress string
    IPv4 address.
    Project string
    Project name. Changing this property forces recreation of the resource.
    ServiceName string
    Service name.
    State string
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    StaticIpAddressId string
    Static IP address identifier.
    TerminationProtection bool
    Static IP address is protected against deletion. The default value is false.
    Timeouts StaticIpTimeoutsArgs
    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, deleted and deleting.
    static_ip_address_id string
    Static IP address identifier.
    termination_protection bool
    Static IP address is protected against deletion. The default value is false.
    timeouts object
    cloudName String
    Target cloud. Maximum length: 256. Changing this property forces recreation of the resource.
    ipAddress String
    IPv4 address.
    project String
    Project name. Changing this property forces recreation of the resource.
    serviceName String
    Service name.
    state String
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    staticIpAddressId String
    Static IP address identifier.
    terminationProtection Boolean
    Static IP address is protected against deletion. The default value is false.
    timeouts StaticIpTimeouts
    cloudName string
    Target cloud. Maximum length: 256. Changing this property forces recreation of the resource.
    ipAddress string
    IPv4 address.
    project string
    Project name. Changing this property forces recreation of the resource.
    serviceName string
    Service name.
    state string
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    staticIpAddressId string
    Static IP address identifier.
    terminationProtection boolean
    Static IP address is protected against deletion. The default value is false.
    timeouts StaticIpTimeouts
    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, deleted and deleting.
    static_ip_address_id str
    Static IP address identifier.
    termination_protection bool
    Static IP address is protected against deletion. The default value is false.
    timeouts StaticIpTimeoutsArgs
    cloudName String
    Target cloud. Maximum length: 256. Changing this property forces recreation of the resource.
    ipAddress String
    IPv4 address.
    project String
    Project name. Changing this property forces recreation of the resource.
    serviceName String
    Service name.
    state String
    Static IP address state. The possible values are assigned, available, created, creating, deleted and deleting.
    staticIpAddressId String
    Static IP address identifier.
    terminationProtection 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.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    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.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    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.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    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.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    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.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    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.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    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.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    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 aiven Terraform Provider.
    aiven logo
    Viewing docs for Aiven v6.53.1
    published on Thursday, Apr 23, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.