Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getIpInventorySubnetCidr
Explore with Pulumi AI
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/v2/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:
getIpInventorySubnetCidr Result
The following output properties are available:
- Compartment
Id string - Compartment of the subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Inventory List<GetCidr Utilization Summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary> - Lists 'IpInventoryCidrUtilizationSummary` object.
- Ip
Inventory intSubnet Cidr Count - Specifies the count for the number of results for the response.
- 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 - Compartment of the subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Inventory []GetCidr Utilization Summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary - Lists 'IpInventoryCidrUtilizationSummary` object.
- Ip
Inventory intSubnet Cidr Count - Specifies the count for the number of results for the response.
- 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 - Compartment of the subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Inventory List<GetCidr Utilization Summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary> - Lists 'IpInventoryCidrUtilizationSummary` object.
- ip
Inventory IntegerSubnet Cidr Count - Specifies the count for the number of results for the response.
- 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 - Compartment of the subnet.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Inventory GetCidr Utilization Summaries Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary[] - Lists 'IpInventoryCidrUtilizationSummary` object.
- ip
Inventory numberSubnet Cidr Count - Specifies the count for the number of results for the response.
- 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 - Compartment of the subnet.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
inventory_ Sequence[core.cidr_ utilization_ summaries Get Ip Inventory Subnet Cidr Ip Inventory Cidr Utilization Summary] - Lists 'IpInventoryCidrUtilizationSummary` object.
- ip_
inventory_ intsubnet_ cidr_ count - Specifies the count for the number of results for the response.
- 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 - Compartment of the subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Inventory List<Property Map>Cidr Utilization Summaries - Lists 'IpInventoryCidrUtilizationSummary` object.
- ip
Inventory NumberSubnet Cidr Count - Specifies the count for the number of results for the response.
- 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
GetIpInventorySubnetCidrIpInventoryCidrUtilizationSummary
- Address
Type 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.
- Address
Type 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.
- address
Type 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.
- address
Type 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.
- address
Type 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.