This job provides the ability to collect and download the server log for servers managed by COM.
| Job Template ID | Resource Type | Job Parameters |
|---|---|---|
| 2d744494-22d4-4d61-8c65-647ccadeb6b6 | compute-ops-mgmt/server | collect_ahs_log |
A job can be created by issuing a POST to the /compute-ops-mgmt/v1/jobs endpoint with the correct payload for the job.
The following properties are used when creating a job:
| Property | JSON Type | Description | Required? |
|---|---|---|---|
jobTemplate | string (id) | The durable Template ID of the job | Yes |
resourceType | string (type) | The TYPE of the resource the job will operate on | Yes |
resourceId | string (id) | The ID of the resource the job will operate on | Yes |
jobParams | object | Any additional data required by the job | No |
If the job was created successfully, a 201 Created response is returned. The response includes the job resource which has a job resourceUri that you can use to track the progress of the job.
The server log collection can be downloaded by executing GET on /compute-ops-mgmt/v1/servers/{server_id}/download-logs endpoint.
This table summarizes the supported properties in jobParams.
| Property | JSON Type | Values | Required? |
|---|---|---|---|
collect_ahs_log | boolean | When enabled, Active Health System (AHS) Log will be downloaded as part of collect server log job | No |
collect_ahs_log: When enabled, AHS log will be downloaded as part of collect server log job .- Default :
false
Here are a couple of example request payloads for creating this job.
Collect server log which includes AHS collection.
{
"jobTemplate": "2d744494-22d4-4d61-8c65-647ccadeb6b6",
"resourceType": "compute-ops-mgmt/server",
"resourceId": "868703-B21+SGH744YPVP",
"jobParams": {
"collect_ahs_log": true
}
}Collect server log without AHS collection.
{
"jobTemplate": "2d744494-22d4-4d61-8c65-647ccadeb6b6",
"resourceType": "compute-ops-mgmt/server",
"resourceId": "868703-B21+SGH744YPVP",
}