Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Core/getIpInventorySubnet:getIpInventorySubnet
  arguments:
    # arguments dictionaryThe following arguments are supported:
getIpInventorySubnet Result
The following output properties are available:
- Compartment
Id string - The compartment of the subnet.
 - Id string
 - 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 List<GetSubnet Resource Summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary>  - Lists 
SubnetResourceSummaryobjects. - Last
Updated 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.
 - Subnet
Id string 
- Compartment
Id string - The compartment of the subnet.
 - Id string
 - 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 []GetSubnet Resource Summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary  - Lists 
SubnetResourceSummaryobjects. - Last
Updated 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.
 - Subnet
Id string 
- compartment
Id String - The compartment of the subnet.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ip
Inventory IntegerSubnet Count  - Specifies the count for the number of results for the response.
 - ip
Inventory List<GetSubnet Resource Summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary>  - Lists 
SubnetResourceSummaryobjects. - last
Updated 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.
 - subnet
Id String 
- compartment
Id string - The compartment of the subnet.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ip
Inventory numberSubnet Count  - Specifies the count for the number of results for the response.
 - ip
Inventory GetSubnet Resource Summaries Ip Inventory Subnet Ip Inventory Subnet Resource Summary[]  - Lists 
SubnetResourceSummaryobjects. - last
Updated 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.
 - subnet
Id 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[core.subnet_ resource_ summaries Get 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 
- compartment
Id String - The compartment of the subnet.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ip
Inventory NumberSubnet Count  - Specifies the count for the number of results for the response.
 - ip
Inventory List<Property Map>Subnet Resource Summaries  - Lists 
SubnetResourceSummaryobjects. - last
Updated 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.
 - subnet
Id String 
Supporting Types
GetIpInventorySubnetIpInventorySubnetResourceSummary        
- Address
Type string - Address type of the allocated private IP address.
 - Assigned
Resource stringName  - Name of the created resource.
 - Assigned
Resource stringType  - Type of the resource.
 - Assigned
Time string - Assigned time of the private IP address.
 - Associated
Public stringIp  - Associated public IP address for the private IP address.
 - Associated
Public stringIp Pool  - Public IP address Pool the IP address is allocated from.
 - Dns
Host stringName  - DNS hostname of the IP address.
 - Ip
Address string - Lists the allocated private IP address.
 - Ip
Address stringLifetime  - Lifetime of the allocated private IP address.
 - Ip
Id string - The OCID of the IP address.
 - Parent
Cidr string - The address range the IP address is assigned from.
 - Public
Ip stringLifetime  - Lifetime of the assigned public IP address.
 
- Address
Type string - Address type of the allocated private IP address.
 - Assigned
Resource stringName  - Name of the created resource.
 - Assigned
Resource stringType  - Type of the resource.
 - Assigned
Time string - Assigned time of the private IP address.
 - Associated
Public stringIp  - Associated public IP address for the private IP address.
 - Associated
Public stringIp Pool  - Public IP address Pool the IP address is allocated from.
 - Dns
Host stringName  - DNS hostname of the IP address.
 - Ip
Address string - Lists the allocated private IP address.
 - Ip
Address stringLifetime  - Lifetime of the allocated private IP address.
 - Ip
Id string - The OCID of the IP address.
 - Parent
Cidr string - The address range the IP address is assigned from.
 - Public
Ip stringLifetime  - Lifetime of the assigned public IP address.
 
- address
Type String - Address type of the allocated private IP address.
 - assigned
Resource StringName  - Name of the created resource.
 - assigned
Resource StringType  - Type of the resource.
 - assigned
Time String - Assigned time of the private IP address.
 - associated
Public StringIp  - Associated public IP address for the private IP address.
 - associated
Public StringIp Pool  - Public IP address Pool the IP address is allocated from.
 - dns
Host StringName  - DNS hostname of the IP address.
 - ip
Address String - Lists the allocated private IP address.
 - ip
Address StringLifetime  - Lifetime of the allocated private IP address.
 - ip
Id String - The OCID of the IP address.
 - parent
Cidr String - The address range the IP address is assigned from.
 - public
Ip StringLifetime  - Lifetime of the assigned public IP address.
 
- address
Type string - Address type of the allocated private IP address.
 - assigned
Resource stringName  - Name of the created resource.
 - assigned
Resource stringType  - Type of the resource.
 - assigned
Time string - Assigned time of the private IP address.
 - associated
Public stringIp  - Associated public IP address for the private IP address.
 - associated
Public stringIp Pool  - Public IP address Pool the IP address is allocated from.
 - dns
Host stringName  - DNS hostname of the IP address.
 - ip
Address string - Lists the allocated private IP address.
 - ip
Address stringLifetime  - Lifetime of the allocated private IP address.
 - ip
Id string - The OCID of the IP address.
 - parent
Cidr string - The address range the IP address is assigned from.
 - public
Ip 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.
 
- address
Type String - Address type of the allocated private IP address.
 - assigned
Resource StringName  - Name of the created resource.
 - assigned
Resource StringType  - Type of the resource.
 - assigned
Time String - Assigned time of the private IP address.
 - associated
Public StringIp  - Associated public IP address for the private IP address.
 - associated
Public StringIp Pool  - Public IP address Pool the IP address is allocated from.
 - dns
Host StringName  - DNS hostname of the IP address.
 - ip
Address String - Lists the allocated private IP address.
 - ip
Address StringLifetime  - Lifetime of the allocated private IP address.
 - ip
Id String - The OCID of the IP address.
 - parent
Cidr String - The address range the IP address is assigned from.
 - public
Ip 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.