outscale 1.3.0-alpha.1 published on Tuesday, Sep 30, 2025 by outscale
outscale.getPublicIp
outscale 1.3.0-alpha.1 published on Tuesday, Sep 30, 2025 by outscale
Provides information about a public IP.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const publicIp01 = outscale.getPublicIp({
    filters: [{
        name: "public_ips",
        values: ["111.11.111.1"],
    }],
});
import pulumi
import pulumi_outscale as outscale
public_ip01 = outscale.get_public_ip(filters=[{
    "name": "public_ips",
    "values": ["111.11.111.1"],
}])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.LookupPublicIp(ctx, &outscale.LookupPublicIpArgs{
			Filters: []outscale.GetPublicIpFilter{
				{
					Name: "public_ips",
					Values: []string{
						"111.11.111.1",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var publicIp01 = Outscale.GetPublicIp.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetPublicIpFilterInputArgs
            {
                Name = "public_ips",
                Values = new[]
                {
                    "111.11.111.1",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetPublicIpArgs;
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 publicIp01 = OutscaleFunctions.getPublicIp(GetPublicIpArgs.builder()
            .filters(GetPublicIpFilterArgs.builder()
                .name("public_ips")
                .values("111.11.111.1")
                .build())
            .build());
    }
}
variables:
  publicIp01:
    fn::invoke:
      function: outscale:getPublicIp
      arguments:
        filters:
          - name: public_ips
            values:
              - 111.11.111.1
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(filters: Optional[Sequence[GetPublicIpFilter]] = None,
                  id: Optional[str] = None,
                  public_ip: Optional[str] = None,
                  public_ip_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetPublicIpResult
def get_public_ip_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPublicIpFilterArgs]]]] = None,
                  id: Optional[pulumi.Input[str]] = None,
                  public_ip: Optional[pulumi.Input[str]] = None,
                  public_ip_id: 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: outscale:index/getPublicIp:getPublicIp
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetPublic Ip Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- PublicIp string
- The public IP.
- PublicIp stringId 
- The allocation ID of the public IP.
- Filters
[]GetPublic Ip Filter 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- PublicIp string
- The public IP.
- PublicIp stringId 
- The allocation ID of the public IP.
- filters
List<GetPublic Ip Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- publicIp String
- The public IP.
- publicIp StringId 
- The allocation ID of the public IP.
- filters
GetPublic Ip Filter[] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- publicIp string
- The public IP.
- publicIp stringId 
- The allocation ID of the public IP.
- filters
Sequence[GetPublic Ip Filter] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- public_ip str
- The public IP.
- public_ip_ strid 
- The allocation ID of the public IP.
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- publicIp String
- The public IP.
- publicIp StringId 
- The allocation ID of the public IP.
getPublicIp Result
The following output properties are available:
- Id string
- LinkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- NicAccount stringId 
- The account ID of the owner of the NIC.
- NicId string
- The ID of the NIC the public IP is associated with (if any).
- PrivateIp string
- The private IP associated with the public IP.
- PublicIp string
- The public IP.
- PublicIp stringId 
- The allocation ID of the public IP.
- RequestId string
- 
List<GetPublic Ip Tag> 
- One or more tags associated with the public IP.
- VmId string
- The ID of the VM the public IP is associated with (if any).
- Filters
List<GetPublic Ip Filter> 
- Id string
- LinkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- NicAccount stringId 
- The account ID of the owner of the NIC.
- NicId string
- The ID of the NIC the public IP is associated with (if any).
- PrivateIp string
- The private IP associated with the public IP.
- PublicIp string
- The public IP.
- PublicIp stringId 
- The allocation ID of the public IP.
- RequestId string
- 
[]GetPublic Ip Tag 
- One or more tags associated with the public IP.
- VmId string
- The ID of the VM the public IP is associated with (if any).
- Filters
[]GetPublic Ip Filter 
- id String
- linkPublic StringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount StringId 
- The account ID of the owner of the NIC.
- nicId String
- The ID of the NIC the public IP is associated with (if any).
- privateIp String
- The private IP associated with the public IP.
- publicIp String
- The public IP.
- publicIp StringId 
- The allocation ID of the public IP.
- requestId String
- 
List<GetPublic Ip Tag> 
- One or more tags associated with the public IP.
- vmId String
- The ID of the VM the public IP is associated with (if any).
- filters
List<GetPublic Ip Filter> 
- id string
- linkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount stringId 
- The account ID of the owner of the NIC.
- nicId string
- The ID of the NIC the public IP is associated with (if any).
- privateIp string
- The private IP associated with the public IP.
- publicIp string
- The public IP.
- publicIp stringId 
- The allocation ID of the public IP.
- requestId string
- 
GetPublic Ip Tag[] 
- One or more tags associated with the public IP.
- vmId string
- The ID of the VM the public IP is associated with (if any).
- filters
GetPublic Ip Filter[] 
- id str
- link_public_ strip_ id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nic_account_ strid 
- The account ID of the owner of the NIC.
- nic_id str
- The ID of the NIC the public IP is associated with (if any).
- private_ip str
- The private IP associated with the public IP.
- public_ip str
- The public IP.
- public_ip_ strid 
- The allocation ID of the public IP.
- request_id str
- 
Sequence[GetPublic Ip Tag] 
- One or more tags associated with the public IP.
- vm_id str
- The ID of the VM the public IP is associated with (if any).
- filters
Sequence[GetPublic Ip Filter] 
- id String
- linkPublic StringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount StringId 
- The account ID of the owner of the NIC.
- nicId String
- The ID of the NIC the public IP is associated with (if any).
- privateIp String
- The private IP associated with the public IP.
- publicIp String
- The public IP.
- publicIp StringId 
- The allocation ID of the public IP.
- requestId String
- List<Property Map>
- One or more tags associated with the public IP.
- vmId String
- The ID of the VM the public IP is associated with (if any).
- filters List<Property Map>
Supporting Types
GetPublicIpFilter   
GetPublicIpTag   
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.
outscale 1.3.0-alpha.1 published on Tuesday, Sep 30, 2025 by outscale
