Skip to main content

Insert Object

Stores a new object. The uploaded object replaces any existing object with the same name.

External Documentation

To learn more, visit the GCP documentation.

Basic Parameters

ParameterDescription
Bucket NameName of the bucket in which to store the new object.
File IdentifierThe identifier of the file. You can create a file identifier using the Set File Variable action.
Object NameName of the object.

Advanced Parameters

ParameterDescription
Cloud KMS KeyResource name of the Cloud KMS key that will be used to encrypt the object.If not specified, the request uses the bucket's default Cloud KMS key, if any, or else it uses standard Cloud Storage encryption.
Content EncodingSets the contentEncoding property of the final object to this value, to indicate the encoding of the content being uploaded.
Exclude GenerationMakes the request conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
Generation MatchMakes the request conditional on whether the object's current generation matches the given value. Setting to 0 makes the request succeed only if there are no live versions of the object.
Predefined Access ControlApply a predefined set of access controls to this object. For more information refer to Google Cloud Storage's Documentation.
ProjectionSpecifies which properties to return.

Example Output

{
"kind": "storage#object",
"id": string,
"selfLink": string,
"mediaLink": string,
"name": string,
"bucket": string,
"generation": "long",
"metageneration": "long",
"contentType": string,
"storageClass": string,
"size": "unsigned long",
"softDeleteTime": "datetime",
"restoreToken": string,
"hardDeleteTime": "datetime",
"md5Hash": string,
"contentEncoding": string,
"contentDisposition": string,
"contentLanguage": string,
"cacheControl": string,
"crc32c": string,
"componentCount": integer,
"etag": string,
"kmsKeyName": string,
"temporaryHold": boolean,
"eventBasedHold": boolean,
"retentionExpirationTime": "datetime",
"retention": {
"retainUntilTime": "datetime",
"mode": string
}
"timeCreated": "datetime",
"updated": "datetime",
"timeDeleted": "datetime",
"timeStorageClassUpdated": "datetime",
"customTime": "datetime",
"metadata": {
(key): string
},
"acl": [
objectAccessControls Resource
],
"owner": {
"entity": string,
"entityId": string
},
"customerEncryption": {
"encryptionAlgorithm": string,
"keySha256": string
}
}

Workflow Library Example

Insert Object with Gcp and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop