Quick New Device
Batch quick new device.
Interface Address:
text
/papi/container/operate/batch/quickNewRequest Method:
text
POSTContent-Type:
text
application/jsonHeader Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Access-Key | string | Yes | API access key ID, see API Rules |
| X-Signature | string | Yes | Signature value, Base64-encoded HMAC-SHA256 result |
| X-Timestamp | string | Yes | Millisecond-level Unix timestamp (13 digits) |
| X-Nonce | string | Yes | Random string, 10~32 lowercase letters + digits |
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctrIdList | array[string] | Yes | List of container IDs |
| modelSid | string | Yes | Model ID |
| keepProxy | boolean | Yes | Whether to keep proxy settings |
Request Example:
json
{
"ctrIdList": [
"0532a129528bd7dc44cd7ea4a60a3dd460aa38a262a46bffb3169d5d11d2f51e"
],
"modelSid": "e0CtIJZWRnfGB8SzSn/Maw==",
"keepProxy": true
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | array[ContainerApiResult] | Response data |
| ├─ success | boolean | Whether the operation succeeded |
| ├─ taskId | string | Task ID of the operation |
| ├─ data | object | Data |
| ├─ msg | string | Operation message |
| ├─ ctrId | string | Container CtrId |
| ├─ ctrAlias | string | Container alias |
| ├─ ctrSlot | integer | Cloud phone slot |
| msg | string | Error message |
Response Example:
json
{
"code": 0,
"data": [
{
"success": true,
"taskId": "",
"data": {},
"msg": "",
"ctrId": "0532a129528bd7dc44cd7ea4a60a3dd460aa38a262a46bffb3169d5d11d2f51e",
"ctrAlias": "",
"ctrSlot": 0
}
],
"msg": ""
}