列出PolarClaw裝置配對
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
POST HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ApplicationId |
string |
是 |
應用 ID |
pa-************** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
A7E6A8FD-C50B-46B2-BA85-D8B8D3****** |
| Message |
string |
返回訊息 |
successful |
| Code |
integer |
返回狀態代碼 |
200 |
| ApplicationId |
string |
應用 ID |
pa-************** |
| Pending |
array<object> |
待審批配對請求列表 |
|
|
object |
待審批配對 |
||
| PairRequestId |
string |
配對請求 ID |
test-1778647932986 |
| DeviceId |
string |
裝置唯一標識 |
device-784x37k0vko734fk |
| PublicKey |
string |
Ed25519 公開金鑰 |
test-pubkey-base64url |
| DisplayName |
string |
裝置顯示名稱 |
test |
| Platform |
string |
作業系統平台 |
linux |
| DeviceFamily |
string |
硬體類別 |
server |
| ClientId |
string |
用戶端標識 |
cli |
| ClientMode |
string |
用戶端模式 |
cli |
| Role |
string |
裝置角色 |
operator |
| Roles |
array |
角色列表 |
|
|
string |
裝置角色 |
operator |
|
| Scopes |
array |
許可權範圍列表 |
|
|
string |
許可權範圍 |
operator.read |
|
| RemoteIp |
string |
請求方 IP 位址 |
127.0.0.1 |
| Silent |
boolean |
是否靜默配對 |
false |
| IsRepair |
boolean |
是否為重新配對 |
false |
| Ts |
integer |
配對請求時間戳記(Unix 毫秒) |
1778660347550 |
| Paired |
array<object> |
已配對裝置列表 |
|
|
object |
|||
| DeviceId |
string |
裝置唯一標識 |
f92620d6bea04f65d48cf603c57b367c97e837c1ab9f6d78f741f477e99d857c |
| DisplayName |
string |
裝置顯示名稱 |
empty |
| Platform |
string |
作業系統平台 |
linux |
| DeviceFamily |
string |
硬體類別 |
empty |
| ClientId |
string |
用戶端標識 |
cli |
| ClientMode |
string |
用戶端模式 |
cli |
| Role |
string |
裝置角色 |
operator |
| Scopes |
array |
許可權範圍列表 |
|
|
string |
許可權範圍 |
operator.admin |
|
| CreatedAtMs |
integer |
裝置配對建立時間(Unix 毫秒) |
1778659807727 |
| LastSeenAtMs |
integer |
裝置最後活躍時間(Unix 毫秒) |
1778659807727 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "A7E6A8FD-C50B-46B2-BA85-D8B8D3******",
"Message": "successful",
"Code": 200,
"ApplicationId": "pa-**************",
"Pending": [
{
"PairRequestId": "test-1778647932986",
"DeviceId": "device-784x37k0vko734fk",
"PublicKey": "test-pubkey-base64url",
"DisplayName": "test",
"Platform": "linux",
"DeviceFamily": "server",
"ClientId": "cli",
"ClientMode": "cli",
"Role": "operator",
"Roles": [
"operator"
],
"Scopes": [
"operator.read"
],
"RemoteIp": "127.0.0.1",
"Silent": false,
"IsRepair": false,
"Ts": 1778660347550
}
],
"Paired": [
{
"DeviceId": "f92620d6bea04f65d48cf603c57b367c97e837c1ab9f6d78f741f477e99d857c",
"DisplayName": "empty",
"Platform": "linux",
"DeviceFamily": " empty",
"ClientId": "cli",
"ClientMode": "cli",
"Role": "operator",
"Scopes": [
"operator.admin"
],
"CreatedAtMs": 1778659807727,
"LastSeenAtMs": 1778659807727
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。