1. Packages
  2. Gcorelabs Provider
  3. API Docs
  4. Reservedfixedip
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

gcorelabs.Reservedfixedip

Explore with Pulumi AI

Represent reserved ips

Example Usage

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

const fixedIp = new gcore.index.Gcore_reservedfixedip("fixedIp", {
    projectId: 1,
    regionId: 1,
    type: "external",
    isVip: false,
});
Copy
import pulumi
import pulumi_gcore as gcore

fixed_ip = gcore.index.Gcore_reservedfixedip("fixedIp",
    project_id=1,
    region_id=1,
    type=external,
    is_vip=False)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gcore.NewGcore_reservedfixedip(ctx, "fixedIp", &gcore.Gcore_reservedfixedipArgs{
			ProjectId: 1,
			RegionId:  1,
			Type:      "external",
			IsVip:     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 fixedIp = new Gcore.Index.Gcore_reservedfixedip("fixedIp", new()
    {
        ProjectId = 1,
        RegionId = 1,
        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.gcore_reservedfixedip;
import com.pulumi.gcore.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 fixedIp = new Gcore_reservedfixedip("fixedIp", Gcore_reservedfixedipArgs.builder()
            .projectId(1)
            .regionId(1)
            .type("external")
            .isVip(false)
            .build());

    }
}
Copy
resources:
  fixedIp:
    type: gcore:gcore_reservedfixedip
    properties:
      projectId: 1
      regionId: 1
      type: external
      isVip: false
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,
                    is_vip: Optional[bool] = None,
                    type: Optional[str] = None,
                    allowed_address_pairs: Optional[Sequence[ReservedfixedipAllowedAddressPairArgs]] = None,
                    fixed_ip_address: Optional[str] = None,
                    last_updated: Optional[str] = None,
                    network_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,
                    subnet_id: 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: gcorelabs: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 Gcorelabs.Reservedfixedip("reservedfixedipResource", new()
{
    IsVip = false,
    Type = "string",
    AllowedAddressPairs = new[]
    {
        new Gcorelabs.Inputs.ReservedfixedipAllowedAddressPairArgs
        {
            IpAddress = "string",
            MacAddress = "string",
        },
    },
    FixedIpAddress = "string",
    LastUpdated = "string",
    NetworkId = "string",
    ProjectId = 0,
    ProjectName = "string",
    RegionId = 0,
    RegionName = "string",
    ReservedfixedipId = "string",
    SubnetId = "string",
});
Copy
example, err := gcorelabs.NewReservedfixedip(ctx, "reservedfixedipResource", &gcorelabs.ReservedfixedipArgs{
IsVip: pulumi.Bool(false),
Type: pulumi.String("string"),
AllowedAddressPairs: .ReservedfixedipAllowedAddressPairArray{
&.ReservedfixedipAllowedAddressPairArgs{
IpAddress: pulumi.String("string"),
MacAddress: pulumi.String("string"),
},
},
FixedIpAddress: pulumi.String("string"),
LastUpdated: pulumi.String("string"),
NetworkId: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
ReservedfixedipId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
})
Copy
var reservedfixedipResource = new Reservedfixedip("reservedfixedipResource", ReservedfixedipArgs.builder()
    .isVip(false)
    .type("string")
    .allowedAddressPairs(ReservedfixedipAllowedAddressPairArgs.builder()
        .ipAddress("string")
        .macAddress("string")
        .build())
    .fixedIpAddress("string")
    .lastUpdated("string")
    .networkId("string")
    .projectId(0)
    .projectName("string")
    .regionId(0)
    .regionName("string")
    .reservedfixedipId("string")
    .subnetId("string")
    .build());
Copy
reservedfixedip_resource = gcorelabs.Reservedfixedip("reservedfixedipResource",
    is_vip=False,
    type="string",
    allowed_address_pairs=[{
        "ip_address": "string",
        "mac_address": "string",
    }],
    fixed_ip_address="string",
    last_updated="string",
    network_id="string",
    project_id=0,
    project_name="string",
    region_id=0,
    region_name="string",
    reservedfixedip_id="string",
    subnet_id="string")
Copy
const reservedfixedipResource = new gcorelabs.Reservedfixedip("reservedfixedipResource", {
    isVip: false,
    type: "string",
    allowedAddressPairs: [{
        ipAddress: "string",
        macAddress: "string",
    }],
    fixedIpAddress: "string",
    lastUpdated: "string",
    networkId: "string",
    projectId: 0,
    projectName: "string",
    regionId: 0,
    regionName: "string",
    reservedfixedipId: "string",
    subnetId: "string",
});
Copy
type: gcorelabs:Reservedfixedip
properties:
    allowedAddressPairs:
        - ipAddress: string
          macAddress: string
    fixedIpAddress: string
    isVip: false
    lastUpdated: string
    networkId: 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:

IsVip This property is required. bool
Type This property is required. string
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
AllowedAddressPairs List<ReservedfixedipAllowedAddressPair>
Group of IP addresses that share the current IP as VIP
FixedIpAddress string
LastUpdated string
NetworkId string
ProjectId double
ProjectName string
RegionId double
RegionName string
ReservedfixedipId string
The ID of this resource.
SubnetId string
IsVip This property is required. bool
Type This property is required. string
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
AllowedAddressPairs []ReservedfixedipAllowedAddressPairArgs
Group of IP addresses that share the current IP as VIP
FixedIpAddress string
LastUpdated string
NetworkId string
ProjectId float64
ProjectName string
RegionId float64
RegionName string
ReservedfixedipId string
The ID of this resource.
SubnetId string
isVip This property is required. Boolean
type This property is required. String
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
allowedAddressPairs List<ReservedfixedipAllowedAddressPair>
Group of IP addresses that share the current IP as VIP
fixedIpAddress String
lastUpdated String
networkId String
projectId Double
projectName String
regionId Double
regionName String
reservedfixedipId String
The ID of this resource.
subnetId String
isVip This property is required. boolean
type This property is required. string
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
allowedAddressPairs ReservedfixedipAllowedAddressPair[]
Group of IP addresses that share the current IP as VIP
fixedIpAddress string
lastUpdated string
networkId string
projectId number
projectName string
regionId number
regionName string
reservedfixedipId string
The ID of this resource.
subnetId string
is_vip This property is required. bool
type This property is required. str
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
allowed_address_pairs Sequence[ReservedfixedipAllowedAddressPairArgs]
Group of IP addresses that share the current IP as VIP
fixed_ip_address str
last_updated str
network_id str
project_id float
project_name str
region_id float
region_name str
reservedfixedip_id str
The ID of this resource.
subnet_id str
isVip This property is required. Boolean
type This property is required. String
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
allowedAddressPairs List<Property Map>
Group of IP addresses that share the current IP as VIP
fixedIpAddress String
lastUpdated String
networkId String
projectId Number
projectName String
regionId Number
regionName String
reservedfixedipId String
The ID of this resource.
subnetId String

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
PortId string
ID of the port_id underlying the reserved fixed IP
Status string
Id string
The provider-assigned unique ID for this managed resource.
PortId string
ID of the port_id underlying the reserved fixed IP
Status string
id String
The provider-assigned unique ID for this managed resource.
portId String
ID of the port_id underlying the reserved fixed IP
status String
id string
The provider-assigned unique ID for this managed resource.
portId string
ID of the port_id underlying the reserved fixed IP
status string
id str
The provider-assigned unique ID for this managed resource.
port_id str
ID of the port_id underlying the reserved fixed IP
status str
id String
The provider-assigned unique ID for this managed resource.
portId String
ID of the port_id underlying the reserved fixed IP
status String

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,
        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,
        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: gcorelabs: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
IsVip bool
LastUpdated string
NetworkId string
PortId string
ID of the port_id underlying the reserved fixed IP
ProjectId double
ProjectName string
RegionId double
RegionName string
ReservedfixedipId string
The ID of this resource.
Status string
SubnetId string
Type string
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
AllowedAddressPairs []ReservedfixedipAllowedAddressPairArgs
Group of IP addresses that share the current IP as VIP
FixedIpAddress string
IsVip bool
LastUpdated string
NetworkId string
PortId string
ID of the port_id underlying the reserved fixed IP
ProjectId float64
ProjectName string
RegionId float64
RegionName string
ReservedfixedipId string
The ID of this resource.
Status string
SubnetId string
Type string
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
allowedAddressPairs List<ReservedfixedipAllowedAddressPair>
Group of IP addresses that share the current IP as VIP
fixedIpAddress String
isVip Boolean
lastUpdated String
networkId String
portId String
ID of the port_id underlying the reserved fixed IP
projectId Double
projectName String
regionId Double
regionName String
reservedfixedipId String
The ID of this resource.
status String
subnetId String
type String
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
allowedAddressPairs ReservedfixedipAllowedAddressPair[]
Group of IP addresses that share the current IP as VIP
fixedIpAddress string
isVip boolean
lastUpdated string
networkId string
portId string
ID of the port_id underlying the reserved fixed IP
projectId number
projectName string
regionId number
regionName string
reservedfixedipId string
The ID of this resource.
status string
subnetId string
type string
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
allowed_address_pairs Sequence[ReservedfixedipAllowedAddressPairArgs]
Group of IP addresses that share the current IP as VIP
fixed_ip_address str
is_vip bool
last_updated str
network_id str
port_id str
ID of the port_id underlying the reserved fixed IP
project_id float
project_name str
region_id float
region_name str
reservedfixedip_id str
The ID of this resource.
status str
subnet_id str
type str
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
allowedAddressPairs List<Property Map>
Group of IP addresses that share the current IP as VIP
fixedIpAddress String
isVip Boolean
lastUpdated String
networkId String
portId String
ID of the port_id underlying the reserved fixed IP
projectId Number
projectName String
regionId Number
regionName String
reservedfixedipId String
The ID of this resource.
status String
subnetId String
type String
Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'

Supporting Types

ReservedfixedipAllowedAddressPair
, ReservedfixedipAllowedAddressPairArgs

IpAddress string
MacAddress string
IpAddress string
MacAddress string
ipAddress String
macAddress String
ipAddress string
macAddress string
ipAddress String
macAddress String

Import

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

$ pulumi import gcorelabs: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
gcorelabs g-core/terraform-provider-gcorelabs
License
Notes
This Pulumi package is based on the gcorelabs Terraform Provider.