ListScenes
Retrieves the 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 instance ID. You can call the ListInstances operation to obtain the instance ID. |
pairec-cn-abcdefg1234 |
| Name |
string |
No |
The scene name filter. |
scene1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
B8987BF7-6028-5B17-80E0-251B7BD67BBA |
| TotalCount |
integer |
The total number of elements in the list. |
10 |
| Scenes |
array<object> |
The list of scenes. |
|
|
array<object> |
|||
| SceneId |
string |
The scene ID. |
3 |
| Name |
string |
The scene name. |
scene1 |
| Description |
string |
The scene description. |
This is a test. |
| Flows |
array<object> |
The list of flows. |
|
|
object |
|||
| FlowName |
string |
The flow name. |
Flow 1 |
| FlowCode |
string |
The flow code. |
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.