describe_instance_sql_ha_history_states
¶
describe_instance_sql_ha_history_states(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 26911 26912 26913 26914 26915 26916 26917 26918 26919 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 26932 26933 26934 26935 26936 26937 26938 26939 26940 26941 26942 26943 | |