Updated on 2023-05-29 GMT+08:00

Querying the Verification Progress

Function

This API is used to query the verification progress.

URI

GET /v1/{project_id}/migration-projects/{migration_project_id}/verification-progress

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region.

For details about how to obtain the project ID, see Obtaining a Project ID.

migration_project_id

Yes

String

Migration project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token obtained from IAM.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

total_objects_count

Integer

Total number of objects.

completed_objects_count

Integer

Number of objects that have been migrated.

objects_list

Array of Table 4 objects

Objects to be migrated.

Table 4 DatabaseObject

Parameter

Type

Description

object_type

String

Object type.

total_count

Long

Total number of objects of this type.

succeed_count

Long

Number of objects that were migrated.

failed_count

Long

Number of objects that failed to be migrated.

ignored_count

Long

Number of ignored objects.

manual_count

Long

Number of objects that need to be manually modified.

success_rate

String

Success rate.

Example Request

Obtaining the migration progress.

POST https://{endpoint}/v1/0ac6eb2c8000d2ee2fd9c006dededbe6/migration-projects/221/verification-progress

Example Response

Status code: 200

Request succeeded.

{ 
  "total_objects_count" : 6, 
  "completed_objects_count" : 4, 
  "objects_list" : [ { 
    "object_type" : "FUNCTION", 
    "total_count" : 4, 
    "succeed_count" : 3, 
    "failed_count" : 1, 
    "ignored_count" : 0, 
    "manual_count" : 0, 
    "success_rate" : "75.00%" 
  }, { 
    "object_type" : "GRANT", 
    "total_count" : 2, 
    "succeed_count" : 0, 
    "failed_count" : 0, 
    "ignored_count" : 0, 
    "manual_count" : 0, 
    "success_rate" : "0.00%" 
  } ] 
}

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes

For details, see Error Codes.