查询场景的结构、施压等信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
        
            调试
        
    
授权信息
| 
                                 操作  | 
                            
                                 访问级别  | 
                            
                                 资源类型  | 
                            
                                 条件关键字  | 
                            
                                 关联操作  | 
                        
| 
                                 pts:GetPtsScene  | 
                            
                                     *全部资源 
  | 
                            无 | 无 | 
请求参数
| 
                             名称  | 
                        
                             类型  | 
                        
                             必填  | 
                        
                             描述  | 
                        
                             示例值  | 
                    
| SceneId | 
                             string  | 
                        
                             是  | 
                        
                             场景 ID。  | 
                        
                             NKJBSH  | 
                    
返回参数
| 
                             名称  | 
                        
                             类型  | 
                        
                             描述  | 
                        
                             示例值  | 
                    
| 
                             object  | 
                        |||
| Message | 
                             string  | 
                        
                             错误提示信息,若成功则为空。  | 
                        
                             空  | 
                    
| RequestId | 
                             string  | 
                        
                             请求 ID。  | 
                        
                             DC4E3177-6745-4925-B423-4E89VV34221A  | 
                    
| HttpStatusCode | 
                             integer  | 
                        
                             HTTP 状态码。  | 
                        
                             200  | 
                    
| Scene | 
                             object  | 
                        
                             场景结构。  | 
                        |
| Status | 
                             string  | 
                        
                             场景状态。  | 
                        
                             Draft:草稿 WaitStart:待启动 Debugging:调试中 Running:运行中  | 
                    
| LoadConfig | 
                             object  | 
                        
                             施压配置信息。  | 
                        |
| ApiLoadConfigList | 
                             array<object>  | 
                        
                             API 施压配置信息。  | 
                        |
| 
                             object  | 
                        |||
| RpsBegin | 
                             integer  | 
                        
                             起始 RPS。  | 
                        
                             10  | 
                    
| RpsLimit | 
                             integer  | 
                        
                             最大 RPS。  | 
                        
                             20  | 
                    
| ApiId | 
                             string  | 
                        
                             API ID。可以根据此 ID 在 Relation 中找到对应的 API 信息。  | 
                        
                             GBFDCV8  | 
                    
| MaxRunningTime | 
                             integer  | 
                        
                             运行时长,单位分钟。  | 
                        
                             2  | 
                    
| RelationLoadConfigList | 
                             array<object>  | 
                        
                             链路施压配置信息。  | 
                        |
| 
                             object  | 
                        |||
| ConcurrencyBegin | 
                             integer  | 
                        
                             起始并发。  | 
                        
                             10  | 
                    
| ConcurrencyLimit | 
                             integer  | 
                        
                             最大并发。  | 
                        
                             20  | 
                    
| RelationId | 
                             string  | 
                        
                             链路 ID。  | 
                        
                             HNBGS7M  | 
                    
| Configuration | 
                             object  | 
                        
                             全场景并发或 RPS 配置信息。  | 
                        |
| AllRpsBegin | 
                             integer  | 
                        
                             起始 RPS。  | 
                        
                             100  | 
                    
| AllConcurrencyBegin | 
                             integer  | 
                        
                             起始并发。  | 
                        
                             100  | 
                    
| AllConcurrencyLimit | 
                             integer  | 
                        
                             最大并发。  | 
                        
                             200  | 
                    
| AllRpsLimit | 
                             integer  | 
                        
                             最大 RPS。  | 
                        
                             200  | 
                    
| AgentCount | 
                             integer  | 
                        
                             施压机器。  | 
                        
                             1  | 
                    
| TestMode | 
                             string  | 
                        
                             施压模式。TPS 表示施压模式为 RPS 模式。 说明 
 该返回结果为 CONCURRENCY/TPS。  | 
                        
                             TPS  | 
                    
| AutoStep | 
                             boolean  | 
                        
                             是否为自动递增模式。  | 
                        
                             false  | 
                    
| Increment | 
                             integer  | 
                        
                             递增百分比,取值范围[10,100],且是整十倍。只有在并发模式且是自动递增模式下有效,即 testMode=concurrency_mode 且 autoStep=true 时。  | 
                        
                             10  | 
                    
| KeepTime | 
                             integer  | 
                        
                             单量级持续时长,单位分钟,一定是小于施压时长 maxRunningTime。  | 
                        
                             2  | 
                    
| VpcLoadConfig | 
                             object  | 
                        
                             VPC 配置,VPC 压测模式下生效。  | 
                        |
| VpcId | 
                             string  | 
                        
                             专有网络 ID。  | 
                        
                             vpc-akjhsdajgjsfggahjkga  | 
                    
| VSwitchId | 
                             string  | 
                        
                             虚拟交换机 ID。  | 
                        
                             vsw-skjfhlahsljkhsfalkjdoiw  | 
                    
| SecurityGroupId | 
                             string  | 
                        
                             安全组 ID。  | 
                        
                             sg-jkasgfieiajidsjakjscb  | 
                    
| RegionId | 
                             string  | 
                        
                             地域 ID。  | 
                        
                             cn-beijing  | 
                    
| FileParameterList | 
                             array<object>  | 
                        
                             文件参数。  | 
                        |
| 
                             object  | 
                        |||
| FileOssAddress | 
                             string  | 
                        
                             您自己的 OSS 文件地址,要求公网可访问。  | 
                        
                             https://test.oss-cn-shanghai.aliyuncs.com/json.jar  | 
                    
| FileName | 
                             string  | 
                        
                             文件名。  | 
                        
                             city.csv  | 
                    
| ModifiedTime | 
                             string  | 
                        
                             最新修改时间。  | 
                        
                             2021-03-26 15:30:30  | 
                    
| AdvanceSetting | 
                             object  | 
                        
                             高级设置。  | 
                        |
| LogRate | 
                             integer  | 
                        
                             日志采样率。  | 
                        
                             1  | 
                    
| DomainBindingList | 
                             array<object>  | 
                        
                             域名和 IP 绑定关系。  | 
                        |
| 
                             object  | 
                        |||
| Domain | 
                             string  | 
                        
                             域名。  | 
                        
                             www.aliyundoc.com  | 
                    
| Ips | 
                             array  | 
                        
                             绑定 IP。  | 
                        |
| 
                             string  | 
                        
                             绑定 IP。  | 
                        
                             [1.1.1.1]  | 
                    |
| ConnectionTimeoutInSecond | 
                             integer  | 
                        
                             场景超时时间,单位 s。  | 
                        
                             5  | 
                    
| SuccessCode | 
                             string  | 
                        
                             自定义成功状态码。  | 
                        
                             429,304  | 
                    
| CreateTime | 
                             string  | 
                        
                             创建时间。  | 
                        
                             2021-02-26 15:30:30  | 
                    
| RelationList | 
                             array<object>  | 
                        
                             链路信息。  | 
                        |
| 
                             object  | 
                        |||
| RelationName | 
                             string  | 
                        
                             链路名。  | 
                        
                             下单链路  | 
                    
| FileParameterExplainList | 
                             array<object>  | 
                        
                             文件参数说明。  | 
                        |
| 
                             object  | 
                        |||
| CycleOnce | 
                             boolean  | 
                        
                             是否循环一次。  | 
                        
                             true  | 
                    
| FileParamName | 
                             string  | 
                        
                             文件中的参数名。  | 
                        
                             userName,age  | 
                    
| FileName | 
                             string  | 
                        
                             文件名。  | 
                        
                             city.csv  | 
                    
| BaseFile | 
                             boolean  | 
                        
                             是否作为基准列。  | 
                        
                             true  | 
                    
| ApiList | 
                             array<object>  | 
                        
                             API 信息。  | 
                        |
| 
                             object  | 
                        |||
| ApiId | 
                             string  | 
                        
                             API ID。可以根据此 ID 在 Relation 中找到对应的 API 信息。  | 
                        
                             GBFDCV8  | 
                    
| CheckPointList | 
                             array<object>  | 
                        
                             所有检查点。  | 
                        |
| 
                             object  | 
                        |||
| CheckType | 
                             string  | 
                        
                             检查类型。  | 
                        
                             EXPORTED_PARAM  | 
                    
| Operator | 
                             string  | 
                        
                             比较符号。  | 
                        
                             ctn  | 
                    
| ExpectValue | 
                             string  | 
                        
                             期望值。  | 
                        
                             111  | 
                    
| CheckPoint | 
                             string  | 
                        
                             检查点。  | 
                        
                             userId  | 
                    
| HeaderList | 
                             array<object>  | 
                        
                             Header 信息。  | 
                        |
| 
                             object  | 
                        |||
| HeaderValue | 
                             string  | 
                        
                             参数值。  | 
                        
                             1111  | 
                    
| HeaderName | 
                             string  | 
                        
                             参数名。  | 
                        
                             userId  | 
                    
| TimeoutInSecond | 
                             integer  | 
                        
                             超时时间,单位秒。  | 
                        
                             5  | 
                    
| ExportList | 
                             array<object>  | 
                        
                             所有导出参数。  | 
                        |
| 
                             object  | 
                        |||
| ExportType | 
                             string  | 
                        
                             导出参数来源。  | 
                        
                             BODY_JSON  | 
                    
| ExportValue | 
                             string  | 
                        
                             解释表达式。  | 
                        
                             username  | 
                    
| ExportName | 
                             string  | 
                        
                             导出参数名。  | 
                        
                             data.username  | 
                    
| Count | 
                             string  | 
                        
                             导出参数匹配项。  | 
                        
                             0  | 
                    
| Url | 
                             string  | 
                        
                             请求 URL。  | 
                        
                             https://www.aliyundoc.com  | 
                    
| Method | 
                             string  | 
                        
                             请求方法。  | 
                        
                             GET  | 
                    
| Body | 
                             object  | 
                        
                             Body 内容。  | 
                        |
| BodyValue | 
                             string  | 
                        
                             Body 值。  | 
                        
                             {\"key1\":\"111\",\"key2\":\"222\"}  | 
                    
| ContentType | 
                             string  | 
                        
                             Body 类型。  | 
                        
                             application/x-www-form-urlencoded  | 
                    
| RedirectCountLimit | 
                             integer  | 
                        
                             重定向次数。  | 
                        
                             5  | 
                    
| ApiName | 
                             string  | 
                        
                             API 名称。  | 
                        
                             下单  | 
                    
| RelationId | 
                             string  | 
                        
                             链路 ID。  | 
                        
                             HNBGS7M  | 
                    
| SceneName | 
                             string  | 
                        
                             场景名。  | 
                        
                             下单场景  | 
                    
| SceneId | 
                             string  | 
                        
                             场景 ID。  | 
                        
                             BGFJ7GV  | 
                    
| GlobalParameterList | 
                             array<object>  | 
                        
                             全局参数。  | 
                        |
| 
                             object  | 
                        |||
| ParamName | 
                             string  | 
                        
                             参数名。  | 
                        
                             userName  | 
                    
| ParamValue | 
                             string  | 
                        
                             参数值。  | 
                        
                             lisi  | 
                    
| Headers | 
                             array<object>  | 
                        
                             场景所设置的全局 Header  | 
                        |
| 
                             object  | 
                        |||
| Name | 
                             string  | 
                        
                             Header 的名称  | 
                        
                             key1  | 
                    
| Value | 
                             string  | 
                        
                             Header 的值  | 
                        
                             value1  | 
                    
| Code | 
                             string  | 
                        
                             系统状态码。  | 
                        
                             200  | 
                    
| Success | 
                             boolean  | 
                        
                             是否成功。 
  | 
                        
                             true  | 
                    
示例
正常返回示例
JSON格式
{
  "Message": "空",
  "RequestId": "DC4E3177-6745-4925-B423-4E89VV34221A",
  "HttpStatusCode": 200,
  "Scene": {
    "Status": "Draft:草稿\nWaitStart:待启动\nDebugging:调试中\nRunning:运行中\n",
    "LoadConfig": {
      "ApiLoadConfigList": [
        {
          "RpsBegin": 10,
          "RpsLimit": 20,
          "ApiId": "GBFDCV8"
        }
      ],
      "MaxRunningTime": 2,
      "RelationLoadConfigList": [
        {
          "ConcurrencyBegin": 10,
          "ConcurrencyLimit": 20,
          "RelationId": "HNBGS7M"
        }
      ],
      "Configuration": {
        "AllRpsBegin": 100,
        "AllConcurrencyBegin": 100,
        "AllConcurrencyLimit": 200,
        "AllRpsLimit": 200
      },
      "AgentCount": 1,
      "TestMode": "TPS",
      "AutoStep": false,
      "Increment": 10,
      "KeepTime": 2,
      "VpcLoadConfig": {
        "VpcId": "vpc-akjhsdajgjsfggahjkga",
        "VSwitchId": "vsw-skjfhlahsljkhsfalkjdoiw",
        "SecurityGroupId": "sg-jkasgfieiajidsjakjscb",
        "RegionId": "cn-beijing"
      }
    },
    "FileParameterList": [
      {
        "FileOssAddress": "https://test.oss-cn-shanghai.aliyuncs.com/json.jar",
        "FileName": "city.csv"
      }
    ],
    "ModifiedTime": "2021-03-26 15:30:30",
    "AdvanceSetting": {
      "LogRate": 1,
      "DomainBindingList": [
        {
          "Domain": "www.aliyundoc.com",
          "Ips": [
            "[1.1.1.1]"
          ]
        }
      ],
      "ConnectionTimeoutInSecond": 5,
      "SuccessCode": "429,304"
    },
    "CreateTime": "2021-02-26 15:30:30",
    "RelationList": [
      {
        "RelationName": "下单链路",
        "FileParameterExplainList": [
          {
            "CycleOnce": true,
            "FileParamName": "userName,age",
            "FileName": "city.csv",
            "BaseFile": true
          }
        ],
        "ApiList": [
          {
            "ApiId": "GBFDCV8",
            "CheckPointList": [
              {
                "CheckType": "EXPORTED_PARAM",
                "Operator": "ctn",
                "ExpectValue": "111",
                "CheckPoint": "userId"
              }
            ],
            "HeaderList": [
              {
                "HeaderValue": "1111",
                "HeaderName": "userId"
              }
            ],
            "TimeoutInSecond": 5,
            "ExportList": [
              {
                "ExportType": "BODY_JSON",
                "ExportValue": "username",
                "ExportName": "data.username",
                "Count": "0"
              }
            ],
            "Url": "https://www.aliyundoc.com",
            "Method": "GET",
            "Body": {
              "BodyValue": "{\\\"key1\\\":\\\"111\\\",\\\"key2\\\":\\\"222\\\"}",
              "ContentType": "application/x-www-form-urlencoded"
            },
            "RedirectCountLimit": 5,
            "ApiName": "下单"
          }
        ],
        "RelationId": "HNBGS7M"
      }
    ],
    "SceneName": "下单场景",
    "SceneId": "BGFJ7GV",
    "GlobalParameterList": [
      {
        "ParamName": "userName",
        "ParamValue": "lisi"
      }
    ],
    "Headers": [
      {
        "Name": "key1",
        "Value": "value1"
      }
    ]
  },
  "Code": "200",
  "Success": true
}
            错误码
| 
                                 HTTP status code  | 
            				
                                 错误码  | 
            				
                                 错误信息  | 
            				
                                 描述  | 
            			
|---|---|---|---|
| 400 | GetPtsSceneFail | The scene does not exit | 
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。