1. Packages
  2. Gcore Provider
  3. API Docs
  4. Reservedfixedip
gcore 0.20.0 published on Tuesday, Apr 22, 2025 by g-core

gcore.Reservedfixedip

Explore with Pulumi AI

Represent reserved fixed ips

Example Usage

Prerequisite

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const project = gcore.getProject({
    name: "Default",
});
const region = gcore.getRegion({
    name: "Luxembourg Preprod",
});
Copy
import pulumi
import pulumi_gcore as gcore

project = gcore.get_project(name="Default")
region = gcore.get_region(name="Luxembourg Preprod")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gcore.GetProject(ctx, &gcore.GetProjectArgs{
			Name: "Default",
		}, nil)
		if err != nil {
			return err
		}
		_, err = gcore.GetRegion(ctx, &gcore.GetRegionArgs{
			Name: "Luxembourg Preprod",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var project = Gcore.GetProject.Invoke(new()
    {
        Name = "Default",
    });

    var region = Gcore.GetRegion.Invoke(new()
    {
        Name = "Luxembourg Preprod",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetProjectArgs;
import com.pulumi.gcore.inputs.GetRegionArgs;
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) {
        final var project = GcoreFunctions.getProject(GetProjectArgs.builder()
            .name("Default")
            .build());

        final var region = GcoreFunctions.getRegion(GetRegionArgs.builder()
            .name("Luxembourg Preprod")
            .build());

    }
}
Copy
variables:
  project:
    fn::invoke:
      function: gcore:getProject
      arguments:
        name: Default
  region:
    fn::invoke:
      function: gcore:getRegion
      arguments:
        name: Luxembourg Preprod
Copy

Reserving external address

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const fixedIpExternal = new gcore.Reservedfixedip("fixedIpExternal", {
    projectId: data.gcore_project.project.id,
    regionId: data.gcore_region.region.id,
    type: "external",
    isVip: false,
});
Copy
import pulumi
import pulumi_gcore as gcore

fixed_ip_external = gcore.Reservedfixedip("fixedIpExternal",
    project_id=data["gcore_project"]["project"]["id"],
    region_id=data["gcore_region"]["region"]["id"],
    type="external",
    is_vip=False)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gcore.NewReservedfixedip(ctx, "fixedIpExternal", &gcore.ReservedfixedipArgs{
			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
			Type:      pulumi.String("external"),
			IsVip:     pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var fixedIpExternal = new Gcore.Reservedfixedip("fixedIpExternal", new()
    {
        ProjectId = data.Gcore_project.Project.Id,
        RegionId = data.Gcore_region.Region.Id,
        Type = "external",
        IsVip = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.Reservedfixedip;
import com.pulumi.gcore.ReservedfixedipArgs;
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 fixedIpExternal = new Reservedfixedip("fixedIpExternal", ReservedfixedipArgs.builder()
            .projectId(data.gcore_project().project().id())
            .regionId(data.gcore_region().region().id())
            .type("external")
            .isVip(false)
            .build());

    }
}
Copy
resources:
  fixedIpExternal:
    type: gcore:Reservedfixedip
    properties:
      projectId: ${data.gcore_project.project.id}
      regionId: ${data.gcore_region.region.id}
      type: external
      isVip: false
Copy

Prerequisite for Private Reserved Fixed IPs

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const privateNetwork = new gcore.Network("privateNetwork", {
    projectId: data.gcore_project.project.id,
    regionId: data.gcore_region.region.id,
});
const privateSubnet: gcore.Subnet[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
    privateSubnet.push(new gcore.Subnet(`privateSubnet-${range.value}`, {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        networkId: privateNetwork.networkId,
        cidr: `172.16.${range.value}.0/24`,
    }));
}
Copy
import pulumi
import pulumi_gcore as gcore

private_network = gcore.Network("privateNetwork",
    project_id=data["gcore_project"]["project"]["id"],
    region_id=data["gcore_region"]["region"]["id"])
private_subnet = []
for range in [{"value": i} for i in range(0, 2)]:
    private_subnet.append(gcore.Subnet(f"privateSubnet-{range['value']}",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        network_id=private_network.network_id,
        cidr=f"172.16.{range['value']}.0/24"))
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		privateNetwork, err := gcore.NewNetwork(ctx, "privateNetwork", &gcore.NetworkArgs{
			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
		})
		if err != nil {
			return err
		}
		var privateSubnet []*gcore.Subnet
		for index := 0; index < 2; index++ {
			key0 := index
			val0 := index
			__res, err := gcore.NewSubnet(ctx, fmt.Sprintf("privateSubnet-%v", key0), &gcore.SubnetArgs{
				ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
				RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
				NetworkId: privateNetwork.NetworkId,
				Cidr:      pulumi.Sprintf("172.16.%v.0/24", val0),
			})
			if err != nil {
				return err
			}
			privateSubnet = append(privateSubnet, __res)
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var privateNetwork = new Gcore.Network("privateNetwork", new()
    {
        ProjectId = data.Gcore_project.Project.Id,
        RegionId = data.Gcore_region.Region.Id,
    });

    var privateSubnet = new List<Gcore.Subnet>();
    for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        privateSubnet.Add(new Gcore.Subnet($"privateSubnet-{range.Value}", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            NetworkId = privateNetwork.NetworkId,
            Cidr = $"172.16.{range.Value}.0/24",
        }));
    }
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.Network;
import com.pulumi.gcore.NetworkArgs;
import com.pulumi.gcore.Subnet;
import com.pulumi.gcore.SubnetArgs;
import com.pulumi.codegen.internal.KeyedValue;
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 privateNetwork = new Network("privateNetwork", NetworkArgs.builder()
            .projectId(data.gcore_project().project().id())
            .regionId(data.gcore_region().region().id())
            .build());

        for (var i = 0; i < 2; i++) {
            new Subnet("privateSubnet-" + i, SubnetArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .networkId(privateNetwork.networkId())
                .cidr(String.format("172.16.%s.0/24", range.value()))
                .build());

        
}
    }
}
Copy
resources:
  privateNetwork:
    type: gcore:Network
    properties:
      projectId: ${data.gcore_project.project.id}
      regionId: ${data.gcore_region.region.id}
  privateSubnet:
    type: gcore:Subnet
    properties:
      projectId: ${data.gcore_project.project.id}
      regionId: ${data.gcore_region.region.id}
      networkId: ${privateNetwork.networkId}
      cidr: 172.16.${range.value}.0/24
    options: {}
Copy

Creating Private Reserved Fixed IP in subnet

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const fixedIpSubnet = new gcore.Reservedfixedip("fixedIpSubnet", {
    projectId: data.gcore_project.project.id,
    regionId: data.gcore_region.region.id,
    type: "subnet",
    networkId: gcore_network.private_network.id,
    subnetId: gcore_subnet.private_subnet[0].id,
    isVip: false,
});
Copy
import pulumi
import pulumi_gcore as gcore

fixed_ip_subnet = gcore.Reservedfixedip("fixedIpSubnet",
    project_id=data["gcore_project"]["project"]["id"],
    region_id=data["gcore_region"]["region"]["id"],
    type="subnet",
    network_id=gcore_network["private_network"]["id"],
    subnet_id=gcore_subnet["private_subnet"][0]["id"],
    is_vip=False)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gcore.NewReservedfixedip(ctx, "fixedIpSubnet", &gcore.ReservedfixedipArgs{
			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
			Type:      pulumi.String("subnet"),
			NetworkId: pulumi.Any(gcore_network.Private_network.Id),
			SubnetId:  pulumi.Any(gcore_subnet.Private_subnet[0].Id),
			IsVip:     pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var fixedIpSubnet = new Gcore.Reservedfixedip("fixedIpSubnet", new()
    {
        ProjectId = data.Gcore_project.Project.Id,
        RegionId = data.Gcore_region.Region.Id,
        Type = "subnet",
        NetworkId = gcore_network.Private_network.Id,
        SubnetId = gcore_subnet.Private_subnet[0].Id,
        IsVip = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.Reservedfixedip;
import com.pulumi.gcore.ReservedfixedipArgs;
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 fixedIpSubnet = new Reservedfixedip("fixedIpSubnet", ReservedfixedipArgs.builder()
            .projectId(data.gcore_project().project().id())
            .regionId(data.gcore_region().region().id())
            .type("subnet")
            .networkId(gcore_network.private_network().id())
            .subnetId(gcore_subnet.private_subnet()[0].id())
            .isVip(false)
            .build());

    }
}
Copy
resources:
  fixedIpSubnet:
    type: gcore:Reservedfixedip
    properties:
      projectId: ${data.gcore_project.project.id}
      regionId: ${data.gcore_region.region.id}
      type: subnet
      networkId: ${gcore_network.private_network.id}
      subnetId: ${gcore_subnet.private_subnet[0].id}
      isVip: false
Copy

Creating Private Reserved Fixed IP in any subnet

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const fixedIpInAnySubnet = new gcore.Reservedfixedip("fixedIpInAnySubnet", {
    projectId: data.gcore_project.project.id,
    regionId: data.gcore_region.region.id,
    type: "any_subnet",
    networkId: gcore_network.private_network.id,
    isVip: false,
});
Copy
import pulumi
import pulumi_gcore as gcore

fixed_ip_in_any_subnet = gcore.Reservedfixedip("fixedIpInAnySubnet",
    project_id=data["gcore_project"]["project"]["id"],
    region_id=data["gcore_region"]["region"]["id"],
    type="any_subnet",
    network_id=gcore_network["private_network"]["id"],
    is_vip=False)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gcore.NewReservedfixedip(ctx, "fixedIpInAnySubnet", &gcore.ReservedfixedipArgs{
			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
			Type:      pulumi.String("any_subnet"),
			NetworkId: pulumi.Any(gcore_network.Private_network.Id),
			IsVip:     pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var fixedIpInAnySubnet = new Gcore.Reservedfixedip("fixedIpInAnySubnet", new()
    {
        ProjectId = data.Gcore_project.Project.Id,
        RegionId = data.Gcore_region.Region.Id,
        Type = "any_subnet",
        NetworkId = gcore_network.Private_network.Id,
        IsVip = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.Reservedfixedip;
import com.pulumi.gcore.ReservedfixedipArgs;
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 fixedIpInAnySubnet = new Reservedfixedip("fixedIpInAnySubnet", ReservedfixedipArgs.builder()
            .projectId(data.gcore_project().project().id())
            .regionId(data.gcore_region().region().id())
            .type("any_subnet")
            .networkId(gcore_network.private_network().id())
            .isVip(false)
            .build());

    }
}
Copy
resources:
  fixedIpInAnySubnet:
    type: gcore:Reservedfixedip
    properties:
      projectId: ${data.gcore_project.project.id}
      regionId: ${data.gcore_region.region.id}
      type: any_subnet
      networkId: ${gcore_network.private_network.id}
      isVip: false
Copy

Creating Private Reserved Fixed IP using port

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const lb = new gcore.Loadbalancerv2("lb", {
    projectId: data.gcore_project.project.id,
    regionId: data.gcore_region.region.id,
    flavor: "lb1-1-2",
});
const preservedPortId = lb.vipPortId;
const fixedIpByPort = new gcore.Reservedfixedip("fixedIpByPort", {
    projectId: data.gcore_project.project.id,
    regionId: data.gcore_region.region.id,
    type: "port",
    portId: preservedPortId,
});
Copy
import pulumi
import pulumi_gcore as gcore

lb = gcore.Loadbalancerv2("lb",
    project_id=data["gcore_project"]["project"]["id"],
    region_id=data["gcore_region"]["region"]["id"],
    flavor="lb1-1-2")
preserved_port_id = lb.vip_port_id
fixed_ip_by_port = gcore.Reservedfixedip("fixedIpByPort",
    project_id=data["gcore_project"]["project"]["id"],
    region_id=data["gcore_region"]["region"]["id"],
    type="port",
    port_id=preserved_port_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		lb, err := gcore.NewLoadbalancerv2(ctx, "lb", &gcore.Loadbalancerv2Args{
			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
			Flavor:    pulumi.String("lb1-1-2"),
		})
		if err != nil {
			return err
		}
		preservedPortId := lb.VipPortId
		_, err = gcore.NewReservedfixedip(ctx, "fixedIpByPort", &gcore.ReservedfixedipArgs{
			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
			Type:      pulumi.String("port"),
			PortId:    pulumi.String(preservedPortId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var lb = new Gcore.Loadbalancerv2("lb", new()
    {
        ProjectId = data.Gcore_project.Project.Id,
        RegionId = data.Gcore_region.Region.Id,
        Flavor = "lb1-1-2",
    });

    var preservedPortId = lb.VipPortId;

    var fixedIpByPort = new Gcore.Reservedfixedip("fixedIpByPort", new()
    {
        ProjectId = data.Gcore_project.Project.Id,
        RegionId = data.Gcore_region.Region.Id,
        Type = "port",
        PortId = preservedPortId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.Loadbalancerv2;
import com.pulumi.gcore.Loadbalancerv2Args;
import com.pulumi.gcore.Reservedfixedip;
import com.pulumi.gcore.ReservedfixedipArgs;
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 lb = new Loadbalancerv2("lb", Loadbalancerv2Args.builder()
            .projectId(data.gcore_project().project().id())
            .regionId(data.gcore_region().region().id())
            .flavor("lb1-1-2")
            .build());

        final var preservedPortId = lb.vipPortId();

        var fixedIpByPort = new Reservedfixedip("fixedIpByPort", ReservedfixedipArgs.builder()
            .projectId(data.gcore_project().project().id())
            .regionId(data.gcore_region().region().id())
            .type("port")
            .portId(preservedPortId)
            .build());

    }
}
Copy
resources:
  lb:
    type: gcore:Loadbalancerv2
    properties:
      projectId: ${data.gcore_project.project.id}
      regionId: ${data.gcore_region.region.id}
      flavor: lb1-1-2
  fixedIpByPort:
    type: gcore:Reservedfixedip
    properties:
      projectId: ${data.gcore_project.project.id}
      regionId: ${data.gcore_region.region.id}
      type: port
      portId: ${preservedPortId}
variables:
  preservedPortId: ${lb.vipPortId}
Copy

Create Reservedfixedip Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Reservedfixedip(name: string, args: ReservedfixedipArgs, opts?: CustomResourceOptions);
@overload
def Reservedfixedip(resource_name: str,
                    args: ReservedfixedipArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def Reservedfixedip(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    type: Optional[str] = None,
                    project_id: Optional[float] = None,
                    ip_family: Optional[str] = None,
                    is_vip: Optional[bool] = None,
                    network_id: Optional[str] = None,
                    port_id: Optional[str] = None,
                    allowed_address_pairs: Optional[Sequence[ReservedfixedipAllowedAddressPairArgs]] = None,
                    project_name: Optional[str] = None,
                    region_id: Optional[float] = None,
                    region_name: Optional[str] = None,
                    reservedfixedip_id: Optional[str] = None,
                    subnet_id: Optional[str] = None,
                    fixed_ip_address: Optional[str] = None)
func NewReservedfixedip(ctx *Context, name string, args ReservedfixedipArgs, opts ...ResourceOption) (*Reservedfixedip, error)
public Reservedfixedip(string name, ReservedfixedipArgs args, CustomResourceOptions? opts = null)
public Reservedfixedip(String name, ReservedfixedipArgs args)
public Reservedfixedip(String name, ReservedfixedipArgs args, CustomResourceOptions options)
type: gcore:Reservedfixedip
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ReservedfixedipArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ReservedfixedipArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ReservedfixedipArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ReservedfixedipArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ReservedfixedipArgs
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 reservedfixedipResource = new Gcore.Reservedfixedip("reservedfixedipResource", new()
{
    Type = "string",
    ProjectId = 0,
    IpFamily = "string",
    IsVip = false,
    NetworkId = "string",
    PortId = "string",
    AllowedAddressPairs = new[]
    {
        new Gcore.Inputs.ReservedfixedipAllowedAddressPairArgs
        {
            IpAddress = "string",
            MacAddress = "string",
        },
    },
    ProjectName = "string",
    RegionId = 0,
    RegionName = "string",
    ReservedfixedipId = "string",
    SubnetId = "string",
    FixedIpAddress = "string",
});
Copy
example, err := gcore.NewReservedfixedip(ctx, "reservedfixedipResource", &gcore.ReservedfixedipArgs{
	Type:      pulumi.String("string"),
	ProjectId: pulumi.Float64(0),
	IpFamily:  pulumi.String("string"),
	IsVip:     pulumi.Bool(false),
	NetworkId: pulumi.String("string"),
	PortId:    pulumi.String("string"),
	AllowedAddressPairs: gcore.ReservedfixedipAllowedAddressPairArray{
		&gcore.ReservedfixedipAllowedAddressPairArgs{
			IpAddress:  pulumi.String("string"),
			MacAddress: pulumi.String("string"),
		},
	},
	ProjectName:       pulumi.String("string"),
	RegionId:          pulumi.Float64(0),
	RegionName:        pulumi.String("string"),
	ReservedfixedipId: pulumi.String("string"),
	SubnetId:          pulumi.String("string"),
	FixedIpAddress:    pulumi.String("string"),
})
Copy
var reservedfixedipResource = new Reservedfixedip("reservedfixedipResource", ReservedfixedipArgs.builder()
    .type("string")
    .projectId(0)
    .ipFamily("string")
    .isVip(false)
    .networkId("string")
    .portId("string")
    .allowedAddressPairs(ReservedfixedipAllowedAddressPairArgs.builder()
        .ipAddress("string")
        .macAddress("string")
        .build())
    .projectName("string")
    .regionId(0)
    .regionName("string")
    .reservedfixedipId("string")
    .subnetId("string")
    .fixedIpAddress("string")
    .build());
Copy
reservedfixedip_resource = gcore.Reservedfixedip("reservedfixedipResource",
    type="string",
    project_id=0,
    ip_family="string",
    is_vip=False,
    network_id="string",
    port_id="string",
    allowed_address_pairs=[{
        "ip_address": "string",
        "mac_address": "string",
    }],
    project_name="string",
    region_id=0,
    region_name="string",
    reservedfixedip_id="string",
    subnet_id="string",
    fixed_ip_address="string")
Copy
const reservedfixedipResource = new gcore.Reservedfixedip("reservedfixedipResource", {
    type: "string",
    projectId: 0,
    ipFamily: "string",
    isVip: false,
    networkId: "string",
    portId: "string",
    allowedAddressPairs: [{
        ipAddress: "string",
        macAddress: "string",
    }],
    projectName: "string",
    regionId: 0,
    regionName: "string",
    reservedfixedipId: "string",
    subnetId: "string",
    fixedIpAddress: "string",
});
Copy
type: gcore:Reservedfixedip
properties:
    allowedAddressPairs:
        - ipAddress: string
          macAddress: string
    fixedIpAddress: string
    ipFamily: string
    isVip: false
    networkId: string
    portId: string
    projectId: 0
    projectName: string
    regionId: 0
    regionName: string
    reservedfixedipId: string
    subnetId: string
    type: string
Copy

Reservedfixedip 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 Reservedfixedip resource accepts the following input properties:

Type This property is required. string
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
AllowedAddressPairs List<ReservedfixedipAllowedAddressPair>
Group of IP addresses that share the current IP as VIP
FixedIpAddress string
IP address of the port. Can be passed with type ip_address or retrieved after creation.
IpFamily string
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
IsVip bool
Flag to indicate whether the port is a virtual IP address.
NetworkId string
ID of the desired network. Should be used together with subnet_id.
PortId string
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
ProjectId double
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
ProjectName string
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
RegionId double
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
RegionName string
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
ReservedfixedipId string
The ID of this resource.
SubnetId string
ID of the desired subnet. Can be used together with network_id.
Type This property is required. string
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
AllowedAddressPairs []ReservedfixedipAllowedAddressPairArgs
Group of IP addresses that share the current IP as VIP
FixedIpAddress string
IP address of the port. Can be passed with type ip_address or retrieved after creation.
IpFamily string
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
IsVip bool
Flag to indicate whether the port is a virtual IP address.
NetworkId string
ID of the desired network. Should be used together with subnet_id.
PortId string
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
ProjectId float64
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
ProjectName string
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
RegionId float64
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
RegionName string
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
ReservedfixedipId string
The ID of this resource.
SubnetId string
ID of the desired subnet. Can be used together with network_id.
type This property is required. String
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
allowedAddressPairs List<ReservedfixedipAllowedAddressPair>
Group of IP addresses that share the current IP as VIP
fixedIpAddress String
IP address of the port. Can be passed with type ip_address or retrieved after creation.
ipFamily String
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
isVip Boolean
Flag to indicate whether the port is a virtual IP address.
networkId String
ID of the desired network. Should be used together with subnet_id.
portId String
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
projectId Double
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
projectName String
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
regionId Double
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
regionName String
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
reservedfixedipId String
The ID of this resource.
subnetId String
ID of the desired subnet. Can be used together with network_id.
type This property is required. string
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
allowedAddressPairs ReservedfixedipAllowedAddressPair[]
Group of IP addresses that share the current IP as VIP
fixedIpAddress string
IP address of the port. Can be passed with type ip_address or retrieved after creation.
ipFamily string
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
isVip boolean
Flag to indicate whether the port is a virtual IP address.
networkId string
ID of the desired network. Should be used together with subnet_id.
portId string
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
projectId number
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
projectName string
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
regionId number
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
regionName string
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
reservedfixedipId string
The ID of this resource.
subnetId string
ID of the desired subnet. Can be used together with network_id.
type This property is required. str
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
allowed_address_pairs Sequence[ReservedfixedipAllowedAddressPairArgs]
Group of IP addresses that share the current IP as VIP
fixed_ip_address str
IP address of the port. Can be passed with type ip_address or retrieved after creation.
ip_family str
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
is_vip bool
Flag to indicate whether the port is a virtual IP address.
network_id str
ID of the desired network. Should be used together with subnet_id.
port_id str
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
project_id float
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
project_name str
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
region_id float
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
region_name str
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
reservedfixedip_id str
The ID of this resource.
subnet_id str
ID of the desired subnet. Can be used together with network_id.
type This property is required. String
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
allowedAddressPairs List<Property Map>
Group of IP addresses that share the current IP as VIP
fixedIpAddress String
IP address of the port. Can be passed with type ip_address or retrieved after creation.
ipFamily String
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
isVip Boolean
Flag to indicate whether the port is a virtual IP address.
networkId String
ID of the desired network. Should be used together with subnet_id.
portId String
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
projectId Number
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
projectName String
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
regionId Number
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
regionName String
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
reservedfixedipId String
The ID of this resource.
subnetId String
ID of the desired subnet. Can be used together with network_id.

Outputs

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

FixedIpv6Address string
IPv6 address of the port.
Id string
The provider-assigned unique ID for this managed resource.
LastUpdated string
Datetime when reserved fixed ip was updated at the last time.
Status string
Underlying port status
SubnetV6Id string
ID of the IPv6 subnet.
FixedIpv6Address string
IPv6 address of the port.
Id string
The provider-assigned unique ID for this managed resource.
LastUpdated string
Datetime when reserved fixed ip was updated at the last time.
Status string
Underlying port status
SubnetV6Id string
ID of the IPv6 subnet.
fixedIpv6Address String
IPv6 address of the port.
id String
The provider-assigned unique ID for this managed resource.
lastUpdated String
Datetime when reserved fixed ip was updated at the last time.
status String
Underlying port status
subnetV6Id String
ID of the IPv6 subnet.
fixedIpv6Address string
IPv6 address of the port.
id string
The provider-assigned unique ID for this managed resource.
lastUpdated string
Datetime when reserved fixed ip was updated at the last time.
status string
Underlying port status
subnetV6Id string
ID of the IPv6 subnet.
fixed_ipv6_address str
IPv6 address of the port.
id str
The provider-assigned unique ID for this managed resource.
last_updated str
Datetime when reserved fixed ip was updated at the last time.
status str
Underlying port status
subnet_v6_id str
ID of the IPv6 subnet.
fixedIpv6Address String
IPv6 address of the port.
id String
The provider-assigned unique ID for this managed resource.
lastUpdated String
Datetime when reserved fixed ip was updated at the last time.
status String
Underlying port status
subnetV6Id String
ID of the IPv6 subnet.

Look up Existing Reservedfixedip Resource

Get an existing Reservedfixedip 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?: ReservedfixedipState, opts?: CustomResourceOptions): Reservedfixedip
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allowed_address_pairs: Optional[Sequence[ReservedfixedipAllowedAddressPairArgs]] = None,
        fixed_ip_address: Optional[str] = None,
        fixed_ipv6_address: Optional[str] = None,
        ip_family: Optional[str] = None,
        is_vip: Optional[bool] = None,
        last_updated: Optional[str] = None,
        network_id: Optional[str] = None,
        port_id: Optional[str] = None,
        project_id: Optional[float] = None,
        project_name: Optional[str] = None,
        region_id: Optional[float] = None,
        region_name: Optional[str] = None,
        reservedfixedip_id: Optional[str] = None,
        status: Optional[str] = None,
        subnet_id: Optional[str] = None,
        subnet_v6_id: Optional[str] = None,
        type: Optional[str] = None) -> Reservedfixedip
func GetReservedfixedip(ctx *Context, name string, id IDInput, state *ReservedfixedipState, opts ...ResourceOption) (*Reservedfixedip, error)
public static Reservedfixedip Get(string name, Input<string> id, ReservedfixedipState? state, CustomResourceOptions? opts = null)
public static Reservedfixedip get(String name, Output<String> id, ReservedfixedipState state, CustomResourceOptions options)
resources:  _:    type: gcore:Reservedfixedip    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AllowedAddressPairs List<ReservedfixedipAllowedAddressPair>
Group of IP addresses that share the current IP as VIP
FixedIpAddress string
IP address of the port. Can be passed with type ip_address or retrieved after creation.
FixedIpv6Address string
IPv6 address of the port.
IpFamily string
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
IsVip bool
Flag to indicate whether the port is a virtual IP address.
LastUpdated string
Datetime when reserved fixed ip was updated at the last time.
NetworkId string
ID of the desired network. Should be used together with subnet_id.
PortId string
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
ProjectId double
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
ProjectName string
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
RegionId double
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
RegionName string
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
ReservedfixedipId string
The ID of this resource.
Status string
Underlying port status
SubnetId string
ID of the desired subnet. Can be used together with network_id.
SubnetV6Id string
ID of the IPv6 subnet.
Type string
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
AllowedAddressPairs []ReservedfixedipAllowedAddressPairArgs
Group of IP addresses that share the current IP as VIP
FixedIpAddress string
IP address of the port. Can be passed with type ip_address or retrieved after creation.
FixedIpv6Address string
IPv6 address of the port.
IpFamily string
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
IsVip bool
Flag to indicate whether the port is a virtual IP address.
LastUpdated string
Datetime when reserved fixed ip was updated at the last time.
NetworkId string
ID of the desired network. Should be used together with subnet_id.
PortId string
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
ProjectId float64
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
ProjectName string
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
RegionId float64
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
RegionName string
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
ReservedfixedipId string
The ID of this resource.
Status string
Underlying port status
SubnetId string
ID of the desired subnet. Can be used together with network_id.
SubnetV6Id string
ID of the IPv6 subnet.
Type string
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
allowedAddressPairs List<ReservedfixedipAllowedAddressPair>
Group of IP addresses that share the current IP as VIP
fixedIpAddress String
IP address of the port. Can be passed with type ip_address or retrieved after creation.
fixedIpv6Address String
IPv6 address of the port.
ipFamily String
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
isVip Boolean
Flag to indicate whether the port is a virtual IP address.
lastUpdated String
Datetime when reserved fixed ip was updated at the last time.
networkId String
ID of the desired network. Should be used together with subnet_id.
portId String
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
projectId Double
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
projectName String
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
regionId Double
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
regionName String
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
reservedfixedipId String
The ID of this resource.
status String
Underlying port status
subnetId String
ID of the desired subnet. Can be used together with network_id.
subnetV6Id String
ID of the IPv6 subnet.
type String
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
allowedAddressPairs ReservedfixedipAllowedAddressPair[]
Group of IP addresses that share the current IP as VIP
fixedIpAddress string
IP address of the port. Can be passed with type ip_address or retrieved after creation.
fixedIpv6Address string
IPv6 address of the port.
ipFamily string
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
isVip boolean
Flag to indicate whether the port is a virtual IP address.
lastUpdated string
Datetime when reserved fixed ip was updated at the last time.
networkId string
ID of the desired network. Should be used together with subnet_id.
portId string
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
projectId number
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
projectName string
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
regionId number
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
regionName string
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
reservedfixedipId string
The ID of this resource.
status string
Underlying port status
subnetId string
ID of the desired subnet. Can be used together with network_id.
subnetV6Id string
ID of the IPv6 subnet.
type string
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
allowed_address_pairs Sequence[ReservedfixedipAllowedAddressPairArgs]
Group of IP addresses that share the current IP as VIP
fixed_ip_address str
IP address of the port. Can be passed with type ip_address or retrieved after creation.
fixed_ipv6_address str
IPv6 address of the port.
ip_family str
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
is_vip bool
Flag to indicate whether the port is a virtual IP address.
last_updated str
Datetime when reserved fixed ip was updated at the last time.
network_id str
ID of the desired network. Should be used together with subnet_id.
port_id str
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
project_id float
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
project_name str
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
region_id float
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
region_name str
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
reservedfixedip_id str
The ID of this resource.
status str
Underlying port status
subnet_id str
ID of the desired subnet. Can be used together with network_id.
subnet_v6_id str
ID of the IPv6 subnet.
type str
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
allowedAddressPairs List<Property Map>
Group of IP addresses that share the current IP as VIP
fixedIpAddress String
IP address of the port. Can be passed with type ip_address or retrieved after creation.
fixedIpv6Address String
IPv6 address of the port.
ipFamily String
IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
isVip Boolean
Flag to indicate whether the port is a virtual IP address.
lastUpdated String
Datetime when reserved fixed ip was updated at the last time.
networkId String
ID of the desired network. Should be used together with subnet_id.
portId String
ID of the port underlying the reserved fixed IP. Can be passed with type port or retrieved after creation.
projectId Number
ID of the desired project to create reserved fixed ip in. Alternative for project_name. One of them should be specified.
projectName String
Name of the desired project to create reserved fixed ip in. Alternative for project_id. One of them should be specified.
regionId Number
ID of the desired region to create reserved fixed ip in. Alternative for region_name. One of them should be specified.
regionName String
Name of the desired region to create reserved fixed ip in. Alternative for region_id. One of them should be specified.
reservedfixedipId String
The ID of this resource.
status String
Underlying port status
subnetId String
ID of the desired subnet. Can be used together with network_id.
subnetV6Id String
ID of the IPv6 subnet.
type String
Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'

Supporting Types

ReservedfixedipAllowedAddressPair
, ReservedfixedipAllowedAddressPairArgs

IpAddress string
IPv4 or IPv6 address.
MacAddress string
MAC address.
IpAddress string
IPv4 or IPv6 address.
MacAddress string
MAC address.
ipAddress String
IPv4 or IPv6 address.
macAddress String
MAC address.
ipAddress string
IPv4 or IPv6 address.
macAddress string
MAC address.
ip_address str
IPv4 or IPv6 address.
mac_address str
MAC address.
ipAddress String
IPv4 or IPv6 address.
macAddress String
MAC address.

Import

import using <project_id>:<region_id>:<reservedfixedip_id> format

$ pulumi import gcore:index/reservedfixedip:Reservedfixedip reservedfixedip1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
gcore g-core/terraform-provider-gcore
License
Notes
This Pulumi package is based on the gcore Terraform Provider.