Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Can someone please confirm whats the correct Base & Auth URL in New-F5Session.ps1

Hi All, I do have device IP, userName & Password with me. But as soon as i tried to hit the REST API in (new-F5Session.ps1) it throws unauthorized access at both BaseURL & Auth URL:

$BaseURL = "https://$LTMName/mgmt/tm/ltm/" $AuthURL = "https://$LTMName/mgmt/shared/authn/login"

Script I am referring here is :https://github.com/vercellone/POSH-LTM-Rest/blob/master/F5-LTM/Public/New-F5Session.ps1

Line No. 21 & 27.

Though if i directly access to https://$LTMName/tmui/login.jsp it works perfectly well and i can login.

Please guide me.

Thanks

0
Rate this Question
Comments on this Question
Comment made 2 months ago by Mitesh 57

Please Note: PS version is v5 installed on my box.

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Have you set -LTMName correctly to the device name or IP address? Take a look at https://github.com/vercellone/POSH-LTM-Rest which gives you some examples

0