luna-lambda API (v.2.11.6)

Download OpenAPI specification:

'Luna-lambda' is a service intended for manage luna user lambdas.

A Luna-user-lambda represents separate service which can process user requests using code created by user.

For information about lambda representation and requirements - see the development manual.

version

get version

get service version

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "Version": {
    }
}

lambdas creation

create lambda

Start a new lambda creation process.

Lambda creation comprises in two parts:

A lambda can be created from an imported image. In this case image creation stage will be skipped. See more about image import in developer manual.

After lambda creation process will be completed lambda status will be changed to running and it will be ready to process requests. For more details, see the development manual.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
required
string
Value: "multipart/form-data"

The request content type header.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema:
required
archive
required
string <binary>

Archive file with the zip extension. Content-Type must be "application/zip".

required
object

Lambda credentials.

lambda parameters (object) or lambda agent parameters (object) (lambda_parameters)
object

Deploy parameters for lambda.

Responses

Request samples

Content type
No sample

Response samples

Content type
application/json
{
  • "lambda_id": "string"
}

put lambda

Execute lambda recreation.

The lambda version will be incremented after recreation finish.

Lambda recreation comprises in three parts:

  • old lambda removing

  • docker image creation | the process can be seen by image monitoring

  • lambda creation and launching | the process can be seen by lambda monitoring

After lambda creation process will be completed lambda status will be changed to running and it will be ready to process requests. For more details, see the development manual.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
required
string
Value: "multipart/form-data"

The request content type header.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema:
required
archive
required
string <binary>

Archive file with the zip extension. Content-Type must be "application/zip".

required
object

Lambda credentials.

lambda parameters (object) or lambda agent parameters (object) (lambda_parameters)
object

Deploy parameters for lambda.

Responses

Request samples

Content type
No sample

Response samples

Content type
application/json
{
  • "version": 0
}

patch lambda

patch lambda.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
string
Value: "application/json"

The request content type header.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema: application/json
required
non-empty
lambda_name
string (lambda_name)

Lambda name. Each user can create only lambdas with unique names.

description
string <= 256 characters

Lambda description.

pod_count
integer (lambda_non_default_pod_count) [ 0 .. 32 ]

Count of lambda pods.

WARNING: If pod_count = 0, the lambda will not work.

Responses

Request samples

Content type
application/json
{
  • "lambda_name": "first-lambda",
  • "description": "very useful lambda",
  • "pod_count": 0
}

Response samples

Content type
application/json
Example
{}

lambda monitoring

get lambdas

Get lambdas according to filters.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

create_time__lt
string <date-time> (time)
Example: create_time__lt=2018-08-11T09:11:41.674Z

upper bound for object create_time.

create_time__gte
string <date-time> (time)
Example: create_time__gte=2018-08-11T09:11:41.674Z

lower included bound for object create_time.

page
integer >= 1
Default: 1

a page number.

page_size
integer [ 1 .. 100 ]
Default: 10

the number of items per page.

lambda_type
string
Enum: "standalone" "handlers" "tasks" "agent"

Lambda type.

lambda_name
string

Find all objects with job_name similar to this parameter. You can specify only part of the job_name value for this filter.

namespace
Array of strings (namespace) [ items^[a-z0-9][a-z0-9-]*[a-z0-9]$ ]
Example: namespace=default,no-default-namespace

Comma-separated list of namespaces. Each namespace must match the pattern ^[a-z0-9][a-z0-9-]*[a-z0-9]$

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "lambdas": [
    ]
}

get lambda

Get lambda by ID.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
Example
{
  • "lambda_type": "string",
  • "account_id": "0468ca85-f6ca-4841-b30c-5ccc26b6f397",
  • "lambda_id": "string",
  • "lambda_name": "first-lambda",
  • "description": "string",
  • "version": 0,
  • "info": {
    },
  • "create_time": "2019-08-24T14:15:22Z",
  • "last_update_time": "2018-08-11T09:11:41.674Z",
  • "additional_user_docker_commands": [ ],
  • "base_image": {
    },
  • "imported_image": {
    },
  • "workers": 1,
  • "archive_ttl": 7,
  • "deploy_parameters": {
    },
  • "shared": 0,
  • "eternal": 0,
  • "last_usage": "string",
  • "alive": 0
}

check lambda existence

Check existence of the lambda by ID.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

get lambda status

Get lambda status by ID.

If lambda image creation is in progress, the lambda status will be waiting.

For more information about lambda and lambda images statuses see the development manual.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "pod_statuses": {
    },
  • "status": "string"
}

get lambda logs

Get lambda logs by ID.

After the lambda creation has been executed, there is possibility to get lambda logs.

For more information about lambda and lambda images logs see the development manual.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

tail_lines
integer [ 0 .. 4294967296 ]

number of strings what will be return.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "logs": { }
}

lambdas validator

validation lambda

Lambda validation.

Lambda validation does not guarantee hassle-free lambda creation and execution, but is an integral part of the lambda creation process and allows you to make sure that the archive and its contents meet the requirements.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
required
string
Value: "multipart/form-data"

The request content type header.

Request Body schema: application/zip
required
archive
required
string <binary>

Archive file with the zip extension. Content-Type must be "application/zip".

required
object

Parameters for lambda.

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

lambdas deletion

delete lambda

Remove lambda by ID. Stops and removes the lambda pod, deletes the lambda archive from S3. There is also will be an attempt to remove the lambda image from the registry in the background. Note, that the image can be deleted only if this feature is enabled in the registry. Failed or successful deletion attempt will be logged and saved to monitoring.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

lambda image

get lambda image

Get lambda image.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "exported_image": {
    }
}

lambda update

update lambda

update a lambda using the latest base image.

A product update may cause incompatibility with old lambdas. To make old lambdas compatible with actual product it needs to update lambda. For more details see the development manual.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Responses

Response samples

Content type
application/json
{
  • "version": 0
}

lambda image monitoring

get lambda image creation status

Get lambda image creation status by lambda ID.

If lambda image creation is in progress, the lambda status will be waiting.

After lambda image creation will end, the lambda image creation job will be removed and the status will be completed. When the data disappears from luna-builder status will be not_found.

For more information about lambda and lambda images statuses see the development manual.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "status": "not_found"
}

get lambda image creation logs

Get lambda image creation logs by lambda ID.

During the creation of the lambda image, it is possible to get logs to monitor the progress.

For more information about lambda and lambda images logs see the development manual.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
tail_lines
integer [ 0 .. 4294967296 ]

number of strings what will be return.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "logs": [
    ]
}

lambda documentation

get lambda openapi documentation

Get lambda OpenApi documentation. If the Accept request header is of type application/x-yaml, returns documentation in yaml format, or returns html documentation if Accept-Type is text/html.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Accept
required
string (accept_docs_handler)
Enum: "application/x-yaml" "text/html"

acceptable type of receiving data

Responses

Response samples

Content type
application/json
{}

lambda proxy

proxy post request to lambda

Proxy a POST request to the lambda.

Request and response headers, query parameters and body description must be provided by the lambda documentation.

The described headers will be processed and received independently of the lambda behavior.

Note: proxy request

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to lambda

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Responses

Response samples

Content type
application/json
{}

proxy get request to lambda

Proxy a GET request to the lambda.

Request and response headers, query parameters and body description must be provided by the lambda documentation.

The described headers will be processed and received independently of the lambda behavior.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to lambda

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

proxy head request to lambda

Proxy a HEAD request to the lambda.

Request and response headers, query parameters and body description must be provided by the lambda documentation.

The described headers will be processed and received independently of the lambda behavior.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to lambda

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

proxy put request to lambda

Proxy a PUT request to the lambda.

Request and response headers, query parameters and body description must be provided by the lambda documentation.

The described headers will be processed and received independently of the lambda behavior.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to lambda

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Responses

Response samples

Content type
application/json
{}

proxy patch request to lambda

Proxy a PATCH request to the lambda.

Request and response headers, query parameters and body description must be provided by the lambda documentation.

The described headers will be processed and received independently of the lambda behavior.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to lambda

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

proxy delete request to lambda

Proxy a DELETE request to the lambda.

Request and response headers, query parameters and body description must be provided by the lambda documentation.

The described headers will be processed and received independently of the lambda behavior.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to lambda

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

proxy options request to lambda

Proxy a OPTIONS request to the lambda.

Request and response headers, query parameters and body description must be provided by the lambda documentation.

The described headers will be processed and received independently of the lambda behavior.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to lambda

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
Example
{}

lambda import/export

export lambda archive

Export an archive with a lambda and parameters.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

import lambda archive

import an archive with a lambda and parameters.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema: multipart/form-data
archive
required
string <binary>

Archive file with the zip extension. Content-Type must be "application/zip".

object (lambda_import_credentials)

Lambda credentials.

Note: this field will overwrite credentials from the archive.

object

Parameters for lambda. Content-Type must be "application/json".

Note: this field will overwrite parameters from the archive.

object

Deploy parameters for lambda. Content-Type must be "application/json".

Note: this field will overwrite deploy parameters from the archive.

Responses

Response samples

Content type
application/json
{
  • "lambda_id": "string"
}

lambda config

get lambda config

Get lambda user configuration

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "config": {
    },
  • "version": 0
}

update lambda config

Update lambda user configuration

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema: application/json
required
required
object (user_config)

Lambda/Job (inherited from the workflow or manually specified) user config.

Responses

Request samples

Content type
application/json
{
  • "user_config": {
    }
}

Response samples

Content type
application/json
{
  • "version": 0
}

lambda metrics

get lambda metrics

Get lambda metrics

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

metrics
required
string non-empty [a-zA-Z_:][a-zA-Z0-9_:]*

Comma separated metrics names.

Metrics available by default:

  • requests_bucket
  • requests_sum
  • request_count_total
  • request_errors_total
resources
string^(GET|POST|PUT|DELETE|PATCH):/(?:[a-zA-Z0-9_-...
Example: resources=GET:/additional/{parameter},POST:/main

Comma separated resources path filter.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "data": {
    }
}

lambda switch

switch lambda

Enable/disable lambda.

path Parameters
lambda_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the lambda.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema: application/json
switch
required
string (switch)
Enum: "disable" "enable"

Action to choose.

Responses

Request samples

Content type
application/json
{
  • "switch": "disable"
}

Response samples

Content type
application/json
{
  • "lambda_id": "string"
}

lambda resources

lambda resource limits

Lambda resource limits.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "default_namespace": {
    },
  • "allowed_namespaces": [
    ]
}

workflow creation

create workflow

Create a new workflow.

Workflow creation assumes docker image creation | the process can bee seen by workflow image monitoring.

Workflow creation optionally assumes job creation with default parameters after the docker image creation. To enable job creation, set disabled to false in the deploy_parameters section. Job information will be avaiable using job monitoring requests.

A workflow can be created from an imported image. In this case image creation stage will be skipped and the workflow only will be registered (see the application/json request body schema). See more about workflows and image import in developer manual.

After workflow creation it is possible to create new jobs within created workflow using the job creation request.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
required
string
Value: "multipart/form-data"

The request content type header.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema:
required
archive
required
string <binary>

Archive file with the zip extension. Content-Type must be "application/zip".

required
object

Workflow credentials.

workflow parameters (object) or workflow agent parameters (object) (workflow_parameters)
object

Deploy parameters for workflow.

Responses

Request samples

Content type
No sample

Response samples

Content type
application/json
{
  • "workflow_id": "string",
  • "job_id": "string"
}

put workflow

Execute workflow recreation.

The workflow version will be incremented after recreation finish.

Workflow recreation comprises in three parts:

  • old workflow removing

  • stop all running and planned jobs within the framework of old workflow.

  • new workflow creation (the same process as described for the case of workflow creation request)

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
required
string
Value: "multipart/form-data"

The request content type header.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema:
required
archive
required
string <binary>

Archive file with the zip extension. Content-Type must be "application/zip".

required
object

Workflow credentials.

workflow parameters (object) or workflow agent parameters (object) (workflow_parameters)
object

Deploy parameters for workflow.

Responses

Request samples

Content type
No sample

Response samples

Content type
application/json
{
  • "version": 0
}

patch workflow

Patch workflow. All existing job will not change

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
string
Value: "application/json"

The request content type header.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema: application/json
required
non-empty
workflow_name
string (workflow_name)

Workflow name. Each user can create only workflows with unique names.

description
string (workflow_description) <= 256 characters
Default: ""

Workflow description.

Responses

Request samples

Content type
application/json
{
  • "workflow_name": "first-workflow",
  • "description": "string"
}

Response samples

Content type
application/json
Example
{}

workflow monitoring

get workflows

Get workflows according to filters.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

create_time__lt
string <date-time> (time)
Example: create_time__lt=2018-08-11T09:11:41.674Z

upper bound for object create_time.

create_time__gte
string <date-time> (time)
Example: create_time__gte=2018-08-11T09:11:41.674Z

lower included bound for object create_time.

page
integer >= 1
Default: 1

a page number.

page_size
integer [ 1 .. 100 ]
Default: 10

the number of items per page.

workflow_type
string
Enum: "standalone" "agent"

Workflow type.

workflow_name
string

Find all objects with workflow_name similar to this parameter. You can specify only part of the workflow_name value for this filter.

namespace
Array of strings (namespace) [ items^[a-z0-9][a-z0-9-]*[a-z0-9]$ ]
Example: namespace=default,no-default-namespace

Comma-separated list of namespaces. Each namespace must match the pattern ^[a-z0-9][a-z0-9-]*[a-z0-9]$

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "workflows": [
    ]
}

get workflow

Get workflow by ID.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
Example
{
  • "workflow_type": "string",
  • "workflow_id": "string",
  • "account_id": "0468ca85-f6ca-4841-b30c-5ccc26b6f397",
  • "workflow_name": "first-workflow",
  • "description": "string",
  • "version": 0,
  • "create_time": "2019-08-24T14:15:22Z",
  • "last_update_time": "2018-08-11T09:11:41.674Z",
  • "additional_user_docker_commands": [ ],
  • "base_image": {
    },
  • "imported_image": {
    },
  • "workers": 1,
  • "archive_ttl": 7,
  • "deploy_parameters": {
    },
  • "shared": 0,
  • "eternal": 0,
  • "info": {
    }
}

check workflow existence

Check existence of the workflow by ID.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

workflow validator

workflow validation

Workflow validation.

Workflow validation does not guarantee hassle-free workflow's job creation and execution, but is an integral part of the workflow creation process and allows you to make sure that the archive and its contents meet the requirements.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
required
string
Value: "multipart/form-data"

The request content type header.

Request Body schema: application/zip
required
archive
required
string <binary>

Archive file with the zip extension. Content-Type must be "application/zip".

required
object

Parameters for workflow.

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

workflow deletion

delete workflow

Remove workflow by ID. Stops and removes the workflow and all its' jobs, deletes the workflow archive from S3. There is also will be an attempt to remove the workflow image from the registry in the background. Note, that the image can be deleted only if this feature is enabled in the registry. Failed or successful deletion attempt will be logged and saved to monitoring.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

workflow image

get workflow image

Get workflow image.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "exported_image": {
    }
}

workflow image monitoring

get workflow image creation status

Get workflow image creation status by workflow ID.

For more information about workflow and workflow images statuses see the development manual.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "status": "not_found"
}

get workflow image creation logs

Get workflow image creation logs by workflow ID.

During the creation of the workflow image, it is possible to get logs to monitor the progress.

For more information about workflow and workflow images logs see the development manual.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

query Parameters
tail_lines
integer [ 0 .. 4294967296 ]

number of strings what will be return.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "logs": [
    ]
}

workflow import/export

export workflow archive

Export an archive with a workflow and parameters.

The exported archive can be used for workflow creation using workflow import request.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

import workflow archive

Workflow creation using data from an imported archive (Archive may be received by making a workflow export request).

After the archive import it will execute the same process of workflow creation as described for the case of workflow creation request.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema: multipart/form-data
archive
required
string <binary>

Archive file with the zip extension. Content-Type must be "application/zip".

object (workflow_import_credentials)

Workflow credentials.

Note: this field will overwrite credentials from the archive.

object

Parameters for workflow. Content-Type must be "application/json".

Note: this field will overwrite parameters from the archive.

object

Deploy parameters for workflow. Content-Type must be "application/json".

Note: this field will overwrite deploy parameters from the archive.

Responses

Response samples

Content type
application/json
{
  • "workflow_id": "string",
  • "job_id": "string"
}

jobs creation

create job

Create a new job within a framework of specified workflow.

It will use image created during workflow created as imported_image.

All parameters (except for service_launch from deploy_parameters) which are not specified for the job will be inherited from the workflow. Parameters like workflow_name/workflow_type will be converted into job_name/job_type respectively.

Workflow creation is available by using the workflow creation or workflow import requests.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Content-Type
required
string
Value: "multipart/form-data"

The request content type header.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema:
optional
required
object

Job credentials.

job parameters (object) or job agent parameters (object) (job_parameters)
object

Deploy parameters for job.

Responses

Request samples

Content type
No sample

Response samples

Content type
application/json
{
  • "job_id": "string"
}

job monitoring

get jobs

Get jobs according to filters.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

create_time__lt
string <date-time> (time)
Example: create_time__lt=2018-08-11T09:11:41.674Z

upper bound for object create_time.

create_time__gte
string <date-time> (time)
Example: create_time__gte=2018-08-11T09:11:41.674Z

lower included bound for object create_time.

page
integer >= 1
Default: 1

a page number.

page_size
integer [ 1 .. 100 ]
Default: 10

the number of items per page.

job_type
string
Enum: "standalone" "agent"

Job type.

job_name
string

Find all objects with job_name similar to this parameter. You can specify only part of the job_name value for this filter.

namespace
Array of strings (namespace) [ items^[a-z0-9][a-z0-9-]*[a-z0-9]$ ]
Example: namespace=default,no-default-namespace

Comma-separated list of namespaces. Each namespace must match the pattern ^[a-z0-9][a-z0-9-]*[a-z0-9]$

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "jobs": [
    ]
}

get job

Get job by ID.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
Example
{
  • "job_type": "string",
  • "info": {
    },
  • "account_id": "0468ca85-f6ca-4841-b30c-5ccc26b6f397",
  • "job_id": "string",
  • "job_name": "first-job",
  • "description": "string",
  • "create_time": "2019-08-24T14:15:22Z",
  • "last_update_time": "2018-08-11T09:11:41.674Z",
  • "workers": 1,
  • "deploy_parameters": {
    },
  • "shared": 0,
  • "eternal": 0,
  • "last_usage": "string",
  • "alive": 0,
  • "imported_image": {
    }
}

get job logs

Get job logs by ID.

After the job creation has been executed, there is possibility to get job logs.

For more information about job and job images logs see the development manual.

Job logs will be available only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

tail_lines
integer [ 0 .. 4294967296 ]

number of strings what will be return.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "logs": { }
}

jobs deletion

delete job

Remove job by ID.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

job documentation

get job openapi documentation

Get job OpenApi documentation. If the Accept request header is of type application/x-yaml, returns documentation in yaml format, or returns html documentation if Accept-Type is text/html.

Job documentation will be available only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Accept
required
string (accept_docs_handler)
Enum: "application/x-yaml" "text/html"

acceptable type of receiving data

Responses

Response samples

Content type
application/json
{}

job proxy

proxy post request to job

Proxy a POST request to the job.

Request and response headers, query parameters and body description must be provided by the job documentation.

The described headers will be processed and received independently of the job behavior.

WARNING: Job proxy requests will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to job

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Responses

Response samples

Content type
application/json
{}

proxy get request to job

Proxy a GET request to the job.

Request and response headers, query parameters and body description must be provided by the job documentation.

The described headers will be processed and received independently of the job behavior.

WARNING: Job proxy requests will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to job

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

proxy head request to job

Proxy a HEAD request to the job.

Request and response headers, query parameters and body description must be provided by the job documentation.

The described headers will be processed and received independently of the job behavior.

WARNING: Job proxy requests will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to job

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

proxy put request to job

Proxy a PUT request to the job.

Request and response headers, query parameters and body description must be provided by the job documentation.

The described headers will be processed and received independently of the job behavior.

WARNING: Job proxy requests will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to job

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Responses

Response samples

Content type
application/json
{}

proxy patch request to job

Proxy a PATCH request to the job.

Request and response headers, query parameters and body description must be provided by the job documentation.

The described headers will be processed and received independently of the job behavior.

WARNING: Job proxy requests will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to job

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

proxy delete request to job

Proxy a DELETE request to the job.

Request and response headers, query parameters and body description must be provided by the job documentation.

The described headers will be processed and received independently of the job behavior.

WARNING: Job proxy requests will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to job

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

proxy options request to job

Proxy a OPTIONS request to the job.

Request and response headers, query parameters and body description must be provided by the job documentation.

The described headers will be processed and received independently of the job behavior.

WARNING: Job proxy requests will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

path_parameters
string
Example: /main

any additional path parameter will be used as a path parameter to job

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
Example
{}

job config

get job config

Get job user configuration

WARNING: Job configuration will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "config": {
    },
  • "version": 0
}

update job config

Replace job user configuration

WARNING: Job configuration interaction will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Luna-Account-Id
required
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

Request Body schema: application/json
required
required
object (user_config)

Lambda/Job (inherited from the workflow or manually specified) user config.

Responses

Request samples

Content type
application/json
{
  • "user_config": {
    }
}

Response samples

Content type
application/json
{
  • "version": 0
}

job metrics

get job metrics

Get job metrics

WARNING: Job metrics will be avaiable only while the job is running, for more information about jobs see developers documentation.

path Parameters
workflow_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the workflow.

job_id
required
string <uuid> (uuid) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: 557d54ec-29ad-4f3c-93b4-c9092ef12515

ID of the job.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

metrics
required
string non-empty [a-zA-Z_:][a-zA-Z0-9_:]*

Comma separated metrics names.

Metrics available by default:

  • requests_bucket
  • requests_sum
  • request_count_total
  • request_errors_total
resources
string^(GET|POST|PUT|DELETE|PATCH):/(?:[a-zA-Z0-9_-...
Example: resources=GET:/additional/{parameter},POST:/main

Comma separated resources path filter.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "data": {
    }
}

job queue

get job queue

Get the job queue according to filters.

query Parameters
account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

namespace
Array of strings (namespace) [ items^[a-z0-9][a-z0-9-]*[a-z0-9]$ ]
Example: namespace=default,no-default-namespace

Comma-separated list of namespaces. Each namespace must match the pattern ^[a-z0-9][a-z0-9-]*[a-z0-9]$

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "jobs": [
    ]
}

documents

get openapi documentation

Get service OpenApi documentation. If the Accept request header is of type application/x-yaml, returns documentation in yaml format, or returns html documentation if Accept-Type is text/html.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Accept
required
string (accept_docs_handler)
Enum: "application/x-yaml" "text/html"

acceptable type of receiving data

Responses

Response samples

Content type
application/json
{}

Get development manual

Get Sphinx documentation - Development Manual. After the request, you will be redirected to the page /docs/dev/index.html.

header Parameters
Accept
string
Value: "application/json"

Preferred response content type

Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{}

config

Get service configuration

Get service configuration. Passwords and tokens will be hidden in the response.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Accept
string
Enum: "application/json" "text/plain"

acceptable type of receiving data

Responses

Response samples

Content type
{
  • "INFLUX_MONITORING": {
    }
}

plugins

get list of plugins

Get the list of service plugins

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "plugins": [
    ]
}

metrics

get service requests statistics

Get statistics of success and failed requests to the service in prometheus format.

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
text/plain
# HELP request_count_total Counter of requests
# TYPE request_count_total counter
request_count_total{path="GET:/healthcheck",status_code="200"} 1.0

health

get health

get health of service

query Parameters
include_luna_services
integer
Default: 0
Enum: 0 1

Whether to perform healthchecks for dependent luna services.

account_id
string <uuid> (account_id) ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]...
Example: account_id=8950722f-3fd4-4223-b48f-03f95f0e8dfb

luna account id

header Parameters
Luna-Request-Id
string <timestamp,uuid> ^[0-9]{10},[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4...
Example: 1536751345,8b8b5937-2e9c-4e8b-a7a7-5caf86621b5a

external request id. Helps to uniquely identify messages that correspond to particular requests, in system logs. If it was not set, the system will set it in the default format ("timestamp,UUID"). It will be returned with the response.

Responses

Response samples

Content type
application/json
{
  • "execution_time": 0.123
}