Configuration for running a transfer.
JSON representation | |
---|---|
{ "objectConditions": { object ( |
Fields | ||
---|---|---|
objectConditions |
Only objects that satisfy these object conditions are included in the set of data source and data sink objects. Object conditions based on objects' "last modification time" do not exclude objects in a data sink. |
|
transferOptions |
If the option |
|
gcsDataSink |
A Cloud Storage data sink. |
|
Union field data_source . The read source of the data. data_source can be only one of the following: |
||
gcsDataSource |
A Cloud Storage data source. |
|
awsS3DataSource |
An AWS S3 data source. |
|
httpDataSource |
An HTTP URL data source. |
|
azureBlobStorageDataSource |
An Azure Blob Storage data source. |
GcsData
In a GcsData resource, an object's name is the Cloud Storage object's name and its "last modification time" refers to the object's updated
property of Cloud Storage objects, which changes when the content or the metadata of the object is updated.
JSON representation | |
---|---|
{ "bucketName": string, "path": string } |
Fields | |
---|---|
bucketName |
Required. Cloud Storage bucket name (see Bucket Name Requirements). |
path |
Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'. (must meet Object Name Requirements](https://cloud.google.com/storage/docs/naming#objectnames)). |
AwsS3Data
An AwsS3Data resource can be a data source, but not a data sink. In an AwsS3Data resource, an object's name is the S3 object's key name.
JSON representation | |
---|---|
{
"bucketName": string,
"awsAccessKey": {
object ( |
Fields | |
---|---|
bucketName |
Required. S3 Bucket name (see Creating a bucket). |
awsAccessKey |
Required. Input only. AWS access key used to sign the API requests to the AWS S3 bucket. Permissions on the bucket must be granted to the access ID of the AWS access key. For information on our data retention policy for user credentials, see User credentials. |
path |
Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'. |
AwsAccessKey
AWS access key (see AWS Security Credentials).
For information on our data retention policy for user credentials, see User credentials.
JSON representation | |
---|---|
{ "accessKeyId": string, "secretAccessKey": string } |
Fields | |
---|---|
accessKeyId |
Required. AWS access key ID. |
secretAccessKey |
Required. AWS secret access key. This field is not returned in RPC responses. |
HttpData
An HttpData resource specifies a list of objects on the web to be transferred over HTTP. The information of the objects to be transferred is contained in a file referenced by a URL. The first line in the file must be "TsvHttpData-1.0"
, which specifies the format of the file. Subsequent lines specify the information of the list of objects, one object per list entry. Each entry has the following tab-delimited fields:
HTTP URL — The location of the object.
Length — The size of the object in bytes.
MD5 — The base64-encoded MD5 hash of the object.
For an example of a valid TSV file, see Transferring data from URLs.
When transferring data based on a URL list, keep the following in mind:
When an object located at
http(s)://hostname:port/<URL-path>
is transferred to a data sink, the name of the object at the data sink is<hostname>/<URL-path>
.If the specified size of an object does not match the actual size of the object fetched, the object will not be transferred.
If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer will fail.
Ensure that each URL you specify is publicly accessible. For example, in Cloud Storage you can share an object publicly and get a link to it.
Storage Transfer Service obeys
robots.txt
rules and requires the source HTTP server to supportRange
requests and to return aContent-Length
header in each response.ObjectConditions
have no effect when filtering objects to transfer.
JSON representation | |
---|---|
{ "listUrl": string } |
Fields | |
---|---|
listUrl |
Required. The URL that points to the file that stores the object list entries. This file must allow public access. Currently, only URLs with HTTP and HTTPS schemes are supported. |
AzureBlobStorageData
An AzureBlobStorageData resource can be a data source, but not a data sink. An AzureBlobStorageData resource represents one Azure container. The storage account determines the Azure endpoint. In an AzureBlobStorageData resource, a blobs's name is the Azure Blob Storage blob's key name.
JSON representation | |
---|---|
{
"storageAccount": string,
"azureCredentials": {
object ( |
Fields | |
---|---|
storageAccount |
Required. The name of the Azure Storage account. |
azureCredentials |
Required. Input only. Credentials used to authenticate API requests to Azure. For information on our data retention policy for user credentials, see User credentials. |
container |
Required. The container to transfer from the Azure Storage account. |
path |
Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'. |
AzureCredentials
Azure credentials
For information on our data retention policy for user credentials, see User credentials.
JSON representation | |
---|---|
{ "sasToken": string } |
Fields | |
---|---|
sasToken |
Required. Azure shared access signature. (see Grant limited access to Azure Storage resources using shared access signatures (SAS)). |
ObjectConditions
Conditions that determine which objects will be transferred. Applies only to Cloud Data Sources such as S3, Azure, and Cloud Storage.
The "last modification time" refers to the time of the last change to the object's content or metadata — specifically, this is the updated
property of Cloud Storage objects, the LastModified
field of S3 objects, and the Last-Modified
header of Azure blobs.
JSON representation | |
---|---|
{ "minTimeElapsedSinceLastModification": string, "maxTimeElapsedSinceLastModification": string, "includePrefixes": [ string ], "excludePrefixes": [ string ], "lastModifiedSince": string, "lastModifiedBefore": string } |
Fields | |
---|---|
minTimeElapsedSinceLastModification |
If specified, only objects with a "last modification time" before For each A duration in seconds with up to nine fractional digits, terminated by ' |
maxTimeElapsedSinceLastModification |
If specified, only objects with a "last modification time" on or after For each A duration in seconds with up to nine fractional digits, terminated by ' |
includePrefixes[] |
If you specify The following are requirements of
The max size of For more information, see Filtering objects from transfers. |
excludePrefixes[] |
If you specify The following are requirements of
The max size of For more information, see Filtering objects from transfers. |
lastModifiedSince |
If specified, only objects with a "last modification time" on or after this timestamp and objects that don't have a "last modification time" are transferred. The
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
lastModifiedBefore |
If specified, only objects with a "last modification time" before this timestamp and objects that don't have a "last modification time" will be transferred. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
TransferOptions
TransferOptions define the actions to be performed on objects in a transfer.
JSON representation | |
---|---|
{ "overwriteObjectsAlreadyExistingInSink": boolean, "deleteObjectsUniqueInSink": boolean, "deleteObjectsFromSourceAfterTransfer": boolean } |
Fields | |
---|---|
overwriteObjectsAlreadyExistingInSink |
When to overwrite objects that already exist in the sink. The default is that only objects that are different from the source are ovewritten. If true, all objects in the sink whose name matches an object in the source will be overwritten with the source object. |
deleteObjectsUniqueInSink |
Whether objects that exist only in the sink should be deleted. Note: This option and |
deleteObjectsFromSourceAfterTransfer |
Whether objects should be deleted from the source after they are transferred to the sink. Note: This option and |