查看云机参数
查看云机详细参数信息。
接口地址:
text
/papi/container/operate/getContainerInfo请求方式:
text
POST请求数据类型:
text
application/jsonHeader 参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| X-Access-Key | string | 是 | API 访问密钥 ID,鉴权方式见 接口规则 |
| X-Signature | string | 是 | 签名值,Base64 编码的 HMAC-SHA256 计算结果 |
| X-Timestamp | string | 是 | 毫秒级 Unix 时间戳(13 位) |
| X-Nonce | string | 是 | 随机字符串,10~32 位小写字母+数字 |
Body 参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| ctrId | string | 是 | 容器 ID |
请求示例:
json
{
"ctrId": "cf5eaa177d75de7f43a0d95c84832560b70118e462dc2eb8da529a936d8c3c6f"
}响应参数:
| 参数 | 类型 | 说明 |
|---|---|---|
| code | integer | 错误码,参见 错误码说明 |
| data | object | 返回数据 |
| ├─ deviceVendor | string | 设备厂商 |
| ├─ deviceBrand | string | 设备品牌 |
| ├─ deviceModel | string | 设备型号 |
| ├─ timezone | string | 系统时区 |
| ├─ language | string | 系统语言 |
| ├─ androidVersion | string | 安卓版本 |
| ├─ ip | string | 公网 IP |
| ├─ region | string | 网络地区 |
| ├─ state | string | 州/省 |
| ├─ city | string | 城市 |
| ├─ ipCountry | string | IP 所在地国家 |
| ├─ ipState | string | IP 所在地省 |
| ├─ postcode | string | 邮编 |
| ├─ wifiName | string | 当前连接 Wi-Fi 名称 |
| ├─ simStatus | string | SIM 卡状态 |
| ├─ simRegion | string | SIM 卡所属地区 |
| ├─ phoneNumber | string | 手机号码 |
| ├─ imsi | string | 国际移动用户识别码 |
| ├─ numeric | string | MCC+MNC 组合 |
| ├─ carrierName | string | 运营商名称 |
| ├─ iccid | string | SIM 卡唯一识别码 |
| ├─ networkType | string | 网络类型 |
| ├─ mcc | string | 移动国家码 |
| ├─ mnc | string | 移动网络码 |
| ├─ lac | string | 位置区码 |
| ├─ cid | string | 小区识别码 |
| ├─ longitude | number | 经度 |
| ├─ latitude | number | 纬度 |
| ├─ bluetoothName | string | 蓝牙设备名称 |
| ├─ bluetoothMac | string | 蓝牙 MAC 地址 |
| ├─ ctrNameId | string | 容器业务 ID |
| ├─ name | string | 容器名称 |
| ├─ turnServerUri | string | 中继地址 |
| ├─ roomUrl | string | 机房 URL |
| ├─ ctrMacAdd | string | 云机 WLAN MAC 地址 |
| ├─ cphoneImei | string | IMEI |
| ├─ blockioUsedByte | integer | 容器块设备 IO 已使用字节数 |
| ├─ screenCastResolution | string | 投屏分辨率 |
| msg | string | 错误提示 |
响应示例:
json
{
"code": 0,
"data": {
"deviceVendor": "",
"deviceBrand": "",
"deviceModel": "",
"timezone": "",
"language": "",
"androidVersion": "",
"ip": "",
"region": "",
"state": "",
"city": "",
"ipCountry": "",
"ipState": "",
"postcode": "",
"wifiName": "",
"simStatus": "",
"simRegion": "",
"phoneNumber": "",
"imsi": "",
"numeric": "",
"carrierName": "",
"iccid": "",
"networkType": "",
"mcc": "0",
"mnc": "0",
"lac": "0",
"cid": "0",
"longitude": 0,
"latitude": 0,
"bluetoothName": "",
"bluetoothMac": "",
"ctrNameId": "",
"name": "",
"turnServerUri": "",
"roomUrl": "",
"ctrMacAdd": "",
"cphoneImei": "",
"blockioUsedByte": 0,
"screenCastResolution": ""
},
"msg": ""
}