"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPrivateIpsOutput = exports.getPrivateIps = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This data source provides the list of Private Ips in Oracle Cloud Infrastructure Core service.
 *
 * Lists the [PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/) objects based
 * on one of these filters:
 *
 *   - Subnet [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
 *   - VNIC [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
 *   - Both private IP address and subnet OCID: This lets
 *       you get a `privateIP` object based on its private IP
 *       address (for example, 10.0.3.3) and not its [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For comparison,
 *       [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
 *       requires the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
 *
 * If you're listing all the private IPs associated with a given subnet
 * or VNIC, the response includes both primary and secondary private IPs.
 *
 * If you are an Oracle Cloud VMware Solution customer and have VLANs
 * in your VCN, you can filter the list by VLAN [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). See [Vlan](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vlan).
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * // Filter on Subnet OCID
 * const testPrivateIpsBySubnet = oci.core.getPrivateIps({
 *     subnetId: privateIpSubnetId,
 * });
 * ```
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * // Filter on VNIC OCID
 * const testPrivateIpsByVnic = oci.core.getPrivateIps({
 *     vnicId: testVnic.id,
 * });
 * ```
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * // Filter on private IP address and Subnet OCID
 * const testPrivateIpsByIpAddress = oci.core.getPrivateIps({
 *     ipAddress: privateIpIpAddress,
 *     ipState: privateIpIpState,
 *     lifetime: privateIpLifetime,
 *     subnetId: testSubnet.id,
 *     vlanId: testVlan.id,
 *     vnicId: testVnicAttachment.id,
 * });
 * ```
 */
function getPrivateIps(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("oci:Core/getPrivateIps:getPrivateIps", {
        "filters": args.filters,
        "ipAddress": args.ipAddress,
        "ipState": args.ipState,
        "lifetime": args.lifetime,
        "subnetId": args.subnetId,
        "vlanId": args.vlanId,
        "vnicId": args.vnicId,
    }, opts);
}
exports.getPrivateIps = getPrivateIps;
/**
 * This data source provides the list of Private Ips in Oracle Cloud Infrastructure Core service.
 *
 * Lists the [PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/) objects based
 * on one of these filters:
 *
 *   - Subnet [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
 *   - VNIC [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
 *   - Both private IP address and subnet OCID: This lets
 *       you get a `privateIP` object based on its private IP
 *       address (for example, 10.0.3.3) and not its [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For comparison,
 *       [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
 *       requires the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
 *
 * If you're listing all the private IPs associated with a given subnet
 * or VNIC, the response includes both primary and secondary private IPs.
 *
 * If you are an Oracle Cloud VMware Solution customer and have VLANs
 * in your VCN, you can filter the list by VLAN [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). See [Vlan](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vlan).
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * // Filter on Subnet OCID
 * const testPrivateIpsBySubnet = oci.core.getPrivateIps({
 *     subnetId: privateIpSubnetId,
 * });
 * ```
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * // Filter on VNIC OCID
 * const testPrivateIpsByVnic = oci.core.getPrivateIps({
 *     vnicId: testVnic.id,
 * });
 * ```
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * // Filter on private IP address and Subnet OCID
 * const testPrivateIpsByIpAddress = oci.core.getPrivateIps({
 *     ipAddress: privateIpIpAddress,
 *     ipState: privateIpIpState,
 *     lifetime: privateIpLifetime,
 *     subnetId: testSubnet.id,
 *     vlanId: testVlan.id,
 *     vnicId: testVnicAttachment.id,
 * });
 * ```
 */
function getPrivateIpsOutput(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("oci:Core/getPrivateIps:getPrivateIps", {
        "filters": args.filters,
        "ipAddress": args.ipAddress,
        "ipState": args.ipState,
        "lifetime": args.lifetime,
        "subnetId": args.subnetId,
        "vlanId": args.vlanId,
        "vnicId": args.vnicId,
    }, opts);
}
exports.getPrivateIpsOutput = getPrivateIpsOutput;
//# sourceMappingURL=getPrivateIps.js.map