修改证书有效期提醒时间。
操作类型:PATCH
URL:https://device_ip/redfish/v1/Systems/SecurityService/HttpsCertAlarmTime
请求头:
X-Auth-Token: auth_value Content-Type: header_type
请求消息体:
{ "CertAlarmTime":days, "Password": password }
参数名 |
是否必选 |
参数说明 |
取值 |
---|---|---|---|
CertAlarmTime |
必选 |
证书有效期提醒时间 |
数字,取值范围7~180。默认值为10天。 |
Password |
必选 |
当前用户密码 |
字符串,长度为8~20字符。 |
无
请求样例:
PATCH https://10.10.10.10/redfish/v1/Systems/SecurityService/HttpsCertAlarmTime
请求头:
X-Auth-Token: auth_value Content-Type: application/json
请求消息体:
{ "CertAlarmTime":100, "Password":"password" }
响应样例:
{ "@odata.context": "/redfish/v1/$metadata#EdgeSystem/SecurityService/$entity", "@odata.id": "/redfish/v1/Systems/SecurityService/HttpsCertAlarmTime", "@odata.type": "#MindXEdgeSecurityService.v1_0_0.MindXEdgeSecurityService", "CertAlarmTime": 100 }
响应码:200
字段 |
类型 |
说明 |
---|---|---|
@odata.context |
字符串 |
SSL证书资源模型的OData描述信息。 |
@odata.id |
字符串 |
SSL证书资源节点的访问路径。 |
@odata.type |
字符串 |
SSL证书资源类型。 |
CertAlarmTime |
数字 |
证书有效期提醒时间(单位/天)。 |