Copy Object

gcs.copy_object
ActionGoogle Cloudconnection required

Calls the GCS JSON API POST /b/{src}/o/{obj}/copyTo/b/{dst}/o/{dst_obj}.

Copy a Cloud Storage object to another key or bucket.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Cloud Storage
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
bucket
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
bucket
Source bucket (overrides connection).
stringNo———
object
Source object name/key.
stringYes———
destination_bucket
Destination bucket (defaults to the source bucket).
stringNo———
destination_object
Destination object name (defaults to the source name). The destination has to differ from the source in bucket or name.
stringNo——archive/report.csv
  • At least one of destination_object, destination_bucket must be set.

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "destination_object": "archive/report.csv"
}

Output

One shape.

result

FieldTypeExample
ok
boolean—
object
string—
bucket
string—
generation
string—
{
  "bucket": "",
  "generation": "",
  "object": "",
  "ok": false
}

See Copy Object run in a workflow.

In a technical demo we add the Google Cloud Storage connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.