Modifies the name and description of a source server.

Description

The operation can be called regardless of the status of the source server.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifySourceServerAttribute

The operation that you want to perform. Set the value to ModifySourceServerAttribute.

SourceId String Yes s-bp17m1vi6x20c6g6****

The ID of the source server.

Name String No testSourceServerName

The name of the source server. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).

Description String No This is a source server.

The description of the source server. The description can be up to 256 characters in length. It cannot start with http:// or https://.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://smc.aliyuncs.com/?Action=ModifySourceServerAttribute
&SourceId=s-bp17m1vi6x20c6g6****
&<Common request parameters>

Sample success responses

XML format

<DeleteReplicationJobResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DeleteReplicationJobResponse>

JSON format

{
    "RequestId":"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"    
}

Error codes

HttpCode Error code Error message Description
400 SourceServerState.Invalid The specified source server status is invalid. The error message returned because the operation is not supported when the source server is in the current state.
400 SourceServerName.Duplicate The specified source server name already exists. Please modify the source server name. The error message returned because the specified source server name already exists.
500 InternalError An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. The error message returned because an internal error has occurred. Try again later. If the error persists, submit a ticket.

For a list of error codes, visit the API Error Center.