Base URL: /, Version: 1.0.0-SNAPSHOT
To be Done!
Operations for Cloud Service Archives (CSARs)
Operation | Description |
---|---|
GET /api/csars | List all CSARs stored on the server |
GET /api/csars/{csarId}/transformations | List all transformations of a CSAR |
GET /api/csars/{name} | Returns details for a specific name (identifier) |
POST /api/csars/{name} | Creates a new CSAR |
PUT /api/csars/{name} | Creates a new CSAR |
DELETE /api/csars/{name}/delete | Deletes a Existing CSAR |
GET /api/csars/{name}/logs | Get the logs of a csar |
Hypermedia only endpoints
Operation | Description |
---|---|
GET /api/ | Hypermedia endpoint to get all resource endpoints |
GET /api/status | Hypermedia endpoint to get all supported Status operations |
Operations for the supported platforms of the transformer
Operation | Description |
---|---|
GET /api/platforms | List all supported Platforms |
GET /api/platforms/{id} | Get the Details for a specific Platform |
Operations regarding Transformations
The retuned links to the endpoints are: Csars, platforms and status
application/hal+json
OK
Unauthorized
Forbidden
Not Found
Returns a Hypermedia Resource containing all CSARs that have been uploaded to the server and did not get removed
application/hal+json
OK
Unauthorized
Forbidden
Not Found
Returns a HAL-Resources list containing all Transformations for a specific CSAR
csarId | The unique identifier for the CSAR |
path | string |
application/hal+json
The operation was executed successfully
Unauthorized
Forbidden
There is no CSAR for the given identifier
Returns a HAL-Resource Containing the details for the transformation with the given parameters
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/hal+json
The operation was executed successfully
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a Transformation for the specified platform.
Once the transformation is done (in the state DONE) or it has encountered a error (state ERROR). It is possible to download a archive (ZIP format) of all the files generated while the transformation was running.
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/octet-stream
The operation was executed successfully
There is nothing to download yet because the execution of the transformation has not yet started or is not finished (With or without errors)
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a Transformation for the specified platform.
Creates a new transformation for the given CSAR and Platform (If the platform does not exist and there is no other transformation with the same CSAR and Platform, you have to delete the old transformation in this case)
application/json
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/hal+json
The operation was executed successfully
Created
The transfomation could not get created because there already is a Transformation of this CSAR on the given Platform
Unauthorized
Forbidden
There is no CSAR for the given identifier or the platform is not known.
Creates a new transformation for the given CSAR and Platform (If the platform does not exist and there is no other transformation with the same CSAR and Platform, you have to delete the old transformation in this case)
application/json
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/hal+json
The operation was executed successfully
Created
The transfomation could not get created because there already is a Transformation of this CSAR on the given Platform
Unauthorized
Forbidden
There is no CSAR for the given identifier or the platform is not known.
Deletes a transformation and all the coresponding artifacts
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/hal+json
The operation was executed successfully
No Content
The Deletion of the csar failed
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a Transformation for the specified platform.
This Operation returns a list of inputs, specific to the csar and the platform. If the input is invalid it has to be set in order to proceed with starting the transformation. Setting the inputs is done with a POST or PUT to the same URL (See Set Inputs Operation). If Transformation does not have any inputs, an empty array is returned
csarId | The identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/hal+json
The operation was executed successfully
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a Transformation for the specified platform.
With this method it is possible to set the value of an input or multiple inputs at once. The values of inputs can be set as long as they are in the READY or INPUT_REQUIRED state. The transformation changes its state to ready once all required inputs have a valid value assigned to them.
application/json
propertiesRequest
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/json
The operation was executed successfully
Created
Inputs cannot get set once the transformation has been started.
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a transformation for the specified platform.
At least one of the inputs could not get set because either the key does not exist or the syntax validation of the value has failed.
With this method it is possible to set the value of an input or multiple inputs at once. The values of inputs can be set as long as they are in the READY or INPUT_REQUIRED state. The transformation changes its state to ready once all required inputs have a valid value assigned to them.
application/json
propertiesRequest
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/json
The operation was executed successfully
Created
Inputs cannot get set once the transformation has been started.
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a transformation for the specified platform.
At least one of the inputs could not get set because either the key does not exist or the syntax validation of the value has failed.
Returns the logs for a transformation, starting at a specific position. from the given start index all following log lines get returned. If the start index is larger than the current last log index the operation will return a empty list.
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string | |
start | The index of the first log entry you want (0 returns the whole log) |
query | integer (int64) |
application/hal+json
The operation was executed successfully
The given start value is less than zero
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a Transformation for the specified platform.
This operation returns the outputs of a deployment. Retrieval of the outputs is not possible if the transformation (including deployment) is not done yet
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/hal+json
The operation was executed successfully
The state of the transformation is invalid (not ERROR or DONE)
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a transformation for the specified platform
Starts a transformation that has been created and is ready to get started. To start a transformation, the Transformation has to be in the state READY otherwise the transformation cannot start.
application/json
csarId | The unique identifier for the CSAR |
path | string | |
platform | The identifier for the platform |
path | string |
application/hal+json
The operation was executed successfully
Created
The state of the transformation is illegal. This means that the transformation is not in theREADY state. Therefore starting it is not possible
Unauthorized
Forbidden
There is no CSAR for the given identifier or the CSAR does not have a Transformation for the specified platform.
Returns the element with the given name, Object contents are equal to a regular /csars request (if you just look at the desired entry)
name | The unique identifier for the CSAR |
path | string |
application/hal+json
The Csar was found and the contents are found in the body
Unauthorized
Forbidden
There is no CSAR for the given name (identifier)
This operation creates a new CSAR if the name (identifier) is not used already. The uploaded file has to be a valid CSAR archive. Once the file was uploaded the server will synchronously (the client has to wait for the response) unzip the archive and parse it. Upload gets performed using Multipart Form upload.
multipart/form-data
name | The unique identifier for the CSAR |
path | string | |
file | The CSAR Archive (Compressed as ZIP) |
formData | file |
application/hal+json
OK
The upload of the csar was successful
Unauthorized
Forbidden
Not Found
CSAR upload rejected - given ID already in use
The server encountered a unexpected problem
This operation creates a new CSAR if the name (identifier) is not used already. The uploaded file has to be a valid CSAR archive. Once the file was uploaded the server will synchronously (the client has to wait for the response) unzip the archive and parse it. Upload gets performed using Multipart Form upload.
multipart/form-data
name | The unique identifier for the CSAR |
path | string | |
file | The CSAR Archive (Compressed as ZIP) |
formData | file |
application/hal+json
OK
The upload of the csar was successful
Unauthorized
Forbidden
Not Found
CSAR upload rejected - given ID already in use
The server encountered a unexpected problem
Deletes the Resulting CSAR and its transformations (if none of them is running). If a transformation is running (in the state TRANSFORMING) the CSAR cannot be deleted
name | The unique identifier for the CSAR |
path | string |
application/hal+json
The deletion of the CSAR was successful
No Content
The deletion of the CSAR failed, because there is one or more transformations still running.
Unauthorized
Forbidden
There is no CSAR for the given name (identifier)
Returns the logs for a csar, starting at a specific position. from the given start index all following log lines get returned. If the start index is larger than the current last log index the operation will return a empty list.
name | The unique identifier for the CSAR |
path | string | |
start | The index of the first log entry you want (0 returns the whole log) |
query | integer (int64) |
application/hal+json
The operation was executed successfully
The given start value is less than zero
Unauthorized
Forbidden
There is no CSAR for the given identifier
Returns a HAL resource (_embedded) containing all Platforms supported by this transformer
application/hal+json
OK
Unauthorized
Forbidden
Not Found
Returns the resource object for one specific plugin (platform)
id | The Platform identifier |
path | string |
application/hal+json
The request has been executed with no error!
Unauthorized
Forbidden
There is no platform with the given name
Status operations are based on Spring Boot Actuator
application/hal+json
OK
Unauthorized
Forbidden
Not Found
The list of csars stored on this system
This value represents the name (Identifier) of this CSAR
"test"
The lifecycle phases of this CSAR
The list of properties associated with this transformation, if this list is empty, the transformation doesn't have any properties to set.
The list of outputs associated with this transformation, if this list is empty, the transformation doesn't have any outputs.
the default value of the property
The description that should be displayed on the Frontend to describe the key
"The URL to the docker registry"
the unique key for a property
"docker_registry"
Determines if the property is required to start the transformation
true
The 'Datatype' of a property. Supported Types are 'name', 'text', 'boolean', 'integer', 'unsigned_integer', 'float' and 'secret'. If you try to set a value of a non existant key. The type in the response will be 'invalid' however this type only occurs in that case
"text"
true if the property is valid, false otherwise. The server will ignore this value, as it is designed to be read-only.
gcr.io
the name of this execution phase
"deploy"
the current state of the phase. Must be one of { PENDING, SKIPPING, EXECUTING, SKIPPED, DONE, ERROR }
"PENDING"
The log context
"org.foo.Bar"
the index of the logline in the list of all loglines for this list of log entries
The log level for this log entry. The value has to be one of the following: "DEBUG","INFO","WARN","TRACE", "ERROR" or "ALL"
"DEBUG"
The log message
"Some log message"
The unix timestamp (in milliseconds) when this log was created
1509907624000
The End index of the logfile at the time of requesting this information.
The sorted list (ascending by timestamp) of all the logs between start index and the current end index
The requested start index
The description that should be displayed on the Frontend to describe the key
"The URL to the docker registry"
the unique key for a property
"docker_registry"
The 'Datatype' of a property. Supported Types are 'name', 'text', 'boolean', 'integer', 'unsigned_integer', 'float' and 'secret'. If you try to set a value of a non existant key. The type in the response will be 'invalid' however this type only occurs in that case
"text"
gcr.io
The identifier for this platform (plugin)
"kubernetes"
The name for this platform (plugin)
"Kubernetes"
This value is true if a plugin supports in app deployment.
true
The list of platforms supported by this system
Text description of the HTTP Error
"Not Found"
The java class name of the exception that occurred on the server while performing the parsing operation.
"java.io.FileNotFoundException"
The message of the exception
"File was not found"
The HTTP Path that was called and caused the exception.
"/files/test.txt"
The HTTP Status code of the exception
404
The Unix timestamp (in milliseconds) when this exception has occrued (Was constructed internally)
1509907624000
The phases of the transformation
The platform identifier for this transformation
"kubernetes"
The Current State of the transformation. Has to be one of the following: "READY", "INPUT_REQUIRED", "TRANSFORMING", "DONE" or "ERROR"
"READY"
The list of transformations for a csar