Rename Devices
Use the interfaces to rename hosted devices.
Only available for users with administrative rights.
Prototype
Protocol | HTTP/HTTPS GET |
URL | ip[:port]/path?method=xxx&name=xxx&sc-client-id=xxx |
Data Format | Response: Content-Type: application/json |
Request URL
- URL parameters vary from different product families.
Product Family | path | method |
---|---|---|
Ultra Stream | socket/usapi | set-name |
Ultra Encode | socket/usapi | set-name |
Pro Convert Encoder | socket/mwapi | set-eth-config |
Pro Convert Decoder | socket/mwapi | set-eth-config |
- Parameters are as follows.
Parameter | Description |
---|---|
method | Refer to method. |
name | New name of devices. |
sc-client-id | SN of the renamed device. |
Request Cookies
Parameter | Description |
---|---|
mwcloud-sid | A string value that is used to uniquely identify user logged-in. |
mwcloud-uid | Current logged-in username. |
Request Example
Requests vary from different products.
For Ultra Stream, Ultra Encode
GET /socket/usapi?method=set-name&name=Encode&sc-client-id=A305200908004 HTTP/1.1 Accept: application/json, text/plain, */* Connection: keep-alive Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin
For Pro Convert Encoder and Decoder
GET /socket/mwapi?method=set-eth-config&name=Convert&sc-client-id=A421210928002 HTTP/1.1 Accept: application/json, text/plain, */* Connection: keep-alive Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin
Response Parameters
Response Header
Parameter | Description |
---|---|
Content-Type | Value: 'application/json |
Response Body
Parameter | Description |
---|---|
result | Result code. The options are as follows:
|
status | Result code. The options are as follows:
|
Response Example
Responses vary from different products.
For Ultra Stream, Ultra Encode
HTTP/1.1 200 OK Content-Type: application/json { "result": 0 }
For Pro Convert Encoder, Pro Convert Decoder
HTTP/1.1 200 OK Content-Type: application/json { "status": 0, "reconnect": true }