获取指定作业的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClusterId | string | 是 | 集群 ID。 | ehpc-hz-FYUr32**** |
JobId | string | 是 | 作业 ID。通过 ListJobs 接口返回。 | 1.manager |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "04F0****-1335-****-A1D7-6C044FE7****",
"JobInfo": {
"JobId": "1.manager",
"JobName": "testJob\n",
"RunasUser": "testuser",
"State": "Running",
"JobQueue": "workq",
"CreateTime": "2024-08-16T10:52:48",
"LastModifyTime": "2024-08-16T10:52:48",
"ErrorLog": "/home/xxx/STDIN.e1",
"StartTime": "2024-08-16T10:52:48",
"Priority": 0,
"CommandLine": "/home/huangsf/ehpc/job_meta.pbs",
"OutputLog": "/home/xxx/STDIN.o1",
"NodeList": "compute000",
"ArrayRequest": "1-5:2",
"Resources": {
"Nodes": 1,
"Cores": 2,
"Memory": "1gb",
"Gpus": 1
},
"Variables": [
{
"Name": "ProxyIP",
"Value": "10.x.x.x"
}
],
"ExtraInfo": {},
"ResourcesUsed": {
"Nodes": 2,
"Cores": 2,
"Memory": "512mb"
},
"ArrayJobId": 1,
"ArrayJobSubId": 3
},
"Success": true
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParams | The specified parameter %s is invalid. | 指定的参数 %s 无效。 |
403 | InvalidClusterStatus | The operation failed due to invalid cluster status. | 集群状态不允许执行本次操作。 |
404 | ClusterNotFound | The specified cluster does not exist. | 指定的集群不存在,请您检查该参数是否正确。 |
406 | DbError | A database service error occurred. | 数据库请求失败 |
406 | EcsError | An error occurred while calling the ECS API operation. | ECS API调用出错. %s |
406 | AgentError | The agent service request failed: %s | 操作未成功:%s |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史