All URIs are relative to http://localhost:8080
| Method | HTTP request | Description |
|---|---|---|
| createRunner | POST /organizations/{organization_id}/workspaces/{workspace_id}/runners | Create a new Runner |
| createRunnerAccessControl | POST /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access | Add a control access to the Runner |
| deleteRunner | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Delete a runner |
| deleteRunnerAccessControl | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} | Remove the specified access from the given Runner |
| getRunner | GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Get the details of a runner |
| getRunnerAccessControl | GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} | Get a control access for the Runner |
| getRunnerSecurity | GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security | Get the Runner security information |
| listRunnerPermissions | GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/permissions/{role} | Get the Runner permission by given role |
| listRunnerSecurityUsers | GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/users | Get the Runner security users list |
| listRunners | GET /organizations/{organization_id}/workspaces/{workspace_id}/runners | List all Runners |
| startRun | POST /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/start | Start a run with runner parameters |
| stopRun | POST /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/stop | Stop the last run |
| updateRunner | PATCH /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Update a runner |
| updateRunnerAccessControl | PATCH /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} | Update the specified access to User for a Runner |
| updateRunnerDefaultSecurity | PATCH /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/default | Set the Runner default security |
Runner createRunner(runnerCreateRequest)
Create a new runner for executing simulations. Use parentId to create a child runner that inherits configuration from a parent.
import {
RunnerApi,
Configuration,
RunnerCreateRequest
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerCreateRequest: RunnerCreateRequest; //the Runner to create
const { status, data } = await apiInstance.createRunner(
organizationId,
workspaceId,
runnerCreateRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| runnerCreateRequest | RunnerCreateRequest | the Runner to create | |
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
Runner
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | the runner details | - |
| 400 | Bad request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RunnerAccessControl createRunnerAccessControl(runnerAccessControl)
Grant access to a runner for a user or group. Valid roles: viewer, editor, validator (can validate runs), admin.
import {
RunnerApi,
Configuration,
RunnerAccessControl
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
let runnerAccessControl: RunnerAccessControl; //the new Runner security access to add.
const { status, data } = await apiInstance.createRunnerAccessControl(
organizationId,
workspaceId,
runnerId,
runnerAccessControl
);| Name | Type | Description | Notes |
|---|---|---|---|
| runnerAccessControl | RunnerAccessControl | the new Runner security access to add. | |
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
RunnerAccessControl
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The Runner access | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteRunner()
Delete a runner. Cannot delete while runs are in progress. Note: Child runners that reference this runner are not deleted automatically.
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
const { status, data } = await apiInstance.deleteRunner(
organizationId,
workspaceId,
runnerId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Request succeeded | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteRunnerAccessControl()
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
let identityId: string; //the User identifier (default to undefined)
const { status, data } = await apiInstance.deleteRunnerAccessControl(
organizationId,
workspaceId,
runnerId,
identityId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
| identityId | [string] | the User identifier | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Request succeeded | - |
| 404 | the Runner or the user specified is unknown or you don't have access to them | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Runner getRunner()
Retrieve detailed information about a runner.
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
const { status, data } = await apiInstance.getRunner(
organizationId,
workspaceId,
runnerId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
Runner
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | the Runner details | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RunnerAccessControl getRunnerAccessControl()
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
let identityId: string; //the User identifier (default to undefined)
const { status, data } = await apiInstance.getRunnerAccessControl(
organizationId,
workspaceId,
runnerId,
identityId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
| identityId | [string] | the User identifier | defaults to undefined |
RunnerAccessControl
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Runner access | - |
| 404 | the Runner or user specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RunnerSecurity getRunnerSecurity()
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
const { status, data } = await apiInstance.getRunnerSecurity(
organizationId,
workspaceId,
runnerId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
RunnerSecurity
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Runner security | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listRunnerPermissions()
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
let role: string; //the Role (default to undefined)
const { status, data } = await apiInstance.listRunnerPermissions(
organizationId,
workspaceId,
runnerId,
role
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
| role | [string] | the Role | defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Runners security permission list | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listRunnerSecurityUsers()
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
const { status, data } = await apiInstance.listRunnerSecurityUsers(
organizationId,
workspaceId,
runnerId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Runner security users list | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listRunners()
Retrieve a paginated list of all runners in a workspace.
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let page: number; //Page number to query (first page is at index 0) (optional) (default to undefined)
let size: number; //Amount of result by page (optional) (default to undefined)
const { status, data } = await apiInstance.listRunners(
organizationId,
workspaceId,
page,
size
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| page | [number] | Page number to query (first page is at index 0) | (optional) defaults to undefined |
| size | [number] | Amount of result by page | (optional) defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | the list of Runners | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreatedRun startRun()
Start a new simulation run using the runner's current configuration. Returns the run Id. The run executes asynchronously - use the run status endpoint to monitor progress
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
const { status, data } = await apiInstance.startRun(
organizationId,
workspaceId,
runnerId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
CreatedRun
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 202 | the newly created Run info | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
stopRun()
Stop the currently executing run for this runner. The stop operation is asynchronous - the run may continue briefly before stopping.
import {
RunnerApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
const { status, data } = await apiInstance.stopRun(
organizationId,
workspaceId,
runnerId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 202 | the last Run has been stopped | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Runner updateRunner(runnerUpdateRequest)
import {
RunnerApi,
Configuration,
RunnerUpdateRequest
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
let runnerUpdateRequest: RunnerUpdateRequest; //the new Runner details. This endpoint can\'t be used to update security
const { status, data } = await apiInstance.updateRunner(
organizationId,
workspaceId,
runnerId,
runnerUpdateRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| runnerUpdateRequest | RunnerUpdateRequest | the new Runner details. This endpoint can't be used to update security | |
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
Runner
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | the runner details | - |
| 400 | Bad request | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RunnerAccessControl updateRunnerAccessControl(runnerRole)
import {
RunnerApi,
Configuration,
RunnerRole
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
let identityId: string; //the User identifier (default to undefined)
let runnerRole: RunnerRole; //The new Runner Access Control
const { status, data } = await apiInstance.updateRunnerAccessControl(
organizationId,
workspaceId,
runnerId,
identityId,
runnerRole
);| Name | Type | Description | Notes |
|---|---|---|---|
| runnerRole | RunnerRole | The new Runner Access Control | |
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
| identityId | [string] | the User identifier | defaults to undefined |
RunnerAccessControl
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Runner access | - |
| 404 | The Organization specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RunnerSecurity updateRunnerDefaultSecurity(runnerRole)
import {
RunnerApi,
Configuration,
RunnerRole
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new RunnerApi(configuration);
let organizationId: string; //the Organization identifier (default to undefined)
let workspaceId: string; //the Workspace identifier (default to undefined)
let runnerId: string; //the Runner identifier (default to undefined)
let runnerRole: RunnerRole; //This change the runner default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the runner.
const { status, data } = await apiInstance.updateRunnerDefaultSecurity(
organizationId,
workspaceId,
runnerId,
runnerRole
);| Name | Type | Description | Notes |
|---|---|---|---|
| runnerRole | RunnerRole | This change the runner default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the runner. | |
| organizationId | [string] | the Organization identifier | defaults to undefined |
| workspaceId | [string] | the Workspace identifier | defaults to undefined |
| runnerId | [string] | the Runner identifier | defaults to undefined |
RunnerSecurity
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The Runner default visibility | - |
| 404 | the Runner specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]