更新用户已创建的自定义响应页面,可以通过此接口修改页面名称、描述、内容类型及内容本身。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:UpdatePage |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Id |
integer |
是 |
自定义响应页面的 ID,可通过调用 ListPages 接口获取。 |
50000001 |
| Name |
string |
是 |
自定义响应页面的名称(更新后)。 命名建议:字母/数字 + 下划线组合(如 |
example |
| Description |
string |
是 |
页面描述信息(更新后),用于控制台列表中识别页面用途。为可选字段,不传时保持原描述不变。字段长度上限以服务端为准。 |
a custom deny page |
| ContentType |
string |
是 |
页面内容的 MIME 类型,作为命中后返回客户端的 HTTP 常用取值:
说明
完整支持取值以服务端为准; |
text/html |
| Content |
string |
是 |
BASE64 编码后的页面内容,与 编码方式:
示例: 说明
完整大小上限以服务端自定义页面规范为准;不传时保持原页面内容。 |
PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4= |
| SiteIds |
array |
否 |
绑定本页面的站点 ID 列表(更新后),使用全量覆盖语义。
|
|
|
integer |
否 |
绑定站点 ID |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
36af3fcc-43d0-441c-86b1-428951dc8225 |
示例
正常返回示例
JSON格式
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | 输入参数规范校验失败。 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 403 | %s.NotSupport | The specified resource type %s is not supported. | 不支持指定的资源类型。如需使用该类型资源,请与我们联系。 |
| 403 | %s.OverQuota | The quantity of %s exceeds the quota. | 该资源的数量超出了配额所规定的范围,如需申请更多的额度,请与我们联系。 |
| 403 | %s.WrongValueMatched | The value of specified parameter %s can not pass the matching check. | 指定的参数对应的值不能通过匹配校验。如果您确定需要使用该参数值,请与我们联系。 |
| 403 | Page.NotExist | The specified custom error page does not exist or is not recognized by the system.Check whether the error page identifier is correct and matches an error page that has been created and registered in the system's error handling framework.If you want to create a new error page, make sure that the creation process is complete. | 指定的自定义错误页面不存在,或者未被系统识别。请确保错误页面的标识符是正确的,并且该页面已经被妥善地在系统的错误处理框架中创建和注册。如果打算新增一个错误页面,请验证创建过程是否已成功完成。 |
| 403 | Page.SiteAlreadyBound | The specified site has already been associated with another custom error page of the same type. Dissociate the site from the existing page and try again. | 指定的站点已被同类型的另一个自定义响应页面绑定,请先解除该站点与现有页面的绑定后重试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。