All URIs are relative to http://localhost:8080
| Method | HTTP request | Description |
|---|---|---|
| createOrganization | POST /organizations | Create a new organization |
| createOrganizationAccessControl | POST /organizations/{organization_id}/security/access | Add a control access to the Organization |
| deleteOrganization | DELETE /organizations/{organization_id} | Delete an organization |
| deleteOrganizationAccessControl | DELETE /organizations/{organization_id}/security/access/{identity_id} | Remove the specified access from the given Organization |
| getOrganization | GET /organizations/{organization_id} | Get the details of an Organization |
| getOrganizationAccessControl | GET /organizations/{organization_id}/security/access/{identity_id} | Get a control access for the Organization |
| getOrganizationPermissions | GET /organizations/{organization_id}/permissions/{role} | Get the Organization permissions by given role |
| getOrganizationSecurity | GET /organizations/{organization_id}/security | Get the Organization security information |
| listOrganizationSecurityUsers | GET /organizations/{organization_id}/security/users | Get the Organization security users list |
| listOrganizations | GET /organizations | List all Organizations |
| listPermissions | GET /organizations/permissions | Get all permissions per components |
| updateOrganization | PATCH /organizations/{organization_id} | Update an Organization |
| updateOrganizationAccessControl | PATCH /organizations/{organization_id}/security/access/{identity_id} | Update the specified access to User for an Organization |
| updateOrganizationDefaultSecurity | PATCH /organizations/{organization_id}/security/default | Update the Organization default security |
Organization createOrganization(organizationCreateRequest)
Create a new organization.
import {
OrganizationApi,
Configuration,
OrganizationCreateRequest
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationCreateRequest: OrganizationCreateRequest; //
const { status, data } = await apiInstance.createOrganization(
organizationCreateRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationCreateRequest | OrganizationCreateRequest |
Organization
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The Organization details | - |
| 400 | Bad request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationAccessControl createOrganizationAccessControl(organizationAccessControl)
Grant access to an organization for a user or group.
import {
OrganizationApi,
Configuration,
OrganizationAccessControl
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let organizationAccessControl: OrganizationAccessControl; //The new Organization security access to add.
const { status, data } = await apiInstance.createOrganizationAccessControl(
organizationId,
organizationAccessControl
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationAccessControl | OrganizationAccessControl | The new Organization security access to add. | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
OrganizationAccessControl
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The Organization 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]
deleteOrganization()
Permanently delete an organization. This operation cannot be undone.
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
const { status, data } = await apiInstance.deleteOrganization(
organizationId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization 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 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]
deleteOrganizationAccessControl()
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)
const { status, data } = await apiInstance.deleteOrganizationAccessControl(
organizationId,
identityId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization 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 Organization 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]
Organization getOrganization()
Retrieve detailed information about an organization.
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
const { status, data } = await apiInstance.getOrganization(
organizationId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
Organization
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Organization details | - |
| 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]
OrganizationAccessControl getOrganizationAccessControl()
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)
const { status, data } = await apiInstance.getOrganizationAccessControl(
organizationId,
identityId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| identityId | [string] | The User identifier | defaults to undefined |
OrganizationAccessControl
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Organization access | - |
| 404 | The Organization 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]
Array getOrganizationPermissions()
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let role: string; //The Role (default to undefined)
const { status, data } = await apiInstance.getOrganizationPermissions(
organizationId,
role
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization 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 Organization security permission list | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationSecurity getOrganizationSecurity()
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
const { status, data } = await apiInstance.getOrganizationSecurity(
organizationId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
OrganizationSecurity
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Organization security | - |
| 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]
Array listOrganizationSecurityUsers()
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
const { status, data } = await apiInstance.listOrganizationSecurityUsers(
organizationId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Organization security users list | - |
| 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]
Array listOrganizations()
Retrieve a paginated list of all organizations the authenticated user has permission to view. Use 'page' and 'size' query parameters for pagination.
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
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.listOrganizations(
page,
size
);| Name | Type | Description | Notes |
|---|---|---|---|
| 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 Organizations | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listPermissions()
import {
OrganizationApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
const { status, data } = await apiInstance.listPermissions();This endpoint does not have any parameters.
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The security permission list | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Organization updateOrganization(organizationUpdateRequest)
import {
OrganizationApi,
Configuration,
OrganizationUpdateRequest
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let organizationUpdateRequest: OrganizationUpdateRequest; //The new Organization details. This endpoint can\'t be used to update security
const { status, data } = await apiInstance.updateOrganization(
organizationId,
organizationUpdateRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationUpdateRequest | OrganizationUpdateRequest | The new Organization details. This endpoint can't be used to update security | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
Organization
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The organization details | - |
| 400 | Bad request | - |
| 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]
OrganizationAccessControl updateOrganizationAccessControl(organizationRole)
import {
OrganizationApi,
Configuration,
OrganizationRole
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)
let organizationRole: OrganizationRole; //The new Organization Access Control
const { status, data } = await apiInstance.updateOrganizationAccessControl(
organizationId,
identityId,
organizationRole
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationRole | OrganizationRole | The new Organization Access Control | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
| identityId | [string] | The User identifier | defaults to undefined |
OrganizationAccessControl
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Organization 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]
OrganizationSecurity updateOrganizationDefaultSecurity(organizationRole)
import {
OrganizationApi,
Configuration,
OrganizationRole
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let organizationRole: OrganizationRole; //This change the organization 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 organization.
const { status, data } = await apiInstance.updateOrganizationDefaultSecurity(
organizationId,
organizationRole
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationRole | OrganizationRole | This change the organization 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 organization. | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
OrganizationSecurity
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The Organization default visibility | - |
| 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]