list_restore_jobs
async
¶
list_restore_jobs(
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
next_token: Optional[string] = None,
max_results: Optional[MaxResults] = None,
by_account_id: Optional[AccountId] = None,
by_resource_type: Optional[ResourceType] = None,
by_created_before: Optional[timestamp] = None,
by_created_after: Optional[timestamp] = None,
by_status: Optional[RestoreJobStatus] = None,
by_complete_before: Optional[timestamp] = None,
by_complete_after: Optional[timestamp] = None,
by_restore_testing_plan_arn: Optional[ARN] = None,
by_parent_job_id: Optional[string] = None,
) -> ListRestoreJobsOutput
Returns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process.
Parameters:
-
next_token(Optional[string], default:None) –The next item following a partial list of returned items. For example, if a request is made to return
MaxResultsnumber of items,NextTokenallows you to return more items in your list starting at the location pointed to by the next token. -
max_results(Optional[MaxResults], default:None) –The maximum number of items to be returned.
-
by_account_id(Optional[AccountId], default:None) –The account ID to list the jobs from. Returns only restore jobs associated with the specified account ID.
-
by_resource_type(Optional[ResourceType], default:None) –Include this parameter to return only restore jobs for the specified resources:
-
Aurorafor Amazon Aurora -
CloudFormationfor CloudFormation -
DocumentDBfor Amazon DocumentDB (with MongoDB compatibility) -
DynamoDBfor Amazon DynamoDB -
EBSfor Amazon Elastic Block Store -
EC2for Amazon Elastic Compute Cloud -
EFSfor Amazon Elastic File System -
EKSfor Amazon Elastic Kubernetes Service -
FSxfor Amazon FSx -
Neptunefor Amazon Neptune -
RDSfor Amazon Relational Database Service -
Redshiftfor Amazon Redshift -
S3for Amazon Simple Storage Service (Amazon S3) -
SAP HANA on Amazon EC2for SAP HANA databases on Amazon Elastic Compute Cloud instances -
Storage Gatewayfor Storage Gateway -
Timestreamfor Amazon Timestream -
VirtualMachinefor VMware virtual machines
-
-
by_created_before(Optional[timestamp], default:None) –Returns only restore jobs that were created before the specified date.
-
by_created_after(Optional[timestamp], default:None) –Returns only restore jobs that were created after the specified date.
-
by_status(Optional[RestoreJobStatus], default:None) –Returns only restore jobs associated with the specified job status.
-
by_complete_before(Optional[timestamp], default:None) –Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
-
by_complete_after(Optional[timestamp], default:None) –Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
-
by_restore_testing_plan_arn(Optional[ARN], default:None) –This returns only restore testing jobs that match the specified resource Amazon Resource Name (ARN).
-
by_parent_job_id(Optional[string], default:None) –This is a filter to list child (nested) restore jobs based on parent restore job ID.
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
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
5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 | |