Gets the SQL health check report for the SQL statement specified by the SQL ID.

GET {{baseUrl}}/managedDatabases/:managedDatabaseId/awrDbs/:awrDbId/awrDbSqlReport?instNum=<string>&beginSnIdGreaterThanOrEqualTo=<integer>&endSnIdLessThanOrEqualTo=<integer>&timeGreaterThanOrEqualTo=<dateTime>&timeLessThanOrEqualTo=<dateTime>&sqlId=<string>&reportFormat=HTML&containerId=<integer>

Gets the SQL health check report for one SQL of the specific database.

Request Params

KeyDatatypeRequiredDescription
instNumstringThe optional single value query parameter to filter the database instance number.
beginSnIdGreaterThanOrEqualTostringThe optional greater than or equal to filter on the snapshot ID.
endSnIdLessThanOrEqualTostringThe optional less than or equal to query parameter to filter the snapshot ID.
timeGreaterThanOrEqualTostringThe optional greater than or equal to query parameter to filter the timestamp.
timeLessThanOrEqualTostringThe optional less than or equal to query parameter to filter the timestamp.
sqlIdstring(Required) The parameter to filter SQL by ID. Note that the SQL ID is generated internally by Oracle for each SQL statement and can be retrieved from AWR Report API (/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbReport) or Performance Hub API (/internal/managedDatabases/{managedDatabaseId}/actions/retrievePerformanceData)
reportFormatstringThe format of the AWR report.
containerIdstringThe optional query parameter to filter the database container by an exact ID value.
Note that the database container ID can be retrieved from the following endpoint:
/managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing.
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
might be rejected.
opc-named-credential-idstringThe OCID of the Named Credential.
Acceptstring

RESPONSES

status: OK

{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;awrResultType&quot;:&quot;AWRDB_DB_PARAMETER_CHANGE&quot;,&quot;dbQueryTimeInSecs&quot;:&quot;\u003cdouble\u003e&quot;,&quot;queryKey&quot;:&quot;\u003cstring\u003e&quot;,&quot;version&quot;:&quot;\u003cstring\u003e&quot;,&quot;content&quot;:&quot;\u003cstring\u003e&quot;,&quot;format&quot;:&quot;HTML&quot;}