Querying Pre-check Results in Batches

Function

This API is used to query the pre-check results of tasks in batches.

Constraints

URI

POST /v3/{project_id}/jobs/batch-precheck-result

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

The content type.

The default value is application/json.

X-Auth-Token

Yes

String

User token obtained from IAM.

X-Language

No

String

Request language type

Default value: en-us

Values:

  • en-us
  • zh-cn
Table 3 Request body parameters

Parameter

Mandatory

Type

Description

jobs

Yes

Array of strings

Request for querying pre-check results in batches. The value cannot be empty. The values must comply with the UUID rule. The task ID must be unique.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

results

Array of QueryPreCheckResp objects

Response body set for querying pre-check results in batches.

count

Integer

Total number of records.

Table 5 QueryPreCheckResp

Parameter

Type

Description

precheck_id

String

ID of the task for querying the pre-check result.

result

Boolean

Whether the pre-check items are passed. true: indicates that the pre-check is passed. The task can be started only after the pre-check is passed.

process

String

Pre-check progress, in percentage.

total_passed_rate

String

Percentage of passed pre-checks.

rds_instance_id

String

RDS DB instance ID.

job_direction

String

Task direction. Values:

  • up: to-the-cloud scenarios and the current cloud is the standby cloud in the DR.
  • down: out-of-cloud scenarios and the current cloud is the active cloud in the DR.
  • non-dbs: self-built databases.

precheck_result

Array of PrecheckResult object

Pre-check results.

error_msg

String

Error message, which is optional and indicates the returned information about the failure status.

error_code

String

Error code, which is optional and indicates the returned information about the failure status.

Table 6 PrecheckResult

Parameter

Type

Description

item

String

Check item.

result

String

Check results. Values:

  • PASSED
  • ALARM
  • FAILED

failed_reason

String

Failure cause.

data

String

Encrypted data.

raw_error_msg

String

Row error message.

group

String

Check item group.

failed_sub_jobs

Array of PrecheckFailSubJobVO objects

Information about failed subtasks.

Table 7 PrecheckFailSubJobVO

Parameter

Type

Description

id

String

ID of the subtask that fails to pass the pre-check.

name

String

The name of the subtask that fails to pass the pre-check.

check_result

String

Check results.

Example Request

Example Response

Status code: 200

OK

Status Code

Status Code

Description

200

OK

400

Bad Request

Error Code

For details, see Error Code.