This topic describes the API operations supported by OceanBase Migration Service (OMS) and the authentication method for API requests.
API operations
| Operation | Description |
|---|---|
| CreateProject | Creates a data migration or synchronization project. |
| StartProject | Starts a data migration or synchronization project. |
| StopProject | Stops a data migration or synchronization project. |
| ResumeProject | Resumes a data migration or synchronization project. |
| ReleaseProject | Releases a data migration or synchronization project. |
| DeleteProject | Deletes a data migration or synchronization project. |
| ListProjects | Queries a list of data migration or synchronization projects. |
| DescribeProject | Queries details about a data migration or synchronization project. |
| DescribeProjectSteps | Queries details about steps in a data migration or synchronization project. |
| DescribeProjectStepMetric | Queries metrics of steps in a data migration or synchronization project. |
| DescribeProjectProgress | Queries the progress information about a data migration or synchronization project. |
| DescribeProjectComponents | Queries information about components in a data migration or synchronization project. |
| ListProjectFullVerifyResult | Queries the full verification result of a data migration project. |
| StartProjectsByLabel | Starts all data migration or synchronization projects in the Not Started state under the specified label. |
| StopProjectsByLabel | Stops all data migration or synchronization projects in the Running state under the specified label. |
| CreateMysqlDataSource | Creates a MySQL data source. |
| CreateOceanBaseDataSource | Creates an OceanBase data source. |
| CreateOceanBaseODPDataSource | Creates an OceanBase Database Proxy (ODP) data source. |
| ListDataSource | Queries a list of created data sources. |
| CreateLabel | Creates a label. |
| ListAllLabels | Queries a list of created labels. |
| DeleteDataSource | Deletes a data source. |
| CreateProjectModifyRecords | Adds or removes table objects. |
| ListProjectModifyRecords | Queries the modification records of a data migration or synchronization project based on the project ID. |
| StopProjectModifyRecords | Stops a modification operation based on the modification record ID. |
| RetryProjectModifyRecords | Retries a modification operation based on the modification record ID. |
| CancelProjectModifyRecord | Cancels a modification operation based on the modification record ID. |
| SubmitPreCheck | Performs a precheck on a data migration or synchronization project. |
| GetPreCheckResult | Queries the precheck result of a data migration or synchronization project. |
Authentication method
You can use the curl tool to call API operations. In the following example, the access URL of OMS is xxx.xxx.xxx.1, the port is 8089, and the called operation is ListProjects. YWRtaW46cm9vdA== is the Base64-encoded value of username:password.
curl -X POST -H 'Authorization:Basic YWRtaW46cm9vdA=' -H 'Content-Type: application/json' -d '{"pageNumber":1,"pageSize":1}' http://xxx.xxx.xxx.1:8089/api/v2?Action=ListProjects