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
stationIdstringRequired

Id of power station

Example: ST22****77FV
currentnumberOptional

Current page number, default and minimum value is 1

Example: 1
sizenumberOptional

The amount pf data presented per page, default and minimum value is 10

Example: 10
Responses
200

Operation was successful

application/json
post
/v1/device/list
POST /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