Jobs API
POST /api/silicon-mark/v1/jobs
Create a new benchmarking job.Authorization
🔒OAuth2: OAuth2PasswordBearerFlow type: password
Token URL: token
Request Body
The request body must be inapplication/json
format.
Field | Type | Required | Description | Constraints |
---|---|---|---|---|
name | string | Yes | Job name | [ 1 .. 60 ] characters |
description | string | No | Job description | Max 512 characters |
benchmarks | array | Yes | List of benchmarks to run | String or object format |
node_count | integer | Yes | Number of expected nodes | [ 1 .. 256 ] |
tags | array | No | Job tags | Max 10 tags, 50 chars each |
Request Example
Responses
- 201: Created
- 400: Bad Request
- 401: Unauthorized
- 409: Conflict
GET /api/silicon-mark/v1/jobs/{job_id}
Get detailed information about a specific job.Authorization
🔒OAuth2: OAuth2PasswordBearerFlow type: password
Token URL: token
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
job_id | string | Yes | The job ID |
Query Parameters
Parameter | Type | Required | Description | Default |
---|---|---|---|---|
include_tasks | boolean | No | Include task summaries | true |
include_results | boolean | No | Include benchmark results | true |
Responses
- 200: Successful Response
- 404: Not Found
GET /api/silicon-mark/v1/jobs
List jobs with filtering and pagination.Authorization
🔒OAuth2: OAuth2PasswordBearerFlow type: password
Token URL: token
Query Parameters
Parameter | Type | Required | Description | Default |
---|---|---|---|---|
page | integer | No | Page number | 1 |
per_page | integer | No | Items per page (max: 300) | 20 |
sort_by | string | No | Field to sort by | created_at |
sort_order | string | No | Sort direction (asc/desc) | desc |
state | string | No | Filter by job state | |
name | string | No | Filter by name (partial match) | |
benchmark_id | string | No | Filter by benchmark in sequence | |
tag | string | No | Filter by tag | |
created_after | datetime | No | Jobs created after this timestamp | |
created_before | datetime | No | Jobs created before this timestamp | |
node_count_min | integer | No | Minimum node count | |
node_count_max | integer | No | Maximum node count |
Responses
- 200: Successful Response
GET /api/silicon-mark/v1/jobs/{job_id}/results
Get the result summary of this job.Authorization
🔒OAuth2: OAuth2PasswordBearerFlow type: password
Token URL: token
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
job_id | string | Yes | The job ID |
Query Parameters
Parameter | Type | Required | Description | Default |
---|---|---|---|---|
include_display_name | boolean | No | Include human-readable field names | false |
Responses
- 200: Successful Response