Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getIpInventorySubnetCidr
Explore with Pulumi AI
This data source provides details about a specific Ip Inventory Subnet Cidr resource in Oracle Cloud Infrastructure Core service.
Gets the CIDR utilization data of the specified subnet. Specify the OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testIpInventorySubnetCidr = oci.Core.getIpInventorySubnetCidr({
    subnetId: testSubnet.id,
});
import pulumi
import pulumi_oci as oci
test_ip_inventory_subnet_cidr = oci.Core.get_ip_inventory_subnet_cidr(subnet_id=test_subnet["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.GetIpInventorySubnetCidr(ctx, &core.GetIpInventorySubnetCidrArgs{
			SubnetId: testSubnet.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 testIpInventorySubnetCidr = Oci.Core.GetIpInventorySubnetCidr.Invoke(new()
    {
        SubnetId = testSubnet.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.GetIpInventorySubnetCidrArgs;
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 testIpInventorySubnetCidr = CoreFunctions.getIpInventorySubnetCidr(GetIpInventorySubnetCidrArgs.builder()
            .subnetId(testSubnet.id())
            .build());
    }
}
variables:
  testIpInventorySubnetCidr:
    fn::invoke:
      function: oci:Core:getIpInventorySubnetCidr
      arguments:
        subnetId: ${testSubnet.id}
Using getIpInventorySubnetCidr
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 getIpInventorySubnetCidr(args: GetIpInventorySubnetCidrArgs, opts?: InvokeOptions): Promise<GetIpInventorySubnetCidrResult>
function getIpInventorySubnetCidrOutput(args: GetIpInventorySubnetCidrOutputArgs, opts?: InvokeOptions): Output<GetIpInventorySubnetCidrResult>def get_ip_inventory_subnet_cidr(subnet_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetIpInventorySubnetCidrResult
def get_ip_inventory_subnet_cidr_output(subnet_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetIpInventorySubnetCidrResult]func GetIpInventorySubnetCidr(ctx *Context, args *GetIpInventorySubnetCidrArgs, opts ...InvokeOption) (*GetIpInventorySubnetCidrResult, error)
func GetIpInventorySubnetCidrOutput(ctx *Context, args *GetIpInventorySubnetCidrOutputArgs, opts ...InvokeOption) GetIpInventorySubnetCidrResultOutput> Note: This function is named GetIpInventorySubnetCidr in the Go SDK.
public static class GetIpInventorySubnetCidr 
{
    public static Task<GetIpInventorySubnetCidrResult> InvokeAsync(GetIpInventorySubnetCidrArgs args, InvokeOptions? opts = null)
    public static Output<GetIpInventorySubnetCidrResult> Invoke(GetIpInventorySubnetCidrInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIpInventorySubnetCidrResult> getIpInventorySubnetCidr(GetIpInventorySubnetCidrArgs args, InvokeOptions options)
public static Output<GetIpInventorySubnetCidrResult> getIpInventorySubnetCidr(GetIpInventorySubnetCidrArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getIpInventorySubnetCidr:getIpInventorySubnetCidr
  arguments:
    # arguments dictionaryThe following arguments are supported:
getIpInventorySubnetCidr Result
The following output properties are available:
- CompartmentId string
- Compartment of the subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- IpInventory List<GetCidr Utilization Summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary> 
- Lists 'IpInventoryCidrUtilizationSummary` object.
- IpInventory intSubnet Cidr Count 
- Specifies the count for the number of results for the response.
- LastUpdated stringTimestamp 
- 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.
- SubnetId string
- CompartmentId string
- Compartment of the subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- IpInventory []GetCidr Utilization Summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary 
- Lists 'IpInventoryCidrUtilizationSummary` object.
- IpInventory intSubnet Cidr Count 
- Specifies the count for the number of results for the response.
- LastUpdated stringTimestamp 
- 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.
- SubnetId string
- compartmentId String
- Compartment of the subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- ipInventory List<GetCidr Utilization Summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary> 
- Lists 'IpInventoryCidrUtilizationSummary` object.
- ipInventory IntegerSubnet Cidr Count 
- Specifies the count for the number of results for the response.
- lastUpdated StringTimestamp 
- 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.
- subnetId String
- compartmentId string
- Compartment of the subnet.
- id string
- The provider-assigned unique ID for this managed resource.
- ipInventory GetCidr Utilization Summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary[] 
- Lists 'IpInventoryCidrUtilizationSummary` object.
- ipInventory numberSubnet Cidr Count 
- Specifies the count for the number of results for the response.
- lastUpdated stringTimestamp 
- 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.
- subnetId string
- compartment_id str
- Compartment of the subnet.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_inventory_ Sequence[Getcidr_ utilization_ summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary] 
- Lists 'IpInventoryCidrUtilizationSummary` object.
- ip_inventory_ intsubnet_ cidr_ count 
- Specifies the count for the number of results for the response.
- last_updated_ strtimestamp 
- 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.
- subnet_id str
- compartmentId String
- Compartment of the subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- ipInventory List<Property Map>Cidr Utilization Summaries 
- Lists 'IpInventoryCidrUtilizationSummary` object.
- ipInventory NumberSubnet Cidr Count 
- Specifies the count for the number of results for the response.
- lastUpdated StringTimestamp 
- 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.
- subnetId String
Supporting Types
GetIpInventorySubnetCidrIpInventoryCidrUtilizationSummary         
- AddressType string
- Address type of the CIDR within a subnet.
- Cidr string
- The CIDR range of a subnet.
- Utilization double
- The CIDR utilisation of a subnet.
- AddressType string
- Address type of the CIDR within a subnet.
- Cidr string
- The CIDR range of a subnet.
- Utilization float64
- The CIDR utilisation of a subnet.
- addressType String
- Address type of the CIDR within a subnet.
- cidr String
- The CIDR range of a subnet.
- utilization Double
- The CIDR utilisation of a subnet.
- addressType string
- Address type of the CIDR within a subnet.
- cidr string
- The CIDR range of a subnet.
- utilization number
- The CIDR utilisation of a subnet.
- address_type str
- Address type of the CIDR within a subnet.
- cidr str
- The CIDR range of a subnet.
- utilization float
- The CIDR utilisation of a subnet.
- addressType String
- Address type of the CIDR within a subnet.
- cidr String
- The CIDR range of a subnet.
- utilization Number
- The CIDR utilisation of a subnet.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.