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 dictionary
The following arguments are supported:
- Availability
Zone string - Instance availability zone.
- Db
Instance stringCategories - The db instance categories.
- Db
Instance stringModes - 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 List<string>
- The ids list of AnalyticDB for PostgreSQL instances.
- Instance
Network stringType - 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 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>
- Vswitch
Id string - Used to retrieve instances belong to specified
vswitch
resources.
- Availability
Zone string - Instance availability zone.
- Db
Instance stringCategories - The db instance categories.
- Db
Instance stringModes - 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 []string
- The ids list of AnalyticDB for PostgreSQL instances.
- Instance
Network stringType - 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 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
- Vswitch
Id string - Used to retrieve instances belong to specified
vswitch
resources.
- availability
Zone String - Instance availability zone.
- db
Instance StringCategories - The db instance categories.
- db
Instance StringModes - 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 List<String>
- The ids list of AnalyticDB for PostgreSQL instances.
- instance
Network StringType - 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 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>
- vswitch
Id String - Used to retrieve instances belong to specified
vswitch
resources.
- availability
Zone string - Instance availability zone.
- db
Instance stringCategories - The db instance categories.
- db
Instance stringModes - 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 string[]
- The ids list of AnalyticDB for PostgreSQL instances.
- instance
Network stringType - 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 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}
- vswitch
Id string - Used to retrieve instances belong to specified
vswitch
resources.
- 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 totrue
can 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
vswitch
resources.
- availability
Zone String - Instance availability zone.
- db
Instance StringCategories - The db instance categories.
- db
Instance StringModes - 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 List<String>
- The ids list of AnalyticDB for PostgreSQL instances.
- instance
Network StringType - 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 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>
- 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 string - Instance availability zone.
- Charge
Type string - Connection
String string - The connection string of the instance.
- Cpu
Cores string - The number of CPU cores of the computing node. Unit: Core.
- Create
Time 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 string - Db
Instance stringCategory - The db instance category. Valid values:
HighAvailability
,Basic
. - Db
Instance stringClass - The db instance class.
- Db
Instance stringId - The db instance id.
- Db
Instance 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.
- Engine
Version string - The version of the database engine used by the instance.
- Id string
- The ID of the db Instance.
- Instance
Network stringType - The network type of the instance.
- Ip
Whitelists List<Pulumi.Ali Cloud. Gpdb. Inputs. Get Instances Instance Ip Whitelist> - The ip whitelist.
- Maintain
End stringTime - The end time of the maintenance window for the instance.
- Maintain
Start stringTime - The start time of the maintenance window for the instance.
- Master
Node stringNum - 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 string - The memory size of the compute node.
- Payment
Type string - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - Region
Id string - Region ID the instance belongs to.
- Seg
Node 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
. - Storage
Size int - The storage capacity. Unit: GB. Value:
50
to4000
. - Storage
Type string - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. - Dictionary<string, string>
- The tags of the instance.
- Vpc
Id string - The ID of the VPC。.
- Vswitch
Id string - The vswitch id.
- Zone
Id string - The zone ID of the instance.
- Availability
Zone string - Instance availability zone.
- Charge
Type string - Connection
String string - The connection string of the instance.
- Cpu
Cores string - The number of CPU cores of the computing node. Unit: Core.
- Create
Time 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 string - Db
Instance stringCategory - The db instance category. Valid values:
HighAvailability
,Basic
. - Db
Instance stringClass - The db instance class.
- Db
Instance stringId - The db instance id.
- Db
Instance 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.
- Engine
Version string - The version of the database engine used by the instance.
- Id string
- The ID of the db Instance.
- Instance
Network stringType - The network type of the instance.
- Ip
Whitelists []GetInstances Instance Ip Whitelist - The ip whitelist.
- Maintain
End stringTime - The end time of the maintenance window for the instance.
- Maintain
Start stringTime - The start time of the maintenance window for the instance.
- Master
Node stringNum - 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 string - The memory size of the compute node.
- Payment
Type string - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - Region
Id string - Region ID the instance belongs to.
- Seg
Node 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
. - Storage
Size int - The storage capacity. Unit: GB. Value:
50
to4000
. - Storage
Type string - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. - map[string]string
- The tags of the instance.
- Vpc
Id string - The ID of the VPC。.
- Vswitch
Id string - The vswitch id.
- Zone
Id string - The zone ID of the instance.
- availability
Zone String - Instance availability zone.
- charge
Type String - connection
String String - The connection string of the instance.
- cpu
Cores String - The number of CPU cores of the computing node. Unit: Core.
- create
Time 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 String - db
Instance StringCategory - The db instance category. Valid values:
HighAvailability
,Basic
. - db
Instance StringClass - The db instance class.
- db
Instance StringId - The db instance id.
- db
Instance 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.
- engine
Version String - The version of the database engine used by the instance.
- id String
- The ID of the db Instance.
- instance
Network StringType - The network type of the instance.
- ip
Whitelists List<GetInstances Instance Ip Whitelist> - The ip whitelist.
- maintain
End StringTime - The end time of the maintenance window for the instance.
- maintain
Start StringTime - The start time of the maintenance window for the instance.
- master
Node StringNum - 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 String - The memory size of the compute node.
- payment
Type String - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - region
Id String - Region ID the instance belongs to.
- seg
Node 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
. - storage
Size Integer - The storage capacity. Unit: GB. Value:
50
to4000
. - storage
Type String - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. - Map<String,String>
- The tags of the instance.
- vpc
Id String - The ID of the VPC。.
- vswitch
Id String - The vswitch id.
- zone
Id String - The zone ID of the instance.
- availability
Zone string - Instance availability zone.
- charge
Type string - connection
String string - The connection string of the instance.
- cpu
Cores string - The number of CPU cores of the computing node. Unit: Core.
- create
Time 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 string - db
Instance stringCategory - The db instance category. Valid values:
HighAvailability
,Basic
. - db
Instance stringClass - The db instance class.
- db
Instance stringId - The db instance id.
- db
Instance 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.
- engine
Version string - The version of the database engine used by the instance.
- id string
- The ID of the db Instance.
- instance
Network stringType - The network type of the instance.
- ip
Whitelists GetInstances Instance Ip Whitelist[] - The ip whitelist.
- maintain
End stringTime - The end time of the maintenance window for the instance.
- maintain
Start stringTime - The start time of the maintenance window for the instance.
- master
Node stringNum - 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 string - The memory size of the compute node.
- payment
Type string - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - region
Id string - Region ID the instance belongs to.
- seg
Node 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
. - storage
Size number - The storage capacity. Unit: GB. Value:
50
to4000
. - storage
Type string - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. - {[key: string]: string}
- The tags of the instance.
- vpc
Id string - The ID of the VPC。.
- vswitch
Id string - The vswitch id.
- zone
Id 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:
50
to4000
. - 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.
- availability
Zone String - Instance availability zone.
- charge
Type String - connection
String String - The connection string of the instance.
- cpu
Cores String - The number of CPU cores of the computing node. Unit: Core.
- create
Time 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 String - db
Instance StringCategory - The db instance category. Valid values:
HighAvailability
,Basic
. - db
Instance StringClass - The db instance class.
- db
Instance StringId - The db instance id.
- db
Instance 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.
- engine
Version String - The version of the database engine used by the instance.
- id String
- The ID of the db Instance.
- instance
Network StringType - The network type of the instance.
- ip
Whitelists List<Property Map> - The ip whitelist.
- maintain
End StringTime - The end time of the maintenance window for the instance.
- maintain
Start StringTime - The start time of the maintenance window for the instance.
- master
Node StringNum - 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 String - The memory size of the compute node.
- payment
Type String - The billing method of the instance. Valid values:
Subscription
,PayAsYouGo
. - region
Id String - Region ID the instance belongs to.
- seg
Node 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
. - storage
Size Number - The storage capacity. Unit: GB. Value:
50
to4000
. - storage
Type String - The type of disks. Valid values:
cloud_essd
,cloud_efficiency
. - Map<String>
- The tags of the instance.
- vpc
Id String - The ID of the VPC。.
- vswitch
Id String - The vswitch id.
- zone
Id String - The zone ID of the instance.
GetInstancesInstanceIpWhitelist
- Ip
Group 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.
- Ip
Group stringName - IP whitelist group name
- Security
Ip 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 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.
- Ip
Group stringName - IP whitelist group name
- Security
Ip 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 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.
- ip
Group StringName - IP whitelist group name
- security
Ip 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 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.
- ip
Group stringName - IP whitelist group name
- security
Ip 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"]
.
- ip
Group 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.
- ip
Group StringName - IP whitelist group name
- security
Ip 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
alicloud
Terraform Provider.