prosEO Facility Manager REST Services API API documentation version v0.1
/proseo/facility-mgr/{version}
- version: required(v0.1)
/facilities
Get processing facilities by mission and facility name
Create a new processing facility
get /facilities
Get processing facilities by mission and facility name
Query Parameters
- name: (string)
The processing facility name (unique key)
HTTP status code 200
Body
Media type: application/json
Type: array of object
Items: RestProcessingFacility
- id: (integer - default: 0)
The persistent id of this object
- version: (integer - default: 1)
A version identifier to track updates to the object (especially to detect concurrent update attempts)
- name: required(string)
The facility name (unique key)
- facilityState: required(string - default: DISABLED)
The run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING }
- description: (string)
A short description of the processing facility
- processingEngineUrl: (string)
The URL to access this facility's processing engine (Kubernetes instance)
- processingEngineToken: (string)
Authentication token for connecting to this facility's processing engine (Kubernetes instance)
- maxJobsPerNode: (integer - default: 1)
Maximum number of jobs schedulable per worker node (default 1)
- storageManagerUrl: required(string)
The URL to access this facility's storage manager from the control instance
- externalStorageManagerUrl: required(string)
The URL to access this facility's storage manager from an external client (via PRIP API)
- localStorageManagerUrl: (string)
URL of the locally accessible Storage Manager
- storageManagerUser: required(string)
User name for connecting to the Storage Manager (locally and from external services)
- storageManagerPassword: required(string)
Password for connecting to the Storage Manager (locally and from external services)
- defaultStorageType: required(string - pattern: ^(S3|ALLUXIO|POSIX|OTHER)$)
The type of the storage
Example:
[
{
"name": "PF1",
"description": "Processing Facility 1",
"facilityState": "RUNNING",
"processingEngineUrl": "https://procfac1.proseo-domain.de/kubernetes",
"processingEngineToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlBpM…jjzckxFyH9d8ggu-EYFJWLFY5g",
"maxJobsPerNode": 4,
"storageManagerUrl": "http://procfac1.proseo-domain.de/api/v1/namespaces/default/services/storage-mgr-service:service/proxy/proseo/storage-mgr/v0.1",
"externalStorageManagerUrl": "http://prip1.proseo-domain.de/proseo/storage-mgr/v0.1",
"localStorageManagerUrl": "https://%NODE_IP%:30001/proseo/storage-mgr/v0.1",
"storageManagerUser": "smuser1",
"storageManagerPassword": "smpwd1-but-that-would-be-way-too-short",
"defaultStorageType": "S3"
},
{
"name": "PF2",
"description": "Processing Facility 2",
"facilityState": "DISABLED",
"processingEngineUrl": "https://procfac2.proseo-domain.de/kubernetes",
"processingEngineToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlBpM…y0-xUBMA7kJqHrdXRWtaUyFN7w",
"storageManagerUrl": "http://procfac2.proseo-domain.de/api/v1/namespaces/default/services/storage-mgr-service:service/proxy/proseo/storage-mgr/v1.1",
"externalStorageManagerUrl": "http://prip2.proseo-domain.de/proseo/storage-mgr/v0.1",
"localStorageManagerUrl": "https://%NODE_IP%:30001/proseo/storage-mgr/v1.1",
"storageManagerUser": "smuser2",
"storageManagerPassword": "smpwd2-but-that-would-be-way-too-short",
"defaultStorageType": "S3"
}
]
HTTP status code 400
The request sent to the server contains data which is not as expected e.g. invalid location URI
Headers
- Warning: required(string - pattern: ^\d{3} proseo-facmgr \(.\d+\) .+$)
An error code and a plain text error message
Example:
199 proseo-facmgr (E1005) Facility ID not set
HTTP status code 404
The requested resource was not found
Headers
- Warning: required(string - pattern: ^\d{3} proseo-facmgr \(.\d+\) .+$)
An error code and a plain text error message
Example:
199 proseo-facmgr (E1005) Facility ID not set
post /facilities
Create a new processing facility
Body
Media type: application/json
Type: object
Properties- id: (integer - default: 0)
The persistent id of this object
- version: (integer - default: 1)
A version identifier to track updates to the object (especially to detect concurrent update attempts)
- name: required(string)
The facility name (unique key)
- facilityState: required(string - default: DISABLED)
The run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING }
- description: (string)
A short description of the processing facility
- processingEngineUrl: (string)
The URL to access this facility's processing engine (Kubernetes instance)
- processingEngineToken: (string)
Authentication token for connecting to this facility's processing engine (Kubernetes instance)
- maxJobsPerNode: (integer - default: 1)
Maximum number of jobs schedulable per worker node (default 1)
- storageManagerUrl: required(string)
The URL to access this facility's storage manager from the control instance
- externalStorageManagerUrl: required(string)
The URL to access this facility's storage manager from an external client (via PRIP API)
- localStorageManagerUrl: (string)
URL of the locally accessible Storage Manager
- storageManagerUser: required(string)
User name for connecting to the Storage Manager (locally and from external services)
- storageManagerPassword: required(string)
Password for connecting to the Storage Manager (locally and from external services)
- defaultStorageType: required(string - pattern: ^(S3|ALLUXIO|POSIX|OTHER)$)
The type of the storage
Example:
{
"name": "Test",
"description": "Processing Facility 1",
"facilityState": "RUNNING",
"processingEngineUrl": "https://procfac1.proseo-domain.de/kubernetes",
"processingEngineToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlBpM…jjzckxFyH9d8ggu-EYFJWLFY5g",
"storageManagerUrl": "http://procfac1.proseo-domain.de/api/v1/namespaces/default/services/storage-mgr-service:service/proxy/proseo/storage-mgr/v0.1",
"externalStorageManagerUrl": "http://prip.proseo-domain.de/proseo/storage-mgr/v0.1",
"localStorageManagerUrl": "https://%NODE_IP%:30001/proseo/storage-mgr/v0.1",
"storageManagerUser": "smuser",
"storageManagerPassword": "smpwd-but-that-would-be-way-too-short",
"defaultStorageType": "S3"
}
HTTP status code 201
Body
Media type: application/json
Type: object
Properties- id: (integer - default: 0)
The persistent id of this object
- version: (integer - default: 1)
A version identifier to track updates to the object (especially to detect concurrent update attempts)
- name: required(string)
The facility name (unique key)
- facilityState: required(string - default: DISABLED)
The run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING }
- description: (string)
A short description of the processing facility
- processingEngineUrl: (string)
The URL to access this facility's processing engine (Kubernetes instance)
- processingEngineToken: (string)
Authentication token for connecting to this facility's processing engine (Kubernetes instance)
- maxJobsPerNode: (integer - default: 1)
Maximum number of jobs schedulable per worker node (default 1)
- storageManagerUrl: required(string)
The URL to access this facility's storage manager from the control instance
- externalStorageManagerUrl: required(string)
The URL to access this facility's storage manager from an external client (via PRIP API)
- localStorageManagerUrl: (string)
URL of the locally accessible Storage Manager
- storageManagerUser: required(string)
User name for connecting to the Storage Manager (locally and from external services)
- storageManagerPassword: required(string)
Password for connecting to the Storage Manager (locally and from external services)
- defaultStorageType: required(string - pattern: ^(S3|ALLUXIO|POSIX|OTHER)$)
The type of the storage
Example:
{
"name": "Test",
"description": "Processing Facility 1",
"facilityState": "RUNNING",
"processingEngineUrl": "https://procfac1.proseo-domain.de/kubernetes",
"processingEngineToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlBpM…jjzckxFyH9d8ggu-EYFJWLFY5g",
"storageManagerUrl": "http://procfac1.proseo-domain.de/api/v1/namespaces/default/services/storage-mgr-service:service/proxy/proseo/storage-mgr/v0.1",
"externalStorageManagerUrl": "http://prip.proseo-domain.de/proseo/storage-mgr/v0.1",
"localStorageManagerUrl": "https://%NODE_IP%:30001/proseo/storage-mgr/v0.1",
"storageManagerUser": "smuser",
"storageManagerPassword": "smpwd-but-that-would-be-way-too-short",
"defaultStorageType": "S3"
}
Get a processing facility by ID
Update a processing facility by ID
Delete a processing facility by ID
get /facilities/{id}
Get a processing facility by ID
URI Parameters
- id: required(integer)
The persistent id of this object
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- id: (integer - default: 0)
The persistent id of this object
- version: (integer - default: 1)
A version identifier to track updates to the object (especially to detect concurrent update attempts)
- name: required(string)
The facility name (unique key)
- facilityState: required(string - default: DISABLED)
The run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING }
- description: (string)
A short description of the processing facility
- processingEngineUrl: (string)
The URL to access this facility's processing engine (Kubernetes instance)
- processingEngineToken: (string)
Authentication token for connecting to this facility's processing engine (Kubernetes instance)
- maxJobsPerNode: (integer - default: 1)
Maximum number of jobs schedulable per worker node (default 1)
- storageManagerUrl: required(string)
The URL to access this facility's storage manager from the control instance
- externalStorageManagerUrl: required(string)
The URL to access this facility's storage manager from an external client (via PRIP API)
- localStorageManagerUrl: (string)
URL of the locally accessible Storage Manager
- storageManagerUser: required(string)
User name for connecting to the Storage Manager (locally and from external services)
- storageManagerPassword: required(string)
Password for connecting to the Storage Manager (locally and from external services)
- defaultStorageType: required(string - pattern: ^(S3|ALLUXIO|POSIX|OTHER)$)
The type of the storage
Example:
{
"name": "Test",
"description": "Processing Facility 1",
"facilityState": "RUNNING",
"processingEngineUrl": "https://procfac1.proseo-domain.de/kubernetes",
"processingEngineToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlBpM…jjzckxFyH9d8ggu-EYFJWLFY5g",
"storageManagerUrl": "http://procfac1.proseo-domain.de/api/v1/namespaces/default/services/storage-mgr-service:service/proxy/proseo/storage-mgr/v0.1",
"externalStorageManagerUrl": "http://prip.proseo-domain.de/proseo/storage-mgr/v0.1",
"localStorageManagerUrl": "https://%NODE_IP%:30001/proseo/storage-mgr/v0.1",
"storageManagerUser": "smuser",
"storageManagerPassword": "smpwd-but-that-would-be-way-too-short",
"defaultStorageType": "S3"
}
patch /facilities/{id}
Update a processing facility by ID
URI Parameters
- id: required(integer)
The persistent id of this object
Body
Media type: application/json
Type: object
Properties- id: (integer - default: 0)
The persistent id of this object
- version: (integer - default: 1)
A version identifier to track updates to the object (especially to detect concurrent update attempts)
- name: required(string)
The facility name (unique key)
- facilityState: required(string - default: DISABLED)
The run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING }
- description: (string)
A short description of the processing facility
- processingEngineUrl: (string)
The URL to access this facility's processing engine (Kubernetes instance)
- processingEngineToken: (string)
Authentication token for connecting to this facility's processing engine (Kubernetes instance)
- maxJobsPerNode: (integer - default: 1)
Maximum number of jobs schedulable per worker node (default 1)
- storageManagerUrl: required(string)
The URL to access this facility's storage manager from the control instance
- externalStorageManagerUrl: required(string)
The URL to access this facility's storage manager from an external client (via PRIP API)
- localStorageManagerUrl: (string)
URL of the locally accessible Storage Manager
- storageManagerUser: required(string)
User name for connecting to the Storage Manager (locally and from external services)
- storageManagerPassword: required(string)
Password for connecting to the Storage Manager (locally and from external services)
- defaultStorageType: required(string - pattern: ^(S3|ALLUXIO|POSIX|OTHER)$)
The type of the storage
Example:
{
"name": "Test",
"description": "Processing Facility 1",
"facilityState": "RUNNING",
"processingEngineUrl": "https://procfac1.proseo-domain.de/kubernetes",
"processingEngineToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlBpM…jjzckxFyH9d8ggu-EYFJWLFY5g",
"storageManagerUrl": "http://procfac1.proseo-domain.de/api/v1/namespaces/default/services/storage-mgr-service:service/proxy/proseo/storage-mgr/v0.1",
"externalStorageManagerUrl": "http://prip.proseo-domain.de/proseo/storage-mgr/v0.1",
"localStorageManagerUrl": "https://%NODE_IP%:30001/proseo/storage-mgr/v0.1",
"storageManagerUser": "smuser",
"storageManagerPassword": "smpwd-but-that-would-be-way-too-short",
"defaultStorageType": "S3"
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- id: (integer - default: 0)
The persistent id of this object
- version: (integer - default: 1)
A version identifier to track updates to the object (especially to detect concurrent update attempts)
- name: required(string)
The facility name (unique key)
- facilityState: required(string - default: DISABLED)
The run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING }
- description: (string)
A short description of the processing facility
- processingEngineUrl: (string)
The URL to access this facility's processing engine (Kubernetes instance)
- processingEngineToken: (string)
Authentication token for connecting to this facility's processing engine (Kubernetes instance)
- maxJobsPerNode: (integer - default: 1)
Maximum number of jobs schedulable per worker node (default 1)
- storageManagerUrl: required(string)
The URL to access this facility's storage manager from the control instance
- externalStorageManagerUrl: required(string)
The URL to access this facility's storage manager from an external client (via PRIP API)
- localStorageManagerUrl: (string)
URL of the locally accessible Storage Manager
- storageManagerUser: required(string)
User name for connecting to the Storage Manager (locally and from external services)
- storageManagerPassword: required(string)
Password for connecting to the Storage Manager (locally and from external services)
- defaultStorageType: required(string - pattern: ^(S3|ALLUXIO|POSIX|OTHER)$)
The type of the storage
Example:
{
"name": "Test",
"description": "Processing Facility 1",
"facilityState": "RUNNING",
"processingEngineUrl": "https://procfac1.proseo-domain.de/kubernetes",
"processingEngineToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlBpM…jjzckxFyH9d8ggu-EYFJWLFY5g",
"storageManagerUrl": "http://procfac1.proseo-domain.de/api/v1/namespaces/default/services/storage-mgr-service:service/proxy/proseo/storage-mgr/v0.1",
"externalStorageManagerUrl": "http://prip.proseo-domain.de/proseo/storage-mgr/v0.1",
"localStorageManagerUrl": "https://%NODE_IP%:30001/proseo/storage-mgr/v0.1",
"storageManagerUser": "smuser",
"storageManagerPassword": "smpwd-but-that-would-be-way-too-short",
"defaultStorageType": "S3"
}
HTTP status code 304
Body
Media type: application/json
Type: object
Properties- id: (integer - default: 0)
The persistent id of this object
- version: (integer - default: 1)
A version identifier to track updates to the object (especially to detect concurrent update attempts)
- name: required(string)
The facility name (unique key)
- facilityState: required(string - default: DISABLED)
The run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING }
- description: (string)
A short description of the processing facility
- processingEngineUrl: (string)
The URL to access this facility's processing engine (Kubernetes instance)
- processingEngineToken: (string)
Authentication token for connecting to this facility's processing engine (Kubernetes instance)
- maxJobsPerNode: (integer - default: 1)
Maximum number of jobs schedulable per worker node (default 1)
- storageManagerUrl: required(string)
The URL to access this facility's storage manager from the control instance
- externalStorageManagerUrl: required(string)
The URL to access this facility's storage manager from an external client (via PRIP API)
- localStorageManagerUrl: (string)
URL of the locally accessible Storage Manager
- storageManagerUser: required(string)
User name for connecting to the Storage Manager (locally and from external services)
- storageManagerPassword: required(string)
Password for connecting to the Storage Manager (locally and from external services)
- defaultStorageType: required(string - pattern: ^(S3|ALLUXIO|POSIX|OTHER)$)
The type of the storage
Example:
{
"name": "Test",
"description": "Processing Facility 1",
"facilityState": "RUNNING",
"processingEngineUrl": "https://procfac1.proseo-domain.de/kubernetes",
"processingEngineToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IlBpM…jjzckxFyH9d8ggu-EYFJWLFY5g",
"storageManagerUrl": "http://procfac1.proseo-domain.de/api/v1/namespaces/default/services/storage-mgr-service:service/proxy/proseo/storage-mgr/v0.1",
"externalStorageManagerUrl": "http://prip.proseo-domain.de/proseo/storage-mgr/v0.1",
"localStorageManagerUrl": "https://%NODE_IP%:30001/proseo/storage-mgr/v0.1",
"storageManagerUser": "smuser",
"storageManagerPassword": "smpwd-but-that-would-be-way-too-short",
"defaultStorageType": "S3"
}