Cloud Storage Connector - how to update object metadata?

Hello everyone,

I'm trying to update metadata on an object in Google Cloud Storage with the Cloud Storage connector and am getting an error I can't figure out.  I'm using the following input parameters: 

 

entityId: "bucketname/filename/1718999338924285"
connectorInputPayload:
{
"ContentEncoding": "gzip"
}

 

 

 
When I run this, I receive the following error:

 

{
	"error": {
		"code": 400,
		"details": [
			{
				"@type": "type.googleapis.com/google.rpc.ErrorInfo",
				"metadata": {
					"cause": "Views cannot be inserted, updated or deleted.",
					"connection_type": "Gcs",
					"entity_id": "bucketname/filename/1718999338924285",
					"entity_type": "Objects"
				}
			}
		],
		"message": "Unable to update entity/entities.",
		"status": "FAILED_PRECONDITION"
	}
}

 

I was able to successfully get the object with a Get operation, so the entityId should be correct. I've tried different variations of the connectorInputPayload, but can't resolve the error. 

Thanks very much for any help you can provide!

0 1 187
1 REPLY 1

On Objects entity, only GET and LIST operations are  supported  . "Upload object " action can still be used to upload the same object  and modify the content type to achieve this use case