"use strict";
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInstancesOutput = exports.getInstances = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * (Deprecated! Recommend use volcengine.escloud_v2.EscloudInstanceV2 replace) Use this data source to query detailed information of escloud instances
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet_new",
 *     description: "tfdesc",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooInstance = new volcengine.escloud.Instance("fooInstance", {instanceConfiguration: {
 *     version: "V6_7",
 *     zoneNumber: 1,
 *     enableHttps: true,
 *     adminUserName: "admin",
 *     adminPassword: "Password@@",
 *     chargeType: "PostPaid",
 *     configurationCode: "es.standard",
 *     enablePureMaster: true,
 *     instanceName: "acc-test-0",
 *     nodeSpecsAssigns: [
 *         {
 *             type: "Master",
 *             number: 3,
 *             resourceSpecName: "es.x4.medium",
 *             storageSpecName: "es.volume.essd.pl0",
 *             storageSize: 100,
 *         },
 *         {
 *             type: "Hot",
 *             number: 2,
 *             resourceSpecName: "es.x4.large",
 *             storageSpecName: "es.volume.essd.pl0",
 *             storageSize: 100,
 *         },
 *         {
 *             type: "Kibana",
 *             number: 1,
 *             resourceSpecName: "kibana.x2.small",
 *         },
 *     ],
 *     subnetId: fooSubnet.id,
 *     projectName: "default",
 *     forceRestartAfterScale: false,
 * }});
 * const fooInstances = volcengine.escloud.getInstancesOutput({
 *     ids: [fooInstance.id],
 * });
 * ```
 */
function getInstances(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:escloud/getInstances:getInstances", {
        "chargeTypes": args.chargeTypes,
        "ids": args.ids,
        "names": args.names,
        "outputFile": args.outputFile,
        "statuses": args.statuses,
        "versions": args.versions,
        "zoneIds": args.zoneIds,
    }, opts);
}
exports.getInstances = getInstances;
/**
 * (Deprecated! Recommend use volcengine.escloud_v2.EscloudInstanceV2 replace) Use this data source to query detailed information of escloud instances
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet_new",
 *     description: "tfdesc",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooInstance = new volcengine.escloud.Instance("fooInstance", {instanceConfiguration: {
 *     version: "V6_7",
 *     zoneNumber: 1,
 *     enableHttps: true,
 *     adminUserName: "admin",
 *     adminPassword: "Password@@",
 *     chargeType: "PostPaid",
 *     configurationCode: "es.standard",
 *     enablePureMaster: true,
 *     instanceName: "acc-test-0",
 *     nodeSpecsAssigns: [
 *         {
 *             type: "Master",
 *             number: 3,
 *             resourceSpecName: "es.x4.medium",
 *             storageSpecName: "es.volume.essd.pl0",
 *             storageSize: 100,
 *         },
 *         {
 *             type: "Hot",
 *             number: 2,
 *             resourceSpecName: "es.x4.large",
 *             storageSpecName: "es.volume.essd.pl0",
 *             storageSize: 100,
 *         },
 *         {
 *             type: "Kibana",
 *             number: 1,
 *             resourceSpecName: "kibana.x2.small",
 *         },
 *     ],
 *     subnetId: fooSubnet.id,
 *     projectName: "default",
 *     forceRestartAfterScale: false,
 * }});
 * const fooInstances = volcengine.escloud.getInstancesOutput({
 *     ids: [fooInstance.id],
 * });
 * ```
 */
function getInstancesOutput(args, opts) {
    return pulumi.output(args).apply((a) => getInstances(a, opts));
}
exports.getInstancesOutput = getInstancesOutput;
//# sourceMappingURL=getInstances.js.map