describe_instance_sql_ha_history_states
async
¶
describe_instance_sql_ha_history_states(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
instance_ids: Optional[InstanceIdStringList] = None,
start_time: Optional[MillisecondDateTime] = None,
end_time: Optional[MillisecondDateTime] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[DescribeInstanceSqlHaStatesRequestMaxResultsInteger] = None,
filters: Optional[FilterList] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeInstanceSqlHaHistoryStatesResult
Describes the historical SQL Server High Availability states for Amazon EC2 instances that are enabled for Amazon EC2 High Availability for SQL Server monitoring.
Parameters:
-
instance_ids(Optional[InstanceIdStringList], default:None) –The IDs of the SQL Server High Availability instances to describe. If omitted, the API returns historical states for all SQL Server High Availability instances.
-
start_time(Optional[MillisecondDateTime], default:None) –The start data and time of the period for which to get the historical SQL Server High Availability states. If omitted, the API returns all available historical states.
Timezone: UTC
Format:
YYYY-MM-DDThh:mm:ss.sssZ -
end_time(Optional[MillisecondDateTime], default:None) –The end data and time of the period for which to get historical SQL Server High Availability states. If omitted, the API returns historical states up to the current date and time.
Timezone: UTC
Format:
YYYY-MM-DDThh:mm:ss.sssZ -
next_token(Optional[NextToken], default:None) –The token to use to retrieve the next page of results.
-
max_results(Optional[DescribeInstanceSqlHaStatesRequestMaxResultsInteger], default:None) –The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned
nextTokenvalue. -
filters(Optional[FilterList], default:None) –One or more filters to apply to the results. Supported filters include:
-
tag:- The tag key and value pair assigned to the instance. For example, to find all instances tagged withOwner:TeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The tag key assigned to the instance. -
haStatus- The SQL Server High Availability status of the SQL Server High Availability instance (processing|active|standby|invalid). -
sqlServerLicenseUsage- The license type for the SQL Server license (full|waived).
-
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271 27272 27273 27274 27275 27276 27277 27278 27279 27280 27281 27282 27283 27284 27285 27286 27287 27288 27289 27290 27291 27292 27293 27294 27295 27296 27297 27298 27299 27300 27301 27302 27303 27304 27305 27306 27307 27308 27309 27310 27311 27312 27313 27314 27315 | |