1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. gpdb
  5. getInstances
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.gpdb.getInstances

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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 dictionary

    The following arguments are supported:

    AvailabilityZone string
    Instance availability zone.
    DbInstanceCategories string
    The db instance categories.
    DbInstanceModes string
    The db instance modes.
    Description string
    The description of the instance.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids List<string>
    The ids list of AnalyticDB for PostgreSQL instances.
    InstanceNetworkType string
    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).
    ResourceGroupId string
    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.
    Tags Dictionary<string, string>
    VswitchId string
    Used to retrieve instances belong to specified vswitch resources.
    AvailabilityZone string
    Instance availability zone.
    DbInstanceCategories string
    The db instance categories.
    DbInstanceModes string
    The db instance modes.
    Description string
    The description of the instance.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids []string
    The ids list of AnalyticDB for PostgreSQL instances.
    InstanceNetworkType string
    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).
    ResourceGroupId string
    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.
    Tags map[string]string
    VswitchId string
    Used to retrieve instances belong to specified vswitch resources.
    availabilityZone String
    Instance availability zone.
    dbInstanceCategories String
    The db instance categories.
    dbInstanceModes String
    The db instance modes.
    description String
    The description of the instance.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    The ids list of AnalyticDB for PostgreSQL instances.
    instanceNetworkType String
    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).
    resourceGroupId String
    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.
    tags Map<String,String>
    vswitchId String
    Used to retrieve instances belong to specified vswitch resources.
    availabilityZone string
    Instance availability zone.
    dbInstanceCategories string
    The db instance categories.
    dbInstanceModes string
    The db instance modes.
    description string
    The description of the instance.
    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids string[]
    The ids list of AnalyticDB for PostgreSQL instances.
    instanceNetworkType string
    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).
    resourceGroupId string
    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.
    tags {[key: string]: string}
    vswitchId string
    Used to retrieve instances belong to specified vswitch resources.
    availability_zone str
    Instance availability zone.
    db_instance_categories str
    The db instance categories.
    db_instance_modes str
    The db instance modes.
    description str
    The description of the instance.
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    ids Sequence[str]
    The ids list of AnalyticDB for PostgreSQL instances.
    instance_network_type str
    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_id str
    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.
    tags Mapping[str, str]
    vswitch_id str
    Used to retrieve instances belong to specified vswitch resources.
    availabilityZone String
    Instance availability zone.
    dbInstanceCategories String
    The db instance categories.
    dbInstanceModes String
    The db instance modes.
    description String
    The description of the instance.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    The ids list of AnalyticDB for PostgreSQL instances.
    instanceNetworkType String
    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).
    resourceGroupId String
    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.
    tags Map<String>
    vswitchId String
    Used to retrieve instances belong to specified vswitch resources.

    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.AliCloud.Gpdb.Outputs.GetInstancesInstance>
    Names List<string>
    AvailabilityZone string
    DbInstanceCategories string
    DbInstanceModes string
    Description string
    EnableDetails bool
    InstanceNetworkType string
    NameRegex string
    OutputFile string
    ResourceGroupId string
    Status string
    Tags Dictionary<string, string>
    VswitchId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Instances []GetInstancesInstance
    Names []string
    AvailabilityZone string
    DbInstanceCategories string
    DbInstanceModes string
    Description string
    EnableDetails bool
    InstanceNetworkType string
    NameRegex string
    OutputFile string
    ResourceGroupId string
    Status string
    Tags map[string]string
    VswitchId string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instances List<GetInstancesInstance>
    names List<String>
    availabilityZone String
    dbInstanceCategories String
    dbInstanceModes String
    description String
    enableDetails Boolean
    instanceNetworkType String
    nameRegex String
    outputFile String
    resourceGroupId String
    status String
    tags Map<String,String>
    vswitchId String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    instances GetInstancesInstance[]
    names string[]
    availabilityZone string
    dbInstanceCategories string
    dbInstanceModes string
    description string
    enableDetails boolean
    instanceNetworkType string
    nameRegex string
    outputFile string
    resourceGroupId string
    status string
    tags {[key: string]: string}
    vswitchId string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    instances Sequence[GetInstancesInstance]
    names Sequence[str]
    availability_zone str
    db_instance_categories str
    db_instance_modes str
    description str
    enable_details bool
    instance_network_type str
    name_regex str
    output_file str
    resource_group_id str
    status str
    tags 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
    dbInstanceCategories String
    dbInstanceModes String
    description String
    enableDetails Boolean
    instanceNetworkType String
    nameRegex String
    outputFile String
    resourceGroupId String
    status String
    tags 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
    DbInstanceCategory string
    The db instance category. Valid values: HighAvailability, Basic.
    DbInstanceClass string
    The db instance class.
    DbInstanceId string
    The db instance id.
    DbInstanceMode string
    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.
    InstanceNetworkType string
    The network type of the instance.
    IpWhitelists List<Pulumi.AliCloud.Gpdb.Inputs.GetInstancesInstanceIpWhitelist>
    The ip whitelist.
    MaintainEndTime string
    The end time of the maintenance window for the instance.
    MaintainStartTime string
    The start time of the maintenance window for the instance.
    MasterNodeNum string
    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.
    SegNodeNum string
    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: 50 to 4000.
    StorageType string
    The type of disks. Valid values: cloud_essd, cloud_efficiency.
    Tags 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
    DbInstanceCategory string
    The db instance category. Valid values: HighAvailability, Basic.
    DbInstanceClass string
    The db instance class.
    DbInstanceId string
    The db instance id.
    DbInstanceMode string
    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.
    InstanceNetworkType string
    The network type of the instance.
    IpWhitelists []GetInstancesInstanceIpWhitelist
    The ip whitelist.
    MaintainEndTime string
    The end time of the maintenance window for the instance.
    MaintainStartTime string
    The start time of the maintenance window for the instance.
    MasterNodeNum string
    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.
    SegNodeNum string
    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: 50 to 4000.
    StorageType string
    The type of disks. Valid values: cloud_essd, cloud_efficiency.
    Tags 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
    dbInstanceCategory String
    The db instance category. Valid values: HighAvailability, Basic.
    dbInstanceClass String
    The db instance class.
    dbInstanceId String
    The db instance id.
    dbInstanceMode String
    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.
    instanceNetworkType String
    The network type of the instance.
    ipWhitelists List<GetInstancesInstanceIpWhitelist>
    The ip whitelist.
    maintainEndTime String
    The end time of the maintenance window for the instance.
    maintainStartTime String
    The start time of the maintenance window for the instance.
    masterNodeNum String
    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.
    segNodeNum String
    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: 50 to 4000.
    storageType String
    The type of disks. Valid values: cloud_essd, cloud_efficiency.
    tags 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
    dbInstanceCategory string
    The db instance category. Valid values: HighAvailability, Basic.
    dbInstanceClass string
    The db instance class.
    dbInstanceId string
    The db instance id.
    dbInstanceMode string
    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.
    instanceNetworkType string
    The network type of the instance.
    ipWhitelists GetInstancesInstanceIpWhitelist[]
    The ip whitelist.
    maintainEndTime string
    The end time of the maintenance window for the instance.
    maintainStartTime string
    The start time of the maintenance window for the instance.
    masterNodeNum string
    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.
    segNodeNum string
    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: 50 to 4000.
    storageType string
    The type of disks. Valid values: cloud_essd, cloud_efficiency.
    tags {[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_category str
    The db instance category. Valid values: HighAvailability, Basic.
    db_instance_class str
    The db instance class.
    db_instance_id str
    The db instance id.
    db_instance_mode str
    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_type str
    The network type of the instance.
    ip_whitelists Sequence[GetInstancesInstanceIpWhitelist]
    The ip whitelist.
    maintain_end_time str
    The end time of the maintenance window for the instance.
    maintain_start_time str
    The start time of the maintenance window for the instance.
    master_node_num str
    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_num str
    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: 50 to 4000.
    storage_type str
    The type of disks. Valid values: cloud_essd, cloud_efficiency.
    tags 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
    dbInstanceCategory String
    The db instance category. Valid values: HighAvailability, Basic.
    dbInstanceClass String
    The db instance class.
    dbInstanceId String
    The db instance id.
    dbInstanceMode String
    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.
    instanceNetworkType String
    The network type of the instance.
    ipWhitelists List<Property Map>
    The ip whitelist.
    maintainEndTime String
    The end time of the maintenance window for the instance.
    maintainStartTime String
    The start time of the maintenance window for the instance.
    masterNodeNum String
    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.
    segNodeNum String
    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: 50 to 4000.
    storageType String
    The type of disks. Valid values: cloud_essd, cloud_efficiency.
    tags 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

    IpGroupAttribute string
    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.
    IpGroupName string
    IP whitelist group name
    SecurityIpList string
    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"].
    IpGroupAttribute string
    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.
    IpGroupName string
    IP whitelist group name
    SecurityIpList string
    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"].
    ipGroupAttribute String
    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.
    ipGroupName String
    IP whitelist group name
    securityIpList String
    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"].
    ipGroupAttribute string
    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.
    ipGroupName string
    IP whitelist group name
    securityIpList string
    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_attribute str
    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_name str
    IP whitelist group name
    security_ip_list str
    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"].
    ipGroupAttribute String
    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.
    ipGroupName String
    IP whitelist group name
    securityIpList String
    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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi