Skip to main content

Delete Task Template

更新时间:2025-05-07 17:32:25
Delete task template.
DELETE
https://api.alayanew.com/api/serverless-train/v1/template/{id}
Authorizations
AuthorizationsStringHeaderRequired

用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。

Path Parameters
idStringRequired

Elastic container cluster ID.

Response
状态码:application/json
codeInt

code is a common return value format, representing the execution result of the operation.

0 is the success identifier, indicating the operation completed successfully.
msgString

Returns error message when the code value is -1.

curl -X DELETE 'https://api.alayanew.com/api/serverless-train/v1/template/5df0ef3c-252a-44c8-aba3-a87e23615c76'         
     -H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'

{
  "code": 0
}