有奖:语音产品征文挑战赛火热进行中> HOT

1. 接口描述

接口请求域名: bsca.tencentcloudapi.com 。

根据输入的组件名、组件类型搜索相应的组件,返回符合条件的组件列表

默认接口请求频率限制:20次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:SearchKBComponent。
Version String 公共参数,本接口取值:2021-08-11。
Region String 公共参数,此参数为可选参数。
Query String 需要搜索的组件名
示例值:openssl
Protocol String 需要搜索的组件类型
示例值:generic
PageNumber Integer 分页参数,从 0 开始
示例值:0
PageSize Integer 分页参数,设置每页返回的结果数量
示例值:20

3. 输出参数

参数名称 类型 描述
ComponentList Array of Component 满足搜索条件的组件列表
Total Integer 满足搜索条件的总个数
示例值:10
RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 搜索知识库组件列表

搜索ristretto相关组件

输入示例

POST / HTTP/1.1
Host: bsca.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: SearchKBComponent
<公共请求参数>

{
    "Query": "ristretto"
}

输出示例

{
    "Response": {
        "ComponentList": [
            {
                "CodeLocationList": null,
                "Homepage": "",
                "LicenseExpression": "bsd-new",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "@polymer",
                    "Protocol": "npm",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "An extensible test runner ☕️"
            },
            {
                "CodeLocationList": [
                    "github.com/bobotu/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/bobotu",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "github.com/RangelReale/trcache"
                ],
                "Homepage": "",
                "LicenseExpression": "mit",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/rangelreale/trcache/cache",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "This section is empty"
            },
            {
                "CodeLocationList": [
                    "github.com/dgraph-io/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/dgraph-io",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "Ristretto is a fast, concurrent cache library built with a focus on performance and correctness"
            },
            {
                "CodeLocationList": null,
                "Homepage": "https://github.com/Benli11/ristretto",
                "LicenseExpression": "",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "",
                    "Protocol": "pypi",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "ristretto: Randomized Dimension Reduction Library"
            },
            {
                "CodeLocationList": [
                    "github.com/etecs-ru/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/etecs-ru",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "This fork applies the selected PRs from the original repo"
            },
            {
                "CodeLocationList": [
                    "github.com/knocknote/gocache"
                ],
                "Homepage": "",
                "LicenseExpression": "mit",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/knocknote/gocache/store",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "github.com/outcaste-io/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/outcaste-io",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "This is a fork of dgraph-io/ristretto, maintained by @manishrjain"
            },
            {
                "CodeLocationList": [
                    "github.com/sergiub32/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/sergiub32",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "http://git.xfce.org/apps/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "gpl-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "apps",
                    "Protocol": "generic",
                    "Qualifiers": [
                        {
                            "Key": "vcs_url",
                            "Value": "http://git.xfce.org/apps/ristretto"
                        }
                    ],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": " Ristretto is a fast and lightweight picture-viewer for the Xfce desktop\n environment.\nOriginal-Maintainer: Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>\n"
            },
            {
                "CodeLocationList": [
                    "github.com/revcontent-production/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/revcontent-production",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "Ristretto is a fast, concurrent cache library built with a focus on performance and correctness"
            },
            {
                "CodeLocationList": [
                    "github.com/ben-han-cn/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/ben-han-cn",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "github.com/gofiber/storage"
                ],
                "Homepage": "",
                "LicenseExpression": "mit",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/gofiber/storage",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "ufeff# Ristretto\nA Memory-bound storage driver using dgraph-io/ristretto"
            },
            {
                "CodeLocationList": [
                    "github.com/flarebuild/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/flarebuild",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "github.com/impasse/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/impasse",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "github.com/coicoichip/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/coicoichip",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "github.com/paivagustavo/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/paivagustavo",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "Ristretto is a fast, concurrent cache library built with a focus on performance and correctness"
            },
            {
                "CodeLocationList": [
                    "github.com/alexsergivan/blog-examples"
                ],
                "Homepage": "",
                "LicenseExpression": "",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/alexsergivan/blog-examples",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "github.com/ahiho/xcache"
                ],
                "Homepage": "",
                "LicenseExpression": "",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/ahiho/xcache/driver",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": ""
            },
            {
                "CodeLocationList": [
                    "github.com/aryehlev/ristretto"
                ],
                "Homepage": "",
                "LicenseExpression": "apache-2.0",
                "NicknameList": null,
                "PURL": {
                    "Name": "ristretto",
                    "Namespace": "github.com/aryehlev",
                    "Protocol": "golang",
                    "Qualifiers": [],
                    "Subpath": "",
                    "Version": ""
                },
                "Summary": "Ristretto is a fast, concurrent cache library built with a focus on performance and correctness"
            }
        ],
        "RequestId": "3a979aa9-2612-4155-8b1b-cf850e71c0f3",
        "Total": 41
    }
}

5. 开发者资源

腾讯云 API 平台

腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。

API Inspector

用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码

错误码 描述
FailedOperation.AccountNotEnough 账户流量余额不足。
InternalError 内部错误。
InvalidParameter 参数错误。
InvalidParameterValue 参数取值错误。
MissingParameter 缺少参数错误。