Help Center> Server Migration Service> API Reference> APIs> Source Server Management> Modifying the Name of the Source Server with a Specified ID

Modifying the Name of the Source Server with a Specified ID

Function

This API is used to modify the source name of the source server on the SMS server so that users can manage the source servers through SMS.

URI

PUT /v1/sms/sources/{source_id}

For details about the parameters, see Table 1.
Table 1 Parameter description

Parameter

Mandatory

Description

source_id

Yes

Specifies the source server ID.

Request

Request parameters

For details about the request parameters, see Table 2.

Table 2 Request parameters

Parameter

Mandatory

Type

Description

name

Yes

String

Specifies the new source server name.

Response

None

Example

  • Example request
    {
      "name": "newName"
    }
  • Example response

    None

Status Code

For details about the status code, see Status Code.

Error Code

For details, see Error Code.