Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DatabaseManagement.getManagedDatabaseSqlPlanBaselineJobs
Explore with Pulumi AI
This data source provides the list of Managed Database Sql Plan Baseline Jobs in Oracle Cloud Infrastructure Database Management service.
Lists the database jobs used for loading SQL plan baselines in the specified Managed Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseSqlPlanBaselineJobs = oci.DatabaseManagement.getManagedDatabaseSqlPlanBaselineJobs({
managedDatabaseId: testManagedDatabase.id,
name: managedDatabaseSqlPlanBaselineJobName,
opcNamedCredentialId: managedDatabaseSqlPlanBaselineJobOpcNamedCredentialId,
});
import pulumi
import pulumi_oci as oci
test_managed_database_sql_plan_baseline_jobs = oci.DatabaseManagement.get_managed_database_sql_plan_baseline_jobs(managed_database_id=test_managed_database["id"],
name=managed_database_sql_plan_baseline_job_name,
opc_named_credential_id=managed_database_sql_plan_baseline_job_opc_named_credential_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DatabaseManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseManagement.GetManagedDatabaseSqlPlanBaselineJobs(ctx, &databasemanagement.GetManagedDatabaseSqlPlanBaselineJobsArgs{
ManagedDatabaseId: testManagedDatabase.Id,
Name: pulumi.StringRef(managedDatabaseSqlPlanBaselineJobName),
OpcNamedCredentialId: pulumi.StringRef(managedDatabaseSqlPlanBaselineJobOpcNamedCredentialId),
}, 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 testManagedDatabaseSqlPlanBaselineJobs = Oci.DatabaseManagement.GetManagedDatabaseSqlPlanBaselineJobs.Invoke(new()
{
ManagedDatabaseId = testManagedDatabase.Id,
Name = managedDatabaseSqlPlanBaselineJobName,
OpcNamedCredentialId = managedDatabaseSqlPlanBaselineJobOpcNamedCredentialId,
});
});
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.GetManagedDatabaseSqlPlanBaselineJobsArgs;
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 testManagedDatabaseSqlPlanBaselineJobs = DatabaseManagementFunctions.getManagedDatabaseSqlPlanBaselineJobs(GetManagedDatabaseSqlPlanBaselineJobsArgs.builder()
.managedDatabaseId(testManagedDatabase.id())
.name(managedDatabaseSqlPlanBaselineJobName)
.opcNamedCredentialId(managedDatabaseSqlPlanBaselineJobOpcNamedCredentialId)
.build());
}
}
variables:
testManagedDatabaseSqlPlanBaselineJobs:
fn::invoke:
Function: oci:DatabaseManagement:getManagedDatabaseSqlPlanBaselineJobs
Arguments:
managedDatabaseId: ${testManagedDatabase.id}
name: ${managedDatabaseSqlPlanBaselineJobName}
opcNamedCredentialId: ${managedDatabaseSqlPlanBaselineJobOpcNamedCredentialId}
Using getManagedDatabaseSqlPlanBaselineJobs
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 getManagedDatabaseSqlPlanBaselineJobs(args: GetManagedDatabaseSqlPlanBaselineJobsArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseSqlPlanBaselineJobsResult>
function getManagedDatabaseSqlPlanBaselineJobsOutput(args: GetManagedDatabaseSqlPlanBaselineJobsOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseSqlPlanBaselineJobsResult>
def get_managed_database_sql_plan_baseline_jobs(filters: Optional[Sequence[_databasemanagement.GetManagedDatabaseSqlPlanBaselineJobsFilter]] = None,
managed_database_id: Optional[str] = None,
name: Optional[str] = None,
opc_named_credential_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseSqlPlanBaselineJobsResult
def get_managed_database_sql_plan_baseline_jobs_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetManagedDatabaseSqlPlanBaselineJobsFilterArgs]]]] = None,
managed_database_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opc_named_credential_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseSqlPlanBaselineJobsResult]
func GetManagedDatabaseSqlPlanBaselineJobs(ctx *Context, args *GetManagedDatabaseSqlPlanBaselineJobsArgs, opts ...InvokeOption) (*GetManagedDatabaseSqlPlanBaselineJobsResult, error)
func GetManagedDatabaseSqlPlanBaselineJobsOutput(ctx *Context, args *GetManagedDatabaseSqlPlanBaselineJobsOutputArgs, opts ...InvokeOption) GetManagedDatabaseSqlPlanBaselineJobsResultOutput
> Note: This function is named GetManagedDatabaseSqlPlanBaselineJobs
in the Go SDK.
public static class GetManagedDatabaseSqlPlanBaselineJobs
{
public static Task<GetManagedDatabaseSqlPlanBaselineJobsResult> InvokeAsync(GetManagedDatabaseSqlPlanBaselineJobsArgs args, InvokeOptions? opts = null)
public static Output<GetManagedDatabaseSqlPlanBaselineJobsResult> Invoke(GetManagedDatabaseSqlPlanBaselineJobsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedDatabaseSqlPlanBaselineJobsResult> getManagedDatabaseSqlPlanBaselineJobs(GetManagedDatabaseSqlPlanBaselineJobsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseManagement/getManagedDatabaseSqlPlanBaselineJobs:getManagedDatabaseSqlPlanBaselineJobs
arguments:
# arguments dictionary
The following arguments are supported:
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
List<Get
Managed Database Sql Plan Baseline Jobs Filter> - Name string
- A filter to return the SQL plan baseline jobs that match the name.
- Opc
Named stringCredential Id - The OCID of the Named Credential.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
[]Get
Managed Database Sql Plan Baseline Jobs Filter - Name string
- A filter to return the SQL plan baseline jobs that match the name.
- Opc
Named stringCredential Id - The OCID of the Named Credential.
- managed
Database StringId - The OCID of the Managed Database.
- filters
List<Get
Managed Database Sql Plan Baseline Jobs Filter> - name String
- A filter to return the SQL plan baseline jobs that match the name.
- opc
Named StringCredential Id - The OCID of the Named Credential.
- managed
Database stringId - The OCID of the Managed Database.
- filters
Get
Managed Database Sql Plan Baseline Jobs Filter[] - name string
- A filter to return the SQL plan baseline jobs that match the name.
- opc
Named stringCredential Id - The OCID of the Named Credential.
- managed_
database_ strid - The OCID of the Managed Database.
- filters
Sequence[databasemanagement.
Get Managed Database Sql Plan Baseline Jobs Filter] - name str
- A filter to return the SQL plan baseline jobs that match the name.
- opc_
named_ strcredential_ id - The OCID of the Named Credential.
- managed
Database StringId - The OCID of the Managed Database.
- filters List<Property Map>
- name String
- A filter to return the SQL plan baseline jobs that match the name.
- opc
Named StringCredential Id - The OCID of the Named Credential.
getManagedDatabaseSqlPlanBaselineJobs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - Sql
Plan List<GetBaseline Job Collections Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection> - The list of sql_plan_baseline_job_collection.
- Filters
List<Get
Managed Database Sql Plan Baseline Jobs Filter> - Name string
- The name of the job.
- Opc
Named stringCredential Id
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - Sql
Plan []GetBaseline Job Collections Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection - The list of sql_plan_baseline_job_collection.
- Filters
[]Get
Managed Database Sql Plan Baseline Jobs Filter - Name string
- The name of the job.
- Opc
Named stringCredential Id
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - sql
Plan List<GetBaseline Job Collections Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection> - The list of sql_plan_baseline_job_collection.
- filters
List<Get
Managed Database Sql Plan Baseline Jobs Filter> - name String
- The name of the job.
- opc
Named StringCredential Id
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Database stringId - sql
Plan GetBaseline Job Collections Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection[] - The list of sql_plan_baseline_job_collection.
- filters
Get
Managed Database Sql Plan Baseline Jobs Filter[] - name string
- The name of the job.
- opc
Named stringCredential Id
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
database_ strid - sql_
plan_ Sequence[databasemanagement.baseline_ job_ collections Get Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection] - The list of sql_plan_baseline_job_collection.
- filters
Sequence[databasemanagement.
Get Managed Database Sql Plan Baseline Jobs Filter] - name str
- The name of the job.
- opc_
named_ strcredential_ id
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - sql
Plan List<Property Map>Baseline Job Collections - The list of sql_plan_baseline_job_collection.
- filters List<Property Map>
- name String
- The name of the job.
- opc
Named StringCredential Id
Supporting Types
GetManagedDatabaseSqlPlanBaselineJobsFilter
GetManagedDatabaseSqlPlanBaselineJobsSqlPlanBaselineJobCollection
- Items
List<Get
Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection Item> - A list of SQL plan baseline jobs.
- Items
[]Get
Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection Item - A list of SQL plan baseline jobs.
- items
List<Get
Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection Item> - A list of SQL plan baseline jobs.
- items
Get
Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection Item[] - A list of SQL plan baseline jobs.
- items
Sequence[databasemanagement.
Get Managed Database Sql Plan Baseline Jobs Sql Plan Baseline Job Collection Item] - A list of SQL plan baseline jobs.
- items List<Property Map>
- A list of SQL plan baseline jobs.
GetManagedDatabaseSqlPlanBaselineJobsSqlPlanBaselineJobCollectionItem
- Name string
- A filter to return the SQL plan baseline jobs that match the name.
- Status string
- The status of the job.
- Time
Created string - The date and time the job was created.
- Type string
- The type of the job.
- Name string
- A filter to return the SQL plan baseline jobs that match the name.
- Status string
- The status of the job.
- Time
Created string - The date and time the job was created.
- Type string
- The type of the job.
- name String
- A filter to return the SQL plan baseline jobs that match the name.
- status String
- The status of the job.
- time
Created String - The date and time the job was created.
- type String
- The type of the job.
- name string
- A filter to return the SQL plan baseline jobs that match the name.
- status string
- The status of the job.
- time
Created string - The date and time the job was created.
- type string
- The type of the job.
- name str
- A filter to return the SQL plan baseline jobs that match the name.
- status str
- The status of the job.
- time_
created str - The date and time the job was created.
- type str
- The type of the job.
- name String
- A filter to return the SQL plan baseline jobs that match the name.
- status String
- The status of the job.
- time
Created String - The date and time the job was created.
- type String
- The type of the job.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.