Help Center> Cloud Operations Center> API Reference> API> Script Tickets> Operation Script Service Ticket
Updated on 2024-04-19 GMT+08:00

Operation Script Service Ticket

Function

This API is used to query the operation type. The options are as follows: cancel Instance, skip batch, cancel entire service ticket, suspend entire service ticket, and continue entire service ticket.

URI

PUT /v1/job/script/orders/{execute_uuid}/operation

Table 1 Path parameters

Parameter

Mandatory or Not

Type

Description

execute_uuid

Yes

String

Execution ID of a script service ticket, which is obtained from the response bodies of executeJobScript and ListJobScriptOrders.

Minimum length: 1 character

Maximum length: 26 characters

Request Parameters

Table 2 Request body parameter

Parameter

Mandatory or Not

Type

Description

batch_index

No

Integer

Applicable to batch operations

Minimum value: 1

Maximum value: 20

instance_id

No

Long

Applicable to instance operations.

Minimum value: 1

Maximum value: 9,223,372,036,854,775,807

operation_type

Yes

String

Operation type. The options are as follows: CANCEL_INSTANCE: canceling an instance; SKIP_BATCH: skipping a batch; CANCEL_ORDER: canceling an entire service ticket; PAUSE_ORDER: suspending an entire service ticket; CONTINUE_ORDER: continuing an entire service ticket.

The value can be:

  • CANCEL_INSTANCE
  • SKIP_BATCH
  • CANCEL_ORDER
  • PAUSE_ORDER
  • CONTINUE_ORDER

Response Parameters

None

Request Example

{
  "batch_index" : "1",
  "instance_id" : 383,
  "operation_type" : "RETRY_INSTANCE"
}

Response Example

None

Status Code

Status Code

Description

200

execution_uuid

Error code

See Error code.