Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Data Replication Service/ API Reference/ APIs V5.0 (in OBT)/ Task Operations/ Obtaining the Operations Allowed in a Specified Task

Obtaining the Operations Allowed in a Specified Task

Function

This API is used to obtain information about allowed, not allowed, and current operations of a specified task.

Constraints

This API can be used only in certain regions. For details, see Endpoints.

URI

GET /v5/{project_id}/jobs/{job_id}/actions

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region.

For details, see Obtaining a Project ID.

job_id

Yes

String

Task ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

MIME type of the request body. Use the default value application/json. For APIs used to upload objects or images, the value varies depending on the flow type.

The default value is application/json.

X-Auth-Token

Yes

String

User token obtained from IAM.

It is a response to the API for obtaining a user token. This API is the only one that does not require authentication.

After a request is processed, the value of X-Subject-Token in the header is the token value.

X-Language

No

String

Request language type.

Default value: en-us

Enumerated values:

  • en-us
  • zh-cn

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

job_action

Object

Collection of allowed and not allowed operations.

For details, see Table 4.

Table 4 Data structure description of field job_action

Parameter

Type

Description

available_actions

Array of strings

The collection of operation commands that can be executed for a task.

The value can be:

  • CREATE: indicates the operation command for creating a task.
  • CHOOSE_OBJECT: indicates the operation command for selecting objects during the incremental task editing.
  • PRE_CHECK: indicates the operation command for pre-check.
  • CHANGE_MODE: indicates the operation command for changing the task mode.
  • FREE_RESOURCE: indicates the operation command for releasing resources.
  • MODIFY_DB_CONFIG: indicates the operation command for modifying database configurations.
  • RESET_DB_PWD: indicates the operation command for resetting the password of the source or destination database.
  • MODIFY_CONFIGURATION: indicates the operation command for modifying task configurations.
  • PAUSE: indicates the operation command for pausing a task.
  • START: indicates the operation command for starting a task.
  • CHANGE: indicates the operation command for modifying a task.
  • RETRY: indicates the operation command for retrying a task.
  • RESET: indicates the operation command for resetting a task.
  • DELETE: indicates the operation command for deleting a task.
  • QUERY_PRE_CHECK: indicates the operation command for performing a pre-check.
  • SWITCH_OVER: indicates the operation command for performing a DR switchover.
  • START_INCR: indicates the operation command for starting an incremental Cassandra task.
  • MODIFY_TASK_NUMBER: indicates the operation command for modifying the number of Cassandra threads.
  • CONTINUE_JOB: indicates the operation command for resuming a failed or stopped task from Oracle to GaussDB distributed.
  • STOP_JOB: indicates the operation command for stopping a task from Oracle to GaussDB distributed.
  • CONTINUE_CAPTURE: indicates the operation command for starting data capture.
  • STOP_CAPTURE: indicates the operation command for stopping data capture.
  • CONTINUE_APPLY: indicates the operation command for starting data replay.
  • STOP_APPLY: indicates the operation command for stopping data replay.
  • PAY_ORDER: indicates the operation command for paying a yearly/monthly order.
  • UNSUBSCRIBE: indicates the operation command for unsubscribing from a yearly/monthly subscription.
  • TO_PERIOD: indicates the operation command for changing the billing mode from pay-per-use to yearly/monthly.
  • TO_RENEW: indicates the operation command for renewing a yearly/monthly subscription.
  • ORDER_INFO: indicates the operation command for querying order details.
  • CHANGE_FLAVOR: indicates the operation command for changing task specifications.
  • CLONE: indicates the operation command for cloning a task.

unavailable_actions

Array of strings

The collection of operation commands that cannot be executed for a task.

The value can be:

  • CREATE: indicates the operation command for creating a task.
  • CHOOSE_OBJECT: indicates the operation command for selecting objects during the incremental task editing.
  • PRE_CHECK: indicates the operation command for pre-check.
  • CHANGE_MODE: indicates the operation command for changing the task mode.
  • FREE_RESOURCE: indicates the operation command for releasing resources.
  • MODIFY_DB_CONFIG: indicates the operation command for modifying database configurations.
  • RESET_DB_PWD: indicates the operation command for resetting the password of the source or destination database.
  • MODIFY_CONFIGURATION: indicates the operation command for modifying task configurations.
  • PAUSE: indicates the operation command for pausing a task.
  • START: indicates the operation command for starting a task.
  • CHANGE: indicates the operation command for modifying a task.
  • RETRY: indicates the operation command for retrying a task.
  • RESET: indicates the operation command for resetting a task.
  • DELETE: indicates the operation command for deleting a task.
  • QUERY_PRE_CHECK: indicates the operation command for performing a pre-check.
  • SWITCH_OVER: indicates the operation command for performing a DR switchover.
  • START_INCR: indicates the operation command for starting an incremental Cassandra task.
  • MODIFY_TASK_NUMBER: indicates the operation command for modifying the number of Cassandra threads.
  • CONTINUE_JOB: indicates the operation command for resuming a failed or stopped task from Oracle to GaussDB distributed.
  • STOP_JOB: indicates the operation command for stopping a task from Oracle to GaussDB distributed.
  • CONTINUE_CAPTURE: indicates the operation command for starting data capture.
  • STOP_CAPTURE: indicates the operation command for stopping data capture.
  • CONTINUE_APPLY: indicates the operation command for starting data replay.
  • STOP_APPLY: indicates the operation command for stopping data replay.
  • PAY_ORDER: indicates the operation command for paying a yearly/monthly order.
  • UNSUBSCRIBE: indicates the operation command for unsubscribing from a yearly/monthly subscription.
  • TO_PERIOD: indicates the operation command for changing the billing mode from pay-per-use to yearly/monthly.
  • TO_RENEW: indicates the operation command for renewing a yearly/monthly subscription.
  • ORDER_INFO: indicates the operation command for querying order details.
  • CHANGE_FLAVOR: indicates the operation command for changing task specifications.
  • CLONE: indicates the operation command for cloning a task.

current_action

String

The current operation.

Status code: 422

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

Minimum length: 12

Maximum length: 12

error_msg

String

Error message.

Minimum length: 1

Maximum length: 512

Example Request

Obtaining the operation information about a specified task

https://{endpoint}/v5/5237e10fe9aa4ad5b16b6a5245248314/jobs/163b98e8-6088-46c3-8b86-c18fea6jb502/actions

Example Response

Status code: 200

OK
{
  "job_action": {
    "available_actions": [
      "CREATE",
      "CHOOSE_OBJECT",
      "PRE_CHECK"
    ],
    "unavailable_actions": [
      "START",
      "QUICK_START",
      "CHANGE",
      "RETRY"
    ],
    "current_action": "SWITCH_OVER"
  }
}

Status code: 400

Bad Request

{
  "error_code": "DRS.10000001",
  "error_msg": "Failed."
}

Error Code

For details, see Error Code.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback