outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getNatServices
Explore with Pulumi AI
Provides information about NAT services.
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 natServices01 = outscale.getNatServices({
    filters: [
        {
            name: "net_ids",
            values: [
                "vpc-12345678",
                "vpc-87654321",
            ],
        },
        {
            name: "subnet_ids",
            values: ["eu-west-2a"],
        },
    ],
});
import pulumi
import pulumi_outscale as outscale
nat_services01 = outscale.get_nat_services(filters=[
    {
        "name": "net_ids",
        "values": [
            "vpc-12345678",
            "vpc-87654321",
        ],
    },
    {
        "name": "subnet_ids",
        "values": ["eu-west-2a"],
    },
])
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.GetNatServices(ctx, &outscale.GetNatServicesArgs{
			Filters: []outscale.GetNatServicesFilter{
				{
					Name: "net_ids",
					Values: []string{
						"vpc-12345678",
						"vpc-87654321",
					},
				},
				{
					Name: "subnet_ids",
					Values: []string{
						"eu-west-2a",
					},
				},
			},
		}, 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 natServices01 = Outscale.GetNatServices.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetNatServicesFilterInputArgs
            {
                Name = "net_ids",
                Values = new[]
                {
                    "vpc-12345678",
                    "vpc-87654321",
                },
            },
            new Outscale.Inputs.GetNatServicesFilterInputArgs
            {
                Name = "subnet_ids",
                Values = new[]
                {
                    "eu-west-2a",
                },
            },
        },
    });
});
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.GetNatServicesArgs;
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 natServices01 = OutscaleFunctions.getNatServices(GetNatServicesArgs.builder()
            .filters(            
                GetNatServicesFilterArgs.builder()
                    .name("net_ids")
                    .values(                    
                        "vpc-12345678",
                        "vpc-87654321")
                    .build(),
                GetNatServicesFilterArgs.builder()
                    .name("subnet_ids")
                    .values("eu-west-2a")
                    .build())
            .build());
    }
}
variables:
  natServices01:
    fn::invoke:
      function: outscale:getNatServices
      arguments:
        filters:
          - name: net_ids
            values:
              - vpc-12345678
              - vpc-87654321
          - name: subnet_ids
            values:
              - eu-west-2a
Using getNatServices
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 getNatServices(args: GetNatServicesArgs, opts?: InvokeOptions): Promise<GetNatServicesResult>
function getNatServicesOutput(args: GetNatServicesOutputArgs, opts?: InvokeOptions): Output<GetNatServicesResult>def get_nat_services(filters: Optional[Sequence[GetNatServicesFilter]] = None,
                     id: Optional[str] = None,
                     nat_service_ids: Optional[Sequence[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNatServicesResult
def get_nat_services_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNatServicesFilterArgs]]]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     nat_service_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNatServicesResult]func GetNatServices(ctx *Context, args *GetNatServicesArgs, opts ...InvokeOption) (*GetNatServicesResult, error)
func GetNatServicesOutput(ctx *Context, args *GetNatServicesOutputArgs, opts ...InvokeOption) GetNatServicesResultOutput> Note: This function is named GetNatServices in the Go SDK.
public static class GetNatServices 
{
    public static Task<GetNatServicesResult> InvokeAsync(GetNatServicesArgs args, InvokeOptions? opts = null)
    public static Output<GetNatServicesResult> Invoke(GetNatServicesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNatServicesResult> getNatServices(GetNatServicesArgs args, InvokeOptions options)
public static Output<GetNatServicesResult> getNatServices(GetNatServicesArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getNatServices:getNatServices
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetNat Services 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
- NatService List<string>Ids 
- Filters
[]GetNat Services 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
- NatService []stringIds 
- filters
List<GetNat Services 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
- natService List<String>Ids 
- filters
GetNat Services 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
- natService string[]Ids 
- filters
Sequence[GetNat Services 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
- nat_service_ Sequence[str]ids 
- 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
- natService List<String>Ids 
getNatServices Result
The following output properties are available:
- Id string
- NatServices List<GetNat Services Nat Service> 
- Information about one or more NAT services.
- RequestId string
- Filters
List<GetNat Services Filter> 
- NatService List<string>Ids 
- Id string
- NatServices []GetNat Services Nat Service 
- Information about one or more NAT services.
- RequestId string
- Filters
[]GetNat Services Filter 
- NatService []stringIds 
- id String
- natServices List<GetNat Services Nat Service> 
- Information about one or more NAT services.
- requestId String
- filters
List<GetNat Services Filter> 
- natService List<String>Ids 
- id string
- natServices GetNat Services Nat Service[] 
- Information about one or more NAT services.
- requestId string
- filters
GetNat Services Filter[] 
- natService string[]Ids 
- id str
- nat_services Sequence[GetNat Services Nat Service] 
- Information about one or more NAT services.
- request_id str
- filters
Sequence[GetNat Services Filter] 
- nat_service_ Sequence[str]ids 
- id String
- natServices List<Property Map>
- Information about one or more NAT services.
- requestId String
- filters List<Property Map>
- natService List<String>Ids 
Supporting Types
GetNatServicesFilter   
GetNatServicesNatService    
- NatService stringId 
- The ID of the NAT service.
- NetId string
- The ID of the Net in which the NAT service is.
- PublicIps List<GetNat Services Nat Service Public Ip> 
- Information about the public IP or IPs associated with the NAT service.
- State string
- The state of the NAT service (pending|available|deleting|deleted).
- SubnetId string
- The ID of the Subnet in which the NAT service is.
- 
List<GetNat Services Nat Service Tag> 
- One or more tags associated with the NAT service.
- NatService stringId 
- The ID of the NAT service.
- NetId string
- The ID of the Net in which the NAT service is.
- PublicIps []GetNat Services Nat Service Public Ip 
- Information about the public IP or IPs associated with the NAT service.
- State string
- The state of the NAT service (pending|available|deleting|deleted).
- SubnetId string
- The ID of the Subnet in which the NAT service is.
- 
[]GetNat Services Nat Service Tag 
- One or more tags associated with the NAT service.
- natService StringId 
- The ID of the NAT service.
- netId String
- The ID of the Net in which the NAT service is.
- publicIps List<GetNat Services Nat Service Public Ip> 
- Information about the public IP or IPs associated with the NAT service.
- state String
- The state of the NAT service (pending|available|deleting|deleted).
- subnetId String
- The ID of the Subnet in which the NAT service is.
- 
List<GetNat Services Nat Service Tag> 
- One or more tags associated with the NAT service.
- natService stringId 
- The ID of the NAT service.
- netId string
- The ID of the Net in which the NAT service is.
- publicIps GetNat Services Nat Service Public Ip[] 
- Information about the public IP or IPs associated with the NAT service.
- state string
- The state of the NAT service (pending|available|deleting|deleted).
- subnetId string
- The ID of the Subnet in which the NAT service is.
- 
GetNat Services Nat Service Tag[] 
- One or more tags associated with the NAT service.
- nat_service_ strid 
- The ID of the NAT service.
- net_id str
- The ID of the Net in which the NAT service is.
- public_ips Sequence[GetNat Services Nat Service Public Ip] 
- Information about the public IP or IPs associated with the NAT service.
- state str
- The state of the NAT service (pending|available|deleting|deleted).
- subnet_id str
- The ID of the Subnet in which the NAT service is.
- 
Sequence[GetNat Services Nat Service Tag] 
- One or more tags associated with the NAT service.
- natService StringId 
- The ID of the NAT service.
- netId String
- The ID of the Net in which the NAT service is.
- publicIps List<Property Map>
- Information about the public IP or IPs associated with the NAT service.
- state String
- The state of the NAT service (pending|available|deleting|deleted).
- subnetId String
- The ID of the Subnet in which the NAT service is.
- List<Property Map>
- One or more tags associated with the NAT service.
GetNatServicesNatServicePublicIp      
- PublicIp string
- The public IP associated with the NAT service.
- PublicIp stringId 
- The allocation ID of the public IP associated with the NAT service.
- PublicIp string
- The public IP associated with the NAT service.
- PublicIp stringId 
- The allocation ID of the public IP associated with the NAT service.
- publicIp String
- The public IP associated with the NAT service.
- publicIp StringId 
- The allocation ID of the public IP associated with the NAT service.
- publicIp string
- The public IP associated with the NAT service.
- publicIp stringId 
- The allocation ID of the public IP associated with the NAT service.
- public_ip str
- The public IP associated with the NAT service.
- public_ip_ strid 
- The allocation ID of the public IP associated with the NAT service.
- publicIp String
- The public IP associated with the NAT service.
- publicIp StringId 
- The allocation ID of the public IP associated with the NAT service.
GetNatServicesNatServiceTag     
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.