1. Packages
  2. Ibm Provider
  3. API Docs
  4. getDatabaseTask
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getDatabaseTask

Explore with Pulumi AI

ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

Provides a read-only data source for database_task. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

Using getDatabaseTask

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 getDatabaseTask(args: GetDatabaseTaskArgs, opts?: InvokeOptions): Promise<GetDatabaseTaskResult>
function getDatabaseTaskOutput(args: GetDatabaseTaskOutputArgs, opts?: InvokeOptions): Output<GetDatabaseTaskResult>
Copy
def get_database_task(id: Optional[str] = None,
                      task_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDatabaseTaskResult
def get_database_task_output(id: Optional[pulumi.Input[str]] = None,
                      task_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseTaskResult]
Copy
func GetDatabaseTask(ctx *Context, args *GetDatabaseTaskArgs, opts ...InvokeOption) (*GetDatabaseTaskResult, error)
func GetDatabaseTaskOutput(ctx *Context, args *GetDatabaseTaskOutputArgs, opts ...InvokeOption) GetDatabaseTaskResultOutput
Copy

> Note: This function is named GetDatabaseTask in the Go SDK.

public static class GetDatabaseTask 
{
    public static Task<GetDatabaseTaskResult> InvokeAsync(GetDatabaseTaskArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseTaskResult> Invoke(GetDatabaseTaskInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatabaseTaskResult> getDatabaseTask(GetDatabaseTaskArgs args, InvokeOptions options)
public static Output<GetDatabaseTaskResult> getDatabaseTask(GetDatabaseTaskArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getDatabaseTask:getDatabaseTask
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TaskId This property is required. string
Task ID.
Id string
TaskId This property is required. string
Task ID.
Id string
taskId This property is required. String
Task ID.
id String
taskId This property is required. string
Task ID.
id string
task_id This property is required. str
Task ID.
id str
taskId This property is required. String
Task ID.
id String

getDatabaseTask Result

The following output properties are available:

CreatedAt string
(String) Date and time when the task was created.
DeploymentId string
(String) ID of the deployment the task is being performed on.
Description string
(String) Human-readable description of the task.
Id string
ProgressPercent double
(Integer) Indicator as percentage of progress of the task.
Status string
(String) The status of the task.

  • Constraints: Allowable values are: running, completed, failed.
TaskId string
The unique identifier of the database_task.
CreatedAt string
(String) Date and time when the task was created.
DeploymentId string
(String) ID of the deployment the task is being performed on.
Description string
(String) Human-readable description of the task.
Id string
ProgressPercent float64
(Integer) Indicator as percentage of progress of the task.
Status string
(String) The status of the task.

  • Constraints: Allowable values are: running, completed, failed.
TaskId string
The unique identifier of the database_task.
createdAt String
(String) Date and time when the task was created.
deploymentId String
(String) ID of the deployment the task is being performed on.
description String
(String) Human-readable description of the task.
id String
progressPercent Double
(Integer) Indicator as percentage of progress of the task.
status String
(String) The status of the task.

  • Constraints: Allowable values are: running, completed, failed.
taskId String
The unique identifier of the database_task.
createdAt string
(String) Date and time when the task was created.
deploymentId string
(String) ID of the deployment the task is being performed on.
description string
(String) Human-readable description of the task.
id string
progressPercent number
(Integer) Indicator as percentage of progress of the task.
status string
(String) The status of the task.

  • Constraints: Allowable values are: running, completed, failed.
taskId string
The unique identifier of the database_task.
created_at str
(String) Date and time when the task was created.
deployment_id str
(String) ID of the deployment the task is being performed on.
description str
(String) Human-readable description of the task.
id str
progress_percent float
(Integer) Indicator as percentage of progress of the task.
status str
(String) The status of the task.

  • Constraints: Allowable values are: running, completed, failed.
task_id str
The unique identifier of the database_task.
createdAt String
(String) Date and time when the task was created.
deploymentId String
(String) ID of the deployment the task is being performed on.
description String
(String) Human-readable description of the task.
id String
progressPercent Number
(Integer) Indicator as percentage of progress of the task.
status String
(String) The status of the task.

  • Constraints: Allowable values are: running, completed, failed.
taskId String
The unique identifier of the database_task.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud