1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpInventorySubnetCidr
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Core.getIpInventorySubnetCidr

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getIpInventorySubnetCidr:getIpInventorySubnetCidr
      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.

    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.
    IpInventoryCidrUtilizationSummaries List<GetIpInventorySubnetCidrIpInventoryCidrUtilizationSummary>
    Lists 'IpInventoryCidrUtilizationSummary` object.
    IpInventorySubnetCidrCount int
    Specifies the count for the number of results for the response.
    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
    Compartment of the subnet.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpInventoryCidrUtilizationSummaries []GetIpInventorySubnetCidrIpInventoryCidrUtilizationSummary
    Lists 'IpInventoryCidrUtilizationSummary` object.
    IpInventorySubnetCidrCount int
    Specifies the count for the number of results for the response.
    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
    Compartment of the subnet.
    id String
    The provider-assigned unique ID for this managed resource.
    ipInventoryCidrUtilizationSummaries List<GetIpInventorySubnetCidrIpInventoryCidrUtilizationSummary>
    Lists 'IpInventoryCidrUtilizationSummary` object.
    ipInventorySubnetCidrCount Integer
    Specifies the count for the number of results for the response.
    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
    Compartment of the subnet.
    id string
    The provider-assigned unique ID for this managed resource.
    ipInventoryCidrUtilizationSummaries GetIpInventorySubnetCidrIpInventoryCidrUtilizationSummary[]
    Lists 'IpInventoryCidrUtilizationSummary` object.
    ipInventorySubnetCidrCount number
    Specifies the count for the number of results for the response.
    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
    Compartment of the subnet.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_inventory_cidr_utilization_summaries Sequence[core.GetIpInventorySubnetCidrIpInventoryCidrUtilizationSummary]
    Lists 'IpInventoryCidrUtilizationSummary` object.
    ip_inventory_subnet_cidr_count int
    Specifies the count for the number of results for the response.
    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
    Compartment of the subnet.
    id String
    The provider-assigned unique ID for this managed resource.
    ipInventoryCidrUtilizationSummaries List<Property Map>
    Lists 'IpInventoryCidrUtilizationSummary` object.
    ipInventorySubnetCidrCount Number
    Specifies the count for the number of results for the response.
    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

    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi