describe_application_status
async
¶
describe_application_status(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
instance_ids: Optional[InstanceIdList] = None,
filters: Optional[FilterList] = None,
max_results: Optional[DescribeApplicationStatusMaxResults] = None,
next_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeApplicationStatusResult
Describes the aggregated application health status for the specified instances. The following rules apply:
-
The instance-level status is derived from all application status checks with the aggregation setting set to
included. -
Use
DescribeApplicationStatusChecksto view the configuration of individual checks. -
Use
EnableApplicationStatusCheckSuppressionto temporarily suppress health check results from affecting the instance-level status.
Parameters:
-
instance_ids(Optional[InstanceIdList], default:None) –The IDs of the instances for which to describe application status.
-
filters(Optional[FilterList], default:None) –The filters.
-
availability-zone-id– The ID of the Availability Zone. -
status– The instance-level application status. For valid values and their meanings, seeApplicationStatus.
-
-
max_results(Optional[DescribeApplicationStatusMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the operation, 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.
Examples:
To describe application status for instances This example describes the application status for the specified instance.
>>> await client.describe_application_status(instance_ids=['i-0123456789abcdef0'])
To describe application status using filters
This example uses a filter to describe impaired application status in a specific Availability Zone.
>>> await client.describe_application_status(filters=[{'Name': 'availability-zone-id', 'Values': ['use1-az1']}, {'Name': 'status', 'Values': ['impaired']}], max_results=10)
Source code in docs_src/capo_ec2/_services/async_ec2.py
21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 | |