Description of problem: Do we expose VPC (AWS provider) details in the Cloudforms RESTAPI. It doesn't appear to be. Need confirmation on this. Please confirm if we can associate a particular vpc while creating VM in AWS through RESTAPI. If yes, what is the input attribute. Is there any sample JSON available for reference? Version: Cloudforms 4.0 If the functionality is not there atm, Are there any plan to include this in the future of cloudforms? RFE required? Version-Release number of selected component (if applicable): Cloudforms 4.0
This should have been completed in https://github.com/ManageIQ/manageiq/pull/6388
Verified on 5.6.4.2 using POST /api/provision_requests { "action": "create", "version": "1.1", "template_fields": { "guid": "36739c86-04af-11e7-9911-00505696be97" }, "vm_fields": { "vm_name": "test-vm01", "instance_type": 42, "request_type": "template", "placement_auto": false, "cloud_network": 1, "cloud_subnet": 2, "placement_availability_zone": 3, "security_groups": 27, "guest_access_key_pair": 65, "monitoring": "basic" }, "requester": { "user_name": "admin", "owner_first_name": "Administrator", "owner_last_name": "Administratorovich", "owner_email": "admin", "auto_approve": true } } with result "Vm Provisioned Successfully". Ids of cloud_subnet, placement_availability_zone and security_groups can be figured from GET /api/cloud_networks/:id?attributes=security_groups,cloud_subnets Unfortunately cloud_networks collection is not available in 5.6