Mengkueri status pekerjaan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeJobStatus |
*全部资源
|
None | None |
Sintaks permintaan
GET /pop/v1/sam/job/describeJobStatus HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID templat pekerjaan. |
e1a7a07-abcb-4652-a1d3-2d57f415**** |
| JobId |
string |
No |
ID pekerjaan. |
event-b798157b-40a2-4388-b578-71fb897103**-** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
53F15A18-8079-5992-810C-0211A5AE**** |
| Message |
string |
The returned message. Take note of the following rules:
|
success |
| TraceId |
string |
The trace ID that is used to query the details of the request. |
0b1639af16575057857241351e**** |
| Data |
object |
The returned data. |
|
| JobId |
string |
The job ID. |
event-b798157b-40a2-4388-b578-71fb897103**-** |
| Active |
integer |
The number of running instances. |
0 |
| Succeeded |
integer |
The number of instances that are successfully run. |
3 |
| Failed |
integer |
The number of instances that failed to run. |
0 |
| StartTime |
integer |
The time when the job was created. |
1657522800 |
| CompletionTime |
integer |
The time when the job was executed. |
1657522839 |
| Message |
string |
The returned message. Take note of the following rules:
|
success |
| State |
string |
The status of the job. Valid values:
|
1 |
| ErrorCode |
string |
The error code returned. Take note of the following rules:
|
|
| Code |
string |
The HTTP status code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "53F15A18-8079-5992-810C-0211A5AE****",
"Message": "success",
"TraceId": "0b1639af16575057857241351e****",
"Data": {
"JobId": "event-b798157b-40a2-4388-b578-71fb897103**-**",
"Active": 0,
"Succeeded": 3,
"Failed": 0,
"StartTime": 1657522800,
"CompletionTime": 1657522839,
"Message": "success",
"State": "1"
},
"ErrorCode": "Null\n",
"Code": "200",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidAppId.NotFound | The specified AppId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.