doc-exports/docs/modelarts/api-ref/modelarts_03_0069.html
Beibei 525370b67d
ModelArts GA API 06052022 from R&D (#14)
ModelArts GA API 06052022 from R&D

R&D has provided a right version of ModelArts GA API (06052022)

Reviewed-by: Artem Goncharov <Artem.goncharov@gmail.com>
2022-05-23 16:26:34 +00:00

9.7 KiB

Stopping a Visualization Job

Function

This API is used to stop a visualization job. Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Visualization Job List and Querying the Details About a Visualization Job.

URI

POST /v1/{project_id}/visualization-jobs/{job_id}/stop

Table 1 describes the required parameters.
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

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

job_id

Yes

String

ID of a visualization job

Request Body

None

Response Body

Table 2 describes the response parameters.
Table 2 Parameter description

Parameter

Type

Description

is_success

Boolean

Whether the request is successful

error_code

String

Error code of a failed API call. For details, see Error Codes.

This parameter is not included when the API call succeeds.

error_message

String

Error message of a failed API call.

This parameter is not included when the API call succeeds.

Samples

The following shows how to stop the visualization job whose ID is 10.

  • Sample request
    POST    https://endpoint/v1/{project_id}/visualization-jobs/10/stop 
  • Successful sample response
    {
        "is_success": true
    }
  • Failed sample response
    {
        "is_success": false,
        "error_message": "This job can't be stop. job status: 10",
        "error_code": "ModelArts.0105"
    }

Status Code

For details about the status code, see Table 1.

Error Codes

See Error Codes.