DescribeAIDBClusterTaskAttribute

Updated at:
Copy as MD

Get task instance details

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardb:DescribeAIDBClusterTaskAttribute

none

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID.

cn-beijing

DBClusterId

string

No

The ID of the cluster.

pm-2ze99***

DescribeType

string

No

The query mode. Valid value:

  • RelatedAITask: Returns the task details.

RelatedAITask

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The ID of the request.

45D24263-7E3A-4140-9472-************

DBType

string

The engine type.

polardb_ai

DBVersion

string

The version. Valid value:

  • 3.1: Model operator tuning.

3.1

DBClusterId

string

The cluster ID.

pm-2ze99***

DBClusterStatus

string

The training status. Valid values:

  • ACTIVATION: Training in progress.

  • COMPLETED: Training successful.

  • FAILED: Training failed.

COMPLETED

ClusterNetworkType

string

The cluster network type.

VPC

ModelPath

string

A comma-separated list of output model paths from the model fine-tuning task.

/models_train/pm-2ze9***/merged_models_checkpoint-10,/models_train/pm-2ze9***/merged_models_checkpoint-5

CreateTime

string

The task creation time.

2025-11-12T03:45:13Z

KindCode

integer

The instance type. Valid value:

  • 18.

18

MaintainStartTime

string

The maintenance start time.

8:00Z

MaintainEndTime

string

The maintenance end time.

12:00Z

DataSets

array<object>

The datasets used for the task.

object

A dataset.

DatasetName

string

The dataset name.

dataset02

Path

string

The dataset path.

polardb_ai/datasets/train/grpo/dataset02/test-**.jsonl#1000

SplitDatasetRatio

string

The proportion of the training set reserved for validation.

0.1

Type

string

The type of the dataset. Valid values:

  • train: The training set.

  • eval: The validation set.

train

TaskInfo

array<object>

A list of objects containing information about each training task.

object

Information about a training task.

ModelName

string

The base model.

Qwen-1.7B

TrainType

string

The training method. Valid values:

  • lora: Low-Rank Adaptation (LoRA) training.

  • full: Full training.

lora

TrainMode

string

The task type. Valid values:

  • sft: Supervised Fine-tuning.

  • grpo: Reinforcement learning.

stf

ModelPath

string

The path to the custom model.

Qwen-1.7B

ModelSource

string

The source of the model. Valid values:

  • public: A pre-built model.

  • custom: A custom model.

public

RunningTimes

string

The runtime parameters.

{"split_dataset_ratio": 0.1,"train_mode": "grpo","train_type": "lora","num_epochs": 1,"batch_size": 2,"eval_batch_size": 2, "num_generations": 2, "learning_rate": "1e-6", "data_file_list": "test-00000-of-00001.jsonl#1000", "lora_rank": 8, "lora_alpha": 32, "external_plugins": "/plugin/train/plugin.py", "reward_funcs": "format,external_countdown", "gpu_memory_utilization": 0.4}

StartTime

string

The task start time.

2025-09-10T01:56:00Z

CompletedTime

string

The task completion time.

2025-09-10T01:56:00Z

LockMode

string

The lock mode. Valid values:

  • 0: Locked.

  • 1: Unlocked.

1

DBClusterStatusDesc

string

The training status description. Valid values:

  • ACTIVATION: Training in progress.

  • COMPLETED: Training successful.

  • FAILED: Training failed.

COMPLETED

AccessInfo

string

The access information for the model in a test deployment.

{\"networkInterfaceId\":\"eni-2zea***\",\"port\":\"8000\",\"host\":\"192.**.**.**\"}

ExtraInfo

array<object>

A list of objects containing additional information about the task.

object

An object containing additional information, such as the output path.

{"outputPath":"/output/models_train/pm-2ze9***"}

VPCId

string

The VPC ID.

vpc-**********

VSwitchId

string

The vSwitch ID.

vsw-*********************

DBClusterDescription

string

The cluster description.

task01

Examples

Success response

JSON format

{
  "RequestId": "45D24263-7E3A-4140-9472-************",
  "DBType": "polardb_ai",
  "DBVersion": "3.1",
  "DBClusterId": "pm-2ze99***\n",
  "DBClusterStatus": "COMPLETED",
  "ClusterNetworkType": "VPC",
  "ModelPath": "/models_train/pm-2ze9***/merged_models_checkpoint-10,/models_train/pm-2ze9***/merged_models_checkpoint-5",
  "CreateTime": "2025-11-12T03:45:13Z",
  "KindCode": 18,
  "MaintainStartTime": "8:00Z",
  "MaintainEndTime": "12:00Z",
  "DataSets": [
    {
      "DatasetName": "dataset02",
      "Path": "polardb_ai/datasets/train/grpo/dataset02/test-**.jsonl#1000",
      "SplitDatasetRatio": "0.1",
      "Type": "train"
    }
  ],
  "TaskInfo": [
    {
      "ModelName": "Qwen-1.7B",
      "TrainType": "lora",
      "TrainMode": "stf",
      "ModelPath": "Qwen-1.7B",
      "ModelSource": "public",
      "RunningTimes": "{\"split_dataset_ratio\": 0.1,\"train_mode\": \"grpo\",\"train_type\": \"lora\",\"num_epochs\": 1,\"batch_size\": 2,\"eval_batch_size\": 2, \"num_generations\": 2, \"learning_rate\": \"1e-6\", \"data_file_list\": \"test-00000-of-00001.jsonl#1000\", \"lora_rank\": 8, \"lora_alpha\": 32, \"external_plugins\": \"/plugin/train/plugin.py\", \"reward_funcs\": \"format,external_countdown\", \"gpu_memory_utilization\": 0.4}\n",
      "StartTime": "2025-09-10T01:56:00Z",
      "CompletedTime": "2025-09-10T01:56:00Z"
    }
  ],
  "LockMode": "1",
  "DBClusterStatusDesc": "COMPLETED",
  "AccessInfo": "{\\\"networkInterfaceId\\\":\\\"eni-2zea***\\\",\\\"port\\\":\\\"8000\\\",\\\"host\\\":\\\"192.**.**.**\\\"}",
  "ExtraInfo": [
    {
      "outputPath": "/output/models_train/pm-2ze9***"
    }
  ],
  "VPCId": "vpc-**********",
  "VSwitchId": "vsw-*********************",
  "DBClusterDescription": "task01"
}

Error codes

HTTP status code

Error code

Error message

Description

404 InvalidDBClusterId.NotFound The DBInstanceId provided does not exist in our records. The specified DBClusterId parameter does not exist in the current record.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.