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",
});
import pulumi
import pulumi_gcore as gcore
project = gcore.get_project(name="Default")
region = gcore.get_region(name="Luxembourg Preprod")
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
})
}
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",
});
});
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());
}
}
variables:
project:
fn::invoke:
function: gcore:getProject
arguments:
name: Default
region:
fn::invoke:
function: gcore:getRegion
arguments:
name: Luxembourg Preprod
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,
});
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)
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
})
}
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,
});
});
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());
}
}
resources:
fixedIpExternal:
type: gcore:Reservedfixedip
properties:
projectId: ${data.gcore_project.project.id}
regionId: ${data.gcore_region.region.id}
type: external
isVip: false
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`,
}));
}
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"))
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
})
}
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",
}));
}
});
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());
}
}
}
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: {}
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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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,
});
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)
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
})
}
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,
});
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args ReservedfixedipArgs
- 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 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 string
- The unique name of the resource.
- args ReservedfixedipArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReservedfixedipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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 string
- Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
- Allowed
Address List<ReservedfixedipPairs Allowed Address Pair> - Group of IP addresses that share the current IP as VIP
- Fixed
Ip stringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - Ip
Family string - 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 string - ID of the desired network. Should be used together with
subnet_id
. - Port
Id string - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - Project
Id double - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - Project
Name string - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - Region
Id double - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - Region
Name string - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - Reservedfixedip
Id string - The ID of this resource.
- Subnet
Id string - ID of the desired subnet. Can be used together with
network_id
.
- Type string
- Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
- Allowed
Address []ReservedfixedipPairs Allowed Address Pair Args - Group of IP addresses that share the current IP as VIP
- Fixed
Ip stringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - Ip
Family string - 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 string - ID of the desired network. Should be used together with
subnet_id
. - Port
Id string - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - Project
Id float64 - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - Project
Name string - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - Region
Id float64 - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - Region
Name string - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - Reservedfixedip
Id string - The ID of this resource.
- Subnet
Id string - ID of the desired subnet. Can be used together with
network_id
.
- type String
- Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
- allowed
Address List<ReservedfixedipPairs Allowed Address Pair> - Group of IP addresses that share the current IP as VIP
- fixed
Ip StringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - ip
Family String - IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
- is
Vip Boolean - Flag to indicate whether the port is a virtual IP address.
- network
Id String - ID of the desired network. Should be used together with
subnet_id
. - port
Id String - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - project
Id Double - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - project
Name String - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - region
Id Double - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - region
Name String - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - reservedfixedip
Id String - The ID of this resource.
- subnet
Id String - ID of the desired subnet. Can be used together with
network_id
.
- type string
- Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
- allowed
Address ReservedfixedipPairs Allowed Address Pair[] - Group of IP addresses that share the current IP as VIP
- fixed
Ip stringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - ip
Family string - IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
- is
Vip boolean - Flag to indicate whether the port is a virtual IP address.
- network
Id string - ID of the desired network. Should be used together with
subnet_id
. - port
Id string - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - project
Id number - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - project
Name string - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - region
Id number - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - region
Name string - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - reservedfixedip
Id string - The ID of this resource.
- subnet
Id string - ID of the desired subnet. Can be used together with
network_id
.
- type str
- Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
- allowed_
address_ Sequence[Reservedfixedippairs Allowed Address Pair Args] - Group of IP addresses that share the current IP as VIP
- fixed_
ip_ straddress - 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 String
- Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
- allowed
Address List<Property Map>Pairs - Group of IP addresses that share the current IP as VIP
- fixed
Ip StringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - ip
Family String - IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
- is
Vip Boolean - Flag to indicate whether the port is a virtual IP address.
- network
Id String - ID of the desired network. Should be used together with
subnet_id
. - port
Id String - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - project
Id Number - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - project
Name String - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - region
Id Number - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - region
Name String - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - reservedfixedip
Id String - The ID of this resource.
- subnet
Id 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:
- Fixed
Ipv6Address string - IPv6 address of the port.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Datetime when reserved fixed ip was updated at the last time.
- Status string
- Underlying port status
- Subnet
V6Id string - ID of the IPv6 subnet.
- Fixed
Ipv6Address string - IPv6 address of the port.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Datetime when reserved fixed ip was updated at the last time.
- Status string
- Underlying port status
- Subnet
V6Id string - ID of the IPv6 subnet.
- fixed
Ipv6Address String - IPv6 address of the port.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Datetime when reserved fixed ip was updated at the last time.
- status String
- Underlying port status
- subnet
V6Id String - ID of the IPv6 subnet.
- fixed
Ipv6Address string - IPv6 address of the port.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - Datetime when reserved fixed ip was updated at the last time.
- status string
- Underlying port status
- subnet
V6Id string - ID of the IPv6 subnet.
- fixed_
ipv6_ straddress - 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_ strid - ID of the IPv6 subnet.
- fixed
Ipv6Address String - IPv6 address of the port.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Datetime when reserved fixed ip was updated at the last time.
- status String
- Underlying port status
- subnet
V6Id 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
- 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.
- Allowed
Address List<ReservedfixedipPairs Allowed Address Pair> - Group of IP addresses that share the current IP as VIP
- Fixed
Ip stringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - Fixed
Ipv6Address string - IPv6 address of the port.
- Ip
Family string - 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 string - Datetime when reserved fixed ip was updated at the last time.
- Network
Id string - ID of the desired network. Should be used together with
subnet_id
. - Port
Id string - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - Project
Id double - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - Project
Name string - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - Region
Id double - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - Region
Name string - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - Reservedfixedip
Id string - The ID of this resource.
- Status string
- Underlying port status
- Subnet
Id string - ID of the desired subnet. Can be used together with
network_id
. - Subnet
V6Id 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 []ReservedfixedipPairs Allowed Address Pair Args - Group of IP addresses that share the current IP as VIP
- Fixed
Ip stringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - Fixed
Ipv6Address string - IPv6 address of the port.
- Ip
Family string - 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 string - Datetime when reserved fixed ip was updated at the last time.
- Network
Id string - ID of the desired network. Should be used together with
subnet_id
. - Port
Id string - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - Project
Id float64 - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - Project
Name string - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - Region
Id float64 - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - Region
Name string - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - Reservedfixedip
Id string - The ID of this resource.
- Status string
- Underlying port status
- Subnet
Id string - ID of the desired subnet. Can be used together with
network_id
. - Subnet
V6Id 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 List<ReservedfixedipPairs Allowed Address Pair> - Group of IP addresses that share the current IP as VIP
- fixed
Ip StringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - fixed
Ipv6Address String - IPv6 address of the port.
- ip
Family String - IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
- is
Vip Boolean - Flag to indicate whether the port is a virtual IP address.
- last
Updated String - Datetime when reserved fixed ip was updated at the last time.
- network
Id String - ID of the desired network. Should be used together with
subnet_id
. - port
Id String - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - project
Id Double - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - project
Name String - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - region
Id Double - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - region
Name String - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - reservedfixedip
Id String - The ID of this resource.
- status String
- Underlying port status
- subnet
Id String - ID of the desired subnet. Can be used together with
network_id
. - subnet
V6Id 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 ReservedfixedipPairs Allowed Address Pair[] - Group of IP addresses that share the current IP as VIP
- fixed
Ip stringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - fixed
Ipv6Address string - IPv6 address of the port.
- ip
Family string - IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
- is
Vip boolean - Flag to indicate whether the port is a virtual IP address.
- last
Updated string - Datetime when reserved fixed ip was updated at the last time.
- network
Id string - ID of the desired network. Should be used together with
subnet_id
. - port
Id string - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - project
Id number - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - project
Name string - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - region
Id number - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - region
Name string - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - reservedfixedip
Id string - The ID of this resource.
- status string
- Underlying port status
- subnet
Id string - ID of the desired subnet. Can be used together with
network_id
. - subnet
V6Id 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_ Sequence[Reservedfixedippairs Allowed Address Pair Args] - Group of IP addresses that share the current IP as VIP
- fixed_
ip_ straddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - fixed_
ipv6_ straddress - 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_ strid - ID of the IPv6 subnet.
- type str
- Type of the reserved fixed ip for create. Available values are 'external', 'subnet', 'anysubnet', 'ipaddress', 'port'
- allowed
Address List<Property Map>Pairs - Group of IP addresses that share the current IP as VIP
- fixed
Ip StringAddress - IP address of the port. Can be passed with type
ip_address
or retrieved after creation. - fixed
Ipv6Address String - IPv6 address of the port.
- ip
Family String - IP family of the reserved fixed ip to create. Available values are 'ipv4', 'ipv6', 'dual'
- is
Vip Boolean - Flag to indicate whether the port is a virtual IP address.
- last
Updated String - Datetime when reserved fixed ip was updated at the last time.
- network
Id String - ID of the desired network. Should be used together with
subnet_id
. - port
Id String - ID of the port underlying the reserved fixed IP. Can be passed with type
port
or retrieved after creation. - project
Id Number - ID of the desired project to create reserved fixed ip in. Alternative for
project_name
. One of them should be specified. - project
Name String - Name of the desired project to create reserved fixed ip in. Alternative for
project_id
. One of them should be specified. - region
Id Number - ID of the desired region to create reserved fixed ip in. Alternative for
region_name
. One of them should be specified. - region
Name String - Name of the desired region to create reserved fixed ip in. Alternative for
region_id
. One of them should be specified. - reservedfixedip
Id String - The ID of this resource.
- status String
- Underlying port status
- subnet
Id String - ID of the desired subnet. Can be used together with
network_id
. - subnet
V6Id 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
- Ip
Address string - IPv4 or IPv6 address.
- Mac
Address string - MAC address.
- Ip
Address string - IPv4 or IPv6 address.
- Mac
Address string - MAC address.
- ip
Address String - IPv4 or IPv6 address.
- mac
Address String - MAC address.
- ip
Address string - IPv4 or IPv6 address.
- mac
Address string - MAC address.
- ip_
address str - IPv4 or IPv6 address.
- mac_
address str - MAC address.
- ip
Address String - IPv4 or IPv6 address.
- mac
Address 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
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.