Starting or Stopping a Quality Job
Function
This API is used to start or stop a quality job in DataArts Quality.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
POST /v2/{project_id}/quality/quality-tasks/action
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details about how to obtain it, see Project ID and Account ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| workspace | Yes | String | DataArts Studio workspace ID. For details about how to obtain it, see Instance ID and Workspace ID. |
| X-Auth-Token | Yes | String | IAM token. For details about how to obtain it, see Authentication. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| action | No | String | Action. start indicates starting scheduling, and stop indicates stopping scheduling. |
| rule_id | No | String | Quality job ID. You can obtain it by calling the API for obtaining the quality job list. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| message | String | Returned message |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, for example, DQC.0000 which indicates that the request was successfully processed |
| error_msg | String | Error message |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, for example, DQC.0000 which indicates that the request was successfully processed |
| error_msg | String | Error message |
Example Requests
Start scheduling of a job.
POST https://{endpoint}/v2/{project_id}/quality/quality-tasks/action
{
"action" : "start",
"rule_id" : 1200372516590559232
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | BadRequest |
| 500 | INTERNAL SERVER ERROR |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot