1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpInventorySubnet
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getIpInventorySubnet

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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 dictionary

    The following arguments are supported:

    SubnetId string
    Specify the OCID of the subnet.
    SubnetId string
    Specify the OCID of the subnet.
    subnetId String
    Specify the OCID of the subnet.
    subnetId string
    Specify the OCID of the subnet.
    subnet_id str
    Specify the OCID of the subnet.
    subnetId 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 string
    Address type of the allocated private IP address.
    AssignedResourceName string
    Name of the created resource.
    AssignedResourceType string
    Type of the resource.
    AssignedTime string
    Assigned time of the private IP address.
    AssociatedPublicIp string
    Associated public IP address for the private IP address.
    AssociatedPublicIpPool string
    Public IP address Pool the IP address is allocated from.
    DnsHostName string
    DNS hostname of the IP address.
    IpAddress string
    Lists the allocated private IP address.
    IpAddressLifetime string
    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.
    PublicIpLifetime string
    Lifetime of the assigned public IP address.
    AddressType string
    Address type of the allocated private IP address.
    AssignedResourceName string
    Name of the created resource.
    AssignedResourceType string
    Type of the resource.
    AssignedTime string
    Assigned time of the private IP address.
    AssociatedPublicIp string
    Associated public IP address for the private IP address.
    AssociatedPublicIpPool string
    Public IP address Pool the IP address is allocated from.
    DnsHostName string
    DNS hostname of the IP address.
    IpAddress string
    Lists the allocated private IP address.
    IpAddressLifetime string
    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.
    PublicIpLifetime string
    Lifetime of the assigned public IP address.
    addressType String
    Address type of the allocated private IP address.
    assignedResourceName String
    Name of the created resource.
    assignedResourceType String
    Type of the resource.
    assignedTime String
    Assigned time of the private IP address.
    associatedPublicIp String
    Associated public IP address for the private IP address.
    associatedPublicIpPool String
    Public IP address Pool the IP address is allocated from.
    dnsHostName String
    DNS hostname of the IP address.
    ipAddress String
    Lists the allocated private IP address.
    ipAddressLifetime String
    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.
    publicIpLifetime String
    Lifetime of the assigned public IP address.
    addressType string
    Address type of the allocated private IP address.
    assignedResourceName string
    Name of the created resource.
    assignedResourceType string
    Type of the resource.
    assignedTime string
    Assigned time of the private IP address.
    associatedPublicIp string
    Associated public IP address for the private IP address.
    associatedPublicIpPool string
    Public IP address Pool the IP address is allocated from.
    dnsHostName string
    DNS hostname of the IP address.
    ipAddress string
    Lists the allocated private IP address.
    ipAddressLifetime string
    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.
    publicIpLifetime string
    Lifetime of the assigned public IP address.
    address_type str
    Address type of the allocated private IP address.
    assigned_resource_name str
    Name of the created resource.
    assigned_resource_type str
    Type of the resource.
    assigned_time str
    Assigned time of the private IP address.
    associated_public_ip str
    Associated public IP address for the private IP address.
    associated_public_ip_pool str
    Public IP address Pool the IP address is allocated from.
    dns_host_name str
    DNS hostname of the IP address.
    ip_address str
    Lists the allocated private IP address.
    ip_address_lifetime str
    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_lifetime str
    Lifetime of the assigned public IP address.
    addressType String
    Address type of the allocated private IP address.
    assignedResourceName String
    Name of the created resource.
    assignedResourceType String
    Type of the resource.
    assignedTime String
    Assigned time of the private IP address.
    associatedPublicIp String
    Associated public IP address for the private IP address.
    associatedPublicIpPool String
    Public IP address Pool the IP address is allocated from.
    dnsHostName String
    DNS hostname of the IP address.
    ipAddress String
    Lists the allocated private IP address.
    ipAddressLifetime String
    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.
    publicIpLifetime 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi