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
# API Documentation can be at http://timlossev.com/attachments/Proteus_API_Guide_3.7.1.pdf | |
# Connecting the the API | |
$credential = Get-Credential | |
$uri = "http://bluecatserver/Services/API?wsdl" | |
$bc = New-WebServiceProxy -Uri $uri | |
$bc.CookieContainer = New-Object System.Net.CookieContainer | |
$bc.login($Credential.UserName, ($Credential.GetNetworkCredential()).Password) | |
# Find IP based on assigned name in Bluecat |
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
C:\> Invoke-WebRequest https://api.godaddy.com/v1/domains/clintcolding.com/records/ -Method Get -Headers $Headers | ConvertFrom-Json | |
type name data ttl | |
---- ---- ---- --- | |
A @ 192.30.252.153 600 | |
A @ 192.30.252.154 600 | |
CNAME email email.secureserver.net 3600 | |
CNAME ftp @ 3600 | |
CNAME www @ 3600 | |
CNAME _domainconnect _domainconnect.gd.domaincontrol.com 3600 |
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
C:\> Invoke-WebRequest https://api.godaddy.com/v1/domains/clintcolding.com/records/ -Method Get -Headers $Headers | |
StatusCode : 200 | |
StatusDescription : OK | |
Content : [{"type":"A","name":"@","data":"192.30.252.153","ttl":600},{"type":"A","name":"@","data":"19 | |
2.30.252.154","ttl":600},{"type":"CNAME","name":"email","data":"email.secureserver.net","ttl | |
":3600},{"type":... | |
RawContent : HTTP/1.1 200 OK | |
Access-Control-Allow-Credentials: true | |
Vary: Origin,Accept-Encoding |
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
$apiKey = '2s7Yn1f2dW_W5KJhWbGwuLhyW4Xdvgb2c' | |
$apiSecret = 'oMmm2m5TwZxrYyXwXZnoN' | |
$Headers = @{} | |
$Headers["Authorization"] = 'sso-key ' + $apiKey + ':' + $apiSecret |
NewerOlder