发布边缘函数某版本代码,可发布到测试环境或生产环境。发布到生产环境可选择灰度发布到特定区域。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:PublishRoutineCodeVersion |
none |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
边缘函数 Routine 名。 |
test-routine1 |
| Env |
string |
是 |
环境名称。 |
production |
| CodeVersion |
string |
否 |
发布代码版本号。 |
1710120201067203242 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395 |
| CodeVersion |
string |
代码版本号。 |
1710120201067203242 |
示例
正常返回示例
JSON格式
{
"RequestId": "EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395",
"CodeVersion": "1710120201067203242"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | RoutineNotExist | The routine name does not exist. Check the routine name and try again. | 输入的函数名不存在,请您核对函数名,再重试。 |
| 400 | ParameterNotExist | The specified parameter does not exist. Check your configurations and try again. | 输入参数不存在,请您核对后重试。 |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | DependedByOthers | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | RoutineUserServiceStatusHalt | Failed to update the configurations because you have overdue payments. | 用户处于停机状态,不能进行更新操作。 |
| 400 | InvalidParameter | Parameter verification failed. Check your configurations and try again. | 输入的参数校验不通过,请您核对参数的正确性后重试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?