Get Device List
post
Obtain device list by station ID.
Required scopes
This endpoint requires the following scopes:
- : all privileges
- : all privileges
Authorizations
OAuth2clientCredentialsRequired
Token URL:
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Body
stationIdstringRequiredExample:
Id of power station
ST22****77FVcurrentnumberOptionalExample:
Current page number, default and minimum value is 1
1sizenumberOptionalExample:
The amount pf data presented per page, default and minimum value is 10
10Responses
200
Operation was successful
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Device Does Not Exist
application/json
default
Internal error
application/json
post
/v1/device/listPOST /portal/v1/device/list HTTP/1.1
Host: idaas-sandbox.hanchuess.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"stationId": "ST22****77FV",
"current": 1,
"size": 10
}{
"errno": 200,
"msg": "The operation has been successful",
"data": {
"records": [
{
"sn": "H03Z****10007",
"model": "HESS-HY-T-10K",
"status": "ONLINE"
}
],
"current": 1,
"size": 10,
"total": 1,
"pages": 1
}
}Last updated