describe_instance_sql_ha_states
¶
describe_instance_sql_ha_states(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
26945 26946 26947 26948 26949 26950 26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000 27001 27002 27003 27004 27005 27006 27007 | |