list_backup_job_summaries
async
¶
list_backup_job_summaries(
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
account_id: Optional[AccountId] = None,
state: Optional[BackupJobStatus] = None,
resource_type: Optional[ResourceType] = None,
message_category: Optional[MessageCategory] = None,
aggregation_period: Optional[AggregationPeriod] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[string] = None,
) -> ListBackupJobSummariesOutput
This is a request for a summary of backup jobs created or running within the most recent 14 days. You can include parameters AccountID, State, ResourceType, MessageCategory, AggregationPeriod, MaxResults, or NextToken to filter results.
This request returns a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs.
Parameters:
-
account_id(Optional[AccountId], default:None) –Returns the job count for the specified account.
If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned.
Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization.
AGGREGATE_ALLaggregates job counts from all accounts within the authenticated organization, then returns the sum. -
state(Optional[BackupJobStatus], default:None) –This parameter returns the job count for jobs with the specified state.
The the value ANY returns count of all states.
AGGREGATE_ALLaggregates job counts for all states and returns the sum.Completed with issuesis a status found only in the Backup console. For API, this status refers to jobs with a state ofCOMPLETEDand aMessageCategorywith a value other thanSUCCESS; that is, the status is completed but comes with a status message. To obtain the job count forCompleted with issues, run two GET requests, and subtract the second, smaller number:GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=COMPLETED
-
resource_type(Optional[ResourceType], default:None) –Returns the job count for the specified resource type. Use request
GetSupportedResourceTypesto obtain strings for supported resource types.The the value ANY returns count of all resource types.
AGGREGATE_ALLaggregates job counts for all resource types and returns the sum.The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
-
message_category(Optional[MessageCategory], default:None) –This parameter returns the job count for the specified message category.
Example accepted strings include
AccessDenied,Success, andInvalidParameters. See Monitoring for a list of accepted MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALLaggregates job counts for all message categories and returns the sum. -
aggregation_period(Optional[AggregationPeriod], default:None) –The period for the returned results.
-
ONE_DAY- The daily job count for the prior 14 days. -
SEVEN_DAYS- The aggregated job count for the prior 7 days. -
FOURTEEN_DAYS- The aggregated job count for prior 14 days.
-
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to be returned.
The value is an integer. Range of accepted values is from 1 to 500.
-
next_token(Optional[string], default:None) –The next item following a partial list of returned resources. For example, if a request is made to return
MaxResultsnumber of resources,NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup/_services/async_backup.py
4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 | |