Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getIpInventorySubnet
Explore with Pulumi AI
This data source provides details about a specific Ip Inventory Subnet resource in Oracle Cloud Infrastructure Core service.
Gets the IP Inventory data of the specified subnet. Specify the OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testIpInventorySubnet = oci.Core.getIpInventorySubnet({
    subnetId: testSubnet.id,
});
import pulumi
import pulumi_oci as oci
test_ip_inventory_subnet = oci.Core.get_ip_inventory_subnet(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.GetIpInventorySubnet(ctx, &core.GetIpInventorySubnetArgs{
			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 testIpInventorySubnet = Oci.Core.GetIpInventorySubnet.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.GetIpInventorySubnetArgs;
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 testIpInventorySubnet = CoreFunctions.getIpInventorySubnet(GetIpInventorySubnetArgs.builder()
            .subnetId(testSubnet.id())
            .build());
    }
}
variables:
  testIpInventorySubnet:
    fn::invoke:
      function: oci:Core:getIpInventorySubnet
      arguments:
        subnetId: ${testSubnet.id}
Using getIpInventorySubnet
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 getIpInventorySubnet(args: GetIpInventorySubnetArgs, opts?: InvokeOptions): Promise<GetIpInventorySubnetResult>
function getIpInventorySubnetOutput(args: GetIpInventorySubnetOutputArgs, opts?: InvokeOptions): Output<GetIpInventorySubnetResult>def get_ip_inventory_subnet(subnet_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetIpInventorySubnetResult
def get_ip_inventory_subnet_output(subnet_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetIpInventorySubnetResult]func GetIpInventorySubnet(ctx *Context, args *GetIpInventorySubnetArgs, opts ...InvokeOption) (*GetIpInventorySubnetResult, error)
func GetIpInventorySubnetOutput(ctx *Context, args *GetIpInventorySubnetOutputArgs, opts ...InvokeOption) GetIpInventorySubnetResultOutput> Note: This function is named GetIpInventorySubnet in the Go SDK.
public static class GetIpInventorySubnet 
{
    public static Task<GetIpInventorySubnetResult> InvokeAsync(GetIpInventorySubnetArgs args, InvokeOptions? opts = null)
    public static Output<GetIpInventorySubnetResult> Invoke(GetIpInventorySubnetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIpInventorySubnetResult> getIpInventorySubnet(GetIpInventorySubnetArgs args, InvokeOptions options)
public static Output<GetIpInventorySubnetResult> getIpInventorySubnet(GetIpInventorySubnetArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getIpInventorySubnet:getIpInventorySubnet
  arguments:
    # arguments dictionaryThe following arguments are supported:
getIpInventorySubnet Result
The following output properties are available:
- CompartmentId string
- The compartment of the subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- IpInventory intSubnet Count 
- Specifies the count for the number of results for the response.
- IpInventory List<GetSubnet Resource Summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary> 
- Lists SubnetResourceSummaryobjects.
- 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
- The compartment of the subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- IpInventory intSubnet Count 
- Specifies the count for the number of results for the response.
- IpInventory []GetSubnet Resource Summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary 
- Lists SubnetResourceSummaryobjects.
- 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
- The compartment of the subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- ipInventory IntegerSubnet Count 
- Specifies the count for the number of results for the response.
- ipInventory List<GetSubnet Resource Summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary> 
- Lists SubnetResourceSummaryobjects.
- 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
- The compartment of the subnet.
- id string
- The provider-assigned unique ID for this managed resource.
- ipInventory numberSubnet Count 
- Specifies the count for the number of results for the response.
- ipInventory GetSubnet Resource Summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary[] 
- Lists SubnetResourceSummaryobjects.
- 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
- The compartment of the subnet.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_inventory_ intsubnet_ count 
- Specifies the count for the number of results for the response.
- ip_inventory_ Sequence[Getsubnet_ resource_ summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary] 
- Lists SubnetResourceSummaryobjects.
- 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
- The compartment of the subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- ipInventory NumberSubnet Count 
- Specifies the count for the number of results for the response.
- ipInventory List<Property Map>Subnet Resource Summaries 
- Lists SubnetResourceSummaryobjects.
- 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
GetIpInventorySubnetIpInventorySubnetResourceSummary        
- AddressType string
- Address type of the allocated private IP address.
- AssignedResource stringName 
- Name of the created resource.
- AssignedResource stringType 
- Type of the resource.
- AssignedTime string
- Assigned time of the private IP address.
- AssociatedPublic stringIp 
- Associated public IP address for the private IP address.
- AssociatedPublic stringIp Pool 
- Public IP address Pool the IP address is allocated from.
- DnsHost stringName 
- DNS hostname of the IP address.
- IpAddress string
- Lists the allocated private IP address.
- IpAddress stringLifetime 
- Lifetime of the allocated private IP address.
- IpId string
- The OCID of the IP address.
- ParentCidr string
- The address range the IP address is assigned from.
- PublicIp stringLifetime 
- Lifetime of the assigned public IP address.
- AddressType string
- Address type of the allocated private IP address.
- AssignedResource stringName 
- Name of the created resource.
- AssignedResource stringType 
- Type of the resource.
- AssignedTime string
- Assigned time of the private IP address.
- AssociatedPublic stringIp 
- Associated public IP address for the private IP address.
- AssociatedPublic stringIp Pool 
- Public IP address Pool the IP address is allocated from.
- DnsHost stringName 
- DNS hostname of the IP address.
- IpAddress string
- Lists the allocated private IP address.
- IpAddress stringLifetime 
- Lifetime of the allocated private IP address.
- IpId string
- The OCID of the IP address.
- ParentCidr string
- The address range the IP address is assigned from.
- PublicIp stringLifetime 
- Lifetime of the assigned public IP address.
- addressType String
- Address type of the allocated private IP address.
- assignedResource StringName 
- Name of the created resource.
- assignedResource StringType 
- Type of the resource.
- assignedTime String
- Assigned time of the private IP address.
- associatedPublic StringIp 
- Associated public IP address for the private IP address.
- associatedPublic StringIp Pool 
- Public IP address Pool the IP address is allocated from.
- dnsHost StringName 
- DNS hostname of the IP address.
- ipAddress String
- Lists the allocated private IP address.
- ipAddress StringLifetime 
- Lifetime of the allocated private IP address.
- ipId String
- The OCID of the IP address.
- parentCidr String
- The address range the IP address is assigned from.
- publicIp StringLifetime 
- Lifetime of the assigned public IP address.
- addressType string
- Address type of the allocated private IP address.
- assignedResource stringName 
- Name of the created resource.
- assignedResource stringType 
- Type of the resource.
- assignedTime string
- Assigned time of the private IP address.
- associatedPublic stringIp 
- Associated public IP address for the private IP address.
- associatedPublic stringIp Pool 
- Public IP address Pool the IP address is allocated from.
- dnsHost stringName 
- DNS hostname of the IP address.
- ipAddress string
- Lists the allocated private IP address.
- ipAddress stringLifetime 
- Lifetime of the allocated private IP address.
- ipId string
- The OCID of the IP address.
- parentCidr string
- The address range the IP address is assigned from.
- publicIp stringLifetime 
- Lifetime of the assigned public IP address.
- address_type str
- Address type of the allocated private IP address.
- assigned_resource_ strname 
- Name of the created resource.
- assigned_resource_ strtype 
- Type of the resource.
- assigned_time str
- Assigned time of the private IP address.
- associated_public_ strip 
- Associated public IP address for the private IP address.
- associated_public_ strip_ pool 
- Public IP address Pool the IP address is allocated from.
- dns_host_ strname 
- DNS hostname of the IP address.
- ip_address str
- Lists the allocated private IP address.
- ip_address_ strlifetime 
- Lifetime of the allocated private IP address.
- ip_id str
- The OCID of the IP address.
- parent_cidr str
- The address range the IP address is assigned from.
- public_ip_ strlifetime 
- Lifetime of the assigned public IP address.
- addressType String
- Address type of the allocated private IP address.
- assignedResource StringName 
- Name of the created resource.
- assignedResource StringType 
- Type of the resource.
- assignedTime String
- Assigned time of the private IP address.
- associatedPublic StringIp 
- Associated public IP address for the private IP address.
- associatedPublic StringIp Pool 
- Public IP address Pool the IP address is allocated from.
- dnsHost StringName 
- DNS hostname of the IP address.
- ipAddress String
- Lists the allocated private IP address.
- ipAddress StringLifetime 
- Lifetime of the allocated private IP address.
- ipId String
- The OCID of the IP address.
- parentCidr String
- The address range the IP address is assigned from.
- publicIp StringLifetime 
- Lifetime of the assigned public IP address.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.