1. Packages
  2. Outscale Provider
  3. API Docs
  4. getNet
outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale

outscale.getNet

Explore with Pulumi AI

outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale

Provides information about a Net.

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 net01 = outscale.getNet({
    filters: [{
        name: "net_ids",
        values: ["vpc-12345678"],
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

net01 = outscale.get_net(filters=[{
    "name": "net_ids",
    "values": ["vpc-12345678"],
}])
Copy
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.LookupNet(ctx, &outscale.LookupNetArgs{
			Filters: []outscale.GetNetFilter{
				{
					Name: "net_ids",
					Values: []string{
						"vpc-12345678",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var net01 = Outscale.GetNet.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetNetFilterInputArgs
            {
                Name = "net_ids",
                Values = new[]
                {
                    "vpc-12345678",
                },
            },
        },
    });

});
Copy
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.GetNetArgs;
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 net01 = OutscaleFunctions.getNet(GetNetArgs.builder()
            .filters(GetNetFilterArgs.builder()
                .name("net_ids")
                .values("vpc-12345678")
                .build())
            .build());

    }
}
Copy
variables:
  net01:
    fn::invoke:
      function: outscale:getNet
      arguments:
        filters:
          - name: net_ids
            values:
              - vpc-12345678
Copy

Using getNet

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 getNet(args: GetNetArgs, opts?: InvokeOptions): Promise<GetNetResult>
function getNetOutput(args: GetNetOutputArgs, opts?: InvokeOptions): Output<GetNetResult>
Copy
def get_net(filters: Optional[Sequence[GetNetFilter]] = None,
            id: Optional[str] = None,
            net_id: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetNetResult
def get_net_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetFilterArgs]]]] = None,
            id: Optional[pulumi.Input[str]] = None,
            net_id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetNetResult]
Copy
func LookupNet(ctx *Context, args *LookupNetArgs, opts ...InvokeOption) (*LookupNetResult, error)
func LookupNetOutput(ctx *Context, args *LookupNetOutputArgs, opts ...InvokeOption) LookupNetResultOutput
Copy

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

public static class GetNet 
{
    public static Task<GetNetResult> InvokeAsync(GetNetArgs args, InvokeOptions? opts = null)
    public static Output<GetNetResult> Invoke(GetNetInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetResult> getNet(GetNetArgs args, InvokeOptions options)
public static Output<GetNetResult> getNet(GetNetArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getNet:getNet
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetNetFilter>
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
NetId string
The ID of the Net.
Filters []GetNetFilter
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
NetId string
The ID of the Net.
filters List<GetNetFilter>
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
netId String
The ID of the Net.
filters GetNetFilter[]
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
netId string
The ID of the Net.
filters Sequence[GetNetFilter]
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
net_id str
The ID of the Net.
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
netId String
The ID of the Net.

getNet Result

The following output properties are available:

DhcpOptionsSetId string
The ID of the DHCP options set (or default if you want to associate the default one).
Id string
IpRange string
The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16).
NetId string
The ID of the Net.
RequestId string
State string
The state of the Net (pending | available | deleting).
Tags List<GetNetTag>
One or more tags associated with the Net.
Tenancy string
The VM tenancy in a Net.
Filters List<GetNetFilter>
DhcpOptionsSetId string
The ID of the DHCP options set (or default if you want to associate the default one).
Id string
IpRange string
The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16).
NetId string
The ID of the Net.
RequestId string
State string
The state of the Net (pending | available | deleting).
Tags []GetNetTag
One or more tags associated with the Net.
Tenancy string
The VM tenancy in a Net.
Filters []GetNetFilter
dhcpOptionsSetId String
The ID of the DHCP options set (or default if you want to associate the default one).
id String
ipRange String
The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16).
netId String
The ID of the Net.
requestId String
state String
The state of the Net (pending | available | deleting).
tags List<GetNetTag>
One or more tags associated with the Net.
tenancy String
The VM tenancy in a Net.
filters List<GetNetFilter>
dhcpOptionsSetId string
The ID of the DHCP options set (or default if you want to associate the default one).
id string
ipRange string
The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16).
netId string
The ID of the Net.
requestId string
state string
The state of the Net (pending | available | deleting).
tags GetNetTag[]
One or more tags associated with the Net.
tenancy string
The VM tenancy in a Net.
filters GetNetFilter[]
dhcp_options_set_id str
The ID of the DHCP options set (or default if you want to associate the default one).
id str
ip_range str
The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16).
net_id str
The ID of the Net.
request_id str
state str
The state of the Net (pending | available | deleting).
tags Sequence[GetNetTag]
One or more tags associated with the Net.
tenancy str
The VM tenancy in a Net.
filters Sequence[GetNetFilter]
dhcpOptionsSetId String
The ID of the DHCP options set (or default if you want to associate the default one).
id String
ipRange String
The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16).
netId String
The ID of the Net.
requestId String
state String
The state of the Net (pending | available | deleting).
tags List<Property Map>
One or more tags associated with the Net.
tenancy String
The VM tenancy in a Net.
filters List<Property Map>

Supporting Types

GetNetFilter

Name This property is required. string
Values This property is required. List<string>
Name This property is required. string
Values This property is required. []string
name This property is required. String
values This property is required. List<String>
name This property is required. string
values This property is required. string[]
name This property is required. str
values This property is required. Sequence[str]
name This property is required. String
values This property is required. List<String>

GetNetTag

Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.
key This property is required. string
The key of the tag, with a minimum of 1 character.
value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. str
The key of the tag, with a minimum of 1 character.
value This property is required. str
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.
outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale