Creates a job file.

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 parameter

Parameter Type Required Example Description
Action String Yes CreateJobFile

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

ClusterId String Yes ehpc-hz-jeJki6****

The ID of the cluster.

You can call the ListClusters operation to query the cluster ID.

Content String Yes c2xlZXAgMzA=

The content of the job file. The content is encoded in Base64.

RunasUser String Yes testuser1

The user to which the job belongs.

You can call the ListUsers operation to query the users of the cluster.

RunasUserPassword String Yes !QAZ****

The password of the user.

TargetFile String Yes lammps.pbs

The name of the job file.

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=CreateJobFile
&ClusterId=ehpc-hz-jeJki6****
&Content=c2xlZXAgMzA=
&RunasUser=testuser1
&RunasUserPassword=!QAZ****
&TargetFile=lammps.pbs
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

HttpCode Error code Error message Description
400 InvalidParams The specified parameter %s is invalid. The error message returned because the following parameter is invalid: %s.
400 NotEnabled You have not enabled this service The error message returned because the service has not been activated for your account.
400 InDebt Your account has overdue payments. The error message returned because your account has overdue payments.
403 InvalidClusterStatus The operation failed due to invalid cluster status. The error message returned because the operation is not supported while the cluster is in the current state.
403 ConflictOpt A conflicting operation is running. The error message returned because an operation that conflicts with the current operation is in progress. Try again later.
403 IncorrectCredential The username or password is incorrect. The error message returned because the username or password is invalid.
403 AgentError The agent service request failed. The error message returned because the proxy request has failed.
404 ClusterNotFound The specified cluster does not exist. The error message returned because the specified cluster does not exist.
407 NotAuthorized You are not authorized by RAM for this request. The error message returned because you are not authorized by RAM for this request.
406 AliyunError An Alibaba Cloud product error occurred. The error message returned because the operation has failed to call another Alibaba Cloud service.
409 PartFailure Part of the batch operation failed. The error message returned because the batch operation has failed.
500 UnknownError An unknown error occurred. The error message returned because an unknown error has occurred.
404 ManagerNotFound The manager nodes do not exist or their status is abnormal. The error message returned because the management node does not exist or is not running as expected.
403 AgentError.Account.ValidateCredentialFailure Username or password verification failed. The error message returned because the username or password has failed to be verified.
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.