Skip to main content

servers

Creates, updates, deletes, gets or lists a servers resource.

Overview

Nameservers
TypeResource
Idaws.migrationhubstrategy.servers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe server ID. (pattern: <code>^[0-9a-b]+</code>)
namestringThe name of the server.
antipattern_report_s3_objectobjectContains the S3 bucket name and the Amazon S3 key name.
antipattern_report_statusstringThe status of the anti-pattern report generation. (FAILED, IN_PROGRESS, SUCCESS)
antipattern_report_status_messagestringA message about the status of the anti-pattern report generation. (pattern: <code>.\S.</code>)
application_component_strategy_summaryarrayA list of strategy summaries.
data_collection_statusstringThe status of assessment for the server. (dataCollectionTaskToBeScheduled, dataCollectionTaskScheduled, dataCollectionTaskStarted, dataCollectionTaskStopped, dataCollectionTaskSuccess, dataCollectionTaskFailed, dataCollectionTaskPartialSuccess)
last_analyzed_timestampstring (date-time)The timestamp of when the server was assessed.
list_antipattern_severity_summaryarrayA list of anti-pattern severity summaries.
recommendation_setobjectA set of recommendations.
server_errorobjectThe error in server analysis.
server_typestringThe type of server. (pattern: <code>.\S.</code>)
status_messagestringA message about the status of data collection, which contains detailed descriptions of any error messages. (pattern: <code>.\S.</code>)
system_infoobjectSystem information about the server.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_serversselectregionReturns a list of all the servers.
update_server_configupdateregion, serverIdUpdates the configuration of the specified server.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of all the servers.

SELECT
id,
name,
antipattern_report_s3_object,
antipattern_report_status,
antipattern_report_status_message,
application_component_strategy_summary,
data_collection_status,
last_analyzed_timestamp,
list_antipattern_severity_summary,
recommendation_set,
server_error,
server_type,
status_message,
system_info
FROM aws.migrationhubstrategy.servers
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the configuration of the specified server.

UPDATE aws.migrationhubstrategy.servers
SET
serverId = '{{ serverId }}',
strategyOption = '{{ strategyOption }}'
WHERE
region = '{{ region }}' --required
AND serverId = '{{ serverId }}' --required;