跳到主要内容

GET – 作业管理属性

使用 GET 方法检索 Redfish 服务的 JobService 资源中的属性

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/JobService

请求正文

响应正文

字段

类型

描述

Description

字符串

“The resource is used to represent the Job Service that allows scheduling of operations.”

DateTime

字符串

服务的当前日期时间设置,包含相对于 UTC 的偏移量。

格式:YYYY-MM-DDThh:mm:ss[+-]HH:MM

Id

字符串

固定字符串“JobService”

Jobs

链接

作业集合的引用。

Name

字符串

固定字符串“Job Service”

ServiceCapabilities

对象

此类型包含的属性用于描述此 JobService 实现的功能或支持的功能。

 

MaxJobs

整数

支持的作业的最大数量。值为 50。

 

MaxSteps

整数

Null

支持的作业步骤的最大数量。值为 50。

 

Scheduling

布尔

此属性的值应指示是否支持使用 Job 资源中的 Schedule 对象调度作业。

ServiceEnabled

布尔

此属性的值应为布尔值,指示是否启用了此服务。

Status

对象

此属性应指定有效的 odata 或 Redfish 属性。

 

Health

字符串

表示此资源在没有依赖资源的情况下的运行状况状态。

 

HealthRollup

字符串

表示此资源的视图中的总体运行状况状态。

 

State

字符串

指示资源的已知状态,例如是否已启用。

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"Id": "JobService",
"Status": {
"HealthRollup": "OK",
"Health": "OK",
"State": "Enabled"
},
"Name": "Job Service",
"ServiceEnabled": true,
"ServiceCapabilities": {
"MaxJobs": 50,
"Scheduling": true,
"MaxSteps": 50
},
"DateTime": "2020-04-02T05:34:24+00:00",
"@odata.type": "#JobService.v1_0_2.JobService",
"@odata.id": "/redfish/v1/JobService",
"@odata.etag": "\"3d92d9405f98da92492a90a1b8bb9a08\"",
"Jobs": {
"@odata.id": "/redfish/v1/JobService/Jobs"
},
"Description": "The resource is used to represent the Job Service that allows scheduling of operations."
}