outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getNetPeering
Explore with Pulumi AI
Provides information about a Net peering.
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 netPeering01 = outscale.getNetPeering({
    filters: [{
        name: "net_peering_ids",
        values: ["pcx-12345678"],
    }],
});
import pulumi
import pulumi_outscale as outscale
net_peering01 = outscale.get_net_peering(filters=[{
    "name": "net_peering_ids",
    "values": ["pcx-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.LookupNetPeering(ctx, &outscale.LookupNetPeeringArgs{
			Filters: []outscale.GetNetPeeringFilter{
				{
					Name: "net_peering_ids",
					Values: []string{
						"pcx-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 netPeering01 = Outscale.GetNetPeering.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetNetPeeringFilterInputArgs
            {
                Name = "net_peering_ids",
                Values = new[]
                {
                    "pcx-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.GetNetPeeringArgs;
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 netPeering01 = OutscaleFunctions.getNetPeering(GetNetPeeringArgs.builder()
            .filters(GetNetPeeringFilterArgs.builder()
                .name("net_peering_ids")
                .values("pcx-12345678")
                .build())
            .build());
    }
}
variables:
  netPeering01:
    fn::invoke:
      function: outscale:getNetPeering
      arguments:
        filters:
          - name: net_peering_ids
            values:
              - pcx-12345678
Using getNetPeering
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 getNetPeering(args: GetNetPeeringArgs, opts?: InvokeOptions): Promise<GetNetPeeringResult>
function getNetPeeringOutput(args: GetNetPeeringOutputArgs, opts?: InvokeOptions): Output<GetNetPeeringResult>def get_net_peering(filters: Optional[Sequence[GetNetPeeringFilter]] = None,
                    id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetNetPeeringResult
def get_net_peering_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetPeeringFilterArgs]]]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetNetPeeringResult]func LookupNetPeering(ctx *Context, args *LookupNetPeeringArgs, opts ...InvokeOption) (*LookupNetPeeringResult, error)
func LookupNetPeeringOutput(ctx *Context, args *LookupNetPeeringOutputArgs, opts ...InvokeOption) LookupNetPeeringResultOutput> Note: This function is named LookupNetPeering in the Go SDK.
public static class GetNetPeering 
{
    public static Task<GetNetPeeringResult> InvokeAsync(GetNetPeeringArgs args, InvokeOptions? opts = null)
    public static Output<GetNetPeeringResult> Invoke(GetNetPeeringInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetPeeringResult> getNetPeering(GetNetPeeringArgs args, InvokeOptions options)
public static Output<GetNetPeeringResult> getNetPeering(GetNetPeeringArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getNetPeering:getNetPeering
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetNet Peering 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
[]GetNet Peering 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<GetNet Peering 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
GetNet Peering 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[GetNet Peering 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
getNetPeering Result
The following output properties are available:
- AccepterNets List<GetNet Peering Accepter Net> 
- Information about the accepter Net.
- Id string
- NetPeering stringId 
- The ID of the Net peering.
- RequestId string
- SourceNets List<GetNet Peering Source Net> 
- Information about the source Net.
- States
List<GetNet Peering State> 
- Information about the state of the Net peering.
- 
List<GetNet Peering Tag> 
- One or more tags associated with the Net peering.
- Filters
List<GetNet Peering Filter> 
- AccepterNets []GetNet Peering Accepter Net 
- Information about the accepter Net.
- Id string
- NetPeering stringId 
- The ID of the Net peering.
- RequestId string
- SourceNets []GetNet Peering Source Net 
- Information about the source Net.
- States
[]GetNet Peering State 
- Information about the state of the Net peering.
- 
[]GetNet Peering Tag 
- One or more tags associated with the Net peering.
- Filters
[]GetNet Peering Filter 
- accepterNets List<GetNet Peering Accepter Net> 
- Information about the accepter Net.
- id String
- netPeering StringId 
- The ID of the Net peering.
- requestId String
- sourceNets List<GetNet Peering Source Net> 
- Information about the source Net.
- states
List<GetNet Peering State> 
- Information about the state of the Net peering.
- 
List<GetNet Peering Tag> 
- One or more tags associated with the Net peering.
- filters
List<GetNet Peering Filter> 
- accepterNets GetNet Peering Accepter Net[] 
- Information about the accepter Net.
- id string
- netPeering stringId 
- The ID of the Net peering.
- requestId string
- sourceNets GetNet Peering Source Net[] 
- Information about the source Net.
- states
GetNet Peering State[] 
- Information about the state of the Net peering.
- 
GetNet Peering Tag[] 
- One or more tags associated with the Net peering.
- filters
GetNet Peering Filter[] 
- accepter_nets Sequence[GetNet Peering Accepter Net] 
- Information about the accepter Net.
- id str
- net_peering_ strid 
- The ID of the Net peering.
- request_id str
- source_nets Sequence[GetNet Peering Source Net] 
- Information about the source Net.
- states
Sequence[GetNet Peering State] 
- Information about the state of the Net peering.
- 
Sequence[GetNet Peering Tag] 
- One or more tags associated with the Net peering.
- filters
Sequence[GetNet Peering Filter] 
- accepterNets List<Property Map>
- Information about the accepter Net.
- id String
- netPeering StringId 
- The ID of the Net peering.
- requestId String
- sourceNets List<Property Map>
- Information about the source Net.
- states List<Property Map>
- Information about the state of the Net peering.
- List<Property Map>
- One or more tags associated with the Net peering.
- filters List<Property Map>
Supporting Types
GetNetPeeringAccepterNet    
- account_id str
- The account ID of the owner of the source Net.
- ip_range str
- The IP range for the source Net, in CIDR notation (for example, 10.0.0.0/16).
- net_id str
- The ID of the source Net.
GetNetPeeringFilter   
GetNetPeeringSourceNet    
- account_id str
- The account ID of the owner of the source Net.
- ip_range str
- The IP range for the source Net, in CIDR notation (for example, 10.0.0.0/16).
- net_id str
- The ID of the source Net.
GetNetPeeringState   
GetNetPeeringTag   
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.