添加边缘函数Routine的关联站点记录,在站点下添加一条新的记录,用于触发执行边缘函数程序代码。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:CreateRoutineRelatedRecord |
none |
*Site
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
边缘函数 Routine 名。 |
test-routine1 |
| SiteId |
integer |
是 |
站点 ID。 |
54362329990032 |
| RecordName |
string |
是 |
记录名。 |
test-record-1.example.com |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395 |
| Status |
string |
接口操作状态,成功或失败。 |
OK |
| RecordId |
integer |
记录 ID。 |
3227405728754048 |
示例
正常返回示例
JSON格式
{
"RequestId": "EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395",
"Status": "OK",
"RecordId": 3227405728754048
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | InvalidParameter | The specified parameter is invalid. | 输入参数规范校验失败。 |
| 400 | RoutineNotExist | The routine name does not exist. Check the routine name and try again. | 输入的函数名不存在,请您核对函数名,再重试。 |
| 400 | DependedByOthers | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | SiteParameterNotMatch | Failed to verify website parameters.Check the parameters and try again. | 输入的站点相关参数校验失败。请检查参数正确性后重试。 |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | ParameterAlreadyExist | Parameter uniqueness verification failed. Check for duplicate parameter values. | 参数唯一性校验失败,请检查重复的参数值。 |
| 400 | RelatedRecordNumberExceedQuotaLimit | The maximum number of records associated with the routine has been reached. Check your plan quota and upgrade the plan to request a quota increase. | 您的函数关联记录数量已达到套餐上限,请查看您的套餐配额,并升级您的套餐获得更多的函数关联记录配额数量。 |
| 400 | RoutineUserServiceStatusHalt | Failed to update the configurations because you have overdue payments. | 用户处于停机状态,不能进行更新操作。 |
| 400 | UserOperationStatusIsLocked | You are calling an another routine related api. Please wait for the api finished, and try again later. | 您正在调用其他操作函数相关的接口,请等待其他接口调用完成后重试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。