Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
Deprecated: volcengine.rds_postgresql.InstanceTasks has been deprecated in favor of volcengine.rds_postgresql.getInstanceTasks
Use this data source to query detailed information of rds postgresql instance tasks
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const example = volcengine.rds_postgresql.getInstanceTasks({
creationEndTime: "2025-12-15T23:40:00Z",
creationStartTime: "2025-12-10T21:30:00Z",
instanceId: "postgres-72715e0d9f58",
projectName: "default",
taskAction: "ModifyDBEndpointReadWriteFlag",
taskStatuses: [
"Running",
"Success",
],
});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.rds_postgresql.get_instance_tasks(creation_end_time="2025-12-15T23:40:00Z",
creation_start_time="2025-12-10T21:30:00Z",
instance_id="postgres-72715e0d9f58",
project_name="default",
task_action="ModifyDBEndpointReadWriteFlag",
task_statuses=[
"Running",
"Success",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds_postgresql.GetInstanceTasks(ctx, &rds_postgresql.GetInstanceTasksArgs{
CreationEndTime: pulumi.StringRef("2025-12-15T23:40:00Z"),
CreationStartTime: pulumi.StringRef("2025-12-10T21:30:00Z"),
InstanceId: pulumi.StringRef("postgres-72715e0d9f58"),
ProjectName: pulumi.StringRef("default"),
TaskAction: pulumi.StringRef("ModifyDBEndpointReadWriteFlag"),
TaskStatuses: []string{
"Running",
"Success",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var example = Volcengine.Rds_postgresql.GetInstanceTasks.Invoke(new()
{
CreationEndTime = "2025-12-15T23:40:00Z",
CreationStartTime = "2025-12-10T21:30:00Z",
InstanceId = "postgres-72715e0d9f58",
ProjectName = "default",
TaskAction = "ModifyDBEndpointReadWriteFlag",
TaskStatuses = new[]
{
"Running",
"Success",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_postgresql.Rds_postgresqlFunctions;
import com.pulumi.volcengine.rds_postgresql.inputs.GetInstanceTasksArgs;
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 example = Rds_postgresqlFunctions.getInstanceTasks(GetInstanceTasksArgs.builder()
.creationEndTime("2025-12-15T23:40:00Z")
.creationStartTime("2025-12-10T21:30:00Z")
.instanceId("postgres-72715e0d9f58")
.projectName("default")
.taskAction("ModifyDBEndpointReadWriteFlag")
.taskStatuses(
"Running",
"Success")
.build());
}
}
variables:
example:
fn::invoke:
Function: volcengine:rds_postgresql:getInstanceTasks
Arguments:
creationEndTime: 2025-12-15T23:40:00Z
creationStartTime: 2025-12-10T21:30:00Z
instanceId: postgres-72715e0d9f58
projectName: default
taskAction: ModifyDBEndpointReadWriteFlag
taskStatuses:
- Running
- Success
Using InstanceTasks
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 instanceTasks(args: InstanceTasksArgs, opts?: InvokeOptions): Promise<InstanceTasksResult>
function instanceTasksOutput(args: InstanceTasksOutputArgs, opts?: InvokeOptions): Output<InstanceTasksResult>def instance_tasks(creation_end_time: Optional[str] = None,
creation_start_time: Optional[str] = None,
instance_id: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
task_action: Optional[str] = None,
task_id: Optional[str] = None,
task_statuses: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> InstanceTasksResult
def instance_tasks_output(creation_end_time: Optional[pulumi.Input[str]] = None,
creation_start_time: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
task_action: Optional[pulumi.Input[str]] = None,
task_id: Optional[pulumi.Input[str]] = None,
task_statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[InstanceTasksResult]func InstanceTasks(ctx *Context, args *InstanceTasksArgs, opts ...InvokeOption) (*InstanceTasksResult, error)
func InstanceTasksOutput(ctx *Context, args *InstanceTasksOutputArgs, opts ...InvokeOption) InstanceTasksResultOutputpublic static class InstanceTasks
{
public static Task<InstanceTasksResult> InvokeAsync(InstanceTasksArgs args, InvokeOptions? opts = null)
public static Output<InstanceTasksResult> Invoke(InstanceTasksInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<InstanceTasksResult> instanceTasks(InstanceTasksArgs args, InvokeOptions options)
public static Output<InstanceTasksResult> instanceTasks(InstanceTasksArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:rds_postgresql:InstanceTasks
arguments:
# arguments dictionaryThe following arguments are supported:
- Creation
End stringTime - Task end time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: The maximum interval between creation_start_time and creation_end_time cannot exceed 7 days.
- Creation
Start stringTime - Task start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- Instance
Id string - The id of the PostgreSQL instance.
- Output
File string - File name where to save data source results.
- Project
Name string - Project name.
- Task
Action string - Task action.
- Task
Id string - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- Task
Statuses List<string> - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- Creation
End stringTime - Task end time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: The maximum interval between creation_start_time and creation_end_time cannot exceed 7 days.
- Creation
Start stringTime - Task start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- Instance
Id string - The id of the PostgreSQL instance.
- Output
File string - File name where to save data source results.
- Project
Name string - Project name.
- Task
Action string - Task action.
- Task
Id string - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- Task
Statuses []string - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- creation
End StringTime - Task end time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: The maximum interval between creation_start_time and creation_end_time cannot exceed 7 days.
- creation
Start StringTime - Task start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- instance
Id String - The id of the PostgreSQL instance.
- output
File String - File name where to save data source results.
- project
Name String - Project name.
- task
Action String - Task action.
- task
Id String - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- task
Statuses List<String> - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- creation
End stringTime - Task end time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: The maximum interval between creation_start_time and creation_end_time cannot exceed 7 days.
- creation
Start stringTime - Task start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- instance
Id string - The id of the PostgreSQL instance.
- output
File string - File name where to save data source results.
- project
Name string - Project name.
- task
Action string - Task action.
- task
Id string - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- task
Statuses string[] - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- creation_
end_ strtime - Task end time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: The maximum interval between creation_start_time and creation_end_time cannot exceed 7 days.
- creation_
start_ strtime - Task start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- instance_
id str - The id of the PostgreSQL instance.
- output_
file str - File name where to save data source results.
- project_
name str - Project name.
- task_
action str - Task action.
- task_
id str - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- task_
statuses Sequence[str] - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- creation
End StringTime - Task end time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: The maximum interval between creation_start_time and creation_end_time cannot exceed 7 days.
- creation
Start StringTime - Task start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- instance
Id String - The id of the PostgreSQL instance.
- output
File String - File name where to save data source results.
- project
Name String - Project name.
- task
Action String - Task action.
- task
Id String - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- task
Statuses List<String> - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
InstanceTasks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Task
Infos List<InstanceTasks Task Info> - Task list.
- Total
Count int - The total count of query.
- Creation
End stringTime - Creation
Start stringTime - Instance
Id string - Instance ID.
- Output
File string - Project
Name string - Project name.
- Task
Action string - Task action.
- Task
Id string - Task ID.
- Task
Statuses List<string> - Task status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Task
Infos []InstanceTasks Task Info - Task list.
- Total
Count int - The total count of query.
- Creation
End stringTime - Creation
Start stringTime - Instance
Id string - Instance ID.
- Output
File string - Project
Name string - Project name.
- Task
Action string - Task action.
- Task
Id string - Task ID.
- Task
Statuses []string - Task status.
- id String
- The provider-assigned unique ID for this managed resource.
- task
Infos List<InstanceTasks Task Info> - Task list.
- total
Count Integer - The total count of query.
- creation
End StringTime - creation
Start StringTime - instance
Id String - Instance ID.
- output
File String - project
Name String - Project name.
- task
Action String - Task action.
- task
Id String - Task ID.
- task
Statuses List<String> - Task status.
- id string
- The provider-assigned unique ID for this managed resource.
- task
Infos InstanceTasks Task Info[] - Task list.
- total
Count number - The total count of query.
- creation
End stringTime - creation
Start stringTime - instance
Id string - Instance ID.
- output
File string - project
Name string - Project name.
- task
Action string - Task action.
- task
Id string - Task ID.
- task
Statuses string[] - Task status.
- id str
- The provider-assigned unique ID for this managed resource.
- task_
infos Sequence[InstanceTasks Task Info] - Task list.
- total_
count int - The total count of query.
- creation_
end_ strtime - creation_
start_ strtime - instance_
id str - Instance ID.
- output_
file str - project_
name str - Project name.
- task_
action str - Task action.
- task_
id str - Task ID.
- task_
statuses Sequence[str] - Task status.
- id String
- The provider-assigned unique ID for this managed resource.
- task
Infos List<Property Map> - Task list.
- total
Count Number - The total count of query.
- creation
End StringTime - creation
Start StringTime - instance
Id String - Instance ID.
- output
File String - project
Name String - Project name.
- task
Action String - Task action.
- task
Id String - Task ID.
- task
Statuses List<String> - Task status.
Supporting Types
InstanceTasksTaskInfo
- Cost
Time intMs - Task execution time in milliseconds.
- Create
Time string - Task creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- Finish
Time string - Task finish time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- Instance
Id string - The id of the PostgreSQL instance.
- Project
Name string - Project name.
- Region string
- Region.
- Scheduled
Switch stringEnd Time - The scheduled end time for the switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- Scheduled
Switch stringStart Time - The start time of the scheduled switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- Task
Action string - Task action.
- Task
Id string - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- Task
Params string - Task parameters in JSON string.
- Task
Status string - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- Cost
Time intMs - Task execution time in milliseconds.
- Create
Time string - Task creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- Finish
Time string - Task finish time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- Instance
Id string - The id of the PostgreSQL instance.
- Project
Name string - Project name.
- Region string
- Region.
- Scheduled
Switch stringEnd Time - The scheduled end time for the switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- Scheduled
Switch stringStart Time - The start time of the scheduled switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- Task
Action string - Task action.
- Task
Id string - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- Task
Params string - Task parameters in JSON string.
- Task
Status string - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- cost
Time IntegerMs - Task execution time in milliseconds.
- create
Time String - Task creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- finish
Time String - Task finish time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- instance
Id String - The id of the PostgreSQL instance.
- project
Name String - Project name.
- region String
- Region.
- scheduled
Switch StringEnd Time - The scheduled end time for the switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- scheduled
Switch StringStart Time - The start time of the scheduled switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- task
Action String - Task action.
- task
Id String - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- task
Params String - Task parameters in JSON string.
- task
Status String - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- cost
Time numberMs - Task execution time in milliseconds.
- create
Time string - Task creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- finish
Time string - Task finish time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- instance
Id string - The id of the PostgreSQL instance.
- project
Name string - Project name.
- region string
- Region.
- scheduled
Switch stringEnd Time - The scheduled end time for the switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- scheduled
Switch stringStart Time - The start time of the scheduled switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- task
Action string - Task action.
- task
Id string - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- task
Params string - Task parameters in JSON string.
- task
Status string - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- cost_
time_ intms - Task execution time in milliseconds.
- create_
time str - Task creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- finish_
time str - Task finish time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- instance_
id str - The id of the PostgreSQL instance.
- project_
name str - Project name.
- region str
- Region.
- scheduled_
switch_ strend_ time - The scheduled end time for the switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- scheduled_
switch_ strstart_ time - The start time of the scheduled switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- task_
action str - Task action.
- task_
id str - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- task_
params str - Task parameters in JSON string.
- task_
status str - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
- cost
Time NumberMs - Task execution time in milliseconds.
- create
Time String - Task creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- finish
Time String - Task finish time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).
- instance
Id String - The id of the PostgreSQL instance.
- project
Name String - Project name.
- region String
- Region.
- scheduled
Switch StringEnd Time - The scheduled end time for the switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- scheduled
Switch StringStart Time - The start time of the scheduled switch. The time format is yyyy-MM-ddTHH:mm:ssZ (UTC time). Note: This field will only be returned for tasks in the "Waiting to Start", "Waiting to Execute", or "Waiting to Switch" states.
- task
Action String - Task action.
- task
Id String - Task ID. Note: One of TaskId or task time (creation_start_time and creation_end_time) must be specified.
- task
Params String - Task parameters in JSON string.
- task
Status String - Task status. Values: Canceled, WaitStart, WaitSwitch, Running, Running_BeforeSwitch, Running_Switching, Running_AfterSwitch, Success, Failed, Timeout, Rollbacking, RollbackFailed, Paused.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
