1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getReservedfixedip
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.getReservedfixedip

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent reserved ips

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const pr = edgecenter.getProject({
        name: "test",
    });
    const rg = edgecenter.getRegion({
        name: "ED-10 Preprod",
    });
    const ip = Promise.all([rg, pr]).then(([rg, pr]) => edgecenter.getReservedfixedip({
        fixedIpAddress: "192.168.0.66",
        regionId: rg.id,
        projectId: pr.id,
    }));
    export const view = ip;
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    pr = edgecenter.get_project(name="test")
    rg = edgecenter.get_region(name="ED-10 Preprod")
    ip = edgecenter.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/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		pr, err := edgecenter.LookupProject(ctx, &edgecenter.LookupProjectArgs{
    			Name: pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		rg, err := edgecenter.GetRegion(ctx, &edgecenter.GetRegionArgs{
    			Name: "ED-10 Preprod",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ip, err := edgecenter.LookupReservedfixedip(ctx, &edgecenter.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 Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var pr = Edgecenter.GetProject.Invoke(new()
        {
            Name = "test",
        });
    
        var rg = Edgecenter.GetRegion.Invoke(new()
        {
            Name = "ED-10 Preprod",
        });
    
        var ip = Edgecenter.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.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetProjectArgs;
    import com.pulumi.edgecenter.inputs.GetRegionArgs;
    import com.pulumi.edgecenter.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 = EdgecenterFunctions.getProject(GetProjectArgs.builder()
                .name("test")
                .build());
    
            final var rg = EdgecenterFunctions.getRegion(GetRegionArgs.builder()
                .name("ED-10 Preprod")
                .build());
    
            final var ip = EdgecenterFunctions.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: edgecenter:getProject
          arguments:
            name: test
      rg:
        fn::invoke:
          function: edgecenter:getRegion
          arguments:
            name: ED-10 Preprod
      ip:
        fn::invoke:
          function: edgecenter: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: edgecenter:index/getReservedfixedip:getReservedfixedip
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FixedIpAddress string
    The IP address that is associated with the reserved IP.
    Id string
    The ID of this resource.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    FixedIpAddress string
    The IP address that is associated with the reserved IP.
    Id string
    The ID of this resource.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    fixedIpAddress String
    The IP address that is associated with the reserved IP.
    id String
    The ID of this resource.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    fixedIpAddress string
    The IP address that is associated with the reserved IP.
    id string
    The ID of this resource.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    fixed_ip_address str
    The IP address that is associated with the reserved IP.
    id str
    The ID of this resource.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    fixedIpAddress String
    The IP address that is associated with the reserved IP.
    id String
    The ID of this resource.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    getReservedfixedip Result

    The following output properties are available:

    AllowedAddressPairs List<GetReservedfixedipAllowedAddressPair>
    Group of IP addresses that share the current IP as VIP.
    FixedIpAddress string
    The IP address that is associated with the reserved IP.
    Id string
    The ID of this resource.
    InstancePortsThatShareVips List<string>
    instance ports that share a VIP
    IsVip bool
    Flag to determine if the reserved fixed IP should be treated as a Virtual IP (VIP).
    NetworkId string
    ID of the network to which the reserved fixed IP is associated.
    PortId string
    ID of the port_id underlying the reserved fixed IP
    Reservation Dictionary<string, string>
    The status of the reserved fixed IP with the type of the resource and the ID it is attached to
    Status string
    The current status of the reserved fixed IP.
    SubnetId string
    ID of the subnet from which the fixed IP should be reserved.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    AllowedAddressPairs []GetReservedfixedipAllowedAddressPair
    Group of IP addresses that share the current IP as VIP.
    FixedIpAddress string
    The IP address that is associated with the reserved IP.
    Id string
    The ID of this resource.
    InstancePortsThatShareVips []string
    instance ports that share a VIP
    IsVip bool
    Flag to determine if the reserved fixed IP should be treated as a Virtual IP (VIP).
    NetworkId string
    ID of the network to which the reserved fixed IP is associated.
    PortId string
    ID of the port_id underlying the reserved fixed IP
    Reservation map[string]string
    The status of the reserved fixed IP with the type of the resource and the ID it is attached to
    Status string
    The current status of the reserved fixed IP.
    SubnetId string
    ID of the subnet from which the fixed IP should be reserved.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    allowedAddressPairs List<GetReservedfixedipAllowedAddressPair>
    Group of IP addresses that share the current IP as VIP.
    fixedIpAddress String
    The IP address that is associated with the reserved IP.
    id String
    The ID of this resource.
    instancePortsThatShareVips List<String>
    instance ports that share a VIP
    isVip Boolean
    Flag to determine if the reserved fixed IP should be treated as a Virtual IP (VIP).
    networkId String
    ID of the network to which the reserved fixed IP is associated.
    portId String
    ID of the port_id underlying the reserved fixed IP
    reservation Map<String,String>
    The status of the reserved fixed IP with the type of the resource and the ID it is attached to
    status String
    The current status of the reserved fixed IP.
    subnetId String
    ID of the subnet from which the fixed IP should be reserved.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    allowedAddressPairs GetReservedfixedipAllowedAddressPair[]
    Group of IP addresses that share the current IP as VIP.
    fixedIpAddress string
    The IP address that is associated with the reserved IP.
    id string
    The ID of this resource.
    instancePortsThatShareVips string[]
    instance ports that share a VIP
    isVip boolean
    Flag to determine if the reserved fixed IP should be treated as a Virtual IP (VIP).
    networkId string
    ID of the network to which the reserved fixed IP is associated.
    portId string
    ID of the port_id underlying the reserved fixed IP
    reservation {[key: string]: string}
    The status of the reserved fixed IP with the type of the resource and the ID it is attached to
    status string
    The current status of the reserved fixed IP.
    subnetId string
    ID of the subnet from which the fixed IP should be reserved.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    allowed_address_pairs Sequence[GetReservedfixedipAllowedAddressPair]
    Group of IP addresses that share the current IP as VIP.
    fixed_ip_address str
    The IP address that is associated with the reserved IP.
    id str
    The ID of this resource.
    instance_ports_that_share_vips Sequence[str]
    instance ports that share a VIP
    is_vip bool
    Flag to determine if the reserved fixed IP should be treated as a Virtual IP (VIP).
    network_id str
    ID of the network to which the reserved fixed IP is associated.
    port_id str
    ID of the port_id underlying the reserved fixed IP
    reservation Mapping[str, str]
    The status of the reserved fixed IP with the type of the resource and the ID it is attached to
    status str
    The current status of the reserved fixed IP.
    subnet_id str
    ID of the subnet from which the fixed IP should be reserved.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    allowedAddressPairs List<Property Map>
    Group of IP addresses that share the current IP as VIP.
    fixedIpAddress String
    The IP address that is associated with the reserved IP.
    id String
    The ID of this resource.
    instancePortsThatShareVips List<String>
    instance ports that share a VIP
    isVip Boolean
    Flag to determine if the reserved fixed IP should be treated as a Virtual IP (VIP).
    networkId String
    ID of the network to which the reserved fixed IP is associated.
    portId String
    ID of the port_id underlying the reserved fixed IP
    reservation Map<String>
    The status of the reserved fixed IP with the type of the resource and the ID it is attached to
    status String
    The current status of the reserved fixed IP.
    subnetId String
    ID of the subnet from which the fixed IP should be reserved.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    Supporting Types

    GetReservedfixedipAllowedAddressPair

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

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center