list_restore_job_summaries
¶
list_restore_job_summaries(
*,
config_overrides: Optional[BackupClientConfig] = None,
account_id: Optional[AccountId] = None,
state: Optional[RestoreJobState] = None,
resource_type: Optional[ResourceType] = None,
aggregation_period: Optional[AggregationPeriod] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[string] = None,
) -> ListRestoreJobSummariesOutput
This request obtains a summary of restore jobs created or running within the the most recent 14 days. You can include parameters AccountID, State, ResourceType, AggregationPeriod, MaxResults, or NextToken to filter results.
This request returns a summary that contains Region, Account, State, RestourceType, 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[RestoreJobState], 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. -
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.
-
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) –This parameter sets 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/backup.py
6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 | |