tencent cloud

Smart Media Hosting

Product Introduction
Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
Purchase Guide
Quick Start
Create Media Library
Initiate request
Service Level API Document
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
Business Level API Document
Introduction
Access Token Operation API
Tenant Space Operation API
File Operation API
Directory or Album Operation API
Recycle Bin Operation API
Quota Operation API
Query Task Operation API
Search Operation API
Historical Version Operations API
Directory and File Batch Operation API
Collection Operation API
Error Codes
SDK Documentation
Android SDK
iOS SDK
HarmonyOS SDK
FAQs
Enterprise Network Disk
Product Introduction
Purchase Guide
Quick Start
FAQs
Service Level Agreement
Glossary

DescribeLibrarySecret

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2025-12-07 00:27:01

1. API Description

Domain name for API request: smh.intl.tencentcloudapi.com.

This API is used to query the PaaS service Media Library Key.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeLibrarySecret.
Version Yes String Common Params. The value used for this API: 2021-07-12.
Region No String Common Params. This parameter is not required for this API.
LibraryId Yes String Media library ID.

3. Output Parameters

Parameter Name Type Description
LibraryId String Specifies the media library ID to query.
LibrarySecret String Queried media library key.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Querying a Media Library Key

Input Example

POST / HTTP/1.1
Host: smh.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLibrarySecret
<Common request parameters>

{
    "LibraryId": "smh1jjexrwwoa9ok"
}

Output Example

{
    "Response": {
        "LibraryId": "smh1jjexrwwoa9ok",
        "LibrarySecret": "5563cadd2dc2ad56********************************cb6a5d8abec16490",
        "RequestId": "61f8e8a2-964a-49d3-ad85-12f29d79ac23"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error.
ResourceNotFound.Library The media library does not exist or does not belong to the current account.

Ajuda e Suporte

Esta página foi útil?

comentários