Deletes one or more job templates at a time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteJobTemplates

The operation that you want to perform. Set the value to DeleteJobTemplates.

Templates String Yes [{"Id":"ehpc-job-tmpl-6RVcMK****"},{"Id": "ehpc-job-tmpl-6RxO5y****"}]

The list of job templates. A maximum of 20 job templates can be deleted.

Format: [{"Id": "0.sched****"},{"Id": "1.sched****"}]. Separate multiple job templates with commas (,).

You can call the ListJobTemplates operation to obtain the job template ID.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE7****

The ID of the request.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=DeleteJobTemplates
&Templates=[{"Id":"ehpc-job-tmpl-6RVcMK****"},{"Id": "ehpc-job-tmpl-6RxO5y****"}]
&<Common request parameters>

Sample success responses

XML format

<DeleteJobTemplatesResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
</DeleteJobTemplatesResponse>

JSON format

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****"
}

Error codes

HttpCode Error code Error message Description
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The service is temporarily unavailable.

For a list of error codes, visit the API Error Center.