Queries a list of scenarios.
Operation description
You can use the Scenario Management feature in the console to manage scenarios. Do not use API operations for this purpose. For more information, see
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
airec:ListScenes |
get |
*Instance
|
None | None |
Request syntax
GET /v2/openapi/instances/{instanceId}/scenes HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
airec-cn-o400whm78004 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| status |
string |
No |
The status of the scenario.
|
1 |
| sceneId |
string |
No |
The scenario ID. |
test |
| page |
integer |
No |
The page number. Default value: 1. |
1 |
| size |
integer |
No |
The number of entries to return on each page. Default value: 10. Valid values: 1 to 50. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The details of the result. |
||
| result |
array<object> |
The details of the result. |
|
|
object |
The details of the result. |
||
| sceneId |
string |
The scenario ID. |
test |
| gmtModified |
string |
The time when the scenario was last modified. |
2020-04-23T06:08:48.000Z |
| status |
string |
The status of the scenario.
|
1 |
| gmtCreate |
string |
The time when the scenario was created. |
2020-04-23T06:08:48.000Z |
| code |
string |
The error code. |
InternalServerError |
| requestId |
string |
The request ID. |
8F81A922-6C81-46D6-B78C-CC35E16B1691 |
| message |
string |
The error details. |
An internal server error occurred |
Examples
Success response
JSON format
{
"result": [
{
"sceneId": "test",
"gmtModified": "2020-04-23T06:08:48.000Z",
"status": "1",
"gmtCreate": "2020-04-23T06:08:48.000Z"
}
],
"code": "InternalServerError",
"requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
"message": "An internal server error occurred"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.