Envia o código de staging (instável) de um Edge Routine e gera uma versão de produção. Pré-requisito: antes de chamar esta operação de API, chame GetRoutineStagingCodeUploadInfo para obter as credenciais de upload do OSS. Faça o upload do arquivo de código por meio do POST do OSS. Após o callback de upload ser bem-sucedido, chame esta operação de API para enviar o código.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
esa:CommitRoutineStagingCode |
create |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Name |
string |
Sim |
O nome do Edge Routine. |
test-routine1 |
| CodeDescription |
string |
Não |
A descrição da versão do código. |
description of this code ver |
| DeployEnv |
string |
Não |
O ambiente de implantação. A configuração de variáveis de ambiente do ambiente especificado é utilizada. Se você não especificar este parâmetro, as variáveis de ambiente não serão utilizadas. Valores válidos:
|
production |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Esquema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395 |
| CodeVersion |
string |
O número da versão do código recém-gerado. |
1710120201067203242 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395",
"CodeVersion": "1710120201067203242"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | RoutineNotExist | The routine name does not exist. Check the routine name and try again. | The routine name does not exist. Check the routine name and try again. |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | CodeVersionNumberExceedQuotaLimit | The maximum number of code versions in your plan has been reached. Check your plan quota and upgrade the plan to request a quota increase. | The maximum number of code versions in your plan has been reached. Check your plan quota and upgrade the plan to request a quota increase. |
| 400 | ParameterNotExist | The specified parameter does not exist. Check your configurations and try again. | The specified parameter does not exist. Check your configurations and try again. |
| 400 | DependedByOthers | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | RoutineUserServiceStatusHalt | Failed to update the configurations because you have overdue payments. | 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. | You are calling an another routine related api. Please wait for the api finished, and try again later. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.