Project

General

Profile

Bug #12866

Updated by Dominic Cleal over 8 years ago

Hello, 

 if i create a subnet via the API, the "domains" were not set. Even if i run a update via API. 
 Here is what i am doing to upgrade: 

 <pre> 
 curl -X PUT http://user:password@foreman.url.de/api/subnets/187 -d '{"domain_ids": [261]}' -H "Content-Type:application/json" -H "Accept:application/json" 
 {"network":"10.10.10.10","cidr":24,"mask":"255.255.255.0","priority":null,"vlanid":"200","gateway":"10.10.10.11","dns_primary":"10.10.10.12","dns_secondary":null,"from":null,"to":null,"created_at":"2015-12-17T15:59:40Z","updated_at":"2015-12-17T15:59:40Z","ipam":"DHCP","boot_mode":"DHCP","id":187,"name":"gebert.url.de","network_address":"10.10.10.10/24","dhcp":null,"tftp":null,"dns":null,"domains":[],"interfaces":[]} 
 </pre> 

 The domains section will empty until i update it via webinterface. 

 Regards, 
 mgebert 

Back