第 4 章 历史系统配置集 API
历史系统配置文件捕获 Insights for Red Hat Enterprise Linux 清单中的系统配置集的时间点。配置集返回特定系统配置集列表。
历史系统配置集有两个主要方法:
- 系统方法
- 配置集方法
4.1. 系统方法
system 方法返回您在 uuid
参数中指定的系统的所有历史系统配置文件列表。
使用以下 curl
命令获取系统 uuid
的所有历史系统配置文件。
$ curl -u username:password https://cloud.redhat.com/api/historical-system-profiles/v1/system/[ID]
对于每个配置集,服务会返回:
-
captured_date
-- 指明系统配置集被捕获的日期 -
id
mvapich-wagon 是配置文件uuid
。 -
system_id
-- systemuuid
,它与请求中指定的内容相同。
以下是您可以看到的 Systems 方法输出的部分示例:
{ "data": [ { "profiles": [ { "captured_date": "2020-10-28T06:23:25+00:00", "id": "35054dcf-da10-489e-b383-8580511c8c10", "system_id": "563f782e-6266-41f0-a761-0e0eab29463b" }, { "captured_date": "2020-10-27T18:43:28+00:00", "id": "472ad292-e2b1-40ac-b514-502df11df765", "system_id": "563f782e-6266-41f0-a761-0e0eab29463b" }, { "captured_date": "2020-10-27T06:14:13+00:00", "id": "89235117-e9f5-4a2c-86d4-c3e908a392a7", "system_id": "563f782e-6266-41f0-a761-0e0eab29463b" }, { "captured_date": "2020-10-26T07:34:17+00:00", "id": "6652ba31-f5e5-45c6-ae59-8f8d51181358", "system_id": "563f782e-6266-41f0-a761-0e0eab29463b" }, { "captured_date": "2020-10-25T06:40:18+00:00", "id": "b66e8bb8-916c-409b-96d8-93119944e71d", "system_id": "563f782e-6266-41f0-a761-0e0eab29463b" }, { "captured_date": "2020-10-24T06:23:19+00:00", :context: {parent-context} "id": "b7dadf95-90ec-4289-b50a-6c8d19124ccf", "system_id": "563f782e-6266-41f0-a761-0e0eab29463b" }, { "captured_date": "2020-10-23T06:34:14+00:00", "id": "3c9ce38d-22da-4d06-876d-35133eb5959e", "system_id": "563f782e-6266-41f0-a761-0e0eab29463b" }, { "captured_date": "2020-10-22T05:59:09+00:00", "id": "18cd803d-3f1f-4ce7-9bbf-6a6585dc9c03", "system_id": "563f782e-6266-41f0-a761-0e0eab29463b" } ] }