Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
Provides information about a NAT service.
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 natService01 = outscale.getNatService({
filters: [{
name: "nat_service_ids",
values: ["nat-12345678"],
}],
});
import pulumi
import pulumi_outscale as outscale
nat_service01 = outscale.get_nat_service(filters=[{
"name": "nat_service_ids",
"values": ["nat-12345678"],
}])
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.LookupNatService(ctx, &outscale.LookupNatServiceArgs{
Filters: []outscale.GetNatServiceFilter{
{
Name: "nat_service_ids",
Values: []string{
"nat-12345678",
},
},
},
}, 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 natService01 = Outscale.GetNatService.Invoke(new()
{
Filters = new[]
{
new Outscale.Inputs.GetNatServiceFilterInputArgs
{
Name = "nat_service_ids",
Values = new[]
{
"nat-12345678",
},
},
},
});
});
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.GetNatServiceArgs;
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 natService01 = OutscaleFunctions.getNatService(GetNatServiceArgs.builder()
.filters(GetNatServiceFilterArgs.builder()
.name("nat_service_ids")
.values("nat-12345678")
.build())
.build());
}
}
variables:
natService01:
fn::invoke:
function: outscale:getNatService
arguments:
filters:
- name: nat_service_ids
values:
- nat-12345678
Using getNatService
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 getNatService(args: GetNatServiceArgs, opts?: InvokeOptions): Promise<GetNatServiceResult>
function getNatServiceOutput(args: GetNatServiceOutputArgs, opts?: InvokeOptions): Output<GetNatServiceResult>def get_nat_service(filters: Optional[Sequence[GetNatServiceFilter]] = None,
id: Optional[str] = None,
nat_service_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNatServiceResult
def get_nat_service_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNatServiceFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
nat_service_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNatServiceResult]func LookupNatService(ctx *Context, args *LookupNatServiceArgs, opts ...InvokeOption) (*LookupNatServiceResult, error)
func LookupNatServiceOutput(ctx *Context, args *LookupNatServiceOutputArgs, opts ...InvokeOption) LookupNatServiceResultOutput> Note: This function is named LookupNatService in the Go SDK.
public static class GetNatService
{
public static Task<GetNatServiceResult> InvokeAsync(GetNatServiceArgs args, InvokeOptions? opts = null)
public static Output<GetNatServiceResult> Invoke(GetNatServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNatServiceResult> getNatService(GetNatServiceArgs args, InvokeOptions options)
public static Output<GetNatServiceResult> getNatService(GetNatServiceArgs args, InvokeOptions options)
fn::invoke:
function: outscale:index/getNatService:getNatService
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Nat Service 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
- Nat
Service stringId - The ID of the NAT service.
- Filters
[]Get
Nat Service 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
- Nat
Service stringId - The ID of the NAT service.
- filters
List<Get
Nat Service 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
- nat
Service StringId - The ID of the NAT service.
- filters
Get
Nat Service 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
- nat
Service stringId - The ID of the NAT service.
- filters
Sequence[Get
Nat Service 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_ strid - The ID of the NAT service.
- 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
- nat
Service StringId - The ID of the NAT service.
getNatService Result
The following output properties are available:
- Id string
- Net
Id string - The ID of the Net in which the NAT service is.
- Public
Ips List<GetNat Service Public Ip> - Information about the public IP or IPs associated with the NAT service.
- Request
Id string - State string
- The state of the NAT service (
pending|available|deleting|deleted). - Subnet
Id string - The ID of the Subnet in which the NAT service is.
-
List<Get
Nat Service Tag> - One or more tags associated with the NAT service.
- Filters
List<Get
Nat Service Filter> - Nat
Service stringId - The ID of the NAT service.
- Id string
- Net
Id string - The ID of the Net in which the NAT service is.
- Public
Ips []GetNat Service Public Ip - Information about the public IP or IPs associated with the NAT service.
- Request
Id string - State string
- The state of the NAT service (
pending|available|deleting|deleted). - Subnet
Id string - The ID of the Subnet in which the NAT service is.
-
[]Get
Nat Service Tag - One or more tags associated with the NAT service.
- Filters
[]Get
Nat Service Filter - Nat
Service stringId - The ID of the NAT service.
- id String
- net
Id String - The ID of the Net in which the NAT service is.
- public
Ips List<GetNat Service Public Ip> - Information about the public IP or IPs associated with the NAT service.
- request
Id String - state String
- The state of the NAT service (
pending|available|deleting|deleted). - subnet
Id String - The ID of the Subnet in which the NAT service is.
-
List<Get
Nat Service Tag> - One or more tags associated with the NAT service.
- filters
List<Get
Nat Service Filter> - nat
Service StringId - The ID of the NAT service.
- id string
- net
Id string - The ID of the Net in which the NAT service is.
- public
Ips GetNat Service Public Ip[] - Information about the public IP or IPs associated with the NAT service.
- request
Id string - state string
- The state of the NAT service (
pending|available|deleting|deleted). - subnet
Id string - The ID of the Subnet in which the NAT service is.
-
Get
Nat Service Tag[] - One or more tags associated with the NAT service.
- filters
Get
Nat Service Filter[] - nat
Service stringId - The ID of the NAT service.
- id str
- net_
id str - The ID of the Net in which the NAT service is.
- public_
ips Sequence[GetNat Service Public Ip] - Information about the public IP or IPs associated with the NAT service.
- request_
id str - 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[Get
Nat Service Tag] - One or more tags associated with the NAT service.
- filters
Sequence[Get
Nat Service Filter] - nat_
service_ strid - The ID of the NAT service.
- id String
- net
Id String - The ID of the Net in which the NAT service is.
- public
Ips List<Property Map> - Information about the public IP or IPs associated with the NAT service.
- request
Id String - state String
- The state of the NAT service (
pending|available|deleting|deleted). - subnet
Id String - The ID of the Subnet in which the NAT service is.
- List<Property Map>
- One or more tags associated with the NAT service.
- filters List<Property Map>
- nat
Service StringId - The ID of the NAT service.
Supporting Types
GetNatServiceFilter
GetNatServicePublicIp
- Public
Ip string - The public IP associated with the NAT service.
- Public
Ip stringId - The allocation ID of the public IP associated with the NAT service.
- Public
Ip string - The public IP associated with the NAT service.
- Public
Ip stringId - The allocation ID of the public IP associated with the NAT service.
- public
Ip String - The public IP associated with the NAT service.
- public
Ip StringId - The allocation ID of the public IP associated with the NAT service.
- public
Ip string - The public IP associated with the NAT service.
- public
Ip 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.
- public
Ip String - The public IP associated with the NAT service.
- public
Ip StringId - The allocation ID of the public IP associated with the NAT service.
GetNatServiceTag
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscaleTerraform Provider.
Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
