describe_host_reservations
¶
describe_host_reservations(
*,
config_overrides: Optional[EC2ClientConfig] = None,
filter: Optional[FilterList] = None,
host_reservation_id_set: Optional[HostReservationIdSet] = None,
max_results: Optional[Integer] = None,
next_token: Optional[String] = None,
) -> DescribeHostReservationsResult
Describes reservations that are associated with Dedicated Hosts in your account.
Parameters:
-
filter(Optional[FilterList], default:None) –The filters.
-
instance-family- The instance family (for example,m4). -
payment-option- The payment option (NoUpfront|PartialUpfront|AllUpfront). -
state- The state of the reservation (payment-pending|payment-failed|active|retired). -
tag:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwnerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
-
-
host_reservation_id_set(Optional[HostReservationIdSet], default:None) –The host reservation IDs.
-
max_results(Optional[Integer], 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. This value can be between 5 and 500. IfmaxResultsis given a larger value than 500, you receive an error. -
next_token(Optional[String], default:None) –The token to use to retrieve the next page of results.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
25210 25211 25212 25213 25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 | |