Lists JMeter environments based on specified conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pts:ListEnvs |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
Yes |
The number of the page to return. |
1 |
| PageSize |
integer |
Yes |
The number of environments to return on each page. |
10 |
| EnvId |
string |
No |
The ID of the environment to query. This is a term query. |
10YPA8H |
| EnvName |
string |
No |
The keyword in the name of the environment to query. This is a fuzzy query. |
test-create |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The sample response. |
||
| Code |
string |
The system status code. This parameter is not returned if the request is successful. |
|
| Envs |
array<object> |
The list of environments. |
|
|
object |
The environment details. |
||
| CreateTime |
integer |
The time when the environment was created. |
1637053715165 |
| EnvId |
string |
The environment ID. |
86S1LH |
| EnvName |
string |
The environment name. |
test-create |
| EnvVersion |
string |
The JMeter version that the environment uses. |
5.0 |
| Files |
array<object> |
The included JAR packages. |
|
|
object |
The file details. |
||
| FileId |
integer |
The file ID. |
61660 |
| FileName |
string |
The file name. |
json.jar |
| FileOssAddress |
string |
The OSS address of the file. |
https://test.oss-cn-shanghai.aliyuncs.com/json.jar |
| FileSize |
integer |
The file size, in bytes. |
788 |
| Md5 |
string |
The MD5 hash of the JAR package. |
43B584026CE5E570F3DE638FA7EEF9E0 |
| ModifiedTime |
integer |
The time when the environment was last modified. |
1637053719165 |
| Properties |
array<object> |
The JMeter properties. |
|
|
object |
The property details. |
||
| Description |
string |
The description. |
远程主机 |
| Name |
string |
The property name. |
remote_hosts |
| Value |
string |
The property value. |
127.0.0.1 |
| RelatedScenes |
array |
The associated scenarios. |
|
|
string |
The details of the associated scenarios. |
[10YPA8H, 0PYP8WH] |
|
| RunningScenes |
array |
The IDs of running scenarios. |
|
|
string |
The scenario ID details. |
[10YPA8H, 0PYP8WH] |
|
| UsedCapacity |
integer |
The total size of the environment files. |
26668 |
| HttpStatusCode |
integer |
The HTTP status code. This parameter is not returned if the request is successful. |
|
| Message |
string |
The error message. This parameter is not returned if the request is successful. |
|
| PageNumber |
integer |
The number of the returned page. |
1 |
| PageSize |
integer |
The number of returned environments. |
10 |
| RequestId |
string |
The request ID. |
A8E16480-15C1-555A-922F-B736A005E52D |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| TotalCount |
integer |
The total number of environments that were found. |
100 |
Examples
Success response
JSON format
{
"Code": "",
"Envs": [
{
"CreateTime": 1637053715165,
"EnvId": "86S1LH",
"EnvName": "test-create",
"EnvVersion": "5.0",
"Files": [
{
"FileId": 61660,
"FileName": "json.jar",
"FileOssAddress": "https://test.oss-cn-shanghai.aliyuncs.com/json.jar",
"FileSize": 788,
"Md5": "43B584026CE5E570F3DE638FA7EEF9E0"
}
],
"ModifiedTime": 1637053719165,
"Properties": [
{
"Description": "远程主机",
"Name": "remote_hosts",
"Value": "127.0.0.1"
}
],
"RelatedScenes": [
"[10YPA8H, 0PYP8WH]"
],
"RunningScenes": [
"[10YPA8H, 0PYP8WH]"
],
"UsedCapacity": 26668
}
],
"HttpStatusCode": 0,
"Message": "",
"PageNumber": 1,
"PageSize": 10,
"RequestId": "A8E16480-15C1-555A-922F-B736A005E52D",
"Success": true,
"TotalCount": 100
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 503 | EnvNotExist | The env does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.