All Products
Search
Document Center

Server Migration Center:DeleteSourceServer

Last Updated:Mar 03, 2024

Deletes a migration source.

Operation description

Usage notes

  • If a migration job is created for the migration source and the migration job is in the Running state, the migration source cannot be deleted.
  • If a migration job is created for the migration source but the migration job is not in the Running state, you can set the Force parameter to true to delete the migration source.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIdstringYes

The migration source ID.

s-bp17m1vi6x20c6g6****
ForcebooleanNo

Specifies whether to forcibly delete the migration source. Valid values:

  • true: forcibly deletes the migration source and the migration job created for the migration source, and releases the intermediate resources of the migration job.
  • false: does not delete the migration source if a migration job is created for the migration source.
true

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400SourceServerState.InvalidThe specified source server status is invalid.The specified source server status is invalid.
400SourceServer.WithRunningReplicationJobThe specified source server has related replication jobs that are running.The specified source server has related replication jobs that are running.
400ReplicationJob.RelatedThe specified source server has related replication jobs.The specified source server has related replication jobs.
500InternalErrorAn error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket.An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history