هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

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
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/ KooDrive/ API Reference/ API/ Batch Task Operations/ Querying Details About a Batch Task

Querying Details About a Batch Task

Updated on 2025-03-07 GMT+08:00

Function

Query details about a batch task.

URI

GET /koodrive/ose/v1/{job_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

job_id

Yes

String

Batch task ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Authorization

Yes

String

Access token. Token authentication is used to call KooDrive APIs. A token indicates the permission. When an API is called, the token is added to the request header to obtain the operation permission. For details about how to obtain an access token, see the corresponding developer guide. The format is Bearer+{access_token}.

X-User-Id

Yes

String

User ID, which is used for app authentication.

X-Date

Yes

String

Date, which is used for app authentication.

Host

Yes

String

Address, which is used for app authentication.

X-Traceid

No

String

Message log trace ID. The value contains 58 bits.

language

No

String

Language code, which complies with the internationalization specifications. For example, en-US indicates English (United States). English (United States) is used by default.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

code

String

Response code.

msg

String

Response message.

data

data object

Task details.

Table 4 data

Parameter

Type

Description

jobInfo

JobDetailInfo object

Task information.

taskInfos

Array of TaskInfo objects

Task details list.

uncompressedFileList

Array of UncompressedFileInfo objects

Information about files in the compressed package.

Table 5 JobDetailInfo

Parameter

Type

Description

taskId

String

Task ID.

taskName

String

Task name.

userId

String

Task creator ID.

taskType

Integer

Task type.

actionType

Integer

Operation type.

status

Integer

Task status.

  • 0: to be processed

  • 1: being processed

  • 2: completed

  • 3: canceled

taskResultCode

Integer

Task result.

  • 1: all succeeded

  • 2: partially failed

  • 3: all failed

resultCode

Integer

Task result code.

progress

Integer

Task progress. This parameter is returned in an asynchronous task, for example, a package download task.

downloadUrl

String

Download link. This parameter is used only when the task type is package download.

contentNum

Integer

Number of request files.

containerId

String

Target space ID in cross-space scenarios.

tenantId

String

Tenant ID.

beginTime

String

Task start time.

endTime

String

Task end time.

createTime

String

Time creation time.

Table 6 TaskInfo

Parameter

Type

Description

id

String

Task ID.

fileId

String

File/Directory ID.

filePath

String

Full path of a file or directory, including the file ID.

status

String

Task processing status.

  • 0: pending.

  • 1: successful.

  • 2: failed.

newFileId

String

New ID after operation.

newFilePath

String

New path.

srcContainerId

String

Source container ID (source space ID corresponding to fileId). This parameter is mandatory only for batch replication across spaces.

resultCode

String

File operation result code.

resultDesc

String

File operation result description.

tenantId

String

Tenant ID.

createTime

String

Task creation time.

Table 7 UncompressedFileInfo

Parameter

Type

Description

containerId

String

Space ID after decompression. This parameter is returned only for decompression.

fileId

String

ID of the decompressed file. This parameter is returned only for decompression.

name

String

Full path of the file or folder in the compressed package.

fileSize

Long

File size, in bytes.

type

Integer

For details, see the definition of fileType.

  • 1: content.

  • 2: directory.

updatedAt

Long

Millisecond timestamp of file modification.

subFileList

UncompressedFileInfo object

List of sub-files and sub-directories (expanded only for directories).

reason

String

Failure cause. If the operation is successful, this parameter is null.

code

String

Error code.

reservatioinInfo

Map<String,Object>

Reserved field.

Status code: 400

Table 8 Response body parameters

Parameter

Type

Description

code

String

Response code.

msg

String

Response description.

Status code: 401

Table 9 Response body parameters

Parameter

Type

Description

code

String

Response code.

msg

String

Response description.

Status code: 500

Table 10 Response body parameters

Parameter

Type

Description

code

String

Response code.

msg

String

Response description.

Example Requests

Queries details about a batch task.

GET /koodrive/ose/v1/1309243162258308352

Authorization:Bearer+10f8***********a544791e9ff

Example Responses

Status code: 200

Returns queried task details.

{
  "data" : {
    "jobInfo" : {
      "taskId" : "1309243162258308352",
      "userId" : "40086000004871666-369528171409614001",
      "taskType" : 1,
      "actionType" : 101,
      "status" : 2,
      "progress" : 100,
      "taskResultCode" : 1,
      "contentNum" : 1,
      "containerId" : "IAADfsBFCO6WtAtuA315074383680425b8aa9a130cba2d4",
      "tenantId" : "40086000004871666",
      "beginTime" : "20231212095227",
      "endTime" : "20231212095227",
      "createTime" : "20231212095227"
    },
    "taskInfos" : [ {
      "fileId" : "FuZmQ66CF0DdpKRG1Y29Iwajbq04Nhwu3",
      "status" : "1",
      "newFileId" : "FtEXHCpfqHueAHFbEmWZNkqUH_K866MVn",
      "srcContainerId" : "IAADfsBFCO6WtAtuA315074383680425b8aa9a130cba2d4"
    } ]
  },
  "code" : 0,
  "msg" : "OK"
}

Status Codes

Status Code

Description

200

Returns queried task details.

400

Bad Request

401

Unauthorized

500

Internal Server Error

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