All Products
Search
Document Center

Server Migration Center:AssociateSourceServers

Last Updated:Oct 29, 2024

Associates multiple migration sources with a workgroup.

Operation description

A migration source can be associated with only one workgroup.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
WorkgroupIdstringYes

The ID of the workgroup.

w-***
SourceIdarrayYes

The IDs of migration sources. You can specify up to 50 IDs.

stringYes

The ID of the migration source.

s-bp1e2fsl57knvuug****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

C8B26B44-0189-443E-9816-D951F59623A9

Examples

Sample success responses

JSONformat

{
  "RequestId": "C8B26B44-0189-443E-9816-D951F59623A9"
}

Error codes

HTTP status codeError codeError messageDescription
403Forbidden.UnauthorizedA required authorization for the specified action is not supplied.-
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.