1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpInventorySubnet
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Core.getIpInventorySubnet

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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,
});
Copy
import pulumi
import pulumi_oci as oci

test_ip_inventory_subnet = oci.Core.get_ip_inventory_subnet(subnet_id=test_subnet["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.GetIpInventorySubnet(ctx, &core.GetIpInventorySubnetArgs{
			SubnetId: testSubnet.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 testIpInventorySubnet = Oci.Core.GetIpInventorySubnet.Invoke(new()
    {
        SubnetId = testSubnet.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.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());

    }
}
Copy
variables:
  testIpInventorySubnet:
    fn::invoke:
      function: oci:Core:getIpInventorySubnet
      arguments:
        subnetId: ${testSubnet.id}
Copy

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>
Copy
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]
Copy
func GetIpInventorySubnet(ctx *Context, args *GetIpInventorySubnetArgs, opts ...InvokeOption) (*GetIpInventorySubnetResult, error)
func GetIpInventorySubnetOutput(ctx *Context, args *GetIpInventorySubnetOutputArgs, opts ...InvokeOption) GetIpInventorySubnetResultOutput
Copy

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

The following arguments are supported:

SubnetId This property is required. string
Specify the OCID of the subnet.
SubnetId This property is required. string
Specify the OCID of the subnet.
subnetId This property is required. String
Specify the OCID of the subnet.
subnetId This property is required. string
Specify the OCID of the subnet.
subnet_id This property is required. str
Specify the OCID of the subnet.
subnetId This property is required. String
Specify the OCID of the subnet.

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.
IpInventorySubnetCount int
Specifies the count for the number of results for the response.
IpInventorySubnetResourceSummaries List<GetIpInventorySubnetIpInventorySubnetResourceSummary>
Lists SubnetResourceSummary objects.
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.
SubnetId string
CompartmentId string
The compartment of the subnet.
Id string
The provider-assigned unique ID for this managed resource.
IpInventorySubnetCount int
Specifies the count for the number of results for the response.
IpInventorySubnetResourceSummaries []GetIpInventorySubnetIpInventorySubnetResourceSummary
Lists SubnetResourceSummary objects.
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.
SubnetId string
compartmentId String
The compartment of the subnet.
id String
The provider-assigned unique ID for this managed resource.
ipInventorySubnetCount Integer
Specifies the count for the number of results for the response.
ipInventorySubnetResourceSummaries List<GetIpInventorySubnetIpInventorySubnetResourceSummary>
Lists SubnetResourceSummary objects.
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.
subnetId String
compartmentId string
The compartment of the subnet.
id string
The provider-assigned unique ID for this managed resource.
ipInventorySubnetCount number
Specifies the count for the number of results for the response.
ipInventorySubnetResourceSummaries GetIpInventorySubnetIpInventorySubnetResourceSummary[]
Lists SubnetResourceSummary objects.
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.
subnetId string
compartment_id str
The compartment of the subnet.
id str
The provider-assigned unique ID for this managed resource.
ip_inventory_subnet_count int
Specifies the count for the number of results for the response.
ip_inventory_subnet_resource_summaries Sequence[core.GetIpInventorySubnetIpInventorySubnetResourceSummary]
Lists SubnetResourceSummary objects.
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.
subnet_id str
compartmentId String
The compartment of the subnet.
id String
The provider-assigned unique ID for this managed resource.
ipInventorySubnetCount Number
Specifies the count for the number of results for the response.
ipInventorySubnetResourceSummaries List<Property Map>
Lists SubnetResourceSummary objects.
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.
subnetId String

Supporting Types

GetIpInventorySubnetIpInventorySubnetResourceSummary

AddressType This property is required. string
Address type of the allocated private IP address.
AssignedResourceName This property is required. string
Name of the created resource.
AssignedResourceType This property is required. string
Type of the resource.
AssignedTime This property is required. string
Assigned time of the private IP address.
AssociatedPublicIp This property is required. string
Associated public IP address for the private IP address.
AssociatedPublicIpPool This property is required. string
Public IP address Pool the IP address is allocated from.
DnsHostName This property is required. string
DNS hostname of the IP address.
IpAddress This property is required. string
Lists the allocated private IP address.
IpAddressLifetime This property is required. string
Lifetime of the allocated private IP address.
IpId This property is required. string
The OCID of the IP address.
ParentCidr This property is required. string
The address range the IP address is assigned from.
PublicIpLifetime This property is required. string
Lifetime of the assigned public IP address.
AddressType This property is required. string
Address type of the allocated private IP address.
AssignedResourceName This property is required. string
Name of the created resource.
AssignedResourceType This property is required. string
Type of the resource.
AssignedTime This property is required. string
Assigned time of the private IP address.
AssociatedPublicIp This property is required. string
Associated public IP address for the private IP address.
AssociatedPublicIpPool This property is required. string
Public IP address Pool the IP address is allocated from.
DnsHostName This property is required. string
DNS hostname of the IP address.
IpAddress This property is required. string
Lists the allocated private IP address.
IpAddressLifetime This property is required. string
Lifetime of the allocated private IP address.
IpId This property is required. string
The OCID of the IP address.
ParentCidr This property is required. string
The address range the IP address is assigned from.
PublicIpLifetime This property is required. string
Lifetime of the assigned public IP address.
addressType This property is required. String
Address type of the allocated private IP address.
assignedResourceName This property is required. String
Name of the created resource.
assignedResourceType This property is required. String
Type of the resource.
assignedTime This property is required. String
Assigned time of the private IP address.
associatedPublicIp This property is required. String
Associated public IP address for the private IP address.
associatedPublicIpPool This property is required. String
Public IP address Pool the IP address is allocated from.
dnsHostName This property is required. String
DNS hostname of the IP address.
ipAddress This property is required. String
Lists the allocated private IP address.
ipAddressLifetime This property is required. String
Lifetime of the allocated private IP address.
ipId This property is required. String
The OCID of the IP address.
parentCidr This property is required. String
The address range the IP address is assigned from.
publicIpLifetime This property is required. String
Lifetime of the assigned public IP address.
addressType This property is required. string
Address type of the allocated private IP address.
assignedResourceName This property is required. string
Name of the created resource.
assignedResourceType This property is required. string
Type of the resource.
assignedTime This property is required. string
Assigned time of the private IP address.
associatedPublicIp This property is required. string
Associated public IP address for the private IP address.
associatedPublicIpPool This property is required. string
Public IP address Pool the IP address is allocated from.
dnsHostName This property is required. string
DNS hostname of the IP address.
ipAddress This property is required. string
Lists the allocated private IP address.
ipAddressLifetime This property is required. string
Lifetime of the allocated private IP address.
ipId This property is required. string
The OCID of the IP address.
parentCidr This property is required. string
The address range the IP address is assigned from.
publicIpLifetime This property is required. string
Lifetime of the assigned public IP address.
address_type This property is required. str
Address type of the allocated private IP address.
assigned_resource_name This property is required. str
Name of the created resource.
assigned_resource_type This property is required. str
Type of the resource.
assigned_time This property is required. str
Assigned time of the private IP address.
associated_public_ip This property is required. str
Associated public IP address for the private IP address.
associated_public_ip_pool This property is required. str
Public IP address Pool the IP address is allocated from.
dns_host_name This property is required. str
DNS hostname of the IP address.
ip_address This property is required. str
Lists the allocated private IP address.
ip_address_lifetime This property is required. str
Lifetime of the allocated private IP address.
ip_id This property is required. str
The OCID of the IP address.
parent_cidr This property is required. str
The address range the IP address is assigned from.
public_ip_lifetime This property is required. str
Lifetime of the assigned public IP address.
addressType This property is required. String
Address type of the allocated private IP address.
assignedResourceName This property is required. String
Name of the created resource.
assignedResourceType This property is required. String
Type of the resource.
assignedTime This property is required. String
Assigned time of the private IP address.
associatedPublicIp This property is required. String
Associated public IP address for the private IP address.
associatedPublicIpPool This property is required. String
Public IP address Pool the IP address is allocated from.
dnsHostName This property is required. String
DNS hostname of the IP address.
ipAddress This property is required. String
Lists the allocated private IP address.
ipAddressLifetime This property is required. String
Lifetime of the allocated private IP address.
ipId This property is required. String
The OCID of the IP address.
parentCidr This property is required. String
The address range the IP address is assigned from.
publicIpLifetime This property is required. String
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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi