Tencent Cloud API Documentation

Introduction

Welcome to the Tencent Cloud API documentation. This guide provides comprehensive information on how to use Tencent Cloud's APIs to manage and interact with various cloud services.

Authentication

Tencent Cloud uses TC3-HMAC-SHA256 signature algorithm for API authentication. To make an API request, you need to include the following parameters:

  • SecretId: Your Tencent Cloud account secret ID
  • SecretKey: Your Tencent Cloud account secret key
  • Timestamp: Current timestamp
  • Nonce: A random positive integer
  • Signature: Request signature

Note: Never share your SecretId and SecretKey with others or expose them in your client-side code.

Common Parameters

Every API request must include the following common parameters:

  • Action: The name of the API you want to call
  • Version: API version number
  • Region: The region where the service resides

API Categories

Compute

POST DescribeInstances

Retrieves the list of instances under the current account.

POST RunInstances

Creates one or more pay-as-you-go or spot instances.

Storage

POST DescribeCbsStorages

Queries the list of cloud block storages.

POST CreateCbsStorages

Creates one or more cloud block storages.

Networking

POST DescribeVpcs

Queries the list of VPCs.

POST CreateVpc

Creates a VPC.

Error Codes

Tencent Cloud API uses the following error codes:

  • InvalidParameter: Invalid parameter value
  • AuthFailure: Authentication failed
  • RequestLimitExceeded: Request rate limit exceeded
  • InternalError: Internal error

SDK Support

Tencent Cloud provides SDKs for various programming languages to simplify API integration:

  • Python SDK
  • Java SDK
  • PHP SDK
  • Go SDK
  • .NET SDK
  • Node.js SDK

You can find the SDK documentation and download links on the Tencent Cloud website.