describe_instance_sql_ha_states
async
¶
describe_instance_sql_ha_states(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
instance_ids: Optional[InstanceIdStringList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[DescribeInstanceSqlHaStatesRequestMaxResultsInteger] = None,
filters: Optional[FilterList] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeInstanceSqlHaStatesResult
Describes the 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 SQL Server High Availability states for all SQL Server High Availability instances.
-
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
27317 27318 27319 27320 27321 27322 27323 27324 27325 27326 27327 27328 27329 27330 27331 27332 27333 27334 27335 27336 27337 27338 27339 27340 27341 27342 27343 27344 27345 27346 27347 27348 27349 27350 27351 27352 27353 27354 27355 27356 27357 27358 27359 27360 27361 27362 27363 27364 27365 27366 27367 27368 27369 27370 27371 27372 27373 27374 27375 27376 27377 27378 27379 27380 | |