QueryFormationTaskByID

Updated at:
Copy as MD

Queries a metadata discovery task by ID.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-hangzhou

TaskType

string

Yes

The task type.

["CRAWLER"]

TaskId

integer

Yes

The task ID.

36

DBClusterId

string

Yes

The instance ID.

am-bp1ub9grke1****

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

The HTTP status code.

200

Data

string

The task details.

{ "id": 123, "taskName": "sale_db", "scheduleState": "NORMAL", "frequency": {"type": "custom", "cron": "0 0/1 * * * ?"}, "failedCount": 0, "lastTaskInstContent": "{\"task_inst_id\":67890,\"state\":\"SUCCESS\"}" }

RequestId

string

The request ID.

5DC10091-348D-12B1-906D-AB49D658012E

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

Code

string

The status code.

200

Message

string

The error message.

OK

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "Data": "{\n    \"id\": 123,\n    \"taskName\": \"sale_db\",\n    \"scheduleState\": \"NORMAL\",\n    \"frequency\": {\"type\": \"custom\", \"cron\": \"0 0/1 * * * ?\"},\n    \"failedCount\": 0,\n    \"lastTaskInstContent\": \"{\\\"task_inst_id\\\":67890,\\\"state\\\":\\\"SUCCESS\\\"}\"\n  }",
  "RequestId": "5DC10091-348D-12B1-906D-AB49D658012E",
  "Success": true,
  "Code": "200",
  "Message": "OK"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.