describe_application_status
¶
describe_application_status(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> 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.
>>> 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/ec2.py
21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 | |