Retrieves a list of scenes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:ListScenes |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/scenes HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The ID of the instance. You can obtain this ID by calling the |
pairec-cn-abcdefg1234 |
| Name |
string |
No |
The name of the scene to use as a filter. |
scene1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The unique identifier for the request. |
B8987BF7-6028-5B17-80E0-251B7BD67BBA |
| TotalCount |
integer |
The total number of scenes. |
10 |
| Scenes |
array<object> |
The list of scenes. |
|
|
array<object> |
|||
| SceneId |
string |
The unique ID of the scene. |
3 |
| Name |
string |
The name of the scene. |
scene1 |
| Description |
string |
The description of the scene. |
This is a test. |
| Flows |
array<object> |
The list of flows associated with the scene. |
|
|
object |
|||
| FlowName |
string |
The name of the flow. |
流量1 |
| FlowCode |
string |
The code of the flow. |
liuliang1 |
Examples
Success response
JSON format
{
"RequestId": "B8987BF7-6028-5B17-80E0-251B7BD67BBA",
"TotalCount": 10,
"Scenes": [
{
"SceneId": "3",
"Name": "scene1",
"Description": "This is a test.",
"Flows": [
{
"FlowName": "流量1",
"FlowCode": "liuliang1"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.