Obtaining Screen Details
Function
Obtain screen details.
URI
- URI format
GET /v1/{project_id}/screens/{screen_id}
- Parameter description
Table 1 URI parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.
screen_id
Yes
String
Screen ID. For details about how to obtain the screen ID, see Obtaining a Screen List.
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
workspaceId |
Yes |
String |
Workspace ID, which consists of 32 characters. For details about how to obtain the workspace ID, see Obtaining a Workspace ID. |
Response
Parameter |
Type |
Description |
---|---|---|
id |
String |
ID of the screen. |
name |
String |
Name of the screen. |
alias |
String |
Alias of the screen. |
description |
String |
Description of the screen. |
status |
Integer |
Status of the screen: 0-created, 1-deleted, 2-shared |
projectId |
String |
ID of the project. |
createUser |
String |
Creator of the screen. |
createDate |
Integer |
Timestamp for creating the screen. |
updateUser |
String |
User who updates the screen. |
updateDate |
Integer |
Timestamp for updating the screen. |
templateId |
String |
ID of the template used for creating the screen. |
snapshotId |
String |
ID of the screen snapshot. |
share |
String |
UUID for sharing the screen. |
thumbnail |
String |
URL for accessing the screen thumbnail. |
config |
config object |
Configuration content of the screen. |
Parameter |
Type |
Description |
---|---|---|
scenes |
Array of scene objects |
Scene information. |
config |
Array of config objects |
Configuration details. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Name of the scene. |
layers |
Array of layer objects |
Layers of the scene. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
ID of the layer. |
name |
String |
Name of the layer. |
coms |
Array |
Component list. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Unique ID of the screen. |
screenId |
String |
ID of the screen. |
grid |
Integer |
Grid spacing in units of pixels. |
backgroundImage |
String |
OBS link of the background image. |
backgroundColor |
String |
Color of the background. |
width |
Integer |
Screen width in units of pixels. |
height |
Integer |
Screen height in units of pixels. |
whLinkage |
Integer |
Association of width and height. 0: Disable; 1: Enable |
comList |
String |
Component list. |
screenshot |
String |
Cover image. |
display |
Integer |
Zoom modes:
|
watermarkFlag |
Integer |
Specifies whether a watermark is available. |
rulerLines |
rulerLines object |
Coordinate. |
variables |
variables object |
Interaction information. |
workspaceId |
String |
Workspace ID. |
Parameter |
Type |
Description |
---|---|---|
h |
String |
Horizontal ruler line coordinate in units of pixels. |
v |
String |
Vertical ruler line coordinate in units of pixels. |
show |
Boolean |
Specifies whether to display ruler lines. The options are true (yes) and false (no). |
Parameter |
Type |
Description |
---|---|---|
publishersView |
String |
Interaction parameters of the sending component. |
subscribersView |
String |
Interaction parameters of the receiving component. |
Examples
Obtain the details about the screen whose ID is ff80808167813a360167819d5b640045.
- Request example
GET https://{dlv_endpoint}/v1/{project_id}/screens/ff80808167813a360167819d5b640045 Request header { "workspaceId": "86ce107974ce4f93b618acb232863027" }
- Example of a successful response
{ "id": "ff80808167813a360167819d5b640045", "name": "screen_01", "alias": "test_screen_01", "description": "for test", "status": 2, "projectId": "abcdefghijk0123456", "createUser": "a1b2c2d3e4f5g6h5j6k6", "createDate": 1544067832676, "updateUser": null, "updateDate": null, "templateId": "32546212564", "snapshotId": null, "share": "f7c9a336e6c74ca5883a60af882d92de", "thumbnail": null, "config": { "scenes": [ { "name": "scenario 1", "layers": [ { "id": "ff80808167813a360167819d5b640047", "name": "layer 1", "coms": [] } ] } ], "config": { "id": "ff80808167813a360167819d5b650048", "screenId": "ff80808167813a360167819d5b640045", "grid": null, "backgroundImage": "", "backgroundColor": null, "width": 1920, "height": 1080, "whLinkage": null, "comList": "", "screenshot": null, "display": 1, "watermarkFlag": null, "rulerLines": null, "variables": null } } }
- Example of a failed response
{ "errors": [ { "error_code": "1004", "error_msg": "The operation with the resource entity occur some error." } ] }
Status Codes
For details about status codes, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot