All Products
Search
Document Center

ApsaraDB RDS:CreateInspectionTask

Last Updated:Mar 05, 2026

Creates an inspection task for multiple instances.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
rdsai:CreateInspectionTaskcreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StartTimestringNo

The start time of the inspection task. The time follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format. By default, the time range of the task is the latest 24 hours.

2025-12-28T16:00:00Z
EndTimestringNo

The end time of the inspection task. The time follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format. By default, the time range of the task is the latest 24 hours.

2026-01-30T02:10:48Z
InstanceIdsstringYes

The instances covered by the task. Separates multiple instance IDs with commas (,).

rm-2ze6mk259v322****,rm-2zef3b65430j0****
InspectionItemsstringNo

The inspection items. Separates multiple items with commas (,). If this parameter is empty or not specified, all inspection items are executed.

Valid values:

  • instance_info
  • resource_usage
  • connection_session_management
  • performance_metrics
  • slow_query_analysis
  • error_log_analysis
  • lock_wait_deadlock_analysis
  • backup_recovery_analysis
  • high_availability_disaster_recovery_analysis
  • security_configuration_analysis
  • storage_engine_analysis
  • schema_object_analysis
instance_info, resource_usage

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

Successboolean

Indicates whether the request was successful.

true
Messagestring

The returned message.

Dataobject

Indicates whether the result is returned.

TaskIdstring

The ID of the inspection task.

9adf8567-b619-4d37-8ff2-01d38a76****
RequestIdstring

The request ID.

FE9C65D7-930F-57A5-A207-8C396329****

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "Message": "",
  "Data": {
    "TaskId": "9adf8567-b619-4d37-8ff2-01d38a76****"
  },
  "RequestId": "FE9C65D7-930F-57A5-A207-8C396329****"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterRequest parameter validation failed.Request parameter verification failed
403PermissionDeniedUser has no operation permission.User has no operation permission
403InvalidUserOrderThere is no valid order for this UID.There is no valid order for this UID
404TaskNotFoundThe resource of the specified ld does not exist.The resource of the specified ld does not exist.
500InternalErrorSystem internal exception.System internal exception

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2026-02-05Add OperationView Change Details