1. Packages
  2. stackit
  3. API Docs
  4. getPublicIp
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    Public IP resource schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_public_ip" "example" {
      project_id   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      public_ip_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getPublicIp

    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 getPublicIp(args: GetPublicIpArgs, opts?: InvokeOptions): Promise<GetPublicIpResult>
    function getPublicIpOutput(args: GetPublicIpOutputArgs, opts?: InvokeOptions): Output<GetPublicIpResult>
    def get_public_ip(project_id: Optional[str] = None,
                      public_ip_id: Optional[str] = None,
                      region: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetPublicIpResult
    def get_public_ip_output(project_id: Optional[pulumi.Input[str]] = None,
                      public_ip_id: Optional[pulumi.Input[str]] = None,
                      region: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetPublicIpResult]
    func LookupPublicIp(ctx *Context, args *LookupPublicIpArgs, opts ...InvokeOption) (*LookupPublicIpResult, error)
    func LookupPublicIpOutput(ctx *Context, args *LookupPublicIpOutputArgs, opts ...InvokeOption) LookupPublicIpResultOutput

    > Note: This function is named LookupPublicIp in the Go SDK.

    public static class GetPublicIp 
    {
        public static Task<GetPublicIpResult> InvokeAsync(GetPublicIpArgs args, InvokeOptions? opts = null)
        public static Output<GetPublicIpResult> Invoke(GetPublicIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPublicIpResult> getPublicIp(GetPublicIpArgs args, InvokeOptions options)
    public static Output<GetPublicIpResult> getPublicIp(GetPublicIpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getPublicIp:getPublicIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    STACKIT project ID to which the public IP is associated.
    PublicIpId string
    The public IP ID.
    Region string
    The resource region. If not defined, the provider region is used.
    ProjectId string
    STACKIT project ID to which the public IP is associated.
    PublicIpId string
    The public IP ID.
    Region string
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the public IP is associated.
    publicIpId String
    The public IP ID.
    region String
    The resource region. If not defined, the provider region is used.
    projectId string
    STACKIT project ID to which the public IP is associated.
    publicIpId string
    The public IP ID.
    region string
    The resource region. If not defined, the provider region is used.
    project_id str
    STACKIT project ID to which the public IP is associated.
    public_ip_id str
    The public IP ID.
    region str
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the public IP is associated.
    publicIpId String
    The public IP ID.
    region String
    The resource region. If not defined, the provider region is used.

    getPublicIp Result

    The following output properties are available:

    Id string
    Ip string
    The IP address.
    Labels Dictionary<string, string>
    Labels are key-value string pairs which can be attached to a resource container
    NetworkInterfaceId string
    Associates the public IP with a network interface or a virtual IP (ID).
    ProjectId string
    STACKIT project ID to which the public IP is associated.
    PublicIpId string
    The public IP ID.
    Region string
    The resource region. If not defined, the provider region is used.
    Id string
    Ip string
    The IP address.
    Labels map[string]string
    Labels are key-value string pairs which can be attached to a resource container
    NetworkInterfaceId string
    Associates the public IP with a network interface or a virtual IP (ID).
    ProjectId string
    STACKIT project ID to which the public IP is associated.
    PublicIpId string
    The public IP ID.
    Region string
    The resource region. If not defined, the provider region is used.
    id String
    ip String
    The IP address.
    labels Map<String,String>
    Labels are key-value string pairs which can be attached to a resource container
    networkInterfaceId String
    Associates the public IP with a network interface or a virtual IP (ID).
    projectId String
    STACKIT project ID to which the public IP is associated.
    publicIpId String
    The public IP ID.
    region String
    The resource region. If not defined, the provider region is used.
    id string
    ip string
    The IP address.
    labels {[key: string]: string}
    Labels are key-value string pairs which can be attached to a resource container
    networkInterfaceId string
    Associates the public IP with a network interface or a virtual IP (ID).
    projectId string
    STACKIT project ID to which the public IP is associated.
    publicIpId string
    The public IP ID.
    region string
    The resource region. If not defined, the provider region is used.
    id str
    ip str
    The IP address.
    labels Mapping[str, str]
    Labels are key-value string pairs which can be attached to a resource container
    network_interface_id str
    Associates the public IP with a network interface or a virtual IP (ID).
    project_id str
    STACKIT project ID to which the public IP is associated.
    public_ip_id str
    The public IP ID.
    region str
    The resource region. If not defined, the provider region is used.
    id String
    ip String
    The IP address.
    labels Map<String>
    Labels are key-value string pairs which can be attached to a resource container
    networkInterfaceId String
    Associates the public IP with a network interface or a virtual IP (ID).
    projectId String
    STACKIT project ID to which the public IP is associated.
    publicIpId String
    The public IP ID.
    region String
    The resource region. If not defined, the provider region is used.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.