Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.gpdb.getInstances
Explore with Pulumi AI
This data source provides the AnalyticDB for PostgreSQL instances of the current Alibaba Cloud user.
NOTE: Available in 1.47.0+
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.gpdb.getInstances({});
export const gpdbDbInstanceId1 = ids.then(ids => ids.instances?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.gpdb.get_instances()
pulumi.export("gpdbDbInstanceId1", ids.instances[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/gpdb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := gpdb.GetInstances(ctx, &gpdb.GetInstancesArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gpdbDbInstanceId1", ids.Instances[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Gpdb.GetInstances.Invoke();
    return new Dictionary<string, object?>
    {
        ["gpdbDbInstanceId1"] = ids.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.gpdb.GpdbFunctions;
import com.pulumi.alicloud.gpdb.inputs.GetInstancesArgs;
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 ids = GpdbFunctions.getInstances();
        ctx.export("gpdbDbInstanceId1", ids.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
    }
}
variables:
  ids:
    fn::invoke:
      Function: alicloud:gpdb:getInstances
      Arguments: {}
outputs:
  gpdbDbInstanceId1: ${ids.instances[0].id}
Using getInstances
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 getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>
function getInstancesOutput(args: GetInstancesOutputArgs, opts?: InvokeOptions): Output<GetInstancesResult>def get_instances(availability_zone: Optional[str] = None,
                  db_instance_categories: Optional[str] = None,
                  db_instance_modes: Optional[str] = None,
                  description: Optional[str] = None,
                  enable_details: Optional[bool] = None,
                  ids: Optional[Sequence[str]] = None,
                  instance_network_type: Optional[str] = None,
                  name_regex: Optional[str] = None,
                  output_file: Optional[str] = None,
                  resource_group_id: Optional[str] = None,
                  status: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  vswitch_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetInstancesResult
def get_instances_output(availability_zone: Optional[pulumi.Input[str]] = None,
                  db_instance_categories: Optional[pulumi.Input[str]] = None,
                  db_instance_modes: Optional[pulumi.Input[str]] = None,
                  description: Optional[pulumi.Input[str]] = None,
                  enable_details: Optional[pulumi.Input[bool]] = None,
                  ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  instance_network_type: Optional[pulumi.Input[str]] = None,
                  name_regex: Optional[pulumi.Input[str]] = None,
                  output_file: Optional[pulumi.Input[str]] = None,
                  resource_group_id: Optional[pulumi.Input[str]] = None,
                  status: Optional[pulumi.Input[str]] = None,
                  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                  vswitch_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetInstancesResult]func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
func GetInstancesOutput(ctx *Context, args *GetInstancesOutputArgs, opts ...InvokeOption) GetInstancesResultOutput> Note: This function is named GetInstances in the Go SDK.
public static class GetInstances 
{
    public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:gpdb/getInstances:getInstances
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AvailabilityZone string
- Instance availability zone.
- DbInstance stringCategories 
- The db instance categories.
- DbInstance stringModes 
- The db instance modes.
- Description string
- The description of the instance.
- EnableDetails bool
- Default to false. Set it totruecan output more details about resource attributes.
- Ids List<string>
- The ids list of AnalyticDB for PostgreSQL instances.
- InstanceNetwork stringType 
- The network type of the instance.
- NameRegex string
- A regex string to apply to the instance name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- ResourceGroup stringId 
- The ID of the enterprise resource group to which the instance belongs.
- Status string
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- Dictionary<string, string>
- VswitchId string
- Used to retrieve instances belong to specified vswitchresources.
- AvailabilityZone string
- Instance availability zone.
- DbInstance stringCategories 
- The db instance categories.
- DbInstance stringModes 
- The db instance modes.
- Description string
- The description of the instance.
- EnableDetails bool
- Default to false. Set it totruecan output more details about resource attributes.
- Ids []string
- The ids list of AnalyticDB for PostgreSQL instances.
- InstanceNetwork stringType 
- The network type of the instance.
- NameRegex string
- A regex string to apply to the instance name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- ResourceGroup stringId 
- The ID of the enterprise resource group to which the instance belongs.
- Status string
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- map[string]string
- VswitchId string
- Used to retrieve instances belong to specified vswitchresources.
- availabilityZone String
- Instance availability zone.
- dbInstance StringCategories 
- The db instance categories.
- dbInstance StringModes 
- The db instance modes.
- description String
- The description of the instance.
- enableDetails Boolean
- Default to false. Set it totruecan output more details about resource attributes.
- ids List<String>
- The ids list of AnalyticDB for PostgreSQL instances.
- instanceNetwork StringType 
- The network type of the instance.
- nameRegex String
- A regex string to apply to the instance name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- resourceGroup StringId 
- The ID of the enterprise resource group to which the instance belongs.
- status String
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- Map<String,String>
- vswitchId String
- Used to retrieve instances belong to specified vswitchresources.
- availabilityZone string
- Instance availability zone.
- dbInstance stringCategories 
- The db instance categories.
- dbInstance stringModes 
- The db instance modes.
- description string
- The description of the instance.
- enableDetails boolean
- Default to false. Set it totruecan output more details about resource attributes.
- ids string[]
- The ids list of AnalyticDB for PostgreSQL instances.
- instanceNetwork stringType 
- The network type of the instance.
- nameRegex string
- A regex string to apply to the instance name.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- resourceGroup stringId 
- The ID of the enterprise resource group to which the instance belongs.
- status string
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- {[key: string]: string}
- vswitchId string
- Used to retrieve instances belong to specified vswitchresources.
- availability_zone str
- Instance availability zone.
- db_instance_ strcategories 
- The db instance categories.
- db_instance_ strmodes 
- The db instance modes.
- description str
- The description of the instance.
- enable_details bool
- Default to false. Set it totruecan output more details about resource attributes.
- ids Sequence[str]
- The ids list of AnalyticDB for PostgreSQL instances.
- instance_network_ strtype 
- The network type of the instance.
- name_regex str
- A regex string to apply to the instance name.
- output_file str
- File name where to save data source results (after running pulumi preview).
- resource_group_ strid 
- The ID of the enterprise resource group to which the instance belongs.
- status str
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- Mapping[str, str]
- vswitch_id str
- Used to retrieve instances belong to specified vswitchresources.
- availabilityZone String
- Instance availability zone.
- dbInstance StringCategories 
- The db instance categories.
- dbInstance StringModes 
- The db instance modes.
- description String
- The description of the instance.
- enableDetails Boolean
- Default to false. Set it totruecan output more details about resource attributes.
- ids List<String>
- The ids list of AnalyticDB for PostgreSQL instances.
- instanceNetwork StringType 
- The network type of the instance.
- nameRegex String
- A regex string to apply to the instance name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- resourceGroup StringId 
- The ID of the enterprise resource group to which the instance belongs.
- status String
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- Map<String>
- vswitchId String
- Used to retrieve instances belong to specified vswitchresources.
getInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Instances
List<Pulumi.Ali Cloud. Gpdb. Outputs. Get Instances Instance> 
- Names List<string>
- AvailabilityZone string
- DbInstance stringCategories 
- DbInstance stringModes 
- Description string
- EnableDetails bool
- InstanceNetwork stringType 
- NameRegex string
- OutputFile string
- ResourceGroup stringId 
- Status string
- Dictionary<string, string>
- VswitchId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instances
[]GetInstances Instance 
- Names []string
- AvailabilityZone string
- DbInstance stringCategories 
- DbInstance stringModes 
- Description string
- EnableDetails bool
- InstanceNetwork stringType 
- NameRegex string
- OutputFile string
- ResourceGroup stringId 
- Status string
- map[string]string
- VswitchId string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances
List<GetInstances Instance> 
- names List<String>
- availabilityZone String
- dbInstance StringCategories 
- dbInstance StringModes 
- description String
- enableDetails Boolean
- instanceNetwork StringType 
- nameRegex String
- outputFile String
- resourceGroup StringId 
- status String
- Map<String,String>
- vswitchId String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instances
GetInstances Instance[] 
- names string[]
- availabilityZone string
- dbInstance stringCategories 
- dbInstance stringModes 
- description string
- enableDetails boolean
- instanceNetwork stringType 
- nameRegex string
- outputFile string
- resourceGroup stringId 
- status string
- {[key: string]: string}
- vswitchId string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instances
Sequence[GetInstances Instance] 
- names Sequence[str]
- availability_zone str
- db_instance_ strcategories 
- db_instance_ strmodes 
- description str
- enable_details bool
- instance_network_ strtype 
- name_regex str
- output_file str
- resource_group_ strid 
- status str
- Mapping[str, str]
- vswitch_id str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances List<Property Map>
- names List<String>
- availabilityZone String
- dbInstance StringCategories 
- dbInstance StringModes 
- description String
- enableDetails Boolean
- instanceNetwork StringType 
- nameRegex String
- outputFile String
- resourceGroup StringId 
- status String
- Map<String>
- vswitchId String
Supporting Types
GetInstancesInstance  
- AvailabilityZone string
- Instance availability zone.
- ChargeType string
- ConnectionString string
- The connection string of the instance.
- CpuCores string
- The number of CPU cores of the computing node. Unit: Core.
- CreateTime string
- The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.
- CreationTime string
- DbInstance stringCategory 
- The db instance category. Valid values: HighAvailability,Basic.
- DbInstance stringClass 
- The db instance class.
- DbInstance stringId 
- The db instance id.
- DbInstance stringMode 
- The db instance mode. Valid values: StorageElastic,Serverless,Classic.
- Description string
- The description of the instance.
- Engine string
- The database engine used by the instance.
- EngineVersion string
- The version of the database engine used by the instance.
- Id string
- The ID of the db Instance.
- InstanceNetwork stringType 
- The network type of the instance.
- IpWhitelists List<Pulumi.Ali Cloud. Gpdb. Inputs. Get Instances Instance Ip Whitelist> 
- The ip whitelist.
- MaintainEnd stringTime 
- The end time of the maintenance window for the instance.
- MaintainStart stringTime 
- The start time of the maintenance window for the instance.
- MasterNode stringNum 
- The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
- MemorySize string
- The memory size of the compute node.
- PaymentType string
- The billing method of the instance. Valid values: Subscription,PayAsYouGo.
- RegionId string
- Region ID the instance belongs to.
- SegNode stringNum 
- Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
- Status string
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- StorageSize int
- The storage capacity. Unit: GB. Value: 50to4000.
- StorageType string
- The type of disks. Valid values: cloud_essd,cloud_efficiency.
- Dictionary<string, string>
- The tags of the instance.
- VpcId string
- The ID of the VPC。.
- VswitchId string
- The vswitch id.
- ZoneId string
- The zone ID of the instance.
- AvailabilityZone string
- Instance availability zone.
- ChargeType string
- ConnectionString string
- The connection string of the instance.
- CpuCores string
- The number of CPU cores of the computing node. Unit: Core.
- CreateTime string
- The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.
- CreationTime string
- DbInstance stringCategory 
- The db instance category. Valid values: HighAvailability,Basic.
- DbInstance stringClass 
- The db instance class.
- DbInstance stringId 
- The db instance id.
- DbInstance stringMode 
- The db instance mode. Valid values: StorageElastic,Serverless,Classic.
- Description string
- The description of the instance.
- Engine string
- The database engine used by the instance.
- EngineVersion string
- The version of the database engine used by the instance.
- Id string
- The ID of the db Instance.
- InstanceNetwork stringType 
- The network type of the instance.
- IpWhitelists []GetInstances Instance Ip Whitelist 
- The ip whitelist.
- MaintainEnd stringTime 
- The end time of the maintenance window for the instance.
- MaintainStart stringTime 
- The start time of the maintenance window for the instance.
- MasterNode stringNum 
- The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
- MemorySize string
- The memory size of the compute node.
- PaymentType string
- The billing method of the instance. Valid values: Subscription,PayAsYouGo.
- RegionId string
- Region ID the instance belongs to.
- SegNode stringNum 
- Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
- Status string
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- StorageSize int
- The storage capacity. Unit: GB. Value: 50to4000.
- StorageType string
- The type of disks. Valid values: cloud_essd,cloud_efficiency.
- map[string]string
- The tags of the instance.
- VpcId string
- The ID of the VPC。.
- VswitchId string
- The vswitch id.
- ZoneId string
- The zone ID of the instance.
- availabilityZone String
- Instance availability zone.
- chargeType String
- connectionString String
- The connection string of the instance.
- cpuCores String
- The number of CPU cores of the computing node. Unit: Core.
- createTime String
- The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.
- creationTime String
- dbInstance StringCategory 
- The db instance category. Valid values: HighAvailability,Basic.
- dbInstance StringClass 
- The db instance class.
- dbInstance StringId 
- The db instance id.
- dbInstance StringMode 
- The db instance mode. Valid values: StorageElastic,Serverless,Classic.
- description String
- The description of the instance.
- engine String
- The database engine used by the instance.
- engineVersion String
- The version of the database engine used by the instance.
- id String
- The ID of the db Instance.
- instanceNetwork StringType 
- The network type of the instance.
- ipWhitelists List<GetInstances Instance Ip Whitelist> 
- The ip whitelist.
- maintainEnd StringTime 
- The end time of the maintenance window for the instance.
- maintainStart StringTime 
- The start time of the maintenance window for the instance.
- masterNode StringNum 
- The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
- memorySize String
- The memory size of the compute node.
- paymentType String
- The billing method of the instance. Valid values: Subscription,PayAsYouGo.
- regionId String
- Region ID the instance belongs to.
- segNode StringNum 
- Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
- status String
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- storageSize Integer
- The storage capacity. Unit: GB. Value: 50to4000.
- storageType String
- The type of disks. Valid values: cloud_essd,cloud_efficiency.
- Map<String,String>
- The tags of the instance.
- vpcId String
- The ID of the VPC。.
- vswitchId String
- The vswitch id.
- zoneId String
- The zone ID of the instance.
- availabilityZone string
- Instance availability zone.
- chargeType string
- connectionString string
- The connection string of the instance.
- cpuCores string
- The number of CPU cores of the computing node. Unit: Core.
- createTime string
- The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.
- creationTime string
- dbInstance stringCategory 
- The db instance category. Valid values: HighAvailability,Basic.
- dbInstance stringClass 
- The db instance class.
- dbInstance stringId 
- The db instance id.
- dbInstance stringMode 
- The db instance mode. Valid values: StorageElastic,Serverless,Classic.
- description string
- The description of the instance.
- engine string
- The database engine used by the instance.
- engineVersion string
- The version of the database engine used by the instance.
- id string
- The ID of the db Instance.
- instanceNetwork stringType 
- The network type of the instance.
- ipWhitelists GetInstances Instance Ip Whitelist[] 
- The ip whitelist.
- maintainEnd stringTime 
- The end time of the maintenance window for the instance.
- maintainStart stringTime 
- The start time of the maintenance window for the instance.
- masterNode stringNum 
- The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
- memorySize string
- The memory size of the compute node.
- paymentType string
- The billing method of the instance. Valid values: Subscription,PayAsYouGo.
- regionId string
- Region ID the instance belongs to.
- segNode stringNum 
- Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
- status string
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- storageSize number
- The storage capacity. Unit: GB. Value: 50to4000.
- storageType string
- The type of disks. Valid values: cloud_essd,cloud_efficiency.
- {[key: string]: string}
- The tags of the instance.
- vpcId string
- The ID of the VPC。.
- vswitchId string
- The vswitch id.
- zoneId string
- The zone ID of the instance.
- availability_zone str
- Instance availability zone.
- charge_type str
- connection_string str
- The connection string of the instance.
- cpu_cores str
- The number of CPU cores of the computing node. Unit: Core.
- create_time str
- The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.
- creation_time str
- db_instance_ strcategory 
- The db instance category. Valid values: HighAvailability,Basic.
- db_instance_ strclass 
- The db instance class.
- db_instance_ strid 
- The db instance id.
- db_instance_ strmode 
- The db instance mode. Valid values: StorageElastic,Serverless,Classic.
- description str
- The description of the instance.
- engine str
- The database engine used by the instance.
- engine_version str
- The version of the database engine used by the instance.
- id str
- The ID of the db Instance.
- instance_network_ strtype 
- The network type of the instance.
- ip_whitelists Sequence[GetInstances Instance Ip Whitelist] 
- The ip whitelist.
- maintain_end_ strtime 
- The end time of the maintenance window for the instance.
- maintain_start_ strtime 
- The start time of the maintenance window for the instance.
- master_node_ strnum 
- The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
- memory_size str
- The memory size of the compute node.
- payment_type str
- The billing method of the instance. Valid values: Subscription,PayAsYouGo.
- region_id str
- Region ID the instance belongs to.
- seg_node_ strnum 
- Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
- status str
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- storage_size int
- The storage capacity. Unit: GB. Value: 50to4000.
- storage_type str
- The type of disks. Valid values: cloud_essd,cloud_efficiency.
- Mapping[str, str]
- The tags of the instance.
- vpc_id str
- The ID of the VPC。.
- vswitch_id str
- The vswitch id.
- zone_id str
- The zone ID of the instance.
- availabilityZone String
- Instance availability zone.
- chargeType String
- connectionString String
- The connection string of the instance.
- cpuCores String
- The number of CPU cores of the computing node. Unit: Core.
- createTime String
- The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.
- creationTime String
- dbInstance StringCategory 
- The db instance category. Valid values: HighAvailability,Basic.
- dbInstance StringClass 
- The db instance class.
- dbInstance StringId 
- The db instance id.
- dbInstance StringMode 
- The db instance mode. Valid values: StorageElastic,Serverless,Classic.
- description String
- The description of the instance.
- engine String
- The database engine used by the instance.
- engineVersion String
- The version of the database engine used by the instance.
- id String
- The ID of the db Instance.
- instanceNetwork StringType 
- The network type of the instance.
- ipWhitelists List<Property Map>
- The ip whitelist.
- maintainEnd StringTime 
- The end time of the maintenance window for the instance.
- maintainStart StringTime 
- The start time of the maintenance window for the instance.
- masterNode StringNum 
- The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
- memorySize String
- The memory size of the compute node.
- paymentType String
- The billing method of the instance. Valid values: Subscription,PayAsYouGo.
- regionId String
- Region ID the instance belongs to.
- segNode StringNum 
- Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
- status String
- The status of the instance. Valid values: Creating,DBInstanceClassChanging,DBInstanceNetTypeChanging,Deleting,EngineVersionUpgrading,GuardDBInstanceCreating,GuardSwitching,Importing,ImportingFromOtherInstance,Rebooting,Restoring,Running,Transfering,TransferingToOtherInstance.
- storageSize Number
- The storage capacity. Unit: GB. Value: 50to4000.
- storageType String
- The type of disks. Valid values: cloud_essd,cloud_efficiency.
- Map<String>
- The tags of the instance.
- vpcId String
- The ID of the VPC。.
- vswitchId String
- The vswitch id.
- zoneId String
- The zone ID of the instance.
GetInstancesInstanceIpWhitelist    
- IpGroup stringAttribute 
- The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
- IpGroup stringName 
- IP whitelist group name
- SecurityIp stringList 
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to ["127.0.0.1"].
- IpGroup stringAttribute 
- The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
- IpGroup stringName 
- IP whitelist group name
- SecurityIp stringList 
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to ["127.0.0.1"].
- ipGroup StringAttribute 
- The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
- ipGroup StringName 
- IP whitelist group name
- securityIp StringList 
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to ["127.0.0.1"].
- ipGroup stringAttribute 
- The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
- ipGroup stringName 
- IP whitelist group name
- securityIp stringList 
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to ["127.0.0.1"].
- ip_group_ strattribute 
- The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
- ip_group_ strname 
- IP whitelist group name
- security_ip_ strlist 
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to ["127.0.0.1"].
- ipGroup StringAttribute 
- The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
- ipGroup StringName 
- IP whitelist group name
- securityIp StringList 
- List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to ["127.0.0.1"].
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.