Skip to main content
Version: 1.0.0

Cloud Storage

Feature Overview

This set of open APIs provides the ability to integrate with cloud storage (COS services). You can call these open APIs to obtain object upload information, download links, and more. All APIs in this set support batch operations.

Integration Guide

To call the following interfaces, you need to pass an AccessToken in the format Authorization: Bearer <token>. For how to obtain the token, refer to: https://docs.cloudbase.net/http-api/basic/access-token

HTTP Status Codes

Depending on the returned results, the following status codes may appear: 2xx, 4xx, 5xx.

Error Codes

The following lists the specific error codes for this set of APIs. For a complete list, refer to: https://docs.cloudbase.net/error-code/service

Error CodeMeaning
STORAGE_EXCEED_AUTHORITYNo permission to perform the corresponding operation on this object
COS_ACTION_FAILEDObject storage operation execution failed
OBJECT_NOT_EXISTThe requested object does not exist and the specified operation cannot be performed
OBJECT_ALREADY_EXISTThe object already exists and the specified operation cannot be performed
OBJECT_BATCH_TOO_LARGEThe number of objects processed in a single batch is too large. Try reducing the number of objects processed per batch.

Authentication

Token corresponding to the environment ID, obtained using login authentication (v2)

Security Scheme Type:http
HTTP Authorization Scheme:bearer

License

Apache 2.0