有奖捉虫:行业应用 & 管理与支持文档专题 HOT

1. 接口描述

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

查询文件列表

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

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

2. 输入参数

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

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeFiles。
Version String 公共参数,本接口取值:2021-07-28。
Region String 公共参数,本接口不需要传递此参数。
ProjectIds.N Array of String 项目 ID 数组
示例值:["project-xx"]
FileIds.N Array of String 文件 ID 数组
示例值:["file-xx"]
FileName String 文件名
示例值:uin.csv
Offset Integer 偏移量,默认为 0
示例值:1
Limit Integer 返回数量,默认为 20,最大为 100
示例值:10
Kind Integer 文件种类,参数文件-1,协议文件-2,请求文件-3
示例值:1

3. 输出参数

参数名称 类型 描述
FileSet Array of File 文件列表
注意:此字段可能返回 null,表示取不到有效值。
Total Integer 文件总数
注意:此字段可能返回 null,表示取不到有效值。
示例值:10
RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 DescribeFiles

输入示例

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

{
    "ProjectIds": [
        "xx"
    ],
    "Offset": 0,
    "FileIds": [
        "xx"
    ],
    "Limit": 0,
    "FileName": "xx",
    "Kind": 1
}

输出示例

{
    "Response": {
        "Total": 0,
        "FileSet": [
            {
                "Status": 0,
                "Kind": 0,
                "HeaderInFile": true,
                "Name": "xx",
                "Type": "xx",
                "TailLines": [
                    "xx"
                ],
                "FileInfos": [
                    {
                        "UpdatedAt": "2020-09-22T00:00:00+00:00",
                        "Type": "xx",
                        "Name": "xx",
                        "Size": 0
                    }
                ],
                "LineCount": 0,
                "ScenarioSet": [
                    {
                        "SubAccountUin": "xx",
                        "DomainNameConfig": {
                            "HostAliases": [
                                {
                                    "IP": "xx",
                                    "HostNames": [
                                        "xx"
                                    ]
                                }
                            ],
                            "DNSConfig": {
                                "Nameservers": [
                                    "xx"
                                ]
                            }
                        },
                        "SLAId": "xx",
                        "Type": "xx",
                        "CronId": "xx",
                        "Status": 0,
                        "Description": "xx",
                        "SLAPolicy": {
                            "AlertChannel": {
                                "NoticeId": "xx",
                                "AMPConsumerId": "xx"
                            },
                            "SLARules": [
                                {
                                    "For": "xx",
                                    "Metric": "xx",
                                    "Aggregation": "xx",
                                    "Value": 0.0,
                                    "AbortFlag": true,
                                    "LabelFilter": [
                                        {
                                            "LabelName": "xx",
                                            "LabelValue": "xx"
                                        }
                                    ],
                                    "Condition": "xx"
                                }
                            ]
                        },
                        "AppId": 0,
                        "UpdatedAt": "xx",
                        "Configs": [
                            "xx"
                        ],
                        "Protocols": [
                            {
                                "UpdatedAt": "2020-09-22T00:00:00+00:00",
                                "Type": "xx",
                                "Name": "xx",
                                "Size": 0
                            }
                        ],
                        "Datasets": [
                            {
                                "HeaderInFile": true,
                                "Name": "xx",
                                "TailLines": [
                                    "xx"
                                ],
                                "LineCount": 0,
                                "Split": true,
                                "UpdatedAt": "2020-09-22T00:00:00+00:00",
                                "HeaderColumns": [
                                    "xx"
                                ],
                                "HeadLines": [
                                    "xx"
                                ],
                                "Type": "xx",
                                "Size": 0
                            }
                        ],
                        "Name": "xx",
                        "ScenarioId": "xx",
                        "ProjectId": "xx",
                        "TestScripts": [
                            {
                                "Name": "xx",
                                "EncodedHttpArchive": "xx",
                                "UpdatedAt": "2020-09-22T00:00:00+00:00",
                                "Size": 0,
                                "Type": "xx",
                                "EncodedContent": "xx"
                            }
                        ],
                        "Extensions": [
                            "xx"
                        ],
                        "RequestFiles": [
                            {
                                "UpdatedAt": "2020-09-22T00:00:00+00:00",
                                "Type": "xx",
                                "Name": "xx",
                                "Size": 0
                            }
                        ],
                        "Load": {
                            "VpcLoadDistribution": {
                                "VpcId": "xx",
                                "Region": "xx",
                                "RegionId": 0,
                                "SubnetIds": [
                                    "xx"
                                ]
                            },
                            "GeoRegionsLoadDistribution": [
                                {
                                    "Region": "xx",
                                    "RegionId": 0,
                                    "Percentage": 0
                                }
                            ],
                            "LoadSpec": {
                                "ScriptOrigin": {
                                    "DurationSeconds": 0,
                                    "MachineSpecification": "xx",
                                    "MachineNumber": 0
                                },
                                "RequestsPerSecond": {
                                    "DurationSeconds": 0,
                                    "MaxRequestsPerSecond": 0
                                },
                                "Concurrency": {
                                    "MaxRequestsPerSecond": 0,
                                    "Stages": [
                                        {
                                            "DurationSeconds": 0,
                                            "TargetVirtualUsers": 0
                                        }
                                    ],
                                    "IterationCount": 0
                                }
                            }
                        },
                        "EncodedScripts": "xx",
                        "Uin": "xx",
                        "CreatedAt": "xx",
                        "Plugins": [
                            {
                                "UpdatedAt": "2020-09-22T00:00:00+00:00",
                                "Type": "xx",
                                "Name": "xx",
                                "Size": 0
                            }
                        ]
                    }
                ],
                "HeaderColumns": [
                    "xx"
                ],
                "HeadLines": [
                    "xx"
                ],
                "FileId": "xx",
                "UpdatedAt": "2020-09-22T00:00:00+00:00",
                "Size": 0
            }
        ],
        "RequestId": "xx"
    }
}

5. 开发者资源

腾讯云 API 平台

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

API Inspector

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

SDK

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

命令行工具

6. 错误码

该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码