Skip to content

Renaming Services in folders #1

@surprised-man

Description

@surprised-man

Hi khimba,
I am very pleased you did the job with the Admin Commands. I have to rename a pile of services on our ArcGis server, so I've tested your scripts. They work well, but, CON.renameService operates with services in root folder only!
So I've tested it more bit deeply and I've found the cause and the solution of it - in AdminFunctions.py on line 118, there should be added "folderName" in the parameter: renameStatus = sendAGSReq(self.URL + "/services/" + folderName + "renameService" + self.basicQ, renameService_dict) instead of renameStatus = sendAGSReq(self.URL + "/services/renameService" + self.basicQ, renameService_dict).

Thank you very much for your work again,
surprised-man

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions