list_backup_jobs
¶
list_backup_jobs(
*,
config_overrides: Optional[BackupClientConfig] = None,
next_token: Optional[string] = None,
max_results: Optional[MaxResults] = None,
by_resource_arn: Optional[ARN] = None,
by_state: Optional[BackupJobState] = None,
by_backup_vault_name: Optional[BackupVaultName] = None,
by_created_before: Optional[timestamp] = None,
by_created_after: Optional[timestamp] = None,
by_resource_type: Optional[ResourceType] = None,
by_account_id: Optional[AccountId] = None,
by_complete_after: Optional[timestamp] = None,
by_complete_before: Optional[timestamp] = None,
by_parent_job_id: Optional[string] = None,
by_message_category: Optional[string] = None,
) -> ListBackupJobsOutput
Returns a list of existing backup jobs for an authenticated account for the last 30 days. For a longer period of time, consider using these monitoring tools.
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_resource_arn(Optional[ARN], default:None) –Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).
-
by_state(Optional[BackupJobState], default:None) –Returns only backup jobs that are in the specified state.
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 for
Completed with issues, run two GET requests, and subtract the second, smaller number:GET /backup-jobs/?state=COMPLETED
GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED
-
by_backup_vault_name(Optional[BackupVaultName], default:None) –Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.
-
by_created_before(Optional[timestamp], default:None) –Returns only backup jobs that were created before the specified date.
-
by_created_after(Optional[timestamp], default:None) –Returns only backup jobs that were created after the specified date.
-
by_resource_type(Optional[ResourceType], default:None) –Returns only backup 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_account_id(Optional[AccountId], default:None) –The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.
If used from an Organizations management account, passing
*returns all jobs across the organization. -
by_complete_after(Optional[timestamp], default:None) –Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
-
by_complete_before(Optional[timestamp], default:None) –Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
-
by_parent_job_id(Optional[string], default:None) –This is a filter to list child (nested) jobs based on parent job ID.
-
by_message_category(Optional[string], default:None) –This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.
Example strings may include
AccessDenied,SUCCESS,AGGREGATE_ALL, andInvalidParameters.View Monitoring
The wildcard () returns count of all message categories.
AGGREGATE_ALLaggregates job counts for all message categories and returns the sum.
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
4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 | |