要获取所有可用的配置项类型的数量,使用以下URL:
http://<hostname>:<port>/api/cmdb/citype/count/
假设您的AssetExplorer运行在本地服务器的8080端口,则示例URL为:
http://localhost:8080/api/cmdb/citype/count/
关键参数:
操作名称 - 属性名称为:"OPERATION_NAME",值为:"GET"。
技术员密钥 - 属性名称为:"TECHNICIAN_KEY",值为:密钥的值。
获取所有配置项数量的JSON输出:
{
"API": {
"response": {
"result": {
"created-date": "Sep 2, 2013 01:01 PM",
"field-names": {
"name": {
"type": "Integer",
"content": "Count"
}
},
"message": "Successfully fetched.",
"field-values": {
"record": {
"value": "1"
},
"totalRecords": "1"
},
"status": "Success",
"statuscode": "200"
}
},
"version": "1.0"
}
}