Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
298 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--- | ||
title: "Hook" | ||
--- | ||
|
||
# TOPIC | ||
This help topic describes the Thycotic.PowerShell.SecretHooks.Hook class in the Thycotic.SecretServer module | ||
|
||
# CLASS | ||
Thycotic.PowerShell.SecretHooks.Hook | ||
|
||
# INHERITANCE | ||
None | ||
|
||
# DESCRIPTION | ||
The Thycotic.PowerShell.SecretHooks.Hook class represents the object returned by endpoint GET /secret-details/{secretId}/get/{secretHookId} | ||
|
||
# CONSTRUCTORS | ||
new() | ||
|
||
# PROPERTIES | ||
Arguments string | ||
Arguments | ||
|
||
Database string | ||
Database | ||
|
||
Description string | ||
Hook Description | ||
|
||
EventActionId integer <int32> | ||
Event Action Id | ||
|
||
FailureMessage string | ||
Failure Message | ||
|
||
HookId integer <int32> | ||
Hook Id | ||
|
||
Name string | ||
Hook Name | ||
|
||
Parameters Array of objects (Parameter) | ||
Parameters | ||
|
||
Port string | ||
Port | ||
|
||
PrePostOption string | ||
Hook PRE or POST Option | ||
|
||
PrivilegedSecretId integer <int32> | ||
Privileged Secret Id | ||
|
||
ScriptId integer <int32> | ||
Script Id | ||
|
||
ScriptTypeId integer <int32> | ||
Script Type Id | ||
|
||
SecretHookId integer <int32> | ||
Secret Hook Id | ||
|
||
ServerKeyDigest string | ||
Server Key Digest | ||
|
||
ServerName string | ||
Server Name | ||
|
||
SortOrder integer <int32> | ||
Hook Sort Order | ||
|
||
SshKeySecretId integer <int32> | ||
SSH Key Secret Id | ||
|
||
Status boolean | ||
Hook Status | ||
|
||
StopOnFailure boolean | ||
Stop on Failure | ||
|
||
# METHODS | ||
|
||
# RELATED LINKS: | ||
Get-TssSecretHookStub | ||
New-TssSecretHook | ||
Update-TssSecretHook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: "Parameter" | ||
--- | ||
|
||
# TOPIC | ||
This help topic describes the Thycotic.PowerShell.SecretHooks.Parameter class in the Thycotic.SecretServer module | ||
|
||
# CLASS | ||
Thycotic.PowerShell.SecretHooks.Parameter | ||
|
||
# INHERITANCE | ||
None | ||
|
||
# DESCRIPTION | ||
The Thycotic.PowerShell.SecretHooks.Parameter class represents the Model object name from API doc object returned by Secret Server endpoint endpoint | ||
|
||
# CONSTRUCTORS | ||
new() | ||
|
||
# PROPERTIES | ||
ParameterName string | ||
Parameter Name | ||
|
||
ParameterType string | ||
Parameter Type | ||
|
||
ParameterValue string | ||
Parameter Value | ||
|
||
# METHODS | ||
|
||
# RELATED LINKS: | ||
Function name utilizing it, list multiple if it applies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: "Summary" | ||
--- | ||
|
||
# TOPIC | ||
This help topic describes the Thycotic.PowerShell.SecretHooks.Summary class in the Thycotic.SecretServer module | ||
|
||
# CLASS | ||
Thycotic.PowerShell.SecretHooks.Summary | ||
|
||
# INHERITANCE | ||
None | ||
|
||
# DESCRIPTION | ||
The Thycotic.PowerShell.SecretHooks.Summary class represents the object returned by Secret Server GET /secret-detail/{secretId}/hooks | ||
|
||
# CONSTRUCTORS | ||
new() | ||
|
||
# PROPERTIES | ||
Description string | ||
Hook Description | ||
|
||
EventActionName string | ||
Event Action Name | ||
|
||
HookId integer <int32> | ||
Hook Id | ||
|
||
Name string | ||
Hook Name | ||
|
||
PrePostOption string | ||
Hook PRE or POST Option | ||
|
||
ScriptName string | ||
Script Name | ||
|
||
ScriptTypeName string | ||
Script Type Name | ||
|
||
SecretHookId integer <int32> | ||
Secret Hook Id | ||
|
||
SortOrder integer <int32> | ||
Hook Sort Order | ||
|
||
Status boolean | ||
Hook Status | ||
|
||
StopOnFailure boolean | ||
Stop On Failure | ||
|
||
# METHODS | ||
|
||
# RELATED LINKS: | ||
Search-TssSecretHook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Thycotic.PowerShell.SecretHooks | ||
|
||
{% include list.liquid all=true %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using System.Management.Automation; | ||
using System.Management.Automation.Runspaces; | ||
|
||
namespace Thycotic.PowerShell.SecretHooks | ||
{ | ||
public class Hook | ||
{ | ||
public int SecretHookId { get; set; } | ||
public int HookId { get; set; } | ||
public string Name { get; set; } | ||
public string Description { get; set; } | ||
public int SortOrder { get; set; } | ||
public string PrePostOption { get; set; } | ||
public int EventActionId { get; set; } | ||
public int ScriptTypeId { get; set; } | ||
public int ScriptId { get; set; } | ||
public bool Status { get; set; } | ||
public bool StopOnFailure { get; set; } | ||
public string ServerName { get; set; } | ||
public string ServerKeyDigest { get; set; } | ||
public int Port { get; set; } | ||
public string Database { get; set; } | ||
public string Arguments { get; set; } | ||
public int SshKeySecretId { get; set; } | ||
public int PrivilegeSecretId { get; set; } | ||
public Parameter[] Parameters { get; set; } | ||
public string FailureMessage { get; set; } | ||
|
||
public void SetHookParameter(string Name, string Value) | ||
{ | ||
foreach (var i in this.Parameters) | ||
{ | ||
if (i.ParameterName.Equals(Name)) | ||
{ | ||
i.ParameterValue = Value; | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Thycotic.SecretServer/classes/secret-hooks/Parameter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using System.Management.Automation; | ||
using System.Management.Automation.Runspaces; | ||
|
||
namespace Thycotic.PowerShell.SecretHooks | ||
{ | ||
public class Parameter | ||
{ | ||
public string ParameterName { get; set; } | ||
public string ParameterValue { get; set; } | ||
public string ParameterType { get; set; } = "Literal"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using System.Management.Automation; | ||
using System.Management.Automation.Runspaces; | ||
|
||
namespace Thycotic.PowerShell.SecretHooks | ||
{ | ||
public class Summary | ||
{ | ||
public string Description { get; set; } | ||
public string EventActionName { get; set; } | ||
public int HookId { get; set; } | ||
public string Name { get; set; } | ||
public string PrePostOption { get; set; } | ||
public string ScriptName { get; set; } | ||
public string ScriptTypeName { get; set; } | ||
public int SecretHookId { get; set; } | ||
public int SortOrder { get; set; } | ||
public bool Status { get; set; } | ||
public bool StopOnFailure { get; set; } | ||
} | ||
} |
Oops, something went wrong.