4.2. 配置集方法
配置集端点返回您在 uuid 参数中指定的每个配置集 ID 的系统配置集信息。API 使用一个或多个以逗号分隔的历史系统配置文件 ID,并返回每个 id 的系统配置集信息。
使用以下 curl 命令获取作为逗号分隔参数传递的历史系统配置文件:
curl -u username:password https://cloud.redhat.com/api/historical-system-profiles/v1/profiles/[ID1],[ID2]
$ curl -u username:password https://cloud.redhat.com/api/historical-system-profiles/v1/profiles/[ID1],[ID2]
以下是您可以看到的 Profiles 方法输出的部分示例:
{
"data": [
{
"account": "ACCOUNTID",
"captured_date": "2020-10-27T18:43:28+00:00",
"created": "2020-10-27T18:43:48.340185+00:00",
"display_name": "dsmith-rhel82kvm",
"id": "472ad292-e2b1-40ac-b514-502df11df765",
"inventory_id": "563f782e-6266-41f0-a761-0e0eab29463b",
"system_profile": {
"arch": "x86_64",
"bios_release_date": "04/01/2014",
"bios_vendor": "SeaBIOS",
"bios_version": "1.12.0-2.fc30",
"captured_date": "2020-10-27T18:43:28+00:00",
"cores_per_socket": 2,
"cpu_flags": [ ],
:context: {parent-context} "display_name": "dsmith-rhel82kvm",
"dnf_modules": [ ],
"enabled_services": [ ],
"fqdn": "dsmith-rhel82kvm",
"id": "472ad292-e2b1-40ac-b514-502df11df765",
"infrastructure_type": "virtual",
"infrastructure_vendor": "kvm",
"insights_client_version": "3.0.12-0",
"insights_egg_version": "3.0.162-1",
"installed_packages": [ ],
"installed_products": [
"installed_services": [ ],
"kernel_modules": [ ],
"last_boot_time": "2020-05-01T02:11:28",
"network_interfaces": [ ],
"number_of_cpus": 8,
"number_of_sockets": 4,
"os_kernel_version": "4.18.0",
"os_release": "8.2",
"running_processes": [ ],
"satellite_managed": false,
"selinux_config_file": "enforcing",
"selinux_current_mode": "enforcing",
"system_memory_bytes": 1914204160,
"tags": [ ],
"tuned_profile": "virtual-guest",
"yum_repos": [ ]
}
}
]
}
{
"data": [
{
"account": "ACCOUNTID",
"captured_date": "2020-10-27T18:43:28+00:00",
"created": "2020-10-27T18:43:48.340185+00:00",
"display_name": "dsmith-rhel82kvm",
"id": "472ad292-e2b1-40ac-b514-502df11df765",
"inventory_id": "563f782e-6266-41f0-a761-0e0eab29463b",
"system_profile": {
"arch": "x86_64",
"bios_release_date": "04/01/2014",
"bios_vendor": "SeaBIOS",
"bios_version": "1.12.0-2.fc30",
"captured_date": "2020-10-27T18:43:28+00:00",
"cores_per_socket": 2,
"cpu_flags": [ ],
:context: {parent-context} "display_name": "dsmith-rhel82kvm",
"dnf_modules": [ ],
"enabled_services": [ ],
"fqdn": "dsmith-rhel82kvm",
"id": "472ad292-e2b1-40ac-b514-502df11df765",
"infrastructure_type": "virtual",
"infrastructure_vendor": "kvm",
"insights_client_version": "3.0.12-0",
"insights_egg_version": "3.0.162-1",
"installed_packages": [ ],
"installed_products": [
"installed_services": [ ],
"kernel_modules": [ ],
"last_boot_time": "2020-05-01T02:11:28",
"network_interfaces": [ ],
"number_of_cpus": 8,
"number_of_sockets": 4,
"os_kernel_version": "4.18.0",
"os_release": "8.2",
"running_processes": [ ],
"satellite_managed": false,
"selinux_config_file": "enforcing",
"selinux_current_mode": "enforcing",
"system_memory_bytes": 1914204160,
"tags": [ ],
"tuned_profile": "virtual-guest",
"yum_repos": [ ]
}
}
]
}