Retrieves the execution history of a scheduled plan.
Try it now
Test
RAM authorization
Request syntax
GET /api/v2/namespaces/{namespace}/job-resource-upgradings HTTP/1.1Path Parameters
Parameter | Type | Required | Description | Example |
namespace | string | Yes | The name of the namespace. | default-namespace |
Request parameters
Parameter | Type | Required | Description | Example |
workspace | string | Yes | The ID of the workspace. | a14bda1c4a**** |
deploymentId | string | Yes | The ID of the deployed job. | 58718c99-3b29-4c5e-93bb-c9fc4ec6**** |
origin | string | No | The execution source. | SCHEDULED_PLAN |
Response elements
Element | Type | Description | Example |
object | The response data. | ||
requestId | string | The request ID. | CBC799F0-AS7S-1D30-8A4F-882ED4DD**** |
success | boolean | Indicates whether the request was successful. | true |
httpCode | integer | The HTTP status code. The value is always 200. Use the `success` parameter to determine whether the request was successful. | 200 |
errorCode | string | The error code that is returned if the request fails. | "" |
errorMessage | string | The error message that is returned if the request fails. | "" |
pageIndex | integer | The page number of the returned page. | 1 |
pageSize | integer | The number of entries on the returned page. | 10 |
totalSize | integer | The total number of entries that meet the filter criteria. | 4 |
| data | array | The list of jobs that meet the filter criteria. This parameter is returned only when the request is successful. | |
ScheduledPlanExecutedInfo | The execution information of the scheduled plan. |
Examples
Success response
JSON format
{
"requestId": "CBC799F0-AS7S-1D30-8A4F-882ED4DD****",
"success": true,
"httpCode": 200,
"errorCode": "\"\"",
"errorMessage": "\"\"",
"pageIndex": 1,
"pageSize": 10,
"totalSize": 4,
"data": [
{
"workspace": "edcef******b4f",
"namespace": "default-namespace",
"createdAt": "1723197248",
"creator": "27846363877456****",
"creatorName": "****@streamcompute.onaliyun.com",
"modifier": "27846363877456****",
"modifierName": "****@streamcompute.onaliyun.com",
"modifiedAt": "1723197248",
"jobResourceUpgradingId": "0e6d3bab-2277-4ed1-b573-9de6413d****",
"name": "test-scheduled-plan",
"origin": "SCHEDULED_PLAN",
"deploymentId": "00000000-0000-0000-0000-000000000001",
"originJobId": "f8a2d5d9-9fc5-4273-bfcc-2a3cd354****",
"status": {
"statusState": "UPGRADED",
"restartType": "HOT_UPDATE"
}
}
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.