oci.DatabaseManagement.getManagedDatabaseAddmTasks
Explore with Pulumi AI
This data source provides the list of Managed Database Addm Tasks in Oracle Cloud Infrastructure Database Management service.
Lists the metadata for each ADDM task who’s end snapshot time falls within the provided start and end time. Details include the name of the ADDM task, description, user, status and creation date time.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseAddmTasks = oci.DatabaseManagement.getManagedDatabaseAddmTasks({
managedDatabaseId: testManagedDatabase.id,
timeEnd: managedDatabaseAddmTaskTimeEnd,
timeStart: managedDatabaseAddmTaskTimeStart,
});
import pulumi
import pulumi_oci as oci
test_managed_database_addm_tasks = oci.DatabaseManagement.get_managed_database_addm_tasks(managed_database_id=test_managed_database["id"],
time_end=managed_database_addm_task_time_end,
time_start=managed_database_addm_task_time_start)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseManagement.GetManagedDatabaseAddmTasks(ctx, &databasemanagement.GetManagedDatabaseAddmTasksArgs{
ManagedDatabaseId: testManagedDatabase.Id,
TimeEnd: managedDatabaseAddmTaskTimeEnd,
TimeStart: managedDatabaseAddmTaskTimeStart,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testManagedDatabaseAddmTasks = Oci.DatabaseManagement.GetManagedDatabaseAddmTasks.Invoke(new()
{
ManagedDatabaseId = testManagedDatabase.Id,
TimeEnd = managedDatabaseAddmTaskTimeEnd,
TimeStart = managedDatabaseAddmTaskTimeStart,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetManagedDatabaseAddmTasksArgs;
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 testManagedDatabaseAddmTasks = DatabaseManagementFunctions.getManagedDatabaseAddmTasks(GetManagedDatabaseAddmTasksArgs.builder()
.managedDatabaseId(testManagedDatabase.id())
.timeEnd(managedDatabaseAddmTaskTimeEnd)
.timeStart(managedDatabaseAddmTaskTimeStart)
.build());
}
}
variables:
testManagedDatabaseAddmTasks:
fn::invoke:
Function: oci:DatabaseManagement:getManagedDatabaseAddmTasks
Arguments:
managedDatabaseId: ${testManagedDatabase.id}
timeEnd: ${managedDatabaseAddmTaskTimeEnd}
timeStart: ${managedDatabaseAddmTaskTimeStart}
Using getManagedDatabaseAddmTasks
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 getManagedDatabaseAddmTasks(args: GetManagedDatabaseAddmTasksArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseAddmTasksResult>
function getManagedDatabaseAddmTasksOutput(args: GetManagedDatabaseAddmTasksOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseAddmTasksResult>
def get_managed_database_addm_tasks(filters: Optional[Sequence[_databasemanagement.GetManagedDatabaseAddmTasksFilter]] = None,
managed_database_id: Optional[str] = None,
time_end: Optional[str] = None,
time_start: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseAddmTasksResult
def get_managed_database_addm_tasks_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetManagedDatabaseAddmTasksFilterArgs]]]] = None,
managed_database_id: Optional[pulumi.Input[str]] = None,
time_end: Optional[pulumi.Input[str]] = None,
time_start: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseAddmTasksResult]
func GetManagedDatabaseAddmTasks(ctx *Context, args *GetManagedDatabaseAddmTasksArgs, opts ...InvokeOption) (*GetManagedDatabaseAddmTasksResult, error)
func GetManagedDatabaseAddmTasksOutput(ctx *Context, args *GetManagedDatabaseAddmTasksOutputArgs, opts ...InvokeOption) GetManagedDatabaseAddmTasksResultOutput
> Note: This function is named GetManagedDatabaseAddmTasks
in the Go SDK.
public static class GetManagedDatabaseAddmTasks
{
public static Task<GetManagedDatabaseAddmTasksResult> InvokeAsync(GetManagedDatabaseAddmTasksArgs args, InvokeOptions? opts = null)
public static Output<GetManagedDatabaseAddmTasksResult> Invoke(GetManagedDatabaseAddmTasksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedDatabaseAddmTasksResult> getManagedDatabaseAddmTasks(GetManagedDatabaseAddmTasksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseManagement/getManagedDatabaseAddmTasks:getManagedDatabaseAddmTasks
arguments:
# arguments dictionary
The following arguments are supported:
- Managed
Database stringId - The OCID of the Managed Database.
- Time
End string - The end of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- Time
Start string - The beginning of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- Filters
List<Get
Managed Database Addm Tasks Filter>
- Managed
Database stringId - The OCID of the Managed Database.
- Time
End string - The end of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- Time
Start string - The beginning of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- Filters
[]Get
Managed Database Addm Tasks Filter
- managed
Database StringId - The OCID of the Managed Database.
- time
End String - The end of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- time
Start String - The beginning of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- filters
List<Get
Managed Database Addm Tasks Filter>
- managed
Database stringId - The OCID of the Managed Database.
- time
End string - The end of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- time
Start string - The beginning of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- filters
Get
Managed Database Addm Tasks Filter[]
- managed_
database_ strid - The OCID of the Managed Database.
- time_
end str - The end of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- time_
start str - The beginning of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- filters
Sequence[databasemanagement.
Get Managed Database Addm Tasks Filter]
- managed
Database StringId - The OCID of the Managed Database.
- time
End String - The end of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- time
Start String - The beginning of the time range to search for ADDM tasks as defined by date-time RFC3339 format.
- filters List<Property Map>
getManagedDatabaseAddmTasks Result
The following output properties are available:
- Addm
Tasks List<GetCollections Managed Database Addm Tasks Addm Tasks Collection> - The list of addm_tasks_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - The OCID of the Managed Database.
- Time
End string - Time
Start string - Filters
List<Get
Managed Database Addm Tasks Filter>
- Addm
Tasks []GetCollections Managed Database Addm Tasks Addm Tasks Collection - The list of addm_tasks_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - The OCID of the Managed Database.
- Time
End string - Time
Start string - Filters
[]Get
Managed Database Addm Tasks Filter
- addm
Tasks List<GetCollections Managed Database Addm Tasks Addm Tasks Collection> - The list of addm_tasks_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - The OCID of the Managed Database.
- time
End String - time
Start String - filters
List<Get
Managed Database Addm Tasks Filter>
- addm
Tasks GetCollections Managed Database Addm Tasks Addm Tasks Collection[] - The list of addm_tasks_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Database stringId - The OCID of the Managed Database.
- time
End string - time
Start string - filters
Get
Managed Database Addm Tasks Filter[]
- addm_
tasks_ Sequence[databasemanagement.collections Get Managed Database Addm Tasks Addm Tasks Collection] - The list of addm_tasks_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
database_ strid - The OCID of the Managed Database.
- time_
end str - time_
start str - filters
Sequence[databasemanagement.
Get Managed Database Addm Tasks Filter]
- addm
Tasks List<Property Map>Collections - The list of addm_tasks_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - The OCID of the Managed Database.
- time
End String - time
Start String - filters List<Property Map>
Supporting Types
GetManagedDatabaseAddmTasksAddmTasksCollection
- Items
List<Get
Managed Database Addm Tasks Addm Tasks Collection Item> - The list of ADDM task metadata.
- Items
[]Get
Managed Database Addm Tasks Addm Tasks Collection Item - The list of ADDM task metadata.
- items
List<Get
Managed Database Addm Tasks Addm Tasks Collection Item> - The list of ADDM task metadata.
- items
Get
Managed Database Addm Tasks Addm Tasks Collection Item[] - The list of ADDM task metadata.
- items
Sequence[databasemanagement.
Get Managed Database Addm Tasks Addm Tasks Collection Item] - The list of ADDM task metadata.
- items List<Property Map>
- The list of ADDM task metadata.
GetManagedDatabaseAddmTasksAddmTasksCollectionItem
- Begin
Snapshot stringId - The ID number of the beginning AWR snapshot.
- Db
User string - The database user who owns the ADDM task.
- Description string
- The description of the ADDM task.
- End
Snapshot stringId - The ID number of the ending AWR snapshot.
- End
Snapshot stringTime - The timestamp of the ending AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- Findings string
- The number of ADDM findings.
- How
Created string - A description of how the task was created.
- Start
Snapshot stringTime - The timestamp of the beginning AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- Status string
- The status of the ADDM task.
- Task
Id string - The ID number of the ADDM task.
- Task
Name string - The name of the ADDM task.
- Time
Created string - The creation date of the ADDM task.
- Begin
Snapshot stringId - The ID number of the beginning AWR snapshot.
- Db
User string - The database user who owns the ADDM task.
- Description string
- The description of the ADDM task.
- End
Snapshot stringId - The ID number of the ending AWR snapshot.
- End
Snapshot stringTime - The timestamp of the ending AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- Findings string
- The number of ADDM findings.
- How
Created string - A description of how the task was created.
- Start
Snapshot stringTime - The timestamp of the beginning AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- Status string
- The status of the ADDM task.
- Task
Id string - The ID number of the ADDM task.
- Task
Name string - The name of the ADDM task.
- Time
Created string - The creation date of the ADDM task.
- begin
Snapshot StringId - The ID number of the beginning AWR snapshot.
- db
User String - The database user who owns the ADDM task.
- description String
- The description of the ADDM task.
- end
Snapshot StringId - The ID number of the ending AWR snapshot.
- end
Snapshot StringTime - The timestamp of the ending AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- findings String
- The number of ADDM findings.
- how
Created String - A description of how the task was created.
- start
Snapshot StringTime - The timestamp of the beginning AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- status String
- The status of the ADDM task.
- task
Id String - The ID number of the ADDM task.
- task
Name String - The name of the ADDM task.
- time
Created String - The creation date of the ADDM task.
- begin
Snapshot stringId - The ID number of the beginning AWR snapshot.
- db
User string - The database user who owns the ADDM task.
- description string
- The description of the ADDM task.
- end
Snapshot stringId - The ID number of the ending AWR snapshot.
- end
Snapshot stringTime - The timestamp of the ending AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- findings string
- The number of ADDM findings.
- how
Created string - A description of how the task was created.
- start
Snapshot stringTime - The timestamp of the beginning AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- status string
- The status of the ADDM task.
- task
Id string - The ID number of the ADDM task.
- task
Name string - The name of the ADDM task.
- time
Created string - The creation date of the ADDM task.
- begin_
snapshot_ strid - The ID number of the beginning AWR snapshot.
- db_
user str - The database user who owns the ADDM task.
- description str
- The description of the ADDM task.
- end_
snapshot_ strid - The ID number of the ending AWR snapshot.
- end_
snapshot_ strtime - The timestamp of the ending AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- findings str
- The number of ADDM findings.
- how_
created str - A description of how the task was created.
- start_
snapshot_ strtime - The timestamp of the beginning AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- status str
- The status of the ADDM task.
- task_
id str - The ID number of the ADDM task.
- task_
name str - The name of the ADDM task.
- time_
created str - The creation date of the ADDM task.
- begin
Snapshot StringId - The ID number of the beginning AWR snapshot.
- db
User String - The database user who owns the ADDM task.
- description String
- The description of the ADDM task.
- end
Snapshot StringId - The ID number of the ending AWR snapshot.
- end
Snapshot StringTime - The timestamp of the ending AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- findings String
- The number of ADDM findings.
- how
Created String - A description of how the task was created.
- start
Snapshot StringTime - The timestamp of the beginning AWR snapshot used in the ADDM task as defined by date-time RFC3339 format.
- status String
- The status of the ADDM task.
- task
Id String - The ID number of the ADDM task.
- task
Name String - The name of the ADDM task.
- time
Created String - The creation date of the ADDM task.
GetManagedDatabaseAddmTasksFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.