Python Script Can't Create from Direct Network ID from Private Cloud

Hi, need help to create 1000 VMs to map with direct network ID from python script to call API but it didn't well.

Direct network error: private cloud contains network[1c948756-db50-4871-b03d-d911ecdcae16]', 'code': '400'}}"

Virtual Private Cloud no issue but just can't ping the IP from Python Script being created but when using UI to create and point to the direct network is okay.

Where can i find the right API call to query the direct network ID?

You see click on the below link to download  from google Drive to view the creation process for better understand.

https://drive.google.com/file/d/1ZgYSXrUiODPQk_v6HV7sUZD_UpQ6DMJQ/view?usp=sharing

Thanks.
Lucky ThamFreelancerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Apache (or other Webserver) return 400 for a bad request, so the API call your making is malformed some way.

Start by using curl + get your API request working first, then convert to Python.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
UI/UX

From novice to tech pro — start learning today.