Query Profile URL List
Query the Profile URLs list within the current application.
Request URL
POST {base_url}/device/openapi/v1/rps/search
Request Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Authorization | Yes | String | The valid access token for making API calls. The format should be Bearer {access_token}. |
Parameter | Required | Type | Description | |
---|---|---|---|---|
pageSize | Yes | Integer | Define how many records per page. | |
pageNumber | Yes | Integer |
Define which page is displayed. |
|
sorts | No | Array<Object> | Define the sorting field and display order. | |
direction | No | String | Define the display order. Valid value:
|
|
property | No | String | Define the sorting field. |
Response Parameters
Parameter | Type | Description |
---|---|---|
data | Object<Search_Result> | The search result when the response result is
Success . |
status | String | The result of the API request.
|
requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
- Search_Result
-
Parameter Type Description pageSize Integer The number of records displayed on each page. pageNumber Integer Which page is displayed. total Integer The total number of records. content Array Profile URL list of devices. sn String The SN (Serial Number) of this device. profileUrl String The Profile URL.
Examples
- Request example
-
POST /device/openapi/v1/rps/search HTTP/1.1 Host: demo.milesight.com Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InllYXN0b25lLWRlZmF1bHQta2V5LWlkIn0.eyJncmFudF90eXBlIjoiY2xpZW50X2NyZWRlbnRpYWxzIiwic2NvcGUiOlsib3BlbmFwaSJdLCJjbGllbnRfZXh0Ijp7ImFwcF9pZCI6IjE3MzY5NTQ4MDE3MTMzMjgxMzAifSwiZXhwIjoxNzAzMjEzMDk4LCJhdXRob3JpdGllcyI6WyJST0xFX0NMSUVOVCJdLCJqdGkiOiJiYjJjN2U4Yy03NGQwLTQ4NjEtODE3MS1iYTc0NWRlMGY0NmQiLCJjbGllbnRfaWQiOiI4OTNkNzdjNy1mMGNiLTRmMzQtOWNhMS03YzJhNGNmMTEzNDgiLCJ0cyI6MTcwMzIwOTQ5ODMzNH0 Content-Type: application/json { "pageSize":10, "pageNumber": 1 }
- Response example
-
HTTP/1.1 200 OK { "data": { "pageSize":10, "pageNumber": 1, "total": 1, "content": [ { "sn":"62217257xxxx", "profileUrl": "https://www.demo.com/" } ] }, "status": "Success", "requestId": "768acf43e1e492a881b7fdb8721861e3" }