2.6. 参考查询
在使用 API 时,您可以在查询中设置引用:
GET api/drift/v1/comparison_report?reference_id=UUID1&system_ids[]= 55e47a1d-05d7-4abb-963a-ba513a0a57ad&baseline_ids[]=79032c7b- 8284-44d0-b820-ebbb6d25c5e2&historical_system_profile_ids[]= 5d7dd2e9-18e5-412e-8f25-efa8a96a4289
GET
api/drift/v1/comparison_report?reference_id=UUID1&system_ids[]=
55e47a1d-05d7-4abb-963a-ba513a0a57ad&baseline_ids[]=79032c7b-
8284-44d0-b820-ebbb6d25c5e2&historical_system_profile_ids[]=
5d7dd2e9-18e5-412e-8f25-efa8a96a4289
注意
reference_id 参数是可选的,在查询中只能使用一个引用 ID。您可以在比较查询中将其设置为任何使用的参数:系统 ID、基线 ID 或历史系统配置文件 ID。当您使用参考 ID 时,比较服务会将列表中的所有系统、基线和历史系统配置文件进行比较。