Hi All,
I'm trying to use Esri python API to access a raster in out SDE database and rename it. This is my shocking attempt at coding it.

For context:
The ultimate goal is at the time of loading data to our Shared SDE, check for a raster dataset with the same name and then take a copy of the version in Shared, rename it and save to our Archived SDE. Then overwrite the Shared version with the new version being loaded. I have an FME workbench that does the checking and archiving steps but I'm struggling to rename raster data so have turned to python but I have very little experience when it comes to coding. Any help would be appreciated.
