调用ModifySourceServerAttribute修改一个迁移源的名称和描述。
接口说明
使用该API修改迁移源的名称和描述时,对迁移源的状态没有要求。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifySourceServerAttribute |
系统规定参数。取值:ModifySourceServerAttribute。 |
SourceId | String | 是 | s-bp17m1vi6x20c6g6**** |
迁移源ID。 |
Name | String | 否 | testSourceServerName |
迁移源名称。长度为2~128个英文或中文字符。必须以大小写字母或中文开头,不能以 |
Description | String | 否 | This is a source server. |
迁移源描述。长度为0~256个字符,不能以 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
请求ID。 |
示例
请求示例
http(s)://smc.aliyuncs.com/?Action=ModifySourceServerAttribute
&SourceId=s-bp17m1vi6x20c6g6****
&Name=testSourceServerName
&Description=This is a source server.
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteReplicationJobResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DeleteReplicationJobResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | SourceServerState.Invalid | The specified source server status is invalid. | 无效的迁移源状态。 |
400 | SourceServerName.Duplicate | The specified source server name already exists. Please modify the source server name. | 迁移源名称已存在,请修改迁移源名称。 |
500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |
访问错误中心查看更多错误码。