1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpInventoryVcnOverlaps
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.getIpInventoryVcnOverlaps

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Ip Inventory Vcn Overlaps in Oracle Cloud Infrastructure Core service.

    Gets the CIDR overlap information of the specified VCN in selected compartments. Specify the OCID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testIpInventoryVcnOverlaps = oci.Core.getIpInventoryVcnOverlaps({
        compartmentLists: ipInventoryVcnOverlapCompartmentList,
        regionLists: ipInventoryVcnOverlapRegionList,
        vcnId: testVcn.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_ip_inventory_vcn_overlaps = oci.Core.get_ip_inventory_vcn_overlaps(compartment_lists=ip_inventory_vcn_overlap_compartment_list,
        region_lists=ip_inventory_vcn_overlap_region_list,
        vcn_id=test_vcn["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetIpInventoryVcnOverlaps(ctx, &core.GetIpInventoryVcnOverlapsArgs{
    			CompartmentLists: ipInventoryVcnOverlapCompartmentList,
    			RegionLists:      ipInventoryVcnOverlapRegionList,
    			VcnId:            testVcn.Id,
    		}, 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 testIpInventoryVcnOverlaps = Oci.Core.GetIpInventoryVcnOverlaps.Invoke(new()
        {
            CompartmentLists = ipInventoryVcnOverlapCompartmentList,
            RegionLists = ipInventoryVcnOverlapRegionList,
            VcnId = testVcn.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetIpInventoryVcnOverlapsArgs;
    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 testIpInventoryVcnOverlaps = CoreFunctions.getIpInventoryVcnOverlaps(GetIpInventoryVcnOverlapsArgs.builder()
                .compartmentLists(ipInventoryVcnOverlapCompartmentList)
                .regionLists(ipInventoryVcnOverlapRegionList)
                .vcnId(testVcn.id())
                .build());
    
        }
    }
    
    variables:
      testIpInventoryVcnOverlaps:
        fn::invoke:
          Function: oci:Core:getIpInventoryVcnOverlaps
          Arguments:
            compartmentLists: ${ipInventoryVcnOverlapCompartmentList}
            regionLists: ${ipInventoryVcnOverlapRegionList}
            vcnId: ${testVcn.id}
    

    Using getIpInventoryVcnOverlaps

    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 getIpInventoryVcnOverlaps(args: GetIpInventoryVcnOverlapsArgs, opts?: InvokeOptions): Promise<GetIpInventoryVcnOverlapsResult>
    function getIpInventoryVcnOverlapsOutput(args: GetIpInventoryVcnOverlapsOutputArgs, opts?: InvokeOptions): Output<GetIpInventoryVcnOverlapsResult>
    def get_ip_inventory_vcn_overlaps(compartment_lists: Optional[Sequence[str]] = None,
                                      filters: Optional[Sequence[_core.GetIpInventoryVcnOverlapsFilter]] = None,
                                      region_lists: Optional[Sequence[str]] = None,
                                      vcn_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetIpInventoryVcnOverlapsResult
    def get_ip_inventory_vcn_overlaps_output(compartment_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetIpInventoryVcnOverlapsFilterArgs]]]] = None,
                                      region_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                      vcn_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetIpInventoryVcnOverlapsResult]
    func GetIpInventoryVcnOverlaps(ctx *Context, args *GetIpInventoryVcnOverlapsArgs, opts ...InvokeOption) (*GetIpInventoryVcnOverlapsResult, error)
    func GetIpInventoryVcnOverlapsOutput(ctx *Context, args *GetIpInventoryVcnOverlapsOutputArgs, opts ...InvokeOption) GetIpInventoryVcnOverlapsResultOutput

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

    public static class GetIpInventoryVcnOverlaps 
    {
        public static Task<GetIpInventoryVcnOverlapsResult> InvokeAsync(GetIpInventoryVcnOverlapsArgs args, InvokeOptions? opts = null)
        public static Output<GetIpInventoryVcnOverlapsResult> Invoke(GetIpInventoryVcnOverlapsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIpInventoryVcnOverlapsResult> getIpInventoryVcnOverlaps(GetIpInventoryVcnOverlapsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getIpInventoryVcnOverlaps:getIpInventoryVcnOverlaps
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentLists List<string>
    The list of OCID of the compartments.
    RegionLists List<string>
    Lists the selected regions.
    VcnId string
    Specify the OCID of the VCN.
    Filters List<GetIpInventoryVcnOverlapsFilter>
    CompartmentLists []string
    The list of OCID of the compartments.
    RegionLists []string
    Lists the selected regions.
    VcnId string
    Specify the OCID of the VCN.
    Filters []GetIpInventoryVcnOverlapsFilter
    compartmentLists List<String>
    The list of OCID of the compartments.
    regionLists List<String>
    Lists the selected regions.
    vcnId String
    Specify the OCID of the VCN.
    filters List<GetIpInventoryVcnOverlapsFilter>
    compartmentLists string[]
    The list of OCID of the compartments.
    regionLists string[]
    Lists the selected regions.
    vcnId string
    Specify the OCID of the VCN.
    filters GetIpInventoryVcnOverlapsFilter[]
    compartment_lists Sequence[str]
    The list of OCID of the compartments.
    region_lists Sequence[str]
    Lists the selected regions.
    vcn_id str
    Specify the OCID of the VCN.
    filters Sequence[core.GetIpInventoryVcnOverlapsFilter]
    compartmentLists List<String>
    The list of OCID of the compartments.
    regionLists List<String>
    Lists the selected regions.
    vcnId String
    Specify the OCID of the VCN.
    filters List<Property Map>

    getIpInventoryVcnOverlaps Result

    The following output properties are available:

    CompartmentLists List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    IpInventoryVcnOverlapSummaries List<GetIpInventoryVcnOverlapsIpInventoryVcnOverlapSummary>
    Lists IpInventoryVcnOverlapSummary object.
    LastUpdatedTimestamp string
    The timestamp of the latest update from the database in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    Message string
    Indicates the status of the data.
    OverlapCount int
    The overlap count for the given VCN and compartments.
    RegionLists List<string>
    VcnId string
    Filters List<GetIpInventoryVcnOverlapsFilter>
    CompartmentLists []string
    Id string
    The provider-assigned unique ID for this managed resource.
    IpInventoryVcnOverlapSummaries []GetIpInventoryVcnOverlapsIpInventoryVcnOverlapSummary
    Lists IpInventoryVcnOverlapSummary object.
    LastUpdatedTimestamp string
    The timestamp of the latest update from the database in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    Message string
    Indicates the status of the data.
    OverlapCount int
    The overlap count for the given VCN and compartments.
    RegionLists []string
    VcnId string
    Filters []GetIpInventoryVcnOverlapsFilter
    compartmentLists List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    ipInventoryVcnOverlapSummaries List<GetIpInventoryVcnOverlapsIpInventoryVcnOverlapSummary>
    Lists IpInventoryVcnOverlapSummary object.
    lastUpdatedTimestamp String
    The timestamp of the latest update from the database in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    message String
    Indicates the status of the data.
    overlapCount Integer
    The overlap count for the given VCN and compartments.
    regionLists List<String>
    vcnId String
    filters List<GetIpInventoryVcnOverlapsFilter>
    compartmentLists string[]
    id string
    The provider-assigned unique ID for this managed resource.
    ipInventoryVcnOverlapSummaries GetIpInventoryVcnOverlapsIpInventoryVcnOverlapSummary[]
    Lists IpInventoryVcnOverlapSummary object.
    lastUpdatedTimestamp string
    The timestamp of the latest update from the database in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    message string
    Indicates the status of the data.
    overlapCount number
    The overlap count for the given VCN and compartments.
    regionLists string[]
    vcnId string
    filters GetIpInventoryVcnOverlapsFilter[]
    compartment_lists Sequence[str]
    id str
    The provider-assigned unique ID for this managed resource.
    ip_inventory_vcn_overlap_summaries Sequence[core.GetIpInventoryVcnOverlapsIpInventoryVcnOverlapSummary]
    Lists IpInventoryVcnOverlapSummary object.
    last_updated_timestamp str
    The timestamp of the latest update from the database in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    message str
    Indicates the status of the data.
    overlap_count int
    The overlap count for the given VCN and compartments.
    region_lists Sequence[str]
    vcn_id str
    filters Sequence[core.GetIpInventoryVcnOverlapsFilter]
    compartmentLists List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    ipInventoryVcnOverlapSummaries List<Property Map>
    Lists IpInventoryVcnOverlapSummary object.
    lastUpdatedTimestamp String
    The timestamp of the latest update from the database in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    message String
    Indicates the status of the data.
    overlapCount Number
    The overlap count for the given VCN and compartments.
    regionLists List<String>
    vcnId String
    filters List<Property Map>

    Supporting Types

    GetIpInventoryVcnOverlapsFilter

    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

    GetIpInventoryVcnOverlapsIpInventoryVcnOverlapSummary

    Cidr string
    CIDR prefix of the VCN.
    OverlappingCidr string
    The overlapping CIDR prefix.
    OverlappingVcnId string
    The OCID of the VCN .
    OverlappingVcnName string
    Name of the overlapping VCN.
    Cidr string
    CIDR prefix of the VCN.
    OverlappingCidr string
    The overlapping CIDR prefix.
    OverlappingVcnId string
    The OCID of the VCN .
    OverlappingVcnName string
    Name of the overlapping VCN.
    cidr String
    CIDR prefix of the VCN.
    overlappingCidr String
    The overlapping CIDR prefix.
    overlappingVcnId String
    The OCID of the VCN .
    overlappingVcnName String
    Name of the overlapping VCN.
    cidr string
    CIDR prefix of the VCN.
    overlappingCidr string
    The overlapping CIDR prefix.
    overlappingVcnId string
    The OCID of the VCN .
    overlappingVcnName string
    Name of the overlapping VCN.
    cidr str
    CIDR prefix of the VCN.
    overlapping_cidr str
    The overlapping CIDR prefix.
    overlapping_vcn_id str
    The OCID of the VCN .
    overlapping_vcn_name str
    Name of the overlapping VCN.
    cidr String
    CIDR prefix of the VCN.
    overlappingCidr String
    The overlapping CIDR prefix.
    overlappingVcnId String
    The OCID of the VCN .
    overlappingVcnName String
    Name of the overlapping VCN.

    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi