API リファレンス
/- ブラウザ
- ローカル API
/
プロファイルプロキシを一括変更
環境ごとにバインドされているプロキシを変更するために使用します。proxyId が指定されている場合は、その ID で表されるプロキシにバインドします。指定されていない場合は、新しく追加されたプロキシにバインドします。プロキシ情報が変更されていない場合は、再バインドは発生しません (proxyIp、proxyPort、proxyType、または proxyProvider のいずれかに変更があった場合は、新しいプロキシとみなされ、再バインドが成功します)。
POST
curl -i -X POST \
http://127.0.0.1:40000/api/env/setProxy/batch \
-H 'Content-Type: application/json' \
-d '{
"envIds": ["2016036223642570752","2016028408622419968"], //Choose one with serial IDs, must fill one
"proxy": { //Used to change the bound proxy for environments. If proxyId is provided, bind to the proxy represented by that ID; otherwise, bind to a newly added proxy. If proxy information remains unchanged, no rebinding occurs (any change in proxyIp, proxyPort, proxyType, or proxyProvider is considered a new proxy, and rebinding succeeds)
"city": "fuzhou",
"country": "China",
"encryptionType": 1,
"ipChangeAction": 0,
"ipMonitor": false,
"password": "testpassword",
"proxyId": 0,
"proxyIp": "1.1.1.1", //Required
"proxyName": "testproxyName111",
"proxyPort": 8807, //Required
"proxyProvider": "7",//Required
"proxyType": 0, //Required
"refreshUrl": "",
"state": "fujian",
"username": "test-un"
},
"uniqueIds": [] //Choose one with environment ID, must fill one
}'Response
{ "code": 0, "msg": null, "data": true, "requestId": "d57cfecfc6904fcaa57da9f65b2a15fd" }