Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi
oci.DatabaseManagement.getManagedMySqlDatabaseQueryDetail
Explore with Pulumi AI
This data source provides details about a specific Managed My Sql Database Query Detail resource in Oracle Cloud Infrastructure Database Management service.
Retrieves query sample details, explain plan and potential warnings for a given digest.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedMySqlDatabaseQueryDetail = oci.DatabaseManagement.getManagedMySqlDatabaseQueryDetail({
digest: managedMySqlDatabaseQueryDetailDigest,
managedMySqlDatabaseId: testManagedMySqlDatabase.id,
});
import pulumi
import pulumi_oci as oci
test_managed_my_sql_database_query_detail = oci.DatabaseManagement.get_managed_my_sql_database_query_detail(digest=managed_my_sql_database_query_detail_digest,
managed_my_sql_database_id=test_managed_my_sql_database["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/databasemanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasemanagement.GetManagedMySqlDatabaseQueryDetail(ctx, &databasemanagement.GetManagedMySqlDatabaseQueryDetailArgs{
Digest: managedMySqlDatabaseQueryDetailDigest,
ManagedMySqlDatabaseId: testManagedMySqlDatabase.Id,
}, 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 testManagedMySqlDatabaseQueryDetail = Oci.DatabaseManagement.GetManagedMySqlDatabaseQueryDetail.Invoke(new()
{
Digest = managedMySqlDatabaseQueryDetailDigest,
ManagedMySqlDatabaseId = testManagedMySqlDatabase.Id,
});
});
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.GetManagedMySqlDatabaseQueryDetailArgs;
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 testManagedMySqlDatabaseQueryDetail = DatabaseManagementFunctions.getManagedMySqlDatabaseQueryDetail(GetManagedMySqlDatabaseQueryDetailArgs.builder()
.digest(managedMySqlDatabaseQueryDetailDigest)
.managedMySqlDatabaseId(testManagedMySqlDatabase.id())
.build());
}
}
variables:
testManagedMySqlDatabaseQueryDetail:
fn::invoke:
function: oci:DatabaseManagement:getManagedMySqlDatabaseQueryDetail
arguments:
digest: ${managedMySqlDatabaseQueryDetailDigest}
managedMySqlDatabaseId: ${testManagedMySqlDatabase.id}
Using getManagedMySqlDatabaseQueryDetail
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 getManagedMySqlDatabaseQueryDetail(args: GetManagedMySqlDatabaseQueryDetailArgs, opts?: InvokeOptions): Promise<GetManagedMySqlDatabaseQueryDetailResult>
function getManagedMySqlDatabaseQueryDetailOutput(args: GetManagedMySqlDatabaseQueryDetailOutputArgs, opts?: InvokeOptions): Output<GetManagedMySqlDatabaseQueryDetailResult>
def get_managed_my_sql_database_query_detail(digest: Optional[str] = None,
managed_my_sql_database_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedMySqlDatabaseQueryDetailResult
def get_managed_my_sql_database_query_detail_output(digest: Optional[pulumi.Input[str]] = None,
managed_my_sql_database_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedMySqlDatabaseQueryDetailResult]
func GetManagedMySqlDatabaseQueryDetail(ctx *Context, args *GetManagedMySqlDatabaseQueryDetailArgs, opts ...InvokeOption) (*GetManagedMySqlDatabaseQueryDetailResult, error)
func GetManagedMySqlDatabaseQueryDetailOutput(ctx *Context, args *GetManagedMySqlDatabaseQueryDetailOutputArgs, opts ...InvokeOption) GetManagedMySqlDatabaseQueryDetailResultOutput
> Note: This function is named GetManagedMySqlDatabaseQueryDetail
in the Go SDK.
public static class GetManagedMySqlDatabaseQueryDetail
{
public static Task<GetManagedMySqlDatabaseQueryDetailResult> InvokeAsync(GetManagedMySqlDatabaseQueryDetailArgs args, InvokeOptions? opts = null)
public static Output<GetManagedMySqlDatabaseQueryDetailResult> Invoke(GetManagedMySqlDatabaseQueryDetailInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedMySqlDatabaseQueryDetailResult> getManagedMySqlDatabaseQueryDetail(GetManagedMySqlDatabaseQueryDetailArgs args, InvokeOptions options)
public static Output<GetManagedMySqlDatabaseQueryDetailResult> getManagedMySqlDatabaseQueryDetail(GetManagedMySqlDatabaseQueryDetailArgs args, InvokeOptions options)
fn::invoke:
function: oci:DatabaseManagement/getManagedMySqlDatabaseQueryDetail:getManagedMySqlDatabaseQueryDetail
arguments:
# arguments dictionary
The following arguments are supported:
- Digest string
- The digest of a MySQL normalized query.
- Managed
My stringSql Database Id - The OCID of the Managed MySQL Database.
- Digest string
- The digest of a MySQL normalized query.
- Managed
My stringSql Database Id - The OCID of the Managed MySQL Database.
- digest String
- The digest of a MySQL normalized query.
- managed
My StringSql Database Id - The OCID of the Managed MySQL Database.
- digest string
- The digest of a MySQL normalized query.
- managed
My stringSql Database Id - The OCID of the Managed MySQL Database.
- digest str
- The digest of a MySQL normalized query.
- managed_
my_ strsql_ database_ id - The OCID of the Managed MySQL Database.
- digest String
- The digest of a MySQL normalized query.
- managed
My StringSql Database Id - The OCID of the Managed MySQL Database.
getManagedMySqlDatabaseQueryDetail Result
The following output properties are available:
- Digest string
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
My stringSql Database Id - Query
Explain List<GetPlans Managed My Sql Database Query Detail Query Explain Plan> - The explain plan for a given MySQL query.
- Query
Messages List<GetManaged My Sql Database Query Detail Query Message> - The errors, warnings and notes that could be raised by the execution of the query.
- Query
Sample List<GetDetails Managed My Sql Database Query Detail Query Sample Detail> - The details of a query sample including the query text, execution time and other details.
- Digest string
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
My stringSql Database Id - Query
Explain []GetPlans Managed My Sql Database Query Detail Query Explain Plan - The explain plan for a given MySQL query.
- Query
Messages []GetManaged My Sql Database Query Detail Query Message - The errors, warnings and notes that could be raised by the execution of the query.
- Query
Sample []GetDetails Managed My Sql Database Query Detail Query Sample Detail - The details of a query sample including the query text, execution time and other details.
- digest String
- id String
- The provider-assigned unique ID for this managed resource.
- managed
My StringSql Database Id - query
Explain List<GetPlans Managed My Sql Database Query Detail Query Explain Plan> - The explain plan for a given MySQL query.
- query
Messages List<GetManaged My Sql Database Query Detail Query Message> - The errors, warnings and notes that could be raised by the execution of the query.
- query
Sample List<GetDetails Managed My Sql Database Query Detail Query Sample Detail> - The details of a query sample including the query text, execution time and other details.
- digest string
- id string
- The provider-assigned unique ID for this managed resource.
- managed
My stringSql Database Id - query
Explain GetPlans Managed My Sql Database Query Detail Query Explain Plan[] - The explain plan for a given MySQL query.
- query
Messages GetManaged My Sql Database Query Detail Query Message[] - The errors, warnings and notes that could be raised by the execution of the query.
- query
Sample GetDetails Managed My Sql Database Query Detail Query Sample Detail[] - The details of a query sample including the query text, execution time and other details.
- digest str
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
my_ strsql_ database_ id - query_
explain_ Sequence[Getplans Managed My Sql Database Query Detail Query Explain Plan] - The explain plan for a given MySQL query.
- query_
messages Sequence[GetManaged My Sql Database Query Detail Query Message] - The errors, warnings and notes that could be raised by the execution of the query.
- query_
sample_ Sequence[Getdetails Managed My Sql Database Query Detail Query Sample Detail] - The details of a query sample including the query text, execution time and other details.
- digest String
- id String
- The provider-assigned unique ID for this managed resource.
- managed
My StringSql Database Id - query
Explain List<Property Map>Plans - The explain plan for a given MySQL query.
- query
Messages List<Property Map> - The errors, warnings and notes that could be raised by the execution of the query.
- query
Sample List<Property Map>Details - The details of a query sample including the query text, execution time and other details.
Supporting Types
GetManagedMySqlDatabaseQueryDetailQueryExplainPlan
- Json
Explain string - The json format of the explain plan.
- Json
Explain stringVersion - The version of the Json format of MySQL Explain.
- Json
Explain string - The json format of the explain plan.
- Json
Explain stringVersion - The version of the Json format of MySQL Explain.
- json
Explain String - The json format of the explain plan.
- json
Explain StringVersion - The version of the Json format of MySQL Explain.
- json
Explain string - The json format of the explain plan.
- json
Explain stringVersion - The version of the Json format of MySQL Explain.
- json_
explain str - The json format of the explain plan.
- json_
explain_ strversion - The version of the Json format of MySQL Explain.
- json
Explain String - The json format of the explain plan.
- json
Explain StringVersion - The version of the Json format of MySQL Explain.
GetManagedMySqlDatabaseQueryDetailQueryMessage
- Code int
- The MySQL code of the raised error, warning or note.
- Level string
- The level of severity of the MySQL message.
- Message
Text string - The MySQL message text of the raised error, warning or note.
- Code int
- The MySQL code of the raised error, warning or note.
- Level string
- The level of severity of the MySQL message.
- Message
Text string - The MySQL message text of the raised error, warning or note.
- code Integer
- The MySQL code of the raised error, warning or note.
- level String
- The level of severity of the MySQL message.
- message
Text String - The MySQL message text of the raised error, warning or note.
- code number
- The MySQL code of the raised error, warning or note.
- level string
- The level of severity of the MySQL message.
- message
Text string - The MySQL message text of the raised error, warning or note.
- code int
- The MySQL code of the raised error, warning or note.
- level str
- The level of severity of the MySQL message.
- message_
text str - The MySQL message text of the raised error, warning or note.
- code Number
- The MySQL code of the raised error, warning or note.
- level String
- The level of severity of the MySQL message.
- message
Text String - The MySQL message text of the raised error, warning or note.
GetManagedMySqlDatabaseQueryDetailQuerySampleDetail
- Execution
Time string - The total amount of time that has been spent executing the query sample.
- Host string
- The host from which the query sample was run.
- Mysql
Instance string - The MySQL instance against which the query sample was run.
- Query
Sample stringText - The query sample mapped by MySQL to a given normalized query.
- Thread
Id int - The thread id of the connection.
- Time
Query stringSample Seen - The date and time the query sample was last seen.
- User string
- The user who ran the query sample.
- Execution
Time string - The total amount of time that has been spent executing the query sample.
- Host string
- The host from which the query sample was run.
- Mysql
Instance string - The MySQL instance against which the query sample was run.
- Query
Sample stringText - The query sample mapped by MySQL to a given normalized query.
- Thread
Id int - The thread id of the connection.
- Time
Query stringSample Seen - The date and time the query sample was last seen.
- User string
- The user who ran the query sample.
- execution
Time String - The total amount of time that has been spent executing the query sample.
- host String
- The host from which the query sample was run.
- mysql
Instance String - The MySQL instance against which the query sample was run.
- query
Sample StringText - The query sample mapped by MySQL to a given normalized query.
- thread
Id Integer - The thread id of the connection.
- time
Query StringSample Seen - The date and time the query sample was last seen.
- user String
- The user who ran the query sample.
- execution
Time string - The total amount of time that has been spent executing the query sample.
- host string
- The host from which the query sample was run.
- mysql
Instance string - The MySQL instance against which the query sample was run.
- query
Sample stringText - The query sample mapped by MySQL to a given normalized query.
- thread
Id number - The thread id of the connection.
- time
Query stringSample Seen - The date and time the query sample was last seen.
- user string
- The user who ran the query sample.
- execution_
time str - The total amount of time that has been spent executing the query sample.
- host str
- The host from which the query sample was run.
- mysql_
instance str - The MySQL instance against which the query sample was run.
- query_
sample_ strtext - The query sample mapped by MySQL to a given normalized query.
- thread_
id int - The thread id of the connection.
- time_
query_ strsample_ seen - The date and time the query sample was last seen.
- user str
- The user who ran the query sample.
- execution
Time String - The total amount of time that has been spent executing the query sample.
- host String
- The host from which the query sample was run.
- mysql
Instance String - The MySQL instance against which the query sample was run.
- query
Sample StringText - The query sample mapped by MySQL to a given normalized query.
- thread
Id Number - The thread id of the connection.
- time
Query StringSample Seen - The date and time the query sample was last seen.
- user String
- The user who ran the query sample.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.