REST Resource: transferOperations

Resource: TransferOperation

A description of the execution of a transfer.

JSON representation
{
  "name": string,
  "project_id": string,
  "transfer_spec": {
    object(TransferSpec)
  },
  "start_time": string,
  "end_time": string,
  "status": enum(Status),
  "counters": {
    object(TransferCounters)
  },
  "error_breakdowns": [
    {
      object(ErrorSummary)
    }
  ],
  "transfer_job_name": string
}
Fields
name

string

A globally unique ID assigned by the system.

project_id

string

The ID of the Google Cloud Platform Console project that owns the operation. Required.

transfer_spec

object(TransferSpec)

Transfer specification. Required.

start_time

string (Timestamp format)

Start time of this transfer execution.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

end_time

string (Timestamp format)

End time of this transfer execution.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

status

enum(Status)

Status of the transfer operation.

counters

object(TransferCounters)

Information about the progress of the transfer operation.

error_breakdowns[]

object(ErrorSummary)

Summarizes errors encountered with sample error log entries.

transfer_job_name

string

The name of the transfer job that triggers this transfer operation.

Status

The status of a TransferOperation.

Enums
STATUS_UNSPECIFIED Zero is an illegal value.
IN_PROGRESS In progress.
PAUSED Paused.
SUCCESS Completed successfully.
FAILED Terminated due to an unrecoverable failure.
ABORTED Aborted by the user.

TransferCounters

A collection of counters that report the progress of a transfer operation.

JSON representation
{
  "objects_found_from_source": string,
  "bytes_found_from_source": string,
  "objects_found_only_from_sink": string,
  "bytes_found_only_from_sink": string,
  "objects_from_source_skipped_by_sync": string,
  "bytes_from_source_skipped_by_sync": string,
  "objects_copied_to_sink": string,
  "bytes_copied_to_sink": string,
  "objects_deleted_from_source": string,
  "bytes_deleted_from_source": string,
  "objects_deleted_from_sink": string,
  "bytes_deleted_from_sink": string,
  "objects_from_source_failed": string,
  "bytes_from_source_failed": string,
  "objects_failed_to_delete_from_sink": string,
  "bytes_failed_to_delete_from_sink": string
}
Fields
objects_found_from_source

string (int64 format)

Objects found in the data source that are scheduled to be transferred, excluding any that are filtered based on object conditions or skipped due to sync.

bytes_found_from_source

string (int64 format)

Bytes found in the data source that are scheduled to be transferred, excluding any that are filtered based on object conditions or skipped due to sync.

objects_found_only_from_sink

string (int64 format)

Objects found only in the data sink that are scheduled to be deleted.

bytes_found_only_from_sink

string (int64 format)

Bytes found only in the data sink that are scheduled to be deleted.

objects_from_source_skipped_by_sync

string (int64 format)

Objects in the data source that are not transferred because they already exist in the data sink.

bytes_from_source_skipped_by_sync

string (int64 format)

Bytes in the data source that are not transferred because they already exist in the data sink.

objects_copied_to_sink

string (int64 format)

Objects that are copied to the data sink.

bytes_copied_to_sink

string (int64 format)

Bytes that are copied to the data sink.

objects_deleted_from_source

string (int64 format)

Objects that are deleted from the data source.

bytes_deleted_from_source

string (int64 format)

Bytes that are deleted from the data source.

objects_deleted_from_sink

string (int64 format)

Objects that are deleted from the data sink.

bytes_deleted_from_sink

string (int64 format)

Bytes that are deleted from the data sink.

objects_from_source_failed

string (int64 format)

Objects in the data source that failed to be transferred or that failed to be deleted after being transferred.

bytes_from_source_failed

string (int64 format)

Bytes in the data source that failed to be transferred or that failed to be deleted after being transferred.

objects_failed_to_delete_from_sink

string (int64 format)

Objects that failed to be deleted from the data sink.

bytes_failed_to_delete_from_sink

string (int64 format)

Bytes that failed to be deleted from the data sink.

ErrorSummary

A summary of errors by error code, plus a count and sample error log entries.

JSON representation
{
  "error_code": enum(Code),
  "error_count": string,
  "error_log_entries": [
    {
      object(ErrorLogEntry)
    }
  ]
}
Fields
error_code

enum(Code)

Required.

error_count

string (int64 format)

Count of this type of error. Required.

error_log_entries[]

object(ErrorLogEntry)

Error samples.

Code

The canonical error codes for Google APIs.

Enums
OK

Not an error; returned on success

HTTP Mapping: 200 OK

CANCELLED

The operation was cancelled, typically by the caller.

HTTP Mapping: 499 Client Closed Request

UNKNOWN

Unknown error. For example, this error may be returned when a Status value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error.

HTTP Mapping: 500 Internal Server Error

INVALID_ARGUMENT

The client specified an invalid argument. Note that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).

HTTP Mapping: 400 Bad Request

DEADLINE_EXCEEDED

The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.

HTTP Mapping: 504 Gateway Timeout

NOT_FOUND

Some requested entity (e.g., file or directory) was not found.

Note to server developers: if a request is denied for an entire class of users, such as gradual feature rollout or undocumented whitelist, NOT_FOUND may be used. If a request is denied for some users within a class of users, such as user-based access control, PERMISSION_DENIED must be used.

HTTP Mapping: 404 Not Found

ALREADY_EXISTS

The entity that a client attempted to create (e.g., file or directory) already exists.

HTTP Mapping: 409 Conflict

PERMISSION_DENIED

The caller does not have permission to execute the specified operation. PERMISSION_DENIED must not be used for rejections caused by exhausting some resource (use RESOURCE_EXHAUSTED instead for those errors). PERMISSION_DENIED must not be used if the caller can not be identified (use UNAUTHENTICATED instead for those errors). This error code does not imply the request is valid or the requested entity exists or satisfies other pre-conditions.

HTTP Mapping: 403 Forbidden

UNAUTHENTICATED

The request does not have valid authentication credentials for the operation.

HTTP Mapping: 401 Unauthorized

RESOURCE_EXHAUSTED

Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.

HTTP Mapping: 429 Too Many Requests

FAILED_PRECONDITION

The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc.

Service implementors can use the following guidelines to decide between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE: (a) Use UNAVAILABLE if the client can retry just the failing call. (b) Use ABORTED if the client should retry at a higher level (e.g., when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence). (c) Use FAILED_PRECONDITION if the client should not retry until the system state has been explicitly fixed. E.g., if an "rmdir" fails because the directory is non-empty, FAILED_PRECONDITION should be returned since the client should not retry unless the files are deleted from the directory.

HTTP Mapping: 400 Bad Request

ABORTED

The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort.

See the guidelines above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.

HTTP Mapping: 409 Conflict

OUT_OF_RANGE

The operation was attempted past the valid range. E.g., seeking or reading past end-of-file.

Unlike INVALID_ARGUMENT, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate INVALID_ARGUMENT if asked to read at an offset that is not in the range [0,2^32-1], but it will generate OUT_OF_RANGE if asked to read from an offset past the current file size.

There is a fair bit of overlap between FAILED_PRECONDITION and OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific error) when it applies so that callers who are iterating through a space can easily look for an OUT_OF_RANGE error to detect when they are done.

HTTP Mapping: 400 Bad Request

UNIMPLEMENTED

The operation is not implemented or is not supported/enabled in this service.

HTTP Mapping: 501 Not Implemented

INTERNAL

Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors.

HTTP Mapping: 500 Internal Server Error

UNAVAILABLE

The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff.

See the guidelines above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.

HTTP Mapping: 503 Service Unavailable

DATA_LOSS

Unrecoverable data loss or corruption.

HTTP Mapping: 500 Internal Server Error

ErrorLogEntry

An entry describing an error that has occurred.

JSON representation
{
  "url": string,
  "error_details": [
    string
  ]
}
Fields
url

string

A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated. Required.

error_details[]

string

A list of messages that carry the error details.

Methods

cancel

Cancels a transfer.

delete

This method is not supported and the server returns UNIMPLEMENTED.

get

Gets the latest state of a long-running operation.

list

Lists operations that match the specified filter in the request.

pause

Pauses a transfer operation.

resume

Resumes a transfer operation that is paused.
Hat Ihnen diese Seite weitergeholfen? Teilen Sie uns Ihr Feedback mit:

Feedback geben zu...

Cloud Storage Transfer Service