1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpInventoryVcnOverlaps
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Core.getIpInventoryVcnOverlaps

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testIpInventoryVcnOverlaps:
    fn::invoke:
      function: oci:Core:getIpInventoryVcnOverlaps
      arguments:
        compartmentLists: ${ipInventoryVcnOverlapCompartmentList}
        regionLists: ${ipInventoryVcnOverlapRegionList}
        vcnId: ${testVcn.id}
Copy

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>
Copy
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]
Copy
func GetIpInventoryVcnOverlaps(ctx *Context, args *GetIpInventoryVcnOverlapsArgs, opts ...InvokeOption) (*GetIpInventoryVcnOverlapsResult, error)
func GetIpInventoryVcnOverlapsOutput(ctx *Context, args *GetIpInventoryVcnOverlapsOutputArgs, opts ...InvokeOption) GetIpInventoryVcnOverlapsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetIpInventoryVcnOverlapsResult> getIpInventoryVcnOverlaps(GetIpInventoryVcnOverlapsArgs args, InvokeOptions options)
public static Output<GetIpInventoryVcnOverlapsResult> getIpInventoryVcnOverlaps(GetIpInventoryVcnOverlapsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getIpInventoryVcnOverlaps:getIpInventoryVcnOverlaps
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentLists This property is required. List<string>
The list of OCID of the compartments.
RegionLists This property is required. List<string>
Lists the selected regions.
VcnId This property is required. string
Specify the OCID of the VCN.
Filters Changes to this property will trigger replacement. List<GetIpInventoryVcnOverlapsFilter>
CompartmentLists This property is required. []string
The list of OCID of the compartments.
RegionLists This property is required. []string
Lists the selected regions.
VcnId This property is required. string
Specify the OCID of the VCN.
Filters Changes to this property will trigger replacement. []GetIpInventoryVcnOverlapsFilter
compartmentLists This property is required. List<String>
The list of OCID of the compartments.
regionLists This property is required. List<String>
Lists the selected regions.
vcnId This property is required. String
Specify the OCID of the VCN.
filters Changes to this property will trigger replacement. List<GetIpInventoryVcnOverlapsFilter>
compartmentLists This property is required. string[]
The list of OCID of the compartments.
regionLists This property is required. string[]
Lists the selected regions.
vcnId This property is required. string
Specify the OCID of the VCN.
filters Changes to this property will trigger replacement. GetIpInventoryVcnOverlapsFilter[]
compartment_lists This property is required. Sequence[str]
The list of OCID of the compartments.
region_lists This property is required. Sequence[str]
Lists the selected regions.
vcn_id This property is required. str
Specify the OCID of the VCN.
filters Changes to this property will trigger replacement. Sequence[core.GetIpInventoryVcnOverlapsFilter]
compartmentLists This property is required. List<String>
The list of OCID of the compartments.
regionLists This property is required. List<String>
Lists the selected regions.
vcnId This property is required. String
Specify the OCID of the VCN.
filters Changes to this property will trigger replacement. 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 This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetIpInventoryVcnOverlapsIpInventoryVcnOverlapSummary

Cidr This property is required. string
CIDR prefix of the VCN.
OverlappingCidr This property is required. string
The overlapping CIDR prefix.
OverlappingVcnId This property is required. string
The OCID of the VCN .
OverlappingVcnName This property is required. string
Name of the overlapping VCN.
Cidr This property is required. string
CIDR prefix of the VCN.
OverlappingCidr This property is required. string
The overlapping CIDR prefix.
OverlappingVcnId This property is required. string
The OCID of the VCN .
OverlappingVcnName This property is required. string
Name of the overlapping VCN.
cidr This property is required. String
CIDR prefix of the VCN.
overlappingCidr This property is required. String
The overlapping CIDR prefix.
overlappingVcnId This property is required. String
The OCID of the VCN .
overlappingVcnName This property is required. String
Name of the overlapping VCN.
cidr This property is required. string
CIDR prefix of the VCN.
overlappingCidr This property is required. string
The overlapping CIDR prefix.
overlappingVcnId This property is required. string
The OCID of the VCN .
overlappingVcnName This property is required. string
Name of the overlapping VCN.
cidr This property is required. str
CIDR prefix of the VCN.
overlapping_cidr This property is required. str
The overlapping CIDR prefix.
overlapping_vcn_id This property is required. str
The OCID of the VCN .
overlapping_vcn_name This property is required. str
Name of the overlapping VCN.
cidr This property is required. String
CIDR prefix of the VCN.
overlappingCidr This property is required. String
The overlapping CIDR prefix.
overlappingVcnId This property is required. String
The OCID of the VCN .
overlappingVcnName This property is required. 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.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi