SPCfg
更新时间: 2026/07/01
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Managers/manager_id/SPService/SPCfg/cfg_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | 配置信息资源模型的OData描述信息 | |
| @odata.id | string | true | 配置信息资源的访问路径 | |
| @odata.type | string | true | 配置信息资源的类型 | |
| Id | string | true | 配置信息资源的Id | |
| Name | string | true | 配置信息资源的名称 | |
| Type | string | false | 系统类型 | |
| UEFI | 布尔值 | false | 是否支持UEFI启动 | |
| Legacy | 布尔值 | false | 是否支持Legacy启动 | |
| Secure | 布尔值 | false | 是否支持安全启动 | |
| Bit | 数值 | false | 操作系统位数 | |
| FirstBootScript | 布尔值 | false | 是否支持客户自定义首次启动脚本 | |
| IsSupportMultipleIPv4DNSConfiguration | 布尔值 | false | 是否支持多IPv4 DNS配置 | |
| IsSupportIPv6NetworkConfiguration | 布尔值 | false | 是否支持IPv6网络配置 | |
| CustomizedEnvironmentSupported | 布尔值 | false | 是否支持自定义环境 | |
| Grub2PwdSupported | 布尔值 | false | 是否支持设置Gurb密码 | |
| CustomizedRemovePackage | 布尔值 | false | 是否支持自定义裁剪包 | |
| CheckCompatibility | 布尔值 | false | 是否支持检查兼容性 | |
| UploadFiles | 布尔值 | false | 是否支持部署时上传驱动固件 | |
| Description | string | true | 描述信息 | |
| Pattern | string | false | 用于匹配HOUP平台驱动包 |
supported_methods
- GET
HTTP methods
GET
命令功能
查询 SP 服务的配置信息资源
命令格式
URL: https://device_ip/redfish/v1/Managers/manager_id/SPService/SPCfg/cfg_id
请求头:
X-Auth-Token: auth_value请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| auth_value | 请求消息的鉴权参数 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
使用指南
响应结果以最新SP版本的实际返回结果为准。 GA140C机型不支持 SP版本和机型兼容性列表详见Smart Provisioning用户指南
使用实例
请求样例: GET https://device_ip/redfish/v1/Managers/manager_id/SPService/SPCfg/cfg_id
X-Auth-Token: auth_value 请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#Managers/Members/1/SPService/SPCfg/Members/$entity",
"@odata.id": "/redfish/v1/Managers/1/SPService/SPCfg/1",
"@odata.type": "#HwSPCfg.v1_0_0.HwSPCfg",
"Id": "1",
"Name": "SP Config",
"OS": {
"CentOS": [
{
"Type": "CentOS 7.*",
"Ver": [
{
"UEFI": true,
"Legacy": false,
"Secure": false,
"Bit": 64,
"Name": "CentOS Linux 7.* aarch64",
"FirstBootScript": true,
"IsSupportMultipleIPv4DNSConfiguration": true,
"IsSupportIPv6NetworkConfiguration": true,
"CustomizedEnvironmentSupported": true,
"Grub2PwdSupported": false,
"CustomizedRemovePackage": true,
"CheckCompatibility": true,
"UploadFiles": true,
"Description": "CentOS7.x",
"Pattern": "^CentOS 7\\.\\d+$",
"Templates": [
{
"TemplateName": "CentOS7_minimal",
"OSType": "CentOS7.x",
"Language": "en_US.UTF-8",
"TimeZone": "America/New_York",
"Keyboard": "us",
"AutoPosition": true,
"Autopart": true,
"Packages": [
{
"EnvironmentName": "minimal",
"NetCfg": []
}
]
}
]
}
]
}
]
}
}响应码:200