Skip to content

Latest commit

 

History

History
1584 lines (1068 loc) · 50.2 KB

File metadata and controls

1584 lines (1068 loc) · 50.2 KB

SolutionApi

All URIs are relative to http://localhost:8080

Method HTTP request Description
createSolution POST /organizations/{organization_id}/solutions Create a new solution
createSolutionAccessControl POST /organizations/{organization_id}/solutions/{solution_id}/security/access Create solution access control
createSolutionParameter POST /organizations/{organization_id}/solutions/{solution_id}/parameters Create solution parameter for a solution
createSolutionParameterGroup POST /organizations/{organization_id}/solutions/{solution_id}/parameterGroups Create a solution parameter group
createSolutionRunTemplate POST /organizations/{organization_id}/solutions/{solution_id}/runTemplates Create a solution run template
deleteSolution DELETE /organizations/{organization_id}/solutions/{solution_id} Delete a solution
deleteSolutionAccessControl DELETE /organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id} Delete solution access control
deleteSolutionParameter DELETE /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id} Delete specific parameter from the solution
deleteSolutionParameterGroup DELETE /organizations/{organization_id}/solutions/{solution_id}/parameterGroups/{parameter_group_id} Delete a parameter group from the solution
deleteSolutionRunTemplate DELETE /organizations/{organization_id}/solutions/{solution_id}/runTemplates/{run_template_id} Delete a specific run template
getRunTemplate GET /organizations/{organization_id}/solutions/{solution_id}/runTemplates/{run_template_id} Retrieve a solution run templates
getSolution GET /organizations/{organization_id}/solutions/{solution_id} Get the details of a solution
getSolutionAccessControl GET /organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id} Get solution access control
getSolutionParameter GET /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id} Get the details of a solution parameter
getSolutionParameterGroup GET /organizations/{organization_id}/solutions/{solution_id}/parameterGroups/{parameter_group_id} Get details of a solution parameter group
getSolutionSecurity GET /organizations/{organization_id}/solutions/{solution_id}/security Get solution security information
listRunTemplates GET /organizations/{organization_id}/solutions/{solution_id}/runTemplates List all solution run templates
listSolutionParameterGroups GET /organizations/{organization_id}/solutions/{solution_id}/parameterGroups List all solution parameter groups
listSolutionParameters GET /organizations/{organization_id}/solutions/{solution_id}/parameters List all solution parameters
listSolutionSecurityUsers GET /organizations/{organization_id}/solutions/{solution_id}/security/users List solution security users
listSolutions GET /organizations/{organization_id}/solutions List all Solutions
updateSolution PATCH /organizations/{organization_id}/solutions/{solution_id} Update a solution
updateSolutionAccessControl PATCH /organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id} Update solution access control
updateSolutionDefaultSecurity PATCH /organizations/{organization_id}/solutions/{solution_id}/security/default Update solution default security
updateSolutionParameter PATCH /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id} Update solution parameter
updateSolutionParameterGroup PATCH /organizations/{organization_id}/solutions/{solution_id}/parameterGroups/{parameter_group_id} Update a solution parameter group
updateSolutionRunTemplate PATCH /organizations/{organization_id}/solutions/{solution_id}/runTemplates/{run_template_id} Update a specific run template

createSolution

Solution createSolution(solutionCreateRequest)

Create a new solution with optional run templates and parameter definitions.

Example

import {
    SolutionApi,
    Configuration,
    SolutionCreateRequest
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionCreateRequest: SolutionCreateRequest; //The Solution to create

const { status, data } = await apiInstance.createSolution(
    organizationId,
    solutionCreateRequest
);

Parameters

Name Type Description Notes
solutionCreateRequest SolutionCreateRequest The Solution to create
organizationId [string] the Organization identifier defaults to undefined

Return type

Solution

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
201 Solution successfully created -
400 Bad request -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createSolutionAccessControl

SolutionAccessControl createSolutionAccessControl(solutionAccessControl)

Grant access to a solution for a user or group.

Example

import {
    SolutionApi,
    Configuration,
    SolutionAccessControl
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let solutionAccessControl: SolutionAccessControl; //Access control to create

const { status, data } = await apiInstance.createSolutionAccessControl(
    organizationId,
    solutionId,
    solutionAccessControl
);

Parameters

Name Type Description Notes
solutionAccessControl SolutionAccessControl Access control to create
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

SolutionAccessControl

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
201 Solution access control successfully created -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createSolutionParameter

RunTemplateParameter createSolutionParameter(runTemplateParameterCreateRequest)

Example

import {
    SolutionApi,
    Configuration,
    RunTemplateParameterCreateRequest
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let runTemplateParameterCreateRequest: RunTemplateParameterCreateRequest; //Parameter to create

const { status, data } = await apiInstance.createSolutionParameter(
    organizationId,
    solutionId,
    runTemplateParameterCreateRequest
);

Parameters

Name Type Description Notes
runTemplateParameterCreateRequest RunTemplateParameterCreateRequest Parameter to create
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

RunTemplateParameter

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Parameters successfully created -
400 Bad request -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createSolutionParameterGroup

RunTemplateParameterGroup createSolutionParameterGroup(runTemplateParameterGroupCreateRequest)

Example

import {
    SolutionApi,
    Configuration,
    RunTemplateParameterGroupCreateRequest
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let runTemplateParameterGroupCreateRequest: RunTemplateParameterGroupCreateRequest; //Parameter group to create

const { status, data } = await apiInstance.createSolutionParameterGroup(
    organizationId,
    solutionId,
    runTemplateParameterGroupCreateRequest
);

Parameters

Name Type Description Notes
runTemplateParameterGroupCreateRequest RunTemplateParameterGroupCreateRequest Parameter group to create
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

RunTemplateParameterGroup

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
201 Parameter group successfully created -
400 Bad request - Invalid parameter group -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createSolutionRunTemplate

RunTemplate createSolutionRunTemplate(runTemplateCreateRequest)

Example

import {
    SolutionApi,
    Configuration,
    RunTemplateCreateRequest
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let runTemplateCreateRequest: RunTemplateCreateRequest; //Run template to create

const { status, data } = await apiInstance.createSolutionRunTemplate(
    organizationId,
    solutionId,
    runTemplateCreateRequest
);

Parameters

Name Type Description Notes
runTemplateCreateRequest RunTemplateCreateRequest Run template to create
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

RunTemplate

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
201 Run template successfully created -
400 Bad request - Invalid run template -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteSolution

deleteSolution()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)

const { status, data } = await apiInstance.deleteSolution(
    organizationId,
    solutionId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

void (empty response body)

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 Solution successfully deleted -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteSolutionAccessControl

deleteSolutionAccessControl()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)

const { status, data } = await apiInstance.deleteSolutionAccessControl(
    organizationId,
    solutionId,
    identityId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
identityId [string] The User identifier defaults to undefined

Return type

void (empty response body)

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 Solution access control successfully deleted -
404 Solution or user not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteSolutionParameter

deleteSolutionParameter()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let parameterId: string; //The solution parameter identifier (default to undefined)

const { status, data } = await apiInstance.deleteSolutionParameter(
    organizationId,
    solutionId,
    parameterId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
parameterId [string] The solution parameter identifier defaults to undefined

Return type

void (empty response body)

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 Parameter successfully deleted -
404 Solution or parameter not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteSolutionParameterGroup

deleteSolutionParameterGroup()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let parameterGroupId: string; //The parameter group identifier (default to undefined)

const { status, data } = await apiInstance.deleteSolutionParameterGroup(
    organizationId,
    solutionId,
    parameterGroupId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
parameterGroupId [string] The parameter group identifier defaults to undefined

Return type

void (empty response body)

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 Parameter group successfully deleted -
404 Solution or parameter group not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteSolutionRunTemplate

deleteSolutionRunTemplate()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let runTemplateId: string; //The Run Template identifier (default to undefined)

const { status, data } = await apiInstance.deleteSolutionRunTemplate(
    organizationId,
    solutionId,
    runTemplateId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
runTemplateId [string] The Run Template identifier defaults to undefined

Return type

void (empty response body)

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 Run template successfully deleted -
404 Solution or run template not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getRunTemplate

RunTemplate getRunTemplate()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let runTemplateId: string; //The Run Template identifier (default to undefined)

const { status, data } = await apiInstance.getRunTemplate(
    organizationId,
    solutionId,
    runTemplateId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
runTemplateId [string] The Run Template identifier defaults to undefined

Return type

RunTemplate

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Run template successfully retrieved -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getSolution

Solution getSolution()

Retrieve detailed information about a solution.

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)

const { status, data } = await apiInstance.getSolution(
    organizationId,
    solutionId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

Solution

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Solution details successfully retrieved -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getSolutionAccessControl

SolutionAccessControl getSolutionAccessControl()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)

const { status, data } = await apiInstance.getSolutionAccessControl(
    organizationId,
    solutionId,
    identityId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
identityId [string] The User identifier defaults to undefined

Return type

SolutionAccessControl

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Solution access control successfully retrieved -
404 Solution or user not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getSolutionParameter

RunTemplateParameter getSolutionParameter()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let parameterId: string; //The solution parameter identifier (default to undefined)

const { status, data } = await apiInstance.getSolutionParameter(
    organizationId,
    solutionId,
    parameterId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
parameterId [string] The solution parameter identifier defaults to undefined

Return type

RunTemplateParameter

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Parameters successfully retrieved -
400 Bad Request -
404 Solution or parameter not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getSolutionParameterGroup

RunTemplateParameterGroup getSolutionParameterGroup()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let parameterGroupId: string; //The parameter group identifier (default to undefined)

const { status, data } = await apiInstance.getSolutionParameterGroup(
    organizationId,
    solutionId,
    parameterGroupId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
parameterGroupId [string] The parameter group identifier defaults to undefined

Return type

RunTemplateParameterGroup

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Parameter groups successfully retrieved -
404 Solution or parameter group not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getSolutionSecurity

SolutionSecurity getSolutionSecurity()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)

const { status, data } = await apiInstance.getSolutionSecurity(
    organizationId,
    solutionId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

SolutionSecurity

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Solution security information successfully retrieved -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listRunTemplates

Array listRunTemplates()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)

const { status, data } = await apiInstance.listRunTemplates(
    organizationId,
    solutionId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

Array

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Run templates successfully listed -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listSolutionParameterGroups

Array listSolutionParameterGroups()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)

const { status, data } = await apiInstance.listSolutionParameterGroups(
    organizationId,
    solutionId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

Array

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Parameter groups successfully listed -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listSolutionParameters

Array listSolutionParameters()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)

const { status, data } = await apiInstance.listSolutionParameters(
    organizationId,
    solutionId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

Array

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Parameters successfully retrieved -
400 Bad Request -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listSolutionSecurityUsers

Array listSolutionSecurityUsers()

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)

const { status, data } = await apiInstance.listSolutionSecurityUsers(
    organizationId,
    solutionId
);

Parameters

Name Type Description Notes
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

Array

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Solution security users list successfully retrieved -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listSolutions

Array listSolutions()

Retrieve a paginated list of all solutions in an organization that the user has permission to view.

Example

import {
    SolutionApi,
    Configuration
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization 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.listSolutions(
    organizationId,
    page,
    size
);

Parameters

Name Type Description Notes
organizationId [string] the Organization 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

Return type

Array

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 List of solutions successfully retrieved -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateSolution

Solution updateSolution(solutionUpdateRequest)

Example

import {
    SolutionApi,
    Configuration,
    SolutionUpdateRequest
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let solutionUpdateRequest: SolutionUpdateRequest; //The new Solution details. This endpoint can\'t be used to update security

const { status, data } = await apiInstance.updateSolution(
    organizationId,
    solutionId,
    solutionUpdateRequest
);

Parameters

Name Type Description Notes
solutionUpdateRequest SolutionUpdateRequest The new Solution details. This endpoint can't be used to update security
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

Solution

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Solution successfully updated -
400 Bad request - Invalid update parameters -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateSolutionAccessControl

SolutionAccessControl updateSolutionAccessControl(solutionRole)

Example

import {
    SolutionApi,
    Configuration,
    SolutionRole
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)
let solutionRole: SolutionRole; //Access control updates

const { status, data } = await apiInstance.updateSolutionAccessControl(
    organizationId,
    solutionId,
    identityId,
    solutionRole
);

Parameters

Name Type Description Notes
solutionRole SolutionRole Access control updates
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
identityId [string] The User identifier defaults to undefined

Return type

SolutionAccessControl

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Solution access control successfully updated -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateSolutionDefaultSecurity

SolutionSecurity updateSolutionDefaultSecurity(solutionRole)

Example

import {
    SolutionApi,
    Configuration,
    SolutionRole
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let solutionRole: SolutionRole; //This changes the solution 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 solution.

const { status, data } = await apiInstance.updateSolutionDefaultSecurity(
    organizationId,
    solutionId,
    solutionRole
);

Parameters

Name Type Description Notes
solutionRole SolutionRole This changes the solution 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 solution.
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined

Return type

SolutionSecurity

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Solution default security successfully updated -
404 Solution not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateSolutionParameter

RunTemplateParameter updateSolutionParameter(runTemplateParameterUpdateRequest)

Example

import {
    SolutionApi,
    Configuration,
    RunTemplateParameterUpdateRequest
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let parameterId: string; //The solution parameter identifier (default to undefined)
let runTemplateParameterUpdateRequest: RunTemplateParameterUpdateRequest; //Parameter to update

const { status, data } = await apiInstance.updateSolutionParameter(
    organizationId,
    solutionId,
    parameterId,
    runTemplateParameterUpdateRequest
);

Parameters

Name Type Description Notes
runTemplateParameterUpdateRequest RunTemplateParameterUpdateRequest Parameter to update
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
parameterId [string] The solution parameter identifier defaults to undefined

Return type

RunTemplateParameter

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
201 Parameters successfully updated -
400 Bad request -
404 Solution or parameter not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateSolutionParameterGroup

RunTemplateParameterGroup updateSolutionParameterGroup(runTemplateParameterGroupUpdateRequest)

Example

import {
    SolutionApi,
    Configuration,
    RunTemplateParameterGroupUpdateRequest
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let parameterGroupId: string; //The parameter group identifier (default to undefined)
let runTemplateParameterGroupUpdateRequest: RunTemplateParameterGroupUpdateRequest; //Parameter groups to update

const { status, data } = await apiInstance.updateSolutionParameterGroup(
    organizationId,
    solutionId,
    parameterGroupId,
    runTemplateParameterGroupUpdateRequest
);

Parameters

Name Type Description Notes
runTemplateParameterGroupUpdateRequest RunTemplateParameterGroupUpdateRequest Parameter groups to update
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
parameterGroupId [string] The parameter group identifier defaults to undefined

Return type

RunTemplateParameterGroup

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Parameter groups successfully updated -
400 Bad request - Invalid parameter group -
404 Solution or parameter group not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateSolutionRunTemplate

RunTemplate updateSolutionRunTemplate(runTemplateUpdateRequest)

Example

import {
    SolutionApi,
    Configuration,
    RunTemplateUpdateRequest
} from '@cosmotech/api-ts';

const configuration = new Configuration();
const apiInstance = new SolutionApi(configuration);

let organizationId: string; //the Organization identifier (default to undefined)
let solutionId: string; //the Solution identifier (default to undefined)
let runTemplateId: string; //The Run Template identifier (default to undefined)
let runTemplateUpdateRequest: RunTemplateUpdateRequest; //Run template updates

const { status, data } = await apiInstance.updateSolutionRunTemplate(
    organizationId,
    solutionId,
    runTemplateId,
    runTemplateUpdateRequest
);

Parameters

Name Type Description Notes
runTemplateUpdateRequest RunTemplateUpdateRequest Run template updates
organizationId [string] the Organization identifier defaults to undefined
solutionId [string] the Solution identifier defaults to undefined
runTemplateId [string] The Run Template identifier defaults to undefined

Return type

RunTemplate

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: application/json, application/yaml
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 Run template successfully updated -
400 Bad request - Invalid run template updates -
404 Solution or run template not found or insufficient access rights -

[Back to top] [Back to API list] [Back to Model list] [Back to README]