Logo

Help Center

Welcome
Login  Sign up
Home Solutions
New support ticket
Check ticket status
Solution home Scripting Public

[PS] Exporting a cluster's IP addresses into a CSV file Print

Modified on: Wed, 8 Feb, 2023 at 8:10 AM


PowerShell script:

$clientSecret = "***************************************************"
$companyId = "********-****-****-****-***********"
$servergroupId = "********-****-****-****-***********"

$rest = Invoke-RestMethod -Uri (https://api.cameyo.com/servergroups/$servergroupId/ip?clientId=$companyId&clientSecret=$clientSecret) -Method GET -ContentType "application/json; charset=UTF-8"
$rest.Split(",") | Out-File c:\temp\cameyoclusterip.csv 

 



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

Related Articles

    Home Solutions Cookie policy
    Help Desk Software by Freshdesk Support Desk
    Article views count