UpdateServerConfig - Migration Hub Strategy Recommendations

UpdateServerConfig

Updates the configuration of the specified server.

Request Syntax

POST /update-server-config/ HTTP/1.1 Content-type: application/json { "serverId": "string", "strategyOption": { "isPreferred": boolean, "strategy": "string", "targetDestination": "string", "toolName": "string" } }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

serverId

The ID of the server.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 27.

Pattern: .*\S.*

Required: Yes

strategyOption

The preferred strategy options for the application component. See the response from GetServerStrategies.

Type: StrategyOption object

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerException

The server experienced an internal error. Try again.

HTTP Status Code: 500

ResourceNotFoundException

The specified ID in the request is not found.

HTTP Status Code: 404

ThrottlingException

The request was denied due to request throttling.

HTTP Status Code: 429

ValidationException

The request body isn't valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: