renameResource

Rename the resource but not the contents. This call does not modify the script text for a SQL Script procedure.

Note: This web services operation is different from the procedure of the same name, which is in the resource tree under /lib/resource.

Location

/services/webservices/system/admin/resource/operations/

Request Elements

path: A source path of the resource to be renamed.

type: The type of the source resource to be renamed. Valid values are CONTAINER, DATA_SOURCE, DEFINITION_SET, LINK, PROCEDURE, TABLE, TREE, and TRIGGER.

newName: The new name of the resource.

Response Elements

N/A

Faults

DuplicateName: If a resource already exists of this type with the new name.

IllegalArgument: If the path is malformed or the type is illegal.

IllegalState: If the resource cannot be renamed. Resources within a physical data source and in the /shared, /services/databases, /services/webservices and user home folders cannot be renamed.

NotFound: If resource does not exist.

Security: If the user does not have READ access on all items in path other than the last one.

Security: If the user does not have WRITE access to the last item in newName.

Security: If the user does not have the ACCESS_TOOLS right.