Forum Discussion
myLogin_24886
Nimbostratus
Oct 16, 2007How to set partion after creating a user thru iControl API
Hi,
I have created user using m_userManagement.create_user(users), which didn't have way to define partion. Is their any other API call which I can use to set up the partion.
Thanks
- keegan_morrison
Nimbostratus
Hi, i had the same problem at first. If you look at the SDK, under the Management namespace, you will see a Partition section. There is a function defined:void set_active_partition( in String active_partition );
- The set_active_partition, will set the context of the current iControl client as to what partition they are accessing. I believe the question was how to assign a partition to a specific users authorization settings.
struct UserPermission { UserRole role; String partition; }; Management.UserManagement.set_user_permission( in String [] user_names, in Management__UserManagement__UserPermission [] [] permissions );
- myLogin_24886
Nimbostratus
Joe, you are right I am looking to assign a partition to a specific user. - Glad to help! Just make sure that your calling application checks the current users partition from the get_my_permission() method and then calls the set_active_partition() method with that partition name.
- myLogin_24886
Nimbostratus
I am planing to provide SOAP API on top of iControl API so I need to use single user to login (lets say admin) on F5 and then change the partion information on user, Virtual Server and Pool to seperate out the customer configration. - Unfortunately the answer is no at this point. When an object is created, there is no way to "move" it to another partition aside from deleting it and recreating it in the new partition. This is true in the GUI, CLI, and iControl.
- myLogin_24886
Nimbostratus
Joe, - myLogin_24886
Nimbostratus
Joe, - myLogin_24886
Nimbostratus
I am able to set the parttion using following API before creating Virtual Server, Pool, and Node. This is the way i am going to seperate out the Customer confiration. Let me know if i am off track on my thought. - You are exactly on the right track. Management.Partition.set_active_partition() sets the current "working" partition for the currently connected user. Here's some pseudo-code for the process for creating the following
Partition.set_active_partition: "part_1" Pool.create: "Pool1" Partition.set_active_partition: "part_2" Pool.create: "Pool2" Partition.set_active_partition: "part_3" Pool.create: "Pool3"
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects