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,
});
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)
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
})
}
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,
});
});
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());
}
}
resources:
fixedIp:
type: gcore:gcore_reservedfixedip
properties:
projectId: 1
regionId: 1
type: external
isVip: false
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 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 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",
});
example, err := gcorelabs.NewReservedfixedip(ctx, "reservedfixedipResource", &gcorelabs.ReservedfixedipArgs{
IsVip: pulumi.Bool(false),
Type: pulumi.String("string"),
AllowedAddressPairs: gcorelabs.ReservedfixedipAllowedAddressPairArray{
&gcorelabs.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"),
})
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());
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")
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",
});
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
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:
- Is
Vip bool - Type string
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- Allowed
Address List<ReservedfixedipPairs Allowed Address Pair> - Group of IP addresses that share the current IP as VIP
- Fixed
Ip stringAddress - Last
Updated string - Network
Id string - Project
Id double - Project
Name string - Region
Id double - Region
Name string - Reservedfixedip
Id string - The ID of this resource.
- Subnet
Id string
- Is
Vip bool - Type string
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- Allowed
Address []ReservedfixedipPairs Allowed Address Pair Args - Group of IP addresses that share the current IP as VIP
- Fixed
Ip stringAddress - Last
Updated string - Network
Id string - Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Reservedfixedip
Id string - The ID of this resource.
- Subnet
Id string
- is
Vip Boolean - type String
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- allowed
Address List<ReservedfixedipPairs Allowed Address Pair> - Group of IP addresses that share the current IP as VIP
- fixed
Ip StringAddress - last
Updated String - network
Id String - project
Id Double - project
Name String - region
Id Double - region
Name String - reservedfixedip
Id String - The ID of this resource.
- subnet
Id String
- is
Vip boolean - type string
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- allowed
Address ReservedfixedipPairs Allowed Address Pair[] - Group of IP addresses that share the current IP as VIP
- fixed
Ip stringAddress - last
Updated string - network
Id string - project
Id number - project
Name string - region
Id number - region
Name string - reservedfixedip
Id string - The ID of this resource.
- subnet
Id string
- is_
vip bool - type str
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- allowed_
address_ Sequence[Reservedfixedippairs Allowed Address Pair Args] - Group of IP addresses that share the current IP as VIP
- fixed_
ip_ straddress - 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
- is
Vip Boolean - type String
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- allowed
Address List<Property Map>Pairs - Group of IP addresses that share the current IP as VIP
- fixed
Ip StringAddress - last
Updated String - network
Id String - project
Id Number - project
Name String - region
Id Number - region
Name String - reservedfixedip
Id String - The ID of this resource.
- subnet
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the Reservedfixedip resource produces the following output properties:
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
- 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 - Is
Vip bool - Last
Updated string - Network
Id string - Port
Id string - ID of the port_id underlying the reserved fixed IP
- Project
Id double - Project
Name string - Region
Id double - Region
Name string - Reservedfixedip
Id string - The ID of this resource.
- Status string
- Subnet
Id string - Type string
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- Allowed
Address []ReservedfixedipPairs Allowed Address Pair Args - Group of IP addresses that share the current IP as VIP
- Fixed
Ip stringAddress - Is
Vip bool - Last
Updated string - Network
Id string - Port
Id string - ID of the port_id underlying the reserved fixed IP
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Reservedfixedip
Id string - The ID of this resource.
- Status string
- Subnet
Id string - Type string
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- allowed
Address List<ReservedfixedipPairs Allowed Address Pair> - Group of IP addresses that share the current IP as VIP
- fixed
Ip StringAddress - is
Vip Boolean - last
Updated String - network
Id String - port
Id String - ID of the port_id underlying the reserved fixed IP
- project
Id Double - project
Name String - region
Id Double - region
Name String - reservedfixedip
Id String - The ID of this resource.
- status String
- subnet
Id String - type String
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- allowed
Address ReservedfixedipPairs Allowed Address Pair[] - Group of IP addresses that share the current IP as VIP
- fixed
Ip stringAddress - is
Vip boolean - last
Updated string - network
Id string - port
Id string - ID of the port_id underlying the reserved fixed IP
- project
Id number - project
Name string - region
Id number - region
Name string - reservedfixedip
Id string - The ID of this resource.
- status string
- subnet
Id string - type string
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
- allowed_
address_ Sequence[Reservedfixedippairs Allowed Address Pair Args] - Group of IP addresses that share the current IP as VIP
- fixed_
ip_ straddress - 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'
- allowed
Address List<Property Map>Pairs - Group of IP addresses that share the current IP as VIP
- fixed
Ip StringAddress - is
Vip Boolean - last
Updated String - network
Id String - port
Id String - ID of the port_id underlying the reserved fixed IP
- project
Id Number - project
Name String - region
Id Number - region
Name String - reservedfixedip
Id String - The ID of this resource.
- status String
- subnet
Id String - type String
- Available values is 'external', 'subnet', 'anysubnet', 'ipaddress'
Supporting Types
ReservedfixedipAllowedAddressPair, ReservedfixedipAllowedAddressPairArgs
- Ip
Address string - Mac
Address string
- Ip
Address string - Mac
Address string
- ip
Address String - mac
Address String
- ip
Address string - mac
Address string
- ip_
address str - mac_
address str
- ip
Address String - mac
Address 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
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.