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
#create share and set permissions | |
New-Item -ItemType Directory $sharePathname | |
$inherit = [system.security.accesscontrol.InheritanceFlags]"ContainerInherit, ObjectInherit" | |
$propagation = [system.security.accesscontrol.PropagationFlags]"None" | |
$permission = 'IIS_IUSRS',"FullControl", $inherit, $propagation, "Allow" | |
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission |
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
var deployment = repository.Deployments.FindOne(d => d.EnvironmentId == "Environments-65" && d.ProjectId == "projects-193"); |
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
$server = "http://blah" | |
$apiKey = "API-XXXXXXXXXXXXXXXX" | |
$command = $($server + "/api/tasks") | |
$task = @{} | |
$task.Name = "Backup" | |
$task.Description = "Backup requested via API" | |
$body = $task | ConvertTo-Json |
NewerOlder