tencent cloud

All product documents
APIs
DescribeScenarios
Last updated: 2025-03-17 11:03:19
DescribeScenarios
Last updated: 2025-03-17 11:03:19

1. API Description

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

This API is used to query scenario list.

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: DescribeScenarios.
Version Yes String Common Params. The value used for this API: 2021-07-28.
Region No String Common Params. This parameter is not required for this API.
ScenarioIds.N No Array of String Array of Scenario ID.
ScenarioName No String Scenario Name.
ScenarioStatus.N No Array of Integer Array of Scenario status.
Offset No Integer Offset. Default value is 0.
Limit No Integer Number of returns. Default value is 20, maximum is 100.
OrderBy No String Column for sorting.
Ascend No Boolean Whether in ascending order.
ProjectIds.N No Array of String Array of Project ID.
ScenarioType No String Scenario type, such as pts-http, pts-js, pts-jmeter.

3. Output Parameters

Parameter Name Type Description
ScenarioSet Array of Scenario Scenario list.

Note: This field may return null, indicating that no valid value is found.
Total Integer Total number of scenarios.
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 Query scenario list

Input Example

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

{
    "ScenarioIds": [
        "scenario-xx"
    ]
}

Output Example

{
    "Response": {
        "Total": 0,
        "ScenarioSet": [
            {
                "Status": 0,
                "Load": {
                    "VpcLoadDistribution": {
                        "VpcId": "xx",
                        "Region": "xx",
                        "RegionId": 0
                    },
                    "GeoRegionsLoadDistribution": [
                        {
                            "Region": "xx",
                            "RegionId": 0,
                            "Percentage": 0
                        }
                    ],
                    "LoadSpec": {
                        "RequestsPerSecond": {
                            "DurationSeconds": 0
                        },
                        "Concurrency": {
                            "Stages": [
                                {
                                    "DurationSeconds": 0,
                                    "TargetVirtualUsers": 0
                                }
                            ],
                            "IterationCount": 0
                        }
                    }
                },
                "Datasets": [
                    {
                        "HeaderInFile": true,
                        "Name": "xx",
                        "LineCount": 0,
                        "Split": true,
                        "UpdatedAt": "2020-09-22T00:00:00+00:00",
                        "HeaderColumns": [
                            "xx"
                        ],
                        "Size": 0
                    }
                ],
                "Description": "xx",
                "SubAccountUin": "xx",
                "Uin": "xx",
                "Extensions": [
                    "xx"
                ],
                "CreatedAt": "xx",
                "AppId": 0,
                "UpdatedAt": "xx",
                "Configs": [
                    "xx"
                ],
                "Type": "xx",
                "Name": "xx"
            }
        ],
        "RequestId": "xx"
    }
}

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
AuthFailure CAM signature/authentication error.
FailedOperation Operation failed.
FailedOperation.DbQueryFailed Failed to query database.
InternalError Internal error.
InvalidParameter Invalid parameter.
InvalidParameterValue Invalid parameter value.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon