Forum Discussion
powershell access to f5
When I connect to the f5 I'm placed in the common partition. How can I change to a different partition through powershell?
2 Replies
- Chris_Grant
Employee
Powershell uses the iControl REST framework. Please see here:
https://devcentral.f5.com/codeshare/powershell-module-for-the-f5-ltm-rest-api
and here:
https://devcentral.f5.com/wiki/iControlREST.HomePage.ashx
You can limit a request to a specific administrative partition using the $filter query parameter in a GET request. From the 11.6.0 iControl Rest users guide:
To access an administrative partition, use the $filter query parameter in a GET request to specify a resource in a partition. 1. Access a partition other than Common, using the $filter query option at the end of the URI. 2. Encode the URI by creating the following string: ?$filter=partition%20eq%20fw_objs
You didn't specify which library you were using. In addition to the PowerShell codeshare entry for REST, There is also the PowerShell Cmdlets for iControl SOAP which covers 100% of the SOAP APIs. If you are going that route, I wrote this article (https://devcentral.f5.com/articles/icontrol-101-24-folders) a while back illustrating how to use the Folder APIs to navigate through different locations. It should give you everything you need for our SOAP interface.
Hope this helps...
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com