itop api添加Server softwarelists错误
json_data如下:
opr = { "operation": "core/update",
"comment": "test update server",
"class": "Server",
"output_fields": "id, friendlyname",
"key": "55",
"fields":
{
"softwares_list": [
{
"applicationsolution_list": [],
"business_criticity": "high",
"contacts_list": [],
"description": "",
"documents_list": [],
"finalclass": "WebServer",
"friendlyname": "apache test02",
"move2production": "",
"name": "apache",
"org_id": "4",
"org_id_friendlyname": "Yeti",
"organization_name": "Yeti",
"path": "",
"providercontracts_list": [],
"services_list": [],
"software_id": "3",
"software_id_friendlyname": "apache 2.2.15",
"software_name": "apache",
"softwarelicence_id": "0",
"softwarelicence_id_friendlyname": "",
"softwarelicence_name": "",
"softwares_list": [],
"status": "active",
}
]
}
}
执行错误:
PHP Fatal error: Cannot instantiate abstract class SoftwareInstance in /var/www/html/web/core/metamodel.class.php on line 4541
|