Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 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)
public static Output<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:gpdb/getInstances:getInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Availability
Zone string - Instance availability zone.
- Db
Instance Categories Changes to this property will trigger replacement.
- The db instance categories.
- Db
Instance Modes Changes to this property will trigger replacement.
- The db instance modes.
- Description string
- The description of the instance.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- The ids list of AnalyticDB for PostgreSQL instances.
- Instance
Network Type Changes to this property will trigger replacement.
- The network type of the instance.
- Name
Regex string - A regex string to apply to the instance name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group Id Changes to this property will trigger replacement.
- The ID of the enterprise resource group to which the instance belongs.
- Status
Changes to this property will trigger replacement.
- The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - Dictionary<string, string>
- Vswitch
Id string - Used to retrieve instances belong to specified
vswitch
resources.
- Availability
Zone string - Instance availability zone.
- Db
Instance Categories Changes to this property will trigger replacement.
- The db instance categories.
- Db
Instance Modes Changes to this property will trigger replacement.
- The db instance modes.
- Description string
- The description of the instance.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- The ids list of AnalyticDB for PostgreSQL instances.
- Instance
Network Type Changes to this property will trigger replacement.
- The network type of the instance.
- Name
Regex string - A regex string to apply to the instance name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group Id Changes to this property will trigger replacement.
- The ID of the enterprise resource group to which the instance belongs.
- Status
Changes to this property will trigger replacement.
- The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - map[string]string
- Vswitch
Id string - Used to retrieve instances belong to specified
vswitch
resources.
- availability
Zone String - Instance availability zone.
- db
Instance Categories Changes to this property will trigger replacement.
- The db instance categories.
- db
Instance Modes Changes to this property will trigger replacement.
- The db instance modes.
- description String
- The description of the instance.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- The ids list of AnalyticDB for PostgreSQL instances.
- instance
Network Type Changes to this property will trigger replacement.
- The network type of the instance.
- name
Regex String - A regex string to apply to the instance name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the enterprise resource group to which the instance belongs.
- status
Changes to this property will trigger replacement.
- The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - Map<String,String>
- vswitch
Id String - Used to retrieve instances belong to specified
vswitch
resources.
- availability
Zone string - Instance availability zone.
- db
Instance Categories Changes to this property will trigger replacement.
- The db instance categories.
- db
Instance Modes Changes to this property will trigger replacement.
- The db instance modes.
- description string
- The description of the instance.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- The ids list of AnalyticDB for PostgreSQL instances.
- instance
Network Type Changes to this property will trigger replacement.
- The network type of the instance.
- name
Regex string - A regex string to apply to the instance name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the enterprise resource group to which the instance belongs.
- status
Changes to this property will trigger replacement.
- The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - {[key: string]: string}
- vswitch
Id string - Used to retrieve instances belong to specified
vswitch
resources.
- availability_
zone str - Instance availability zone.
- db_
instance_ categories Changes to this property will trigger replacement.
- The db instance categories.
- db_
instance_ modes Changes to this property will trigger replacement.
- The db instance modes.
- description str
- The description of the instance.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- The ids list of AnalyticDB for PostgreSQL instances.
- instance_
network_ type Changes to this property will trigger replacement.
- 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 Changes to this property will trigger replacement.
- The ID of the enterprise resource group to which the instance belongs.
- status
Changes to this property will trigger replacement.
- 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
vswitch
resources.
- availability
Zone String - Instance availability zone.
- db
Instance Categories Changes to this property will trigger replacement.
- The db instance categories.
- db
Instance Modes Changes to this property will trigger replacement.
- The db instance modes.
- description String
- The description of the instance.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- The ids list of AnalyticDB for PostgreSQL instances.
- instance
Network Type Changes to this property will trigger replacement.
- The network type of the instance.
- name
Regex String - A regex string to apply to the instance name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the enterprise resource group to which the instance belongs.
- status
Changes to this property will trigger replacement.
- The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - Map<String>
- vswitch
Id 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.
Ali Cloud. Gpdb. Outputs. Get Instances Instance> - Names List<string>
- Availability
Zone string - Db
Instance stringCategories - Db
Instance stringModes - Description string
- Enable
Details bool - Instance
Network stringType - Name
Regex string - Output
File string - Resource
Group stringId - Status string
- Dictionary<string, string>
- Vswitch
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instances
[]Get
Instances Instance - Names []string
- Availability
Zone string - Db
Instance stringCategories - Db
Instance stringModes - Description string
- Enable
Details bool - Instance
Network stringType - Name
Regex string - Output
File string - Resource
Group stringId - Status string
- map[string]string
- Vswitch
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances
List<Get
Instances Instance> - names List<String>
- availability
Zone String - db
Instance StringCategories - db
Instance StringModes - description String
- enable
Details Boolean - instance
Network StringType - name
Regex String - output
File String - resource
Group StringId - status String
- Map<String,String>
- vswitch
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instances
Get
Instances Instance[] - names string[]
- availability
Zone string - db
Instance stringCategories - db
Instance stringModes - description string
- enable
Details boolean - instance
Network stringType - name
Regex string - output
File string - resource
Group stringId - status string
- {[key: string]: string}
- vswitch
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instances
Sequence[Get
Instances 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>
- availability
Zone String - db
Instance StringCategories - db
Instance StringModes - description String
- enable
Details Boolean - instance
Network StringType - name
Regex String - output
File String - resource
Group StringId - status String
- Map<String>
- vswitch
Id String
Supporting Types
GetInstancesInstance
- Availability
Zone This property is required. string - Instance availability zone.
- Charge
Type This property is required. string - Connection
String This property is required. string - The connection string of the instance.
- Cpu
Cores This property is required. string - The number of CPU cores of the computing node. Unit: Core.
- Create
Time This property is required. 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.
- Creation
Time This property is required. string - Db
Instance Category This property is required. string - The db instance category. Valid values:
HighAvailability
,Basic
. - Db
Instance Class This property is required. string - The db instance class.
- Db
Instance Id This property is required. string - The db instance id.
- Db
Instance Mode This property is required. string - The db instance mode. Valid values:
StorageElastic
,Serverless
,Classic
. - Description
This property is required. string - The description of the instance.
- Engine
This property is required. string - The database engine used by the instance.
- Engine
Version This property is required. string - The version of the database engine used by the instance.
- Id
This property is required. string - The ID of the db Instance.
- Instance
Network Type This property is required. string - The network type of the instance.
- Ip
Whitelists This property is required. List<Pulumi.Ali Cloud. Gpdb. Inputs. Get Instances Instance Ip Whitelist> - The ip whitelist.
- Maintain
End Time This property is required. string - The end time of the maintenance window for the instance.
- Maintain
Start Time This property is required. string - The start time of the maintenance window for the instance.
- Master
Node Num This property is required. string - 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 This property is required. string - The memory size of the compute node.
- Payment
Type This property is required. string - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - Region
Id This property is required. string - Region ID the instance belongs to.
- Seg
Node Num This property is required. 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
This property is required. string - The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - Storage
Size This property is required. int - The storage capacity. Unit: GB. Value:
50
to4000
. - Storage
Type This property is required. string - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. This property is required. Dictionary<string, string>- The tags of the instance.
- Vpc
Id This property is required. string - The ID of the VPC。.
- Vswitch
Id This property is required. string - The vswitch id.
- Zone
Id This property is required. string - The zone ID of the instance.
- Availability
Zone This property is required. string - Instance availability zone.
- Charge
Type This property is required. string - Connection
String This property is required. string - The connection string of the instance.
- Cpu
Cores This property is required. string - The number of CPU cores of the computing node. Unit: Core.
- Create
Time This property is required. 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.
- Creation
Time This property is required. string - Db
Instance Category This property is required. string - The db instance category. Valid values:
HighAvailability
,Basic
. - Db
Instance Class This property is required. string - The db instance class.
- Db
Instance Id This property is required. string - The db instance id.
- Db
Instance Mode This property is required. string - The db instance mode. Valid values:
StorageElastic
,Serverless
,Classic
. - Description
This property is required. string - The description of the instance.
- Engine
This property is required. string - The database engine used by the instance.
- Engine
Version This property is required. string - The version of the database engine used by the instance.
- Id
This property is required. string - The ID of the db Instance.
- Instance
Network Type This property is required. string - The network type of the instance.
- Ip
Whitelists This property is required. []GetInstances Instance Ip Whitelist - The ip whitelist.
- Maintain
End Time This property is required. string - The end time of the maintenance window for the instance.
- Maintain
Start Time This property is required. string - The start time of the maintenance window for the instance.
- Master
Node Num This property is required. string - 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 This property is required. string - The memory size of the compute node.
- Payment
Type This property is required. string - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - Region
Id This property is required. string - Region ID the instance belongs to.
- Seg
Node Num This property is required. 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
This property is required. string - The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - Storage
Size This property is required. int - The storage capacity. Unit: GB. Value:
50
to4000
. - Storage
Type This property is required. string - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. This property is required. map[string]string- The tags of the instance.
- Vpc
Id This property is required. string - The ID of the VPC。.
- Vswitch
Id This property is required. string - The vswitch id.
- Zone
Id This property is required. string - The zone ID of the instance.
- availability
Zone This property is required. String - Instance availability zone.
- charge
Type This property is required. String - connection
String This property is required. String - The connection string of the instance.
- cpu
Cores This property is required. String - The number of CPU cores of the computing node. Unit: Core.
- create
Time This property is required. 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.
- creation
Time This property is required. String - db
Instance Category This property is required. String - The db instance category. Valid values:
HighAvailability
,Basic
. - db
Instance Class This property is required. String - The db instance class.
- db
Instance Id This property is required. String - The db instance id.
- db
Instance Mode This property is required. String - The db instance mode. Valid values:
StorageElastic
,Serverless
,Classic
. - description
This property is required. String - The description of the instance.
- engine
This property is required. String - The database engine used by the instance.
- engine
Version This property is required. String - The version of the database engine used by the instance.
- id
This property is required. String - The ID of the db Instance.
- instance
Network Type This property is required. String - The network type of the instance.
- ip
Whitelists This property is required. List<GetInstances Instance Ip Whitelist> - The ip whitelist.
- maintain
End Time This property is required. String - The end time of the maintenance window for the instance.
- maintain
Start Time This property is required. String - The start time of the maintenance window for the instance.
- master
Node Num This property is required. String - 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 This property is required. String - The memory size of the compute node.
- payment
Type This property is required. String - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - region
Id This property is required. String - Region ID the instance belongs to.
- seg
Node Num This property is required. 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
This property is required. String - The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - storage
Size This property is required. Integer - The storage capacity. Unit: GB. Value:
50
to4000
. - storage
Type This property is required. String - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. This property is required. Map<String,String>- The tags of the instance.
- vpc
Id This property is required. String - The ID of the VPC。.
- vswitch
Id This property is required. String - The vswitch id.
- zone
Id This property is required. String - The zone ID of the instance.
- availability
Zone This property is required. string - Instance availability zone.
- charge
Type This property is required. string - connection
String This property is required. string - The connection string of the instance.
- cpu
Cores This property is required. string - The number of CPU cores of the computing node. Unit: Core.
- create
Time This property is required. 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.
- creation
Time This property is required. string - db
Instance Category This property is required. string - The db instance category. Valid values:
HighAvailability
,Basic
. - db
Instance Class This property is required. string - The db instance class.
- db
Instance Id This property is required. string - The db instance id.
- db
Instance Mode This property is required. string - The db instance mode. Valid values:
StorageElastic
,Serverless
,Classic
. - description
This property is required. string - The description of the instance.
- engine
This property is required. string - The database engine used by the instance.
- engine
Version This property is required. string - The version of the database engine used by the instance.
- id
This property is required. string - The ID of the db Instance.
- instance
Network Type This property is required. string - The network type of the instance.
- ip
Whitelists This property is required. GetInstances Instance Ip Whitelist[] - The ip whitelist.
- maintain
End Time This property is required. string - The end time of the maintenance window for the instance.
- maintain
Start Time This property is required. string - The start time of the maintenance window for the instance.
- master
Node Num This property is required. string - 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 This property is required. string - The memory size of the compute node.
- payment
Type This property is required. string - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - region
Id This property is required. string - Region ID the instance belongs to.
- seg
Node Num This property is required. 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
This property is required. string - The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - storage
Size This property is required. number - The storage capacity. Unit: GB. Value:
50
to4000
. - storage
Type This property is required. string - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. This property is required. {[key: string]: string}- The tags of the instance.
- vpc
Id This property is required. string - The ID of the VPC。.
- vswitch
Id This property is required. string - The vswitch id.
- zone
Id This property is required. string - The zone ID of the instance.
- availability_
zone This property is required. str - Instance availability zone.
- charge_
type This property is required. str - connection_
string This property is required. str - The connection string of the instance.
- cpu_
cores This property is required. str - The number of CPU cores of the computing node. Unit: Core.
- create_
time This property is required. 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 This property is required. str - db_
instance_ category This property is required. str - The db instance category. Valid values:
HighAvailability
,Basic
. - db_
instance_ class This property is required. str - The db instance class.
- db_
instance_ id This property is required. str - The db instance id.
- db_
instance_ mode This property is required. str - The db instance mode. Valid values:
StorageElastic
,Serverless
,Classic
. - description
This property is required. str - The description of the instance.
- engine
This property is required. str - The database engine used by the instance.
- engine_
version This property is required. str - The version of the database engine used by the instance.
- id
This property is required. str - The ID of the db Instance.
- instance_
network_ type This property is required. str - The network type of the instance.
- ip_
whitelists This property is required. Sequence[GetInstances Instance Ip Whitelist] - The ip whitelist.
- maintain_
end_ time This property is required. str - The end time of the maintenance window for the instance.
- maintain_
start_ time This property is required. str - The start time of the maintenance window for the instance.
- master_
node_ num This property is required. 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 This property is required. str - The memory size of the compute node.
- payment_
type This property is required. str - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - region_
id This property is required. str - Region ID the instance belongs to.
- seg_
node_ num This property is required. 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
This property is required. str - The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - storage_
size This property is required. int - The storage capacity. Unit: GB. Value:
50
to4000
. - storage_
type This property is required. str - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. This property is required. Mapping[str, str]- The tags of the instance.
- vpc_
id This property is required. str - The ID of the VPC。.
- vswitch_
id This property is required. str - The vswitch id.
- zone_
id This property is required. str - The zone ID of the instance.
- availability
Zone This property is required. String - Instance availability zone.
- charge
Type This property is required. String - connection
String This property is required. String - The connection string of the instance.
- cpu
Cores This property is required. String - The number of CPU cores of the computing node. Unit: Core.
- create
Time This property is required. 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.
- creation
Time This property is required. String - db
Instance Category This property is required. String - The db instance category. Valid values:
HighAvailability
,Basic
. - db
Instance Class This property is required. String - The db instance class.
- db
Instance Id This property is required. String - The db instance id.
- db
Instance Mode This property is required. String - The db instance mode. Valid values:
StorageElastic
,Serverless
,Classic
. - description
This property is required. String - The description of the instance.
- engine
This property is required. String - The database engine used by the instance.
- engine
Version This property is required. String - The version of the database engine used by the instance.
- id
This property is required. String - The ID of the db Instance.
- instance
Network Type This property is required. String - The network type of the instance.
- ip
Whitelists This property is required. List<Property Map> - The ip whitelist.
- maintain
End Time This property is required. String - The end time of the maintenance window for the instance.
- maintain
Start Time This property is required. String - The start time of the maintenance window for the instance.
- master
Node Num This property is required. String - 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 This property is required. String - The memory size of the compute node.
- payment
Type This property is required. String - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - region
Id This property is required. String - Region ID the instance belongs to.
- seg
Node Num This property is required. 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
This property is required. String - The status of the instance. Valid values:
Creating
,DBInstanceClassChanging
,DBInstanceNetTypeChanging
,Deleting
,EngineVersionUpgrading
,GuardDBInstanceCreating
,GuardSwitching
,Importing
,ImportingFromOtherInstance
,Rebooting
,Restoring
,Running
,Transfering
,TransferingToOtherInstance
. - storage
Size This property is required. Number - The storage capacity. Unit: GB. Value:
50
to4000
. - storage
Type This property is required. String - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. This property is required. Map<String>- The tags of the instance.
- vpc
Id This property is required. String - The ID of the VPC。.
- vswitch
Id This property is required. String - The vswitch id.
- zone
Id This property is required. String - The zone ID of the instance.
GetInstancesInstanceIpWhitelist
- Ip
Group Attribute This property is required. 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.
- Ip
Group Name This property is required. string - IP whitelist group name
- Security
Ip List This property is required. 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 This property is required. 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.
- Ip
Group Name This property is required. string - IP whitelist group name
- Security
Ip List This property is required. 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 This property is required. 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.
- ip
Group Name This property is required. String - IP whitelist group name
- security
Ip List This property is required. 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 This property is required. 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.
- ip
Group Name This property is required. string - IP whitelist group name
- security
Ip List This property is required. 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 This property is required. 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 This property is required. str - IP whitelist group name
- security_
ip_ list This property is required. 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"]
.
- ip
Group Attribute This property is required. 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.
- ip
Group Name This property is required. String - IP whitelist group name
- security
Ip List This property is required. 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.