1. Packages
  2. Civo
  3. API Docs
  4. ReservedIp
Civo v2.3.13 published on Friday, Jan 19, 2024 by Pulumi

civo.ReservedIp

Explore with Pulumi AI

civo logo
Civo v2.3.13 published on Friday, Jan 19, 2024 by Pulumi

    Provides a Civo reserved IP to represent a publicly-accessible static IP addresses that can be mapped to one of your Instancesor Load Balancer.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Civo = Pulumi.Civo;
    
    return await Deployment.RunAsync(() => 
    {
        var www = new Civo.ReservedIp("www");
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-civo/sdk/v2/go/civo"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := civo.NewReservedIp(ctx, "www", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.civo.ReservedIp;
    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 www = new ReservedIp("www");
    
        }
    }
    
    import pulumi
    import pulumi_civo as civo
    
    www = civo.ReservedIp("www")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as civo from "@pulumi/civo";
    
    const www = new civo.ReservedIp("www", {});
    
    resources:
      www:
        type: civo:ReservedIp
    

    Create ReservedIp Resource

    new ReservedIp(name: string, args?: ReservedIpArgs, opts?: CustomResourceOptions);
    @overload
    def ReservedIp(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   name: Optional[str] = None,
                   region: Optional[str] = None)
    @overload
    def ReservedIp(resource_name: str,
                   args: Optional[ReservedIpArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    func NewReservedIp(ctx *Context, name string, args *ReservedIpArgs, opts ...ResourceOption) (*ReservedIp, error)
    public ReservedIp(string name, ReservedIpArgs? args = null, CustomResourceOptions? opts = null)
    public ReservedIp(String name, ReservedIpArgs args)
    public ReservedIp(String name, ReservedIpArgs args, CustomResourceOptions options)
    
    type: civo:ReservedIp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ReservedIpArgs
    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 ReservedIpArgs
    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 ReservedIpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReservedIpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReservedIpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ReservedIp Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ReservedIp resource accepts the following input properties:

    Name string
    Name for the ip address
    Region string
    The region of the ip
    Name string
    Name for the ip address
    Region string
    The region of the ip
    name String
    Name for the ip address
    region String
    The region of the ip
    name string
    Name for the ip address
    region string
    The region of the ip
    name str
    Name for the ip address
    region str
    The region of the ip
    name String
    Name for the ip address
    region String
    The region of the ip

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReservedIp resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    The IP Address of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    The IP Address of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    The IP Address of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    ip string
    The IP Address of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    ip str
    The IP Address of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    The IP Address of the resource

    Look up Existing ReservedIp Resource

    Get an existing ReservedIp 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?: ReservedIpState, opts?: CustomResourceOptions): ReservedIp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ip: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None) -> ReservedIp
    func GetReservedIp(ctx *Context, name string, id IDInput, state *ReservedIpState, opts ...ResourceOption) (*ReservedIp, error)
    public static ReservedIp Get(string name, Input<string> id, ReservedIpState? state, CustomResourceOptions? opts = null)
    public static ReservedIp get(String name, Output<String> id, ReservedIpState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Ip string
    The IP Address of the resource
    Name string
    Name for the ip address
    Region string
    The region of the ip
    Ip string
    The IP Address of the resource
    Name string
    Name for the ip address
    Region string
    The region of the ip
    ip String
    The IP Address of the resource
    name String
    Name for the ip address
    region String
    The region of the ip
    ip string
    The IP Address of the resource
    name string
    Name for the ip address
    region string
    The region of the ip
    ip str
    The IP Address of the resource
    name str
    Name for the ip address
    region str
    The region of the ip
    ip String
    The IP Address of the resource
    name String
    Name for the ip address
    region String
    The region of the ip

    Import

    terrafom import civo_reserved_ip.www 9f0e86fc-b2c6-46b4-82ed-2f28419f8ae3

    Package Details

    Repository
    Civo pulumi/pulumi-civo
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the civo Terraform Provider.
    civo logo
    Civo v2.3.13 published on Friday, Jan 19, 2024 by Pulumi