StartSearchJob
This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.
You can optionally include ClientToken, EncryptionKeyArn, Name, and/or Tags.
Request Syntax
PUT /search-jobs HTTP/1.1
Content-type: application/json
{
"ClientToken": "string
",
"EncryptionKeyArn": "string
",
"ItemFilters": {
"EBSItemFilters": [
{
"CreationTimes": [
{
"Operator": "string
",
"Value": number
}
],
"FilePaths": [
{
"Operator": "string
",
"Value": "string
"
}
],
"LastModificationTimes": [
{
"Operator": "string
",
"Value": number
}
],
"Sizes": [
{
"Operator": "string
",
"Value": number
}
]
}
],
"S3ItemFilters": [
{
"CreationTimes": [
{
"Operator": "string
",
"Value": number
}
],
"ETags": [
{
"Operator": "string
",
"Value": "string
"
}
],
"ObjectKeys": [
{
"Operator": "string
",
"Value": "string
"
}
],
"Sizes": [
{
"Operator": "string
",
"Value": number
}
],
"VersionIds": [
{
"Operator": "string
",
"Value": "string
"
}
]
}
]
},
"Name": "string
",
"SearchScope": {
"BackupResourceArns": [ "string
" ],
"BackupResourceCreationTime": {
"CreatedAfter": number
,
"CreatedBefore": number
},
"BackupResourceTags": {
"string
" : "string
"
},
"BackupResourceTypes": [ "string
" ],
"SourceResourceArns": [ "string
" ]
},
"Tags": {
"string
" : "string
"
}
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- ClientToken
-
Include this parameter to allow multiple identical calls for idempotency.
A client token is valid for 8 hours after the first request that uses it is completed. After this time, any request with the same token is treated as a new request.
Type: String
Required: No
- EncryptionKeyArn
-
The encryption key for the specified search job.
Type: String
Required: No
- ItemFilters
-
Item Filters represent all input item properties specified when the search was created.
Contains either EBSItemFilters or S3ItemFilters
Type: ItemFilters object
Required: No
- Name
-
Include alphanumeric characters to create a name for this search job.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 500.
Required: No
- SearchScope
-
This object can contain BackupResourceTypes, BackupResourceArns, BackupResourceCreationTime, BackupResourceTags, and SourceResourceArns to filter the recovery points returned by the search job.
Type: SearchScope object
Required: Yes
- Tags
-
List of tags returned by the operation.
Type: String to string map
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"CreationTime": number,
"SearchJobArn": "string",
"SearchJobIdentifier": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- CreationTime
-
The date and time that a job was created, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.Type: Timestamp
- SearchJobArn
-
The unique string that identifies the Amazon Resource Name (ARN) of the specified search job.
Type: String
- SearchJobIdentifier
-
The unique string that specifies the search job.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have sufficient access to perform this action.
HTTP Status Code: 403
- ConflictException
-
This exception occurs when a conflict with a previous successful operation is detected. This generally occurs when the previous operation did not have time to propagate to the host serving the current request.
A retry (with appropriate backoff logic) is the recommended response to this exception.
HTTP Status Code: 409
- InternalServerException
-
An internal server error occurred. Retry your request.
HTTP Status Code: 500
- ServiceQuotaExceededException
-
The request denied due to exceeding the quota limits permitted.
HTTP Status Code: 402
- ThrottlingException
-
The request was denied due to request throttling.
HTTP Status Code: 429
- ValidationException
-
The input fails to satisfy the constraints specified by a service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: