outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getPublicIps
Explore with Pulumi AI
Provides information about public IPs.
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 publicIps01 = outscale.getPublicIps({
    filters: [{
        name: "public_ips",
        values: [
            "111.11.111.1",
            "222.22.222.2",
        ],
    }],
});
import pulumi
import pulumi_outscale as outscale
public_ips01 = outscale.get_public_ips(filters=[{
    "name": "public_ips",
    "values": [
        "111.11.111.1",
        "222.22.222.2",
    ],
}])
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.GetPublicIps(ctx, &outscale.GetPublicIpsArgs{
			Filters: []outscale.GetPublicIpsFilter{
				{
					Name: "public_ips",
					Values: []string{
						"111.11.111.1",
						"222.22.222.2",
					},
				},
			},
		}, 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 publicIps01 = Outscale.GetPublicIps.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetPublicIpsFilterInputArgs
            {
                Name = "public_ips",
                Values = new[]
                {
                    "111.11.111.1",
                    "222.22.222.2",
                },
            },
        },
    });
});
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.GetPublicIpsArgs;
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 publicIps01 = OutscaleFunctions.getPublicIps(GetPublicIpsArgs.builder()
            .filters(GetPublicIpsFilterArgs.builder()
                .name("public_ips")
                .values(                
                    "111.11.111.1",
                    "222.22.222.2")
                .build())
            .build());
    }
}
variables:
  publicIps01:
    fn::invoke:
      function: outscale:getPublicIps
      arguments:
        filters:
          - name: public_ips
            values:
              - 111.11.111.1
              - 222.22.222.2
Using getPublicIps
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 getPublicIps(args: GetPublicIpsArgs, opts?: InvokeOptions): Promise<GetPublicIpsResult>
function getPublicIpsOutput(args: GetPublicIpsOutputArgs, opts?: InvokeOptions): Output<GetPublicIpsResult>def get_public_ips(filters: Optional[Sequence[GetPublicIpsFilter]] = None,
                   id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPublicIpsResult
def get_public_ips_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPublicIpsFilterArgs]]]] = None,
                   id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetPublicIpsResult]func GetPublicIps(ctx *Context, args *GetPublicIpsArgs, opts ...InvokeOption) (*GetPublicIpsResult, error)
func GetPublicIpsOutput(ctx *Context, args *GetPublicIpsOutputArgs, opts ...InvokeOption) GetPublicIpsResultOutput> Note: This function is named GetPublicIps in the Go SDK.
public static class GetPublicIps 
{
    public static Task<GetPublicIpsResult> InvokeAsync(GetPublicIpsArgs args, InvokeOptions? opts = null)
    public static Output<GetPublicIpsResult> Invoke(GetPublicIpsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPublicIpsResult> getPublicIps(GetPublicIpsArgs args, InvokeOptions options)
public static Output<GetPublicIpsResult> getPublicIps(GetPublicIpsArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getPublicIps:getPublicIps
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetPublic Ips 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
- Filters
[]GetPublic Ips 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
- filters
List<GetPublic Ips 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
- filters
GetPublic Ips 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
- filters
Sequence[GetPublic Ips 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
- 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
getPublicIps Result
The following output properties are available:
- Id string
- PublicIps List<GetPublic Ips Public Ip> 
- Information about one or more public IPs.
- RequestId string
- Filters
List<GetPublic Ips Filter> 
- Id string
- PublicIps []GetPublic Ips Public Ip 
- Information about one or more public IPs.
- RequestId string
- Filters
[]GetPublic Ips Filter 
- id String
- publicIps List<GetPublic Ips Public Ip> 
- Information about one or more public IPs.
- requestId String
- filters
List<GetPublic Ips Filter> 
- id string
- publicIps GetPublic Ips Public Ip[] 
- Information about one or more public IPs.
- requestId string
- filters
GetPublic Ips Filter[] 
- id str
- public_ips Sequence[GetPublic Ips Public Ip] 
- Information about one or more public IPs.
- request_id str
- filters
Sequence[GetPublic Ips Filter] 
- id String
- publicIps List<Property Map>
- Information about one or more public IPs.
- requestId String
- filters List<Property Map>
Supporting Types
GetPublicIpsFilter   
GetPublicIpsPublicIp    
- 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.
- 
List<GetPublic Ips Public 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).
- 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.
- 
[]GetPublic Ips Public 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).
- 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.
- 
List<GetPublic Ips Public 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).
- 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.
- 
GetPublic Ips Public 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).
- 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.
- 
Sequence[GetPublic Ips Public 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).
- 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.
- 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).
GetPublicIpsPublicIpTag     
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.