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 Code | Meaning |
| STORAGE_EXCEED_AUTHORITY | No permission to perform the corresponding operation on this object |
| COS_ACTION_FAILED | Object storage operation execution failed |
| OBJECT_NOT_EXIST | The requested object does not exist and the specified operation cannot be performed |
| OBJECT_ALREADY_EXIST | The object already exists and the specified operation cannot be performed |
| OBJECT_BATCH_TOO_LARGE | The number of objects processed in a single batch is too large. Try reducing the number of objects processed per batch. |
Authentication
- HTTP: Bearer Auth
- API Key: APIKey
Token corresponding to the environment ID, obtained using login authentication (v2)
| Security Scheme Type: | http |
|---|---|
| HTTP Authorization Scheme: | bearer |
Tencent Cloud 3.0 signature starting with TC3-HMAC-SHA256, with Timestamp and Token appended at the end of the signature
| Security Scheme Type: | apiKey |
|---|---|
| Header parameter name: | Authorization |