项目添加资源

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

1. 接口描述

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

向项目里添加资源

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

接口更新时间:2026-01-30 17:22:03。

接口只验签名不鉴权。

2. 输入参数

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

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:AddProjectResource
Version String 公共参数,本接口取值:2020-09-20
Region String 公共参数,地域信息本接口不需要传递此参数。
ProjectId String 项目ID
示例值: pr-dcd34c11
ResourceList Array of TransferResource 添加的资源列表
示例值:查看

3. 输出参数

参数名称 类型 描述
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

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

错误码 描述
InvalidParameter.UnsupportedProductCodeError 不支持的ProductCode
InvalidParameter.UnsupportedResourceTypeError 不支持的资源类型
InvalidParameter.UnsupportedRegionError 不支持的地域
ResourceNotFound.ProjectNotFoundError 项目不存在
ResourceNotFound.ProjectResourceNotFound 项目内资源不存在
InternalError.ServiceError 服务错误
InternalError.NewUnsupportedAccessTypeError 不支持的访问类型
InternalError.ThirdPartServiceBadRequest 服务调用失败
InternalError.DatabaseError 内部数据库错误
FailedOperation.ProjectQuotaNotEnough 项目配额不足
UnauthorizedOperation.AuthFailedError 鉴权失败
UnauthorizedOperation.ProjectAuthFailedError 项目权限不足

5. 示例

示例1 AddProjectResource

输入示例

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

{
    "ProjectId": "pr-92fbf08a",
    "ResourceList": [
        {
            "ServiceType": "cvm",
            "Region": "ap",
            "ResourceId": "ins-lu58m7sn",
            "ResourceType": "instance"
        },
        {
            "ServiceType": "cfs",
            "Region": "ap-region",
            "ResourceId": "cfs-463tukc5",
            "ResourceType": "filesystem"
        }
    ]
}

输出示例

{
    "Response": {
        "RequestId": "ae2bd2b7-1d55-4b0a-8154-e02407a2b390"
    }
}