list_servers
async
¶
list_servers(
*,
config_overrides: Optional[AsyncMigrationHubStrategyClientConfig] = None,
server_criteria: Optional[ServerCriteria] = None,
filter_value: Optional[String] = None,
sort: Optional[SortOrder] = None,
group_id_filter: Optional[GroupIds] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResult] = None,
) -> ListServersResponse
Returns a list of all the servers.
Parameters:
-
server_criteria(Optional[ServerCriteria], default:None) –Criteria for filtering servers.
-
filter_value(Optional[String], default:None) –Specifies the filter value, which is based on the type of server criteria. For example, if
serverCriteriaisOS_NAME, and thefilterValueis equal toWindowsServer, thenListServersreturns all of the servers matching the OS nameWindowsServer. -
sort(Optional[SortOrder], default:None) –Specifies whether to sort by ascending (
ASC) or descending (DESC) order. -
group_id_filter(Optional[GroupIds], default:None) –Specifies the group ID to filter on.
-
next_token(Optional[NextToken], default:None) –The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set
maxResultsto 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10. -
max_results(Optional[MaxResult], default:None) –The maximum number of items to include in the response. The maximum value is 100.
Raises:
-
AccessDeniedException–The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
-
InternalServerException–The server experienced an internal error. Try again.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request body isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_migrationhubstrategy/_services/async_migration_hub_strategy.py
1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 | |