gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core
gcore.getReservedfixedip
Explore with Pulumi AI
Represent reserved ips
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const pr = gcore.getProject({
name: "test",
});
const rg = gcore.getRegion({
name: "ED-10 Preprod",
});
const ip = Promise.all([rg, pr]).then(([rg, pr]) => gcore.getReservedfixedip({
fixedIpAddress: "192.168.0.66",
regionId: rg.id,
projectId: pr.id,
}));
export const view = ip;
import pulumi
import pulumi_gcore as gcore
pr = gcore.get_project(name="test")
rg = gcore.get_region(name="ED-10 Preprod")
ip = gcore.get_reservedfixedip(fixed_ip_address="192.168.0.66",
region_id=rg.id,
project_id=pr.id)
pulumi.export("view", ip)
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 {
pr, err := gcore.GetProject(ctx, &gcore.GetProjectArgs{
Name: "test",
}, nil)
if err != nil {
return err
}
rg, err := gcore.GetRegion(ctx, &gcore.GetRegionArgs{
Name: "ED-10 Preprod",
}, nil)
if err != nil {
return err
}
ip, err := gcore.LookupReservedfixedip(ctx, &gcore.LookupReservedfixedipArgs{
FixedIpAddress: "192.168.0.66",
RegionId: pulumi.Float64Ref(rg.Id),
ProjectId: pulumi.Float64Ref(pr.Id),
}, nil)
if err != nil {
return err
}
ctx.Export("view", ip)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var pr = Gcore.GetProject.Invoke(new()
{
Name = "test",
});
var rg = Gcore.GetRegion.Invoke(new()
{
Name = "ED-10 Preprod",
});
var ip = Gcore.GetReservedfixedip.Invoke(new()
{
FixedIpAddress = "192.168.0.66",
RegionId = rg.Apply(getRegionResult => getRegionResult.Id),
ProjectId = pr.Apply(getProjectResult => getProjectResult.Id),
});
return new Dictionary<string, object?>
{
["view"] = ip,
};
});
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 com.pulumi.gcore.inputs.GetReservedfixedipArgs;
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 pr = GcoreFunctions.getProject(GetProjectArgs.builder()
.name("test")
.build());
final var rg = GcoreFunctions.getRegion(GetRegionArgs.builder()
.name("ED-10 Preprod")
.build());
final var ip = GcoreFunctions.getReservedfixedip(GetReservedfixedipArgs.builder()
.fixedIpAddress("192.168.0.66")
.regionId(rg.applyValue(getRegionResult -> getRegionResult.id()))
.projectId(pr.applyValue(getProjectResult -> getProjectResult.id()))
.build());
ctx.export("view", ip.applyValue(getReservedfixedipResult -> getReservedfixedipResult));
}
}
variables:
pr:
fn::invoke:
function: gcore:getProject
arguments:
name: test
rg:
fn::invoke:
function: gcore:getRegion
arguments:
name: ED-10 Preprod
ip:
fn::invoke:
function: gcore:getReservedfixedip
arguments:
fixedIpAddress: 192.168.0.66
regionId: ${rg.id}
projectId: ${pr.id}
outputs:
view: ${ip}
Using getReservedfixedip
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReservedfixedip(args: GetReservedfixedipArgs, opts?: InvokeOptions): Promise<GetReservedfixedipResult>
function getReservedfixedipOutput(args: GetReservedfixedipOutputArgs, opts?: InvokeOptions): Output<GetReservedfixedipResult>
def get_reservedfixedip(fixed_ip_address: Optional[str] = None,
id: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReservedfixedipResult
def get_reservedfixedip_output(fixed_ip_address: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
project_name: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[float]] = None,
region_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReservedfixedipResult]
func LookupReservedfixedip(ctx *Context, args *LookupReservedfixedipArgs, opts ...InvokeOption) (*LookupReservedfixedipResult, error)
func LookupReservedfixedipOutput(ctx *Context, args *LookupReservedfixedipOutputArgs, opts ...InvokeOption) LookupReservedfixedipResultOutput
> Note: This function is named LookupReservedfixedip
in the Go SDK.
public static class GetReservedfixedip
{
public static Task<GetReservedfixedipResult> InvokeAsync(GetReservedfixedipArgs args, InvokeOptions? opts = null)
public static Output<GetReservedfixedipResult> Invoke(GetReservedfixedipInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReservedfixedipResult> getReservedfixedip(GetReservedfixedipArgs args, InvokeOptions options)
public static Output<GetReservedfixedipResult> getReservedfixedip(GetReservedfixedipArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getReservedfixedip:getReservedfixedip
arguments:
# arguments dictionary
The following arguments are supported:
- Fixed
Ip stringAddress - Id string
- The ID of this resource.
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Fixed
Ip stringAddress - Id string
- The ID of this resource.
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- fixed
Ip StringAddress - id String
- The ID of this resource.
- project
Id Double - project
Name String - region
Id Double - region
Name String
- fixed
Ip stringAddress - id string
- The ID of this resource.
- project
Id number - project
Name string - region
Id number - region
Name string
- fixed_
ip_ straddress - id str
- The ID of this resource.
- project_
id float - project_
name str - region_
id float - region_
name str
- fixed
Ip StringAddress - id String
- The ID of this resource.
- project
Id Number - project
Name String - region
Id Number - region
Name String
getReservedfixedip Result
The following output properties are available:
- Allowed
Address List<GetPairs Reservedfixedip Allowed Address Pair> - Fixed
Ip stringAddress - Fixed
Ipv6Address string - Id string
- The ID of this resource.
- Is
Vip bool - Network
Id string - Port
Id string - ID of the port_id underlying the reserved fixed IP
- Status string
- Subnet
Id string - Subnet
V6Id string - Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Allowed
Address []GetPairs Reservedfixedip Allowed Address Pair - Fixed
Ip stringAddress - Fixed
Ipv6Address string - Id string
- The ID of this resource.
- Is
Vip bool - Network
Id string - Port
Id string - ID of the port_id underlying the reserved fixed IP
- Status string
- Subnet
Id string - Subnet
V6Id string - Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- allowed
Address List<GetPairs Reservedfixedip Allowed Address Pair> - fixed
Ip StringAddress - fixed
Ipv6Address String - id String
- The ID of this resource.
- is
Vip Boolean - network
Id String - port
Id String - ID of the port_id underlying the reserved fixed IP
- status String
- subnet
Id String - subnet
V6Id String - project
Id Double - project
Name String - region
Id Double - region
Name String
- allowed
Address GetPairs Reservedfixedip Allowed Address Pair[] - fixed
Ip stringAddress - fixed
Ipv6Address string - id string
- The ID of this resource.
- is
Vip boolean - network
Id string - port
Id string - ID of the port_id underlying the reserved fixed IP
- status string
- subnet
Id string - subnet
V6Id string - project
Id number - project
Name string - region
Id number - region
Name string
- allowed_
address_ Sequence[Getpairs Reservedfixedip Allowed Address Pair] - fixed_
ip_ straddress - fixed_
ipv6_ straddress - id str
- The ID of this resource.
- is_
vip bool - network_
id str - port_
id str - ID of the port_id underlying the reserved fixed IP
- status str
- subnet_
id str - subnet_
v6_ strid - project_
id float - project_
name str - region_
id float - region_
name str
- allowed
Address List<Property Map>Pairs - fixed
Ip StringAddress - fixed
Ipv6Address String - id String
- The ID of this resource.
- is
Vip Boolean - network
Id String - port
Id String - ID of the port_id underlying the reserved fixed IP
- status String
- subnet
Id String - subnet
V6Id String - project
Id Number - project
Name String - region
Id Number - region
Name String
Supporting Types
GetReservedfixedipAllowedAddressPair
- 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
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.