outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale
outscale.getNetAttributes
Explore with Pulumi AI
Provides information about the attributes of 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 netAttributes01 = outscale.getNetAttributes({
    netId: "vpc-12345678",
});
import pulumi
import pulumi_outscale as outscale
net_attributes01 = outscale.get_net_attributes(net_id="vpc-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.LookupNetAttributes(ctx, &outscale.LookupNetAttributesArgs{
			NetId: "vpc-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 netAttributes01 = Outscale.GetNetAttributes.Invoke(new()
    {
        NetId = "vpc-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.GetNetAttributesArgs;
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 netAttributes01 = OutscaleFunctions.getNetAttributes(GetNetAttributesArgs.builder()
            .netId("vpc-12345678")
            .build());
    }
}
variables:
  netAttributes01:
    fn::invoke:
      function: outscale:getNetAttributes
      arguments:
        netId: vpc-12345678
Using getNetAttributes
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 getNetAttributes(args: GetNetAttributesArgs, opts?: InvokeOptions): Promise<GetNetAttributesResult>
function getNetAttributesOutput(args: GetNetAttributesOutputArgs, opts?: InvokeOptions): Output<GetNetAttributesResult>def get_net_attributes(id: Optional[str] = None,
                       net_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetNetAttributesResult
def get_net_attributes_output(id: Optional[pulumi.Input[str]] = None,
                       net_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetNetAttributesResult]func LookupNetAttributes(ctx *Context, args *LookupNetAttributesArgs, opts ...InvokeOption) (*LookupNetAttributesResult, error)
func LookupNetAttributesOutput(ctx *Context, args *LookupNetAttributesOutputArgs, opts ...InvokeOption) LookupNetAttributesResultOutput> Note: This function is named LookupNetAttributes in the Go SDK.
public static class GetNetAttributes 
{
    public static Task<GetNetAttributesResult> InvokeAsync(GetNetAttributesArgs args, InvokeOptions? opts = null)
    public static Output<GetNetAttributesResult> Invoke(GetNetAttributesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetAttributesResult> getNetAttributes(GetNetAttributesArgs args, InvokeOptions options)
public static Output<GetNetAttributesResult> getNetAttributes(GetNetAttributesArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getNetAttributes:getNetAttributes
  arguments:
    # arguments dictionaryThe following arguments are supported:
getNetAttributes Result
The following output properties are available:
- Dhcp
Options stringSet Id  - The ID of the DHCP options set (or 
defaultif you want to associate the default one). - Id string
 - Ip
Range string - The IP range for the Net, in CIDR notation (for example, 
10.0.0.0/16). - Net
Id string - The ID of the Net.
 - Request
Id string - State string
 - The state of the Net (
pending|available|deleting). - 
List<Get
Net Attributes Tag>  - One or more tags associated with the Net.
 - Tenancy string
 - The VM tenancy in a Net.
 
- Dhcp
Options stringSet Id  - The ID of the DHCP options set (or 
defaultif you want to associate the default one). - Id string
 - Ip
Range string - The IP range for the Net, in CIDR notation (for example, 
10.0.0.0/16). - Net
Id string - The ID of the Net.
 - Request
Id string - State string
 - The state of the Net (
pending|available|deleting). - 
[]Get
Net Attributes Tag  - One or more tags associated with the Net.
 - Tenancy string
 - The VM tenancy in a Net.
 
- dhcp
Options StringSet Id  - The ID of the DHCP options set (or 
defaultif you want to associate the default one). - id String
 - ip
Range String - The IP range for the Net, in CIDR notation (for example, 
10.0.0.0/16). - net
Id String - The ID of the Net.
 - request
Id String - state String
 - The state of the Net (
pending|available|deleting). - 
List<Get
Net Attributes Tag>  - One or more tags associated with the Net.
 - tenancy String
 - The VM tenancy in a Net.
 
- dhcp
Options stringSet Id  - The ID of the DHCP options set (or 
defaultif you want to associate the default one). - id string
 - ip
Range string - The IP range for the Net, in CIDR notation (for example, 
10.0.0.0/16). - net
Id string - The ID of the Net.
 - request
Id string - state string
 - The state of the Net (
pending|available|deleting). - 
Get
Net Attributes Tag[]  - One or more tags associated with the Net.
 - tenancy string
 - The VM tenancy in a Net.
 
- dhcp_
options_ strset_ id  - The ID of the DHCP options set (or 
defaultif 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). - 
Sequence[Get
Net Attributes Tag]  - One or more tags associated with the Net.
 - tenancy str
 - The VM tenancy in a Net.
 
- dhcp
Options StringSet Id  - The ID of the DHCP options set (or 
defaultif you want to associate the default one). - id String
 - ip
Range String - The IP range for the Net, in CIDR notation (for example, 
10.0.0.0/16). - net
Id String - The ID of the Net.
 - request
Id String - state String
 - The state of the Net (
pending|available|deleting). - List<Property Map>
 - One or more tags associated with the Net.
 - tenancy String
 - The VM tenancy in a Net.
 
Supporting Types
GetNetAttributesTag   
Package Details
- Repository
 - outscale outscale/terraform-provider-outscale
 - License
 - Notes
 - This Pulumi package is based on the 
outscaleTerraform Provider.