SPOSInstallPara
更新时间: 2026/07/01
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Managers/manager_id/SPService/SPOSInstallPara/osid
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | OS安装配置资源模型的OData描述信息 | |
| @odata.id | string | true | OS安装配置资源的访问路径 | |
| @odata.type | string | true | OS安装配置资源的类型 | |
| Id | string | true | OS安装配置资源的Id | |
| Name | string | true | OS安装配置资源的名称 | |
| InstallMode | string | false | 安装模式 | |
| TemplateName | string | false | 模板名称 | |
| OSType | string | false | OS类型 | |
| BootType | string | false | BIOS启动模式 | |
| CDKey | string | false | OS系统安装密钥 | |
| RootPwd | string | false | 初始管理员密码 | |
| HostName | string | false | 主机名 | |
| Language | string | false | 语言 | |
| TimeZone | string | false | 时区 | |
| Keyboard | string | false | 键盘 | |
| CheckFirmware | 布尔型 | false | 固件检查 | |
| CheckCompatibility | 布尔型 | false | 兼容性检查 | |
| CheckMedia | 布尔型 | false | 光盘系统匹配检查 | |
| AutoPosition | 布尔型 | false | 自动选择安装盘 | |
| Autopart | 布尔型 | false | 自动分区 | |
| MediaType | string | false | 安装介质类型 | |
| LVMSettings | object | false | LVM参数配置 | |
| VGName | string | false | 配置卷组名称 | |
| Partition | object | false | 分区信息 | |
| FileSystem | string | false | 文件系统 | |
| Size | string | false | 分区大小 | |
| LVName | string | false | 配置逻辑卷名称 | |
| PartitionType | string | false | 指定分区类型 | |
| Software | object | false | 软件信息 | |
| FileName | string | false | 文件名称 | |
| NetCfg | object | false | 网络配置信息 | |
| Device | object | false | 设备信息,Suse系统设备名称和MAC地址必须都指定,其他系统选其中一个填写。 | |
| MAC | string | false | MAC地址 | |
| Silkprint | object | false | 网卡的丝印信息 | |
| Location | string | false | 网卡位置信息 | |
| DeviceName | string | false | 网卡设备名称 | |
| Port | string | false | 网卡端口号 | |
| IPv4Addresses | object | false | 指定网卡的IPv4信息 | |
| Address | string | false | 指定网口的IPv4地址 | |
| SubnetMask | string | false | 指定网口的IPv4地址对应的子网掩码 | |
| AddressOrigin | string | false | 指定网口的IPv4地址模式,包括: ● Static ● DHCP | |
| IPv6Addresses | object | false | 指定网口的IPv6信息 | |
| PrefixLength | number | false | 指定网口的IPv6地址对应的前缀长度 | |
| Gateway | string | false | 指定网口的网关地址 | |
| IPv4RouteSettings | array | false | 指定网口的IPv4路由信息 | |
| Metric | number | false | 路由链路度量 | |
| TableId | number | false | 路由表ID | |
| IPv6RouteSettings | array | false | 指定网口的IPv6路由信息 | |
| DeviceType | string | false | 设备类型 | |
| VLANSettings | object | false | VLAN配置参数 | |
| VLANId | number | false | VLANid | |
| ParentInterface | object | false | 创建VLAN的网口设备 | |
| BondSettings | object | false | Bond配置参数 | |
| WorkMode | number | false | Bond工作模式 | |
| MonitoringInterval | number | false | Bond监听频率,单位为ms | |
| BondedInterfaces | array | false | 组Bond的网口设备 | |
| HashPolicy | string | false | Bond哈希策略 | |
| BridgeSettings | object | false | Bridge配置参数 | |
| BridgeInterfaces | array | false | 组Bridge的网口设备 | |
| STPEnabled | 布尔型 | false | STP使能 | |
| Packages | object | false | 指定Linux系统部署过程中需要安装的模块列表 | |
| PackageName | array | false | 模块列表中package包名称 | |
| PatternName | array | false | 模块列表中pattern组名称 | |
| FirstBootScript | 布尔型 | false | 是否执行客户自定义首次启动脚本 | |
| UploadFiles | object | false | 上传驱动和固件文件 | |
| DriverList | array | false | 上传列表中驱动名称 | |
| FirmwareList | array | false | 上传列表中固件名称 | |
| FirstBootScriptFile | string | false | 上传首次启动脚本的压缩包文件名称 | |
| TimeoutSeconds | number | false | 超时时间 | |
| BootSettings | object | false | grub参数配置信息 | |
| BootEffective | string | false | grub参数生效模式,包括: ● Temporary ● Permanent | |
| BootParameters | array | false | grub内核参数 |
supported_methods
- GET
HTTP methods
GET
命令功能
查询 SP 服务的 OS 安装配置资源
命令格式
URL: https://device_ip/redfish/v1/Managers/manager_id/SPService/SPOSInstallPara/osid
请求头:
X-Auth-Token: auth_value请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| auth_value | 请求消息的鉴权参数 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
使用指南
GA140C机型不支持 SP版本和机型兼容性列表详见Smart Provisioning用户指南
使用实例
请求样例: GET https://device_ip/redfish/v1/Managers/manager_id/SPService/SPOSInstallPara/osid
X-Auth-Token: auth_value 请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#Managers/Members/1/SPService/SPOSInstallPara/Members/$entity",
"@odata.id": "/redfish/v1/Managers/1/SPService/SPOSInstallPara/1",
"@odata.type": "#HwSPOSInstallPara.v1_0_0.HwSPOSInstallPara",
"Id": "1",
"Name": "SP OS Install Parameter",
"InstallMode": "Recommended",
"TemplateName": "CentOS7_minimal",
"OSType": "CentOS7U6",
"BootType": "UEFIBoot",
"CDKey": "",
"RootPwd": "******",
"HostName": "hostname",
"Language": "en-US.UTF-8",
"TimeZone": "America/New_York",
"Keyboard": "us",
"CheckFirmware": false,
"CheckCompatibility": true,
"CheckMedia": true,
"AutoPosition": true,
"Autopart": false,
"MediaType": "LVM",
"LVMSettings": {
"VGName": "custom_vg00"
},
"Partition": [
{
"Name": "/abc",
"FileSystem": "ext4",
"Size": "32"
},
{
"Name": "/",
"FileSystem": "ext4",
"Size": "32",
"LVName": "root_lv",
"PartitionType": "LVM"
}
],
"Software": [
{
"FileName": "iBMA"
}
],
"NetCfg": [
{
"Device": {
"Name": "eth0",
"MAC": null,
"Silkprint": {
"Location": "mainboard",
"DeviceName": "PCIeCard1",
"Port": "1"
}
},
"IPv4Addresses": [
{
"Address": "device_ip",
"SubnetMask": "255.255.0.0",
"Gateway": "10.10.10.1",
"AddressOrigin": "Static"
}
],
"IPv6Addresses": [
{
"Address": "fd00:60b:e3:a05:aed1:63de:c500:731a",
"PrefixLength": "64",
"Gateway": "::",
"AddressOrigin": "Static"
}
],
"NameServers": [
{
"DNS": "10.10.10.254"
},
{
"DNS": "10.10.10.253"
}
],
"IPv4RouteSettings": [
{
"Address": "Ipv4_address",
"SubnetMask": "255.255.255.255",
"Gateway": "Ipv4_gateway",
"Metric": 50,
"TableId": 100
}
],
"IPv6RouteSettings": [
{
"Address": "Ipv6_address",
"PrefixLength": "64",
"Gateway": "Ipv6_gateway",
"Metric": 100,
"TableId": 200
}
]
},
{
"Device": {
"Name": "test_vlan",
"MAC": null
},
"DeviceType": "VLAN",
"VLANSettings": {
"VLANId": 255,
"ParentInterface": {
"Name": "eth1",
"MAC": null,
"Silkprint": {
"DeviceName": "NIC1",
"Location": "mainboard",
"Port": "1"
}
}
},
"IPv4Addresses": [
{
"Address": "device_ip",
"AddressOrigin": "Static",
"Gateway": "device_gw",
"SubnetMask": "255.255.0.0"
}
],
"IPv6Addresses": [],
"NameServers": []
},
{
"Device": {
"Name": "test_bond",
"MAC": null
},
"DeviceType": "Bond",
"BondSettings": {
"WorkMode": 4,
"MonitoringInterval": 100,
"BondedInterfaces": [
{
"MAC": null,
"Name": "eth2"
}
],
"HashPolicy": "layer2"
},
"IPv4Addresses": []
},
{
"Device": {
"Name": "test_bridge",
"MAC": null
},
"DeviceType": "Bridge",
"BridgeSettings": {
"STPEnabled": true,
"BridgeInterfaces": [
{
"MAC": null,
"Name": "eth3",
"Silkprint": {}
},
{
"Name": "eth4",
"MAC": null,
"Silkprint": {
"DeviceName": "NIC1",
"Location": "mainboard",
"Port": "4"
}
}
]
},
"IPv4Addresses": []
}
],
"Packages": [
{
"PackageName": [
"gcc",
"aspell"
],
"PatternName": [
"x11",
"base"
]
}
],
"FirstBootScript": true,
"UploadFiles": {
"DriverList": [
"ComputingComponentiDriver-CentOS7.6-Driver-ARM_2.0.3.zip",
"ComputingComponentiDriver-CentOS7.6-Driver-ARM_2.0.3.zip.asc"
],
"FirmwareList": [],
"FirstBootScriptFile": "firstboot.zip",
"TimeoutSeconds": 0
},
"BootSettings": {
"BootEffective": "Permanent",
"BootParameters": [
"nosmp"
]
}
}响应码:200