VMware Cloud Community
schistad
Enthusiast
Enthusiast

Network profiles programmatically?

We have a large number of VLANs used in VMware, and of course these map to port groups and IP subnets in a very specific fashion.

They correspond fairly well with internal orgs, and it would make sense to have them owned by business groups.

However, the number of networks - which keep growing - means that maintaining them manually is a real chore, and will be prone to omissions and errors if we have to create them manually inside every org.

A much better solution in our case would be to have a vCO workflow create both the vCAC network profile as well as the vSwitch port group. But in order to achieve this, we need some way of creating a network profile through the API.

There are no workflows for Orchestrator which can manipulate or create network profiles, and I cannot see this entity in the API reference either. Is it really not exposed?

Reply
0 Kudos
7 Replies
admin
Immortal
Immortal

Network Profiles are exposed through the Odata interface, with these entity names:

StaticIPv4Addresses

StaticIPv4NetwrokProfiles

StaticIPv4Ranges

You should download Linqpad and connect it to you vCAC IaaS instance for more info

schistad
Enthusiast
Enthusiast

Wow.. talk about sending me down the rabbit's hole - that was immensely useful but also a huge subject.

Thanks ! Smiley Happy

Out of curiousity; Have you found any real-world examples of building a custom vCO workflow to call Odata functions using the preauthenticated session?

Reply
0 Kudos
rodneyvr
Contributor
Contributor

Were you able to find out a way to do this? Any help will be appreciated. Thank you!

Reply
0 Kudos
sbeaver
Leadership
Leadership

Adding myself to this thread for any updates

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
VMANALYST
Enthusiast
Enthusiast

Why to rely on Network Profiles. If you are thinking of automating the IP address management, than why don't you by-pass the Network Profiles and populate the Custom Properties from vCO and push them in vCAC entity during state change workflows that is much cleaner way of doing IP management.


Regards

Pankaj

Reply
0 Kudos
cac3a
Contributor
Contributor

Pankaj, Can you expand on the suggestion that you made i.e example with a tenant?

Thanks

Reply
0 Kudos
GrantOrchardVMw
Commander
Commander

I'd start a new thread. This is dated info.

Grant

Grant http://grantorchard.com
Reply
0 Kudos