All Products
Search
Document Center

AnalyticDB:DescribeMvRecommendSubTasks

Last Updated:Nov 11, 2025

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
adb:DescribeMvRecommendSubTasksget
*DBClusterLakeVersion
acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
TaskNamestringNo

The name of the recommendation task.

my_task_1
SubtaskIdlongNo

The subtask ID.

123
OrderBystringNo

The sorting field. Valid values for Type:

  • Asc.
  • Desc.

Valid values for Field:

  • StartTime;
  • EndTime;
{\"Type\": \"ASC\", \"Field\": \"StartTime\"}
PageNumberintegerNo

The page number.

1
PageSizeintegerNo

The number of entries to return per page.

30
DBClusterIdstringNo

The cluster ID.

am-bp1ub9grke1****
RegionIdstringNo

The region ID.

cn-hangzhou
FromstringNo

Fixed system value (non-modifiable).

ActionInnerstringNo

Fixed system value (non-modifiable).

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Id of the request

1AD222E9-E606-4A42-BF6D-8A4442913CEF
PageNumberlong

The page number.

1
PageSizelong

The number of entries returned per page.

30
TotalCountlong

The total number of entries returned.

4
Dataobject

The returned data.

PageNumberlong

The page number.

1
PageSizelong

The number of entries returned per page.

30
TotalCountlong

The total number of entries returned.

4
MvRecommendSubTaskModelsarray

The list of recommended tasks to be executed.

dataObjectopen_struct_MvRecommendSubTaskModel

Execution details of recommended tasks.

Examples

Sample success responses

JSONformat

{
  "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
  "PageNumber": 1,
  "PageSize": 30,
  "TotalCount": 4,
  "Data": {
    "PageNumber": 1,
    "PageSize": 30,
    "TotalCount": 4,
    "MvRecommendSubTaskModels": [
      {
        "SubQueriesCount": 0,
        "Status": "",
        "EndTime": "",
        "StartTime": "",
        "SubtaskId": 0,
        "ScanQueriesCount": 0,
        "MinRewriteQueryCount": 0,
        "MinRewriteQueryPattern": 0,
        "SlowQueryThreshold": 0
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400MDS.IllegalArgumentInvalid argument.An invalid parameter is used.
400MDS.InvalidPrivilegeNo permissions.You are not authorized to perform this operation.
400MDS.MetaSchemaAlreadyExistThe database already exists.The specified database already exists.
400MDS.MetaSchemaNotExistThe database does not exist.The specified database does not exist.
400MDS.MetaTableAlreadyExistThe table already exists.The specified table already exists.
400MDS.MetaTableNotExistThe table is not found.The specified table does not exist.
403MDS.RamAuthAccessDeniedram auth access denied.RAM authentication failed
500MDS.InternalErrorAn internal MDS error occurred.An internal error occurred.
500MDS.MetaVisitErrorFailed to access metadata.Failed to access the metadata.

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

Change history

Change timeSummary of changesOperation
2025-11-04Add OperationView Change Details