snapshotdeploy Not Working. How do I use it? Help me please.
ErrorId:1537
ErrorMessage:"invalid parameter count"
TS3QueryLib.Net DeployServerSnapshot not working. Help me please.
ErrorId:1537
ErrorMessage:"invalid parameter count"
Code:
var query = GetQueryRunner();
query.SelectVirtualServerById(1);
string data= FileHelper.ReadTxt("defaultbackup");// hash=TPdtkUxl7CveFLt8J1AAQap\/L\/I=|virtualserver_unique_identifier=2eelw7k8c6itI3CNr4p1C5LUKAY= virtualserver_name=www.TrG..........
var result = query.DeployServerSnapshot(data);
Code:
/// <summary>
/// Restores the selected virtual servers configuration using the data from a previously created server snapshot.
/// Please note that the TeamSpeak 3 Server does NOT check for necessary permissions while deploying a
/// snapshot so the command could be abused to gain additional privileges.
/// </summary>
/// <param name="snapshotData">The data that was got by calling GetServerSnapshot()</param>
public SimpleResponse DeployServerSnapshot(string snapshotData)
{
if (snapshotData.IsNullOrTrimmedEmpty())
throw new ArgumentException("snapshotData is null or trimmed empty", "snapshotData");
Command command = CommandName.ServerSnapshotDeploy.CreateCommand();
command.AddParameter(snapshotData);
return ResponseBase<SimpleResponse>.Parse(SendCommand(command));
}
0 commentaires:
Enregistrer un commentaire