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
6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 | |