查询项目资源列表

最近更新时间: 2026-09-17 00:00:36

1. 接口描述

接口请求域名: tpo.api3.fincloud.tencent.cn。

查询项目资源列表

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

接口更新时间:2023-10-13 11:18:22。

接口只验签名不鉴权。

2. 输入参数

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

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:DescribeProjectResources
Version String 公共参数,本接口取值:2020-09-20
Region String 公共参数,地域信息本接口不需要传递此参数。
ProjectId String 项目ID
示例值: pr-dcd34c11
PageNumber Uint64 页码
示例值: 100
PageSize Uint64 每页数量
示例值: 100
Filter ProjectResourceFilter 搜索条件
示例值:查看

3. 输出参数

参数名称 类型 描述
TotalCount Uint64 总数
示例值: 100
ResourceSet Array of ProjectResource 资源列表
示例值:查看
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

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

错误码 描述
InternalError.ThirdPartServiceBadRequest 服务调用失败
InternalError.ComponentFail 调用其它组件接口失败
InternalError.InvalidHTTPCode 无效httpcode
ResourceNotFound.ProjectNotFoundError 项目不存在
InternalError.DatabaseError 内部数据库错误
UnauthorizedOperation.AuthFailedError 鉴权失败

5. 示例

示例1 DescribeProjectResources

输入示例

POST / HTTP/1.1
Host: tpo.api3.fincloud.tencent.cn
Content-Type: application/json
X-TC-Action: DescribeProjectResources
<Common Parameters>

{
    "ProjectId": "pr-92fbf08a",
    "PageNumber": 1,
    "PageSize": 10,
    "Filter": {
        "ResourceId": "",
        "RegionId": 0,
        "Product": "",
        "ProductCode": "",
        "ResourceName": "",
        "ServiceType": "",
        "ResourceType": "",
        "Keyword": ""
    },
    "Language": "zh-CN"
}

输出示例

{
    "Response": {
        "TotalCount": 2,
        "ResourceSet": [
            {
                "ProjectId": "pr-92fbf08a",
                "ProjectName": "proj",
                "ResourceId": "ins-lu58m7sn",
                "ResourceName": "resource",
                "RegionId": 1,
                "RegionName": "region",
                "RegionEnName": "ap-region",
                "ProductCode": "p_cvm",
                "Product": "cvm",
                "ProductName": "CVM",
                "ProductGroupName": "comp",
                "ResourceType": "instance",
                "ServiceType": "cvm"
            }
        ],
        "RequestId": "ae2bd2b7-1d55-4b0a-8154-e02407a2b390"
    }
}