Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
alicloud.gpdb.getDbInstancePlans
Start a Neo task
Explain and create an alicloud.gpdb.getDbInstancePlans resource
This data source provides the Gpdb Db Instance Plans of the current Alibaba Cloud user.
NOTE: Available in v1.189.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.gpdb.getDbInstancePlans({
dbInstanceId: "example_value",
ids: ["example_value"],
});
export const gpdbDbInstancePlanId1 = ids.then(ids => ids.plans?.[0]?.id);
const nameRegex = alicloud.gpdb.getDbInstancePlans({
dbInstanceId: "example_value",
nameRegex: "^my-DBInstancePlan",
});
export const gpdbDbInstancePlanId2 = nameRegex.then(nameRegex => nameRegex.plans?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.gpdb.get_db_instance_plans(db_instance_id="example_value",
ids=["example_value"])
pulumi.export("gpdbDbInstancePlanId1", ids.plans[0].id)
name_regex = alicloud.gpdb.get_db_instance_plans(db_instance_id="example_value",
name_regex="^my-DBInstancePlan")
pulumi.export("gpdbDbInstancePlanId2", name_regex.plans[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.GetDbInstancePlans(ctx, &gpdb.GetDbInstancePlansArgs{
DbInstanceId: "example_value",
Ids: []string{
"example_value",
},
}, nil)
if err != nil {
return err
}
ctx.Export("gpdbDbInstancePlanId1", ids.Plans[0].Id)
nameRegex, err := gpdb.GetDbInstancePlans(ctx, &gpdb.GetDbInstancePlansArgs{
DbInstanceId: "example_value",
NameRegex: pulumi.StringRef("^my-DBInstancePlan"),
}, nil)
if err != nil {
return err
}
ctx.Export("gpdbDbInstancePlanId2", nameRegex.Plans[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.GetDbInstancePlans.Invoke(new()
{
DbInstanceId = "example_value",
Ids = new[]
{
"example_value",
},
});
var nameRegex = AliCloud.Gpdb.GetDbInstancePlans.Invoke(new()
{
DbInstanceId = "example_value",
NameRegex = "^my-DBInstancePlan",
});
return new Dictionary<string, object?>
{
["gpdbDbInstancePlanId1"] = ids.Apply(getDbInstancePlansResult => getDbInstancePlansResult.Plans[0]?.Id),
["gpdbDbInstancePlanId2"] = nameRegex.Apply(getDbInstancePlansResult => getDbInstancePlansResult.Plans[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.GetDbInstancePlansArgs;
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.getDbInstancePlans(GetDbInstancePlansArgs.builder()
.dbInstanceId("example_value")
.ids("example_value")
.build());
ctx.export("gpdbDbInstancePlanId1", ids.plans()[0].id());
final var nameRegex = GpdbFunctions.getDbInstancePlans(GetDbInstancePlansArgs.builder()
.dbInstanceId("example_value")
.nameRegex("^my-DBInstancePlan")
.build());
ctx.export("gpdbDbInstancePlanId2", nameRegex.plans()[0].id());
}
}
variables:
ids:
fn::invoke:
function: alicloud:gpdb:getDbInstancePlans
arguments:
dbInstanceId: example_value
ids:
- example_value
nameRegex:
fn::invoke:
function: alicloud:gpdb:getDbInstancePlans
arguments:
dbInstanceId: example_value
nameRegex: ^my-DBInstancePlan
outputs:
gpdbDbInstancePlanId1: ${ids.plans[0].id}
gpdbDbInstancePlanId2: ${nameRegex.plans[0].id}
Using getDbInstancePlans
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 getDbInstancePlans(args: GetDbInstancePlansArgs, opts?: InvokeOptions): Promise<GetDbInstancePlansResult>
function getDbInstancePlansOutput(args: GetDbInstancePlansOutputArgs, opts?: InvokeOptions): Output<GetDbInstancePlansResult>def get_db_instance_plans(db_instance_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
plan_schedule_type: Optional[str] = None,
plan_type: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbInstancePlansResult
def get_db_instance_plans_output(db_instance_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
plan_schedule_type: Optional[pulumi.Input[str]] = None,
plan_type: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbInstancePlansResult]func GetDbInstancePlans(ctx *Context, args *GetDbInstancePlansArgs, opts ...InvokeOption) (*GetDbInstancePlansResult, error)
func GetDbInstancePlansOutput(ctx *Context, args *GetDbInstancePlansOutputArgs, opts ...InvokeOption) GetDbInstancePlansResultOutput> Note: This function is named GetDbInstancePlans in the Go SDK.
public static class GetDbInstancePlans
{
public static Task<GetDbInstancePlansResult> InvokeAsync(GetDbInstancePlansArgs args, InvokeOptions? opts = null)
public static Output<GetDbInstancePlansResult> Invoke(GetDbInstancePlansInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbInstancePlansResult> getDbInstancePlans(GetDbInstancePlansArgs args, InvokeOptions options)
public static Output<GetDbInstancePlansResult> getDbInstancePlans(GetDbInstancePlansArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:gpdb/getDbInstancePlans:getDbInstancePlans
arguments:
# arguments dictionaryThe following arguments are supported:
- Db
Instance stringId - The ID of the Database instance.
- Ids List<string>
- A list of DB Instance Plan IDs.
- Name
Regex string - A regex string to filter results by DB Instance Plan name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Plan
Schedule stringType - Plan scheduling type. Valid values:
Postpone,Regular. - Plan
Type string - The type of the Plan. Valid values:
PauseResume,Resize. - Status string
- Planning Status. Valid values:
active,cancel,deleted,finished.
- Db
Instance stringId - The ID of the Database instance.
- Ids []string
- A list of DB Instance Plan IDs.
- Name
Regex string - A regex string to filter results by DB Instance Plan name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Plan
Schedule stringType - Plan scheduling type. Valid values:
Postpone,Regular. - Plan
Type string - The type of the Plan. Valid values:
PauseResume,Resize. - Status string
- Planning Status. Valid values:
active,cancel,deleted,finished.
- db
Instance StringId - The ID of the Database instance.
- ids List<String>
- A list of DB Instance Plan IDs.
- name
Regex String - A regex string to filter results by DB Instance Plan name.
- output
File String - File name where to save data source results (after running
pulumi preview). - plan
Schedule StringType - Plan scheduling type. Valid values:
Postpone,Regular. - plan
Type String - The type of the Plan. Valid values:
PauseResume,Resize. - status String
- Planning Status. Valid values:
active,cancel,deleted,finished.
- db
Instance stringId - The ID of the Database instance.
- ids string[]
- A list of DB Instance Plan IDs.
- name
Regex string - A regex string to filter results by DB Instance Plan name.
- output
File string - File name where to save data source results (after running
pulumi preview). - plan
Schedule stringType - Plan scheduling type. Valid values:
Postpone,Regular. - plan
Type string - The type of the Plan. Valid values:
PauseResume,Resize. - status string
- Planning Status. Valid values:
active,cancel,deleted,finished.
- db_
instance_ strid - The ID of the Database instance.
- ids Sequence[str]
- A list of DB Instance Plan IDs.
- name_
regex str - A regex string to filter results by DB Instance Plan name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - plan_
schedule_ strtype - Plan scheduling type. Valid values:
Postpone,Regular. - plan_
type str - The type of the Plan. Valid values:
PauseResume,Resize. - status str
- Planning Status. Valid values:
active,cancel,deleted,finished.
- db
Instance StringId - The ID of the Database instance.
- ids List<String>
- A list of DB Instance Plan IDs.
- name
Regex String - A regex string to filter results by DB Instance Plan name.
- output
File String - File name where to save data source results (after running
pulumi preview). - plan
Schedule StringType - Plan scheduling type. Valid values:
Postpone,Regular. - plan
Type String - The type of the Plan. Valid values:
PauseResume,Resize. - status String
- Planning Status. Valid values:
active,cancel,deleted,finished.
getDbInstancePlans Result
The following output properties are available:
- Db
Instance stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Plans
List<Pulumi.
Ali Cloud. Gpdb. Outputs. Get Db Instance Plans Plan> - Name
Regex string - Output
File string - Plan
Schedule stringType - Plan
Type string - Status string
- Db
Instance stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Plans
[]Get
Db Instance Plans Plan - Name
Regex string - Output
File string - Plan
Schedule stringType - Plan
Type string - Status string
- db
Instance StringId - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- plans
List<Get
Db Instance Plans Plan> - name
Regex String - output
File String - plan
Schedule StringType - plan
Type String - status String
- db
Instance stringId - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- plans
Get
Db Instance Plans Plan[] - name
Regex string - output
File string - plan
Schedule stringType - plan
Type string - status string
- db_
instance_ strid - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- plans
Sequence[Get
Db Instance Plans Plan] - name_
regex str - output_
file str - plan_
schedule_ strtype - plan_
type str - status str
- db
Instance StringId - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- plans List<Property Map>
- name
Regex String - output
File String - plan
Schedule StringType - plan
Type String - status String
Supporting Types
GetDbInstancePlansPlan
- Db
Instance stringPlan Name - The name of the Plan.
- Id string
- The ID of the resource. The value formats as
<db_instance_id>:<plan_id>. - Plan
Configs List<Pulumi.Ali Cloud. Gpdb. Inputs. Get Db Instance Plans Plan Plan Config> - Plan configuration information.
- Plan
Desc string - Plan
End stringDate - The end time of the Plan.
- Plan
Id string - The ID of DB Instance Plan.
- Plan
Schedule stringType - Plan scheduling type. Valid values:
Postpone,Regular. - Plan
Start stringDate - The start time of the Plan.
- Plan
Type string - The type of the Plan. Valid values:
PauseResume,Resize. - Status string
- The Status of the Plan.
- Db
Instance stringPlan Name - The name of the Plan.
- Id string
- The ID of the resource. The value formats as
<db_instance_id>:<plan_id>. - Plan
Configs []GetDb Instance Plans Plan Plan Config - Plan configuration information.
- Plan
Desc string - Plan
End stringDate - The end time of the Plan.
- Plan
Id string - The ID of DB Instance Plan.
- Plan
Schedule stringType - Plan scheduling type. Valid values:
Postpone,Regular. - Plan
Start stringDate - The start time of the Plan.
- Plan
Type string - The type of the Plan. Valid values:
PauseResume,Resize. - Status string
- The Status of the Plan.
- db
Instance StringPlan Name - The name of the Plan.
- id String
- The ID of the resource. The value formats as
<db_instance_id>:<plan_id>. - plan
Configs List<GetDb Instance Plans Plan Plan Config> - Plan configuration information.
- plan
Desc String - plan
End StringDate - The end time of the Plan.
- plan
Id String - The ID of DB Instance Plan.
- plan
Schedule StringType - Plan scheduling type. Valid values:
Postpone,Regular. - plan
Start StringDate - The start time of the Plan.
- plan
Type String - The type of the Plan. Valid values:
PauseResume,Resize. - status String
- The Status of the Plan.
- db
Instance stringPlan Name - The name of the Plan.
- id string
- The ID of the resource. The value formats as
<db_instance_id>:<plan_id>. - plan
Configs GetDb Instance Plans Plan Plan Config[] - Plan configuration information.
- plan
Desc string - plan
End stringDate - The end time of the Plan.
- plan
Id string - The ID of DB Instance Plan.
- plan
Schedule stringType - Plan scheduling type. Valid values:
Postpone,Regular. - plan
Start stringDate - The start time of the Plan.
- plan
Type string - The type of the Plan. Valid values:
PauseResume,Resize. - status string
- The Status of the Plan.
- db_
instance_ strplan_ name - The name of the Plan.
- id str
- The ID of the resource. The value formats as
<db_instance_id>:<plan_id>. - plan_
configs Sequence[GetDb Instance Plans Plan Plan Config] - Plan configuration information.
- plan_
desc str - plan_
end_ strdate - The end time of the Plan.
- plan_
id str - The ID of DB Instance Plan.
- plan_
schedule_ strtype - Plan scheduling type. Valid values:
Postpone,Regular. - plan_
start_ strdate - The start time of the Plan.
- plan_
type str - The type of the Plan. Valid values:
PauseResume,Resize. - status str
- The Status of the Plan.
- db
Instance StringPlan Name - The name of the Plan.
- id String
- The ID of the resource. The value formats as
<db_instance_id>:<plan_id>. - plan
Configs List<Property Map> - Plan configuration information.
- plan
Desc String - plan
End StringDate - The end time of the Plan.
- plan
Id String - The ID of DB Instance Plan.
- plan
Schedule StringType - Plan scheduling type. Valid values:
Postpone,Regular. - plan
Start StringDate - The start time of the Plan.
- plan
Type String - The type of the Plan. Valid values:
PauseResume,Resize. - status String
- The Status of the Plan.
GetDbInstancePlansPlanPlanConfig
- Pauses
List<Pulumi.
Ali Cloud. Gpdb. Inputs. Get Db Instance Plans Plan Plan Config Pause> - Pause instance plan config.
- Resumes
List<Pulumi.
Ali Cloud. Gpdb. Inputs. Get Db Instance Plans Plan Plan Config Resume> - Resume instance plan config.
- Scale
Ins List<Pulumi.Ali Cloud. Gpdb. Inputs. Get Db Instance Plans Plan Plan Config Scale In> - Scale In instance plan config.
- Scale
Outs List<Pulumi.Ali Cloud. Gpdb. Inputs. Get Db Instance Plans Plan Plan Config Scale Out> - Scale out instance plan config.
- Pauses
[]Get
Db Instance Plans Plan Plan Config Pause - Pause instance plan config.
- Resumes
[]Get
Db Instance Plans Plan Plan Config Resume - Resume instance plan config.
- Scale
Ins []GetDb Instance Plans Plan Plan Config Scale In - Scale In instance plan config.
- Scale
Outs []GetDb Instance Plans Plan Plan Config Scale Out - Scale out instance plan config.
- pauses
List<Get
Db Instance Plans Plan Plan Config Pause> - Pause instance plan config.
- resumes
List<Get
Db Instance Plans Plan Plan Config Resume> - Resume instance plan config.
- scale
Ins List<GetDb Instance Plans Plan Plan Config Scale In> - Scale In instance plan config.
- scale
Outs List<GetDb Instance Plans Plan Plan Config Scale Out> - Scale out instance plan config.
- pauses
Get
Db Instance Plans Plan Plan Config Pause[] - Pause instance plan config.
- resumes
Get
Db Instance Plans Plan Plan Config Resume[] - Resume instance plan config.
- scale
Ins GetDb Instance Plans Plan Plan Config Scale In[] - Scale In instance plan config.
- scale
Outs GetDb Instance Plans Plan Plan Config Scale Out[] - Scale out instance plan config.
- pauses
Sequence[Get
Db Instance Plans Plan Plan Config Pause] - Pause instance plan config.
- resumes
Sequence[Get
Db Instance Plans Plan Plan Config Resume] - Resume instance plan config.
- scale_
ins Sequence[GetDb Instance Plans Plan Plan Config Scale In] - Scale In instance plan config.
- scale_
outs Sequence[GetDb Instance Plans Plan Plan Config Scale Out] - Scale out instance plan config.
- pauses List<Property Map>
- Pause instance plan config.
- resumes List<Property Map>
- Resume instance plan config.
- scale
Ins List<Property Map> - Scale In instance plan config.
- scale
Outs List<Property Map> - Scale out instance plan config.
GetDbInstancePlansPlanPlanConfigPause
- Execute
Time string - The executed time of the Plan.
- Plan
Cron stringTime - The Cron Time of the plan.
- Plan
Task stringStatus - The Status of the plan Task.
- Execute
Time string - The executed time of the Plan.
- Plan
Cron stringTime - The Cron Time of the plan.
- Plan
Task stringStatus - The Status of the plan Task.
- execute
Time String - The executed time of the Plan.
- plan
Cron StringTime - The Cron Time of the plan.
- plan
Task StringStatus - The Status of the plan Task.
- execute
Time string - The executed time of the Plan.
- plan
Cron stringTime - The Cron Time of the plan.
- plan
Task stringStatus - The Status of the plan Task.
- execute_
time str - The executed time of the Plan.
- plan_
cron_ strtime - The Cron Time of the plan.
- plan_
task_ strstatus - The Status of the plan Task.
- execute
Time String - The executed time of the Plan.
- plan
Cron StringTime - The Cron Time of the plan.
- plan
Task StringStatus - The Status of the plan Task.
GetDbInstancePlansPlanPlanConfigResume
- Execute
Time string - The executed time of the Plan.
- Plan
Cron stringTime - The Cron Time of the plan.
- Plan
Task stringStatus - The Status of the plan Task.
- Execute
Time string - The executed time of the Plan.
- Plan
Cron stringTime - The Cron Time of the plan.
- Plan
Task stringStatus - The Status of the plan Task.
- execute
Time String - The executed time of the Plan.
- plan
Cron StringTime - The Cron Time of the plan.
- plan
Task StringStatus - The Status of the plan Task.
- execute
Time string - The executed time of the Plan.
- plan
Cron stringTime - The Cron Time of the plan.
- plan
Task stringStatus - The Status of the plan Task.
- execute_
time str - The executed time of the Plan.
- plan_
cron_ strtime - The Cron Time of the plan.
- plan_
task_ strstatus - The Status of the plan Task.
- execute
Time String - The executed time of the Plan.
- plan
Cron StringTime - The Cron Time of the plan.
- plan
Task StringStatus - The Status of the plan Task.
GetDbInstancePlansPlanPlanConfigScaleIn
- Execute
Time string - The executed time of the Plan.
- Plan
Cron stringTime - The Cron Time of the plan.
- Plan
Task stringStatus - The Status of the plan Task.
- Segment
Node stringNum - The segment Node Num of the Plan.
- Execute
Time string - The executed time of the Plan.
- Plan
Cron stringTime - The Cron Time of the plan.
- Plan
Task stringStatus - The Status of the plan Task.
- Segment
Node stringNum - The segment Node Num of the Plan.
- execute
Time String - The executed time of the Plan.
- plan
Cron StringTime - The Cron Time of the plan.
- plan
Task StringStatus - The Status of the plan Task.
- segment
Node StringNum - The segment Node Num of the Plan.
- execute
Time string - The executed time of the Plan.
- plan
Cron stringTime - The Cron Time of the plan.
- plan
Task stringStatus - The Status of the plan Task.
- segment
Node stringNum - The segment Node Num of the Plan.
- execute_
time str - The executed time of the Plan.
- plan_
cron_ strtime - The Cron Time of the plan.
- plan_
task_ strstatus - The Status of the plan Task.
- segment_
node_ strnum - The segment Node Num of the Plan.
- execute
Time String - The executed time of the Plan.
- plan
Cron StringTime - The Cron Time of the plan.
- plan
Task StringStatus - The Status of the plan Task.
- segment
Node StringNum - The segment Node Num of the Plan.
GetDbInstancePlansPlanPlanConfigScaleOut
- Execute
Time string - The executed time of the Plan.
- Plan
Cron stringTime - The Cron Time of the plan.
- Plan
Task stringStatus - The Status of the plan Task.
- Segment
Node stringNum - The segment Node Num of the Plan.
- Execute
Time string - The executed time of the Plan.
- Plan
Cron stringTime - The Cron Time of the plan.
- Plan
Task stringStatus - The Status of the plan Task.
- Segment
Node stringNum - The segment Node Num of the Plan.
- execute
Time String - The executed time of the Plan.
- plan
Cron StringTime - The Cron Time of the plan.
- plan
Task StringStatus - The Status of the plan Task.
- segment
Node StringNum - The segment Node Num of the Plan.
- execute
Time string - The executed time of the Plan.
- plan
Cron stringTime - The Cron Time of the plan.
- plan
Task stringStatus - The Status of the plan Task.
- segment
Node stringNum - The segment Node Num of the Plan.
- execute_
time str - The executed time of the Plan.
- plan_
cron_ strtime - The Cron Time of the plan.
- plan_
task_ strstatus - The Status of the plan Task.
- segment_
node_ strnum - The segment Node Num of the Plan.
- execute
Time String - The executed time of the Plan.
- plan
Cron StringTime - The Cron Time of the plan.
- plan
Task StringStatus - The Status of the plan Task.
- segment
Node StringNum - The segment Node Num of the Plan.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
