1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. getEdgeSubnets
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

oci.Waas.getEdgeSubnets

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    This data source provides the list of Edge Subnets in Oracle Cloud Infrastructure Web Application Acceleration and Security service.

    Return the list of the tenant’s edge node subnets. Use these CIDR blocks to restrict incoming traffic to your origin. These subnets are owned by Oracle Cloud Infrastructure and forward traffic to customer origins. They are not associated with specific regions or compartments.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testEdgeSubnets = oci.Waas.getEdgeSubnets({});
    
    import pulumi
    import pulumi_oci as oci
    
    test_edge_subnets = oci.Waas.get_edge_subnets()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Waas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Waas.GetEdgeSubnets(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testEdgeSubnets = Oci.Waas.GetEdgeSubnets.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Waas.WaasFunctions;
    import com.pulumi.oci.Waas.inputs.GetEdgeSubnetsArgs;
    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 testEdgeSubnets = WaasFunctions.getEdgeSubnets();
    
        }
    }
    
    variables:
      testEdgeSubnets:
        fn::invoke:
          Function: oci:Waas:getEdgeSubnets
          Arguments: {}
    

    Using getEdgeSubnets

    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 getEdgeSubnets(args: GetEdgeSubnetsArgs, opts?: InvokeOptions): Promise<GetEdgeSubnetsResult>
    function getEdgeSubnetsOutput(args: GetEdgeSubnetsOutputArgs, opts?: InvokeOptions): Output<GetEdgeSubnetsResult>
    def get_edge_subnets(filters: Optional[Sequence[_waas.GetEdgeSubnetsFilter]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetEdgeSubnetsResult
    def get_edge_subnets_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_waas.GetEdgeSubnetsFilterArgs]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetEdgeSubnetsResult]
    func GetEdgeSubnets(ctx *Context, args *GetEdgeSubnetsArgs, opts ...InvokeOption) (*GetEdgeSubnetsResult, error)
    func GetEdgeSubnetsOutput(ctx *Context, args *GetEdgeSubnetsOutputArgs, opts ...InvokeOption) GetEdgeSubnetsResultOutput

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

    public static class GetEdgeSubnets 
    {
        public static Task<GetEdgeSubnetsResult> InvokeAsync(GetEdgeSubnetsArgs args, InvokeOptions? opts = null)
        public static Output<GetEdgeSubnetsResult> Invoke(GetEdgeSubnetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEdgeSubnetsResult> getEdgeSubnets(GetEdgeSubnetsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Waas/getEdgeSubnets:getEdgeSubnets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getEdgeSubnets Result

    The following output properties are available:

    EdgeSubnets List<GetEdgeSubnetsEdgeSubnet>
    The list of edge_subnets.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetEdgeSubnetsFilter>
    EdgeSubnets []GetEdgeSubnetsEdgeSubnet
    The list of edge_subnets.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetEdgeSubnetsFilter
    edgeSubnets List<GetEdgeSubnetsEdgeSubnet>
    The list of edge_subnets.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetEdgeSubnetsFilter>
    edgeSubnets GetEdgeSubnetsEdgeSubnet[]
    The list of edge_subnets.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetEdgeSubnetsFilter[]
    edge_subnets Sequence[waas.GetEdgeSubnetsEdgeSubnet]
    The list of edge_subnets.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[waas.GetEdgeSubnetsFilter]
    edgeSubnets List<Property Map>
    The list of edge_subnets.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetEdgeSubnetsEdgeSubnet

    Cidr string
    An edge node subnet. This can include /24 or /8 addresses.
    Region string
    The name of the region containing the indicated subnet.
    TimeModified string
    The date and time the last change was made to the indicated edge node subnet, expressed in RFC 3339 timestamp format.
    Cidr string
    An edge node subnet. This can include /24 or /8 addresses.
    Region string
    The name of the region containing the indicated subnet.
    TimeModified string
    The date and time the last change was made to the indicated edge node subnet, expressed in RFC 3339 timestamp format.
    cidr String
    An edge node subnet. This can include /24 or /8 addresses.
    region String
    The name of the region containing the indicated subnet.
    timeModified String
    The date and time the last change was made to the indicated edge node subnet, expressed in RFC 3339 timestamp format.
    cidr string
    An edge node subnet. This can include /24 or /8 addresses.
    region string
    The name of the region containing the indicated subnet.
    timeModified string
    The date and time the last change was made to the indicated edge node subnet, expressed in RFC 3339 timestamp format.
    cidr str
    An edge node subnet. This can include /24 or /8 addresses.
    region str
    The name of the region containing the indicated subnet.
    time_modified str
    The date and time the last change was made to the indicated edge node subnet, expressed in RFC 3339 timestamp format.
    cidr String
    An edge node subnet. This can include /24 or /8 addresses.
    region String
    The name of the region containing the indicated subnet.
    timeModified String
    The date and time the last change was made to the indicated edge node subnet, expressed in RFC 3339 timestamp format.

    GetEdgeSubnetsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi