List the function runtimes

GET /function_runtimes

List all valid function runtimes.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Request

Response

200 - OK

function_runtimes

array

List of all Function runtimes.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List all projects

GET /projects

List all projects in the current account.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • resource-controller.instance.retrieve

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of projects per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. Any additional query parameters are ignored if a page token is present. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

projects

array

List of projects.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a project

POST /projects

Create a Code Engine project on IBM Cloud. The project will be created in the region that corresponds to the API endpoint that is being called.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • resource-controller.instance.create

Auditing

Calling this method generates the following auditing event.

  • resource-controller.instance.create

Request

Request Body

ProjectPrototype

Project prototype

name

Required *

string

The name of the project.

resource_group_id

string

Optional ID of the resource group for your project deployment. If this field is not defined, the default resource group of the account will be used.

tags

array

Optional list of labels to assign to your project. Tags are not part of the project resource that is returned by the server, but can be obtained and managed through the Global Tagging API in IBM Cloud. Find more information on Global Tagging API docs.

Response

202 - Accepted

account_id

string

The ID of the account of the project, e.g. 4329073d16d2f3663f74bfa955259139.

created_at

string

The timestamp when the project was created.

crn

string

The CRN of the project.

href

string

When you provision a new resource, a URL is created identifying the location of the instance.

id

string

The ID of the project.

name

string

The name of the project.

region

string

The region for your project deployment. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_group_id

string

The ID of the resource group.

resource_type

string

The type of the project.

status

string

The current state of the project. For example, when the project is created and is ready for use, the status of the project is active.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a project

DELETE /projects/{id}

Delete a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • resource-controller.instance.delete

Auditing

Calling this method generates the following auditing event.

  • resource-controller.instance.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a project

GET /projects/{id}

Display the details of a single project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • resource-controller.instance.retrieve

Request

Response

200 - OK

account_id

string

The ID of the account of the project, e.g. 4329073d16d2f3663f74bfa955259139.

created_at

string

The timestamp when the project was created.

crn

string

The CRN of the project.

href

string

When you provision a new resource, a URL is created identifying the location of the instance.

id

string

The ID of the project.

name

string

The name of the project.

region

string

The region for your project deployment. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_group_id

string

The ID of the resource group.

resource_type

string

The type of the project.

status

string

The current state of the project. For example, when the project is created and is ready for use, the status of the project is active.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List allowed outbound destinations

GET /projects/{project_id}/allowed_outbound_destinations

List all allowed outbound destinations in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.allowedoutbounddestination.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of allowed outbound destinations per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

allowed_outbound_destinations

array

List of all allowed outbound destinations.

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create an allowed outbound destination

POST /projects/{project_id}/allowed_outbound_destinations

Create an allowed outbound destination.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.allowedoutbounddestination.create

Request

Request Body

AllowedOutboundDestinationPrototype

AllowedOutboundDestination prototype

name

Required *

string

The name of the allowed outbound destination.

type

Required *

string

Specify the type of the allowed outbound destination. Allowed types are: `cidr_block` and `private_path_service_gateway`.

Path Parameters

Query Parameters

version

string

The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2021-03-31` and `2026-11-03`.

Response

201 - Created

entity_tag

string

The version of the allowed outbound destination, which is used to achieve optimistic locking.

name

string

The name of the allowed outbound destination.

project_id

string

The ID of the project in which the resource is located.

status

string

The current status of the outbound destination.

status_details

AllowedOutboundStatusDetails

type

string

Specify the type of the allowed outbound destination. Allowed types are: `cidr_block` and `private_path_service_gateway`.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete an allowed outbound destination

DELETE /projects/{project_id}/allowed_outbound_destinations/{name}

Delete an allowed outbound destination.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.allowedoutbounddestination.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get an allowed outbound destination

GET /projects/{project_id}/allowed_outbound_destinations/{name}

Display the details of an allowed outbound destination.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.allowedoutbounddestination.read

Request

Response

200 - OK

entity_tag

string

The version of the allowed outbound destination, which is used to achieve optimistic locking.

name

string

The name of the allowed outbound destination.

project_id

string

The ID of the project in which the resource is located.

status

string

The current status of the outbound destination.

status_details

AllowedOutboundStatusDetails

type

string

Specify the type of the allowed outbound destination. Allowed types are: `cidr_block` and `private_path_service_gateway`.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update an allowed outbound destination

PATCH /projects/{project_id}/allowed_outbound_destinations/{name}

Update an allowed outbound destination.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.allowedoutbounddestination.read
  • codeengine.allowedoutbounddestination.update

Request

Request Body

AllowedOutboundDestination patch

Path Parameters

Query Parameters

Response

200 - OK

entity_tag

string

The version of the allowed outbound destination, which is used to achieve optimistic locking.

name

string

The name of the allowed outbound destination.

project_id

string

The ID of the project in which the resource is located.

status

string

The current status of the outbound destination.

status_details

AllowedOutboundStatusDetails

type

string

Specify the type of the allowed outbound destination. Allowed types are: `cidr_block` and `private_path_service_gateway`.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List applications

GET /projects/{project_id}/apps

List all applications in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of apps per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

apps

array

List of all apps.

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create an application

POST /projects/{project_id}/apps

Create an application.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.create

Request

Request Body

AppPrototype

App prototype

image_port

integer

Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.

image_reference

Required *

string

The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.

managed_domain_mappings

string

Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.

name

Required *

string

The name of the app. Use a name that is unique within the project.

probe_liveness

ProbePrototype

Request model for probes

failure_threshold

integer

The number of consecutive, unsuccessful checks for the probe to be considered failed.

initial_delay

integer

The amount of time in seconds to wait before the first probe check is performed.

interval

integer

The amount of time in seconds between probe checks.

path

string

The path of the HTTP request to the resource. A path is only supported for a probe with a `type` of `http`.

port

integer

The port on which to probe the resource.

timeout

integer

The amount of time in seconds that the probe waits for a response from the application before it times out and fails.

type

string

Specifies whether to use HTTP or TCP for the probe checks. The default is TCP.

probe_readiness

ProbePrototype

Request model for probes

failure_threshold

integer

The number of consecutive, unsuccessful checks for the probe to be considered failed.

initial_delay

integer

The amount of time in seconds to wait before the first probe check is performed.

interval

integer

The amount of time in seconds between probe checks.

path

string

The path of the HTTP request to the resource. A path is only supported for a probe with a `type` of `http`.

port

integer

The port on which to probe the resource.

timeout

integer

The amount of time in seconds that the probe waits for a response from the application before it times out and fails.

type

string

Specifies whether to use HTTP or TCP for the probe checks. The default is TCP.

run_arguments

array

Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

Optional user ID (UID) to run the app.

run_commands

array

Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

Optional references to config maps, secrets or literal values that are exposed as environment variables within the running application.

run_service_account

string

Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.

run_volume_mounts

array

Optional mounts of config maps or a secrets.

scale_concurrency

integer

Optional maximum number of requests that can be processed concurrently per instance.

scale_concurrency_target

integer

Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.

scale_cpu_limit

string

Optional number of CPU set for the instance of the app. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale-down behavior for an app instance.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_initial_instances

integer

Optional initial number of instances that are created upon app creation or app update.

scale_max_instances

integer

Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See Limits and quotas for Code Engine.

scale_memory_limit

string

Optional amount of memory set for the instance of the app. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_min_instances

integer

Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.

scale_request_timeout

integer

Optional amount of time in seconds that is allowed for a running app to respond to a request.

Response

201 - Created

build

string

Reference to a build that is associated with the application.

build_run

string

Reference to a build run that is associated with the application.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the application.

created_at

string

The timestamp when the resource was created.

endpoint

string

Optional URL to invoke the app. Depending on visibility, this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.

endpoint_internal

string

The URL to the app that is only visible within the project.

entity_tag

string

The version of the app instance, which is used to achieve optimistic locking.

href

string

When you provision a new app, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_port

integer

Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.

image_reference

string

The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.

managed_domain_mappings

string

Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.

name

string

The name of the app.

probe_liveness

Probe

Response model for probes

probe_readiness

Probe

Response model for probes

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the app.

run_arguments

array

Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

Optional user ID (UID) to run the app.

run_commands

array

Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the app owner and are exposed as environment variables in the application.

run_service_account

string

Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.

run_volume_mounts

array

Mounts of config maps or secrets.

scale_concurrency

integer

Optional maximum number of requests that can be processed concurrently per instance.

scale_concurrency_target

integer

Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.

scale_cpu_limit

string

Optional number of CPU set for the instance of the app. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale-down behavior for an app instance.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_initial_instances

integer

Optional initial number of instances that are created upon app creation or app update.

scale_max_instances

integer

Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See Limits and quotas for Code Engine.

scale_memory_limit

string

Optional amount of memory set for the instance of the app. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_min_instances

integer

Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.

scale_request_timeout

integer

Optional amount of time in seconds that is allowed for a running app to respond to a request.

status

string

The current status of the app.

status_details

AppStatus

The detailed status of the application.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List application instances

GET /projects/{project_id}/apps/{app_name}/instances

List all instances of an application.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.list

Request

Path Parameters

project_id

Required *

string

The ID of the project.

app_name

Required *

string

The name of your application.

Query Parameters

limit

integer

Optional maximum number of apps per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

version

string

The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2021-03-31` and `2026-11-03`.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

instances

array

List of all app instances.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List application revisions

GET /projects/{project_id}/apps/{app_name}/revisions

List all application revisions in a particular application.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.list

Request

Path Parameters

project_id

Required *

string

The ID of the project.

app_name

Required *

string

The name of your application.

Query Parameters

limit

integer

Optional maximum number of apps per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

version

string

The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2021-03-31` and `2026-11-03`.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

revisions

array

List of all app revisions.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete an application revision

DELETE /projects/{project_id}/apps/{app_name}/revisions/{name}

Delete an application revision.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get an application revision

GET /projects/{project_id}/apps/{app_name}/revisions/{name}

Display the details of an application revision.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.read

Request

Response

200 - OK

app_name

string

Name of the associated app.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the application.

created_at

string

The timestamp when the resource was created.

href

string

When you provision a new revision, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_port

integer

Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.

image_reference

string

The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.

name

string

The name of the app revision.

probe_liveness

Probe

Response model for probes

probe_readiness

Probe

Response model for probes

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the app revision.

run_arguments

array

Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

Optional user ID (UID) to run the app.

run_commands

array

Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the app owner and are exposed as environment variables in the application.

run_service_account

string

Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.

run_volume_mounts

array

Mounts of config maps or secrets.

scale_concurrency

integer

Optional maximum number of requests that can be processed concurrently per instance.

scale_concurrency_target

integer

Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.

scale_cpu_limit

string

Optional number of CPU set for the instance of the app. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale-down behavior for an app instance.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_initial_instances

integer

Optional initial number of instances that are created upon app creation or app update.

scale_max_instances

integer

Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See Limits and quotas for Code Engine.

scale_memory_limit

string

Optional amount of memory set for the instance of the app. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_min_instances

integer

Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.

scale_request_timeout

integer

Optional amount of time in seconds that is allowed for a running app to respond to a request.

status

string

The current status of the app revision.

status_details

AppRevisionStatus

The detailed status of the application revision.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete an application

DELETE /projects/{project_id}/apps/{name}

Delete an application.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.read
  • codeengine.application.delete

Request

Path Parameters

Query Parameters

keep_service_access

boolean

Determines if connected service access secrets remain intact after app deletion.

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get an application

GET /projects/{project_id}/apps/{name}

Display the details of an application.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.read

Request

Response

200 - OK

build

string

Reference to a build that is associated with the application.

build_run

string

Reference to a build run that is associated with the application.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the application.

created_at

string

The timestamp when the resource was created.

endpoint

string

Optional URL to invoke the app. Depending on visibility, this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.

endpoint_internal

string

The URL to the app that is only visible within the project.

entity_tag

string

The version of the app instance, which is used to achieve optimistic locking.

href

string

When you provision a new app, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_port

integer

Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.

image_reference

string

The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.

managed_domain_mappings

string

Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.

name

string

The name of the app.

probe_liveness

Probe

Response model for probes

probe_readiness

Probe

Response model for probes

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the app.

run_arguments

array

Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

Optional user ID (UID) to run the app.

run_commands

array

Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the app owner and are exposed as environment variables in the application.

run_service_account

string

Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.

run_volume_mounts

array

Mounts of config maps or secrets.

scale_concurrency

integer

Optional maximum number of requests that can be processed concurrently per instance.

scale_concurrency_target

integer

Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.

scale_cpu_limit

string

Optional number of CPU set for the instance of the app. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale-down behavior for an app instance.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_initial_instances

integer

Optional initial number of instances that are created upon app creation or app update.

scale_max_instances

integer

Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See Limits and quotas for Code Engine.

scale_memory_limit

string

Optional amount of memory set for the instance of the app. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_min_instances

integer

Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.

scale_request_timeout

integer

Optional amount of time in seconds that is allowed for a running app to respond to a request.

status

string

The current status of the app.

status_details

AppStatus

The detailed status of the application.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update an application

PATCH /projects/{project_id}/apps/{name}

An application contains one or more revisions. A revision represents an immutable version of the configuration properties of the application. Each update of an application configuration property creates a new revision of the application. Learn more

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.application.read
  • codeengine.application.list
  • codeengine.application.update

Request

Request Body

App patch

Path Parameters

Query Parameters

Response

200 - OK

build

string

Reference to a build that is associated with the application.

build_run

string

Reference to a build run that is associated with the application.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the application.

created_at

string

The timestamp when the resource was created.

endpoint

string

Optional URL to invoke the app. Depending on visibility, this is accessible publicly or in the private network only. Empty in case 'managed_domain_mappings' is set to 'local'.

endpoint_internal

string

The URL to the app that is only visible within the project.

entity_tag

string

The version of the app instance, which is used to achieve optimistic locking.

href

string

When you provision a new app, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_port

integer

Optional port the app listens on. While the app will always be exposed via port `443` for end users, this port is used to connect to the port that is exposed by the container image.

image_reference

string

The name of the image that is used for this app. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the app will be created but cannot reach the ready status, until this property is provided, too.

managed_domain_mappings

string

Optional value controlling which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports application private visibility.

name

string

The name of the app.

probe_liveness

Probe

Response model for probes

probe_readiness

Probe

Response model for probes

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the app.

run_arguments

array

Optional arguments for the app that are passed to start the container. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

Optional user ID (UID) to run the app.

run_commands

array

Optional commands for the app that are passed to start the container. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the app owner and are exposed as environment variables in the application.

run_service_account

string

Optional name of the service account. For built-in service accounts, you can use the shortened names `manager` , `none`, `reader`, and `writer`.

run_volume_mounts

array

Mounts of config maps or secrets.

scale_concurrency

integer

Optional maximum number of requests that can be processed concurrently per instance.

scale_concurrency_target

integer

Optional threshold of concurrent requests per instance at which one or more additional instances are created. Use this value to scale up instances based on concurrent number of requests. This option defaults to the value of the `scale_concurrency` option, if not specified.

scale_cpu_limit

string

Optional number of CPU set for the instance of the app. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale-down behavior for an app instance.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the app. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_initial_instances

integer

Optional initial number of instances that are created upon app creation or app update.

scale_max_instances

integer

Optional maximum number of instances for this app. If you set this value to `0`, this property does not set a upper scaling limit. However, the app scaling is still limited by the project quota for instances. See Limits and quotas for Code Engine.

scale_memory_limit

string

Optional amount of memory set for the instance of the app. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_min_instances

integer

Optional minimum number of instances for this app. If you set this value to `0`, the app will scale down to zero, if not hit by any request for some time.

scale_request_timeout

integer

Optional amount of time in seconds that is allowed for a running app to respond to a request.

status

string

The current status of the app.

status_details

AppStatus

The detailed status of the application.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List bindings

GET /projects/{project_id}/bindings

List all bindings in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.list
  • codeengine.application.list
  • codeengine.job.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of bindings per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

bindings

array

List of all bindings.

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a binding

POST /projects/{project_id}/bindings

Create a binding. Creating a service binding with a Code Engine app will update the app, creating a new revision. For more information see the documentation

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create
  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.create
  • codeengine.secret.read
  • codeengine.secret.update
  • codeengine.application.list
  • codeengine.application.update
  • codeengine.job.list
  • codeengine.job.update

Request

Request Body

BindingPrototype

Binding prototype.

component

Required *

ComponentRef

A reference to another component.

name

Required *

string

The name of the referenced component.

resource_type

Required *

string

The type of the referenced resource.

prefix

Required *

string

Optional value that is set as prefix in the component that is bound. Will be generated if not provided.

secret_name

Required *

string

The service access secret that is bound to a component.

Response

201 - Created

component

ComponentRef

A reference to another component.

href

string

When you provision a new binding, a URL is created identifying the location of the instance.

id

string

The ID of the binding.

prefix

string

The value that is set as a prefix in the component that is bound.

project_id

string

The ID of the project in which the resource is located.

resource_type

string

The type of the binding.

secret_name

string

The service access secret that is bound to a component.

status

string

The current status of the binding.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a binding

DELETE /projects/{project_id}/bindings/{id}

Delete a binding.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete
  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.list
  • codeengine.secret.update
  • codeengine.application.list
  • codeengine.application.update
  • codeengine.job.list
  • codeengine.job.update

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a binding

GET /projects/{project_id}/bindings/{id}

Display the details of a binding.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.list

Request

Response

200 - OK

component

ComponentRef

A reference to another component.

href

string

When you provision a new binding, a URL is created identifying the location of the instance.

id

string

The ID of the binding.

prefix

string

The value that is set as a prefix in the component that is bound.

project_id

string

The ID of the project in which the resource is located.

resource_type

string

The type of the binding.

secret_name

string

The service access secret that is bound to a component.

status

string

The current status of the binding.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List build runs

GET /projects/{project_id}/build_runs

List all build runs in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.buildrun.list

Request

Path Parameters

Query Parameters

build_name

string

Optional name of the build that should be filtered for.

limit

integer

Optional maximum number of build runs per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

build_runs

array

List of all build runs.

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a build run

POST /projects/{project_id}/build_runs

Create a build run.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.buildrun.create

Request

Request Body

BuildRunPrototype

Build run prototype

build_name

string

Optional name of the build on which this build run is based on. If specified, the build run will inherit the configuration of the referenced build. If not specified, make sure to specify at least the fields `strategy_type`, `source_url`, `output_image` and `output_secret` to describe the build run.

name

string

Name of the build run. This field is optional, if the field `build_name` is specified and its value will be generated like so: `[BUILD_NAME]-run-[timestamp with format: YYMMDD-hhmmss] if not set.`

output_image

string

The name of the image.

output_secret

string

The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

run_build_params

array

Optional references to config maps and secret keys, or literal values that are exposed as build arguments within the Docker file.

service_account

string

Optional service account, which is used for resource control.

source_context_dir

string

Optional directory in the repository that contains the buildpacks file or the Dockerfile.

source_revision

string

Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.

source_secret

string

Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.

source_type

string

Specifies the type of source to determine if your build source is in a repository or based on local source code.

  • local - For builds from local source code.
  • git - For builds from git version controlled source code.

source_url

string

The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.

strategy_size

string

Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.

strategy_spec_file

string

Optional path to the specification file that is used for build strategies for building an image.

strategy_type

string

The strategy to use for building the image.

timeout

integer

The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

Response

202 - Accepted

build_name

string

Optional name of the build on which this build run is based on. If specified, the build run will inherit the configuration of the referenced build. If not specified, make sure to specify at least the fields `strategy_type`, `source_url`, `output_image` and `output_secret` to describe the build run.

created_at

string

The timestamp when the resource was created.

href

string

When you trigger a new build run, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the build run.

output_image

string

The name of the image.

output_secret

string

The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the build run.

run_build_params

array

References to config maps and secret keys, or literal values, which are defined by the build owner and are exposed as build arguments in Docker files.

service_account

string

Optional service account, which is used for resource control.

source_context_dir

string

Optional directory in the repository that contains the buildpacks file or the Dockerfile.

source_revision

string

Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.

source_secret

string

Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.

source_type

string

Specifies the type of source to determine if your build source is in a repository or based on local source code.

  • local - For builds from local source code.
  • git - For builds from git version controlled source code.

source_url

string

The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.

status

string

The current status of the build run.

status_details

BuildRunStatus

Current status condition of a build run.

strategy_size

string

Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.

strategy_spec_file

string

Optional path to the specification file that is used for build strategies for building an image.

strategy_type

string

The strategy to use for building the image.

timeout

integer

The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a build run

DELETE /projects/{project_id}/build_runs/{name}

Delete a build run.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.buildrun.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a build run

GET /projects/{project_id}/build_runs/{name}

Display the details of a build run.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.buildrun.read

Request

Response

200 - OK

build_name

string

Optional name of the build on which this build run is based on. If specified, the build run will inherit the configuration of the referenced build. If not specified, make sure to specify at least the fields `strategy_type`, `source_url`, `output_image` and `output_secret` to describe the build run.

created_at

string

The timestamp when the resource was created.

href

string

When you trigger a new build run, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the build run.

output_image

string

The name of the image.

output_secret

string

The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the build run.

run_build_params

array

References to config maps and secret keys, or literal values, which are defined by the build owner and are exposed as build arguments in Docker files.

service_account

string

Optional service account, which is used for resource control.

source_context_dir

string

Optional directory in the repository that contains the buildpacks file or the Dockerfile.

source_revision

string

Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.

source_secret

string

Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.

source_type

string

Specifies the type of source to determine if your build source is in a repository or based on local source code.

  • local - For builds from local source code.
  • git - For builds from git version controlled source code.

source_url

string

The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.

status

string

The current status of the build run.

status_details

BuildRunStatus

Current status condition of a build run.

strategy_size

string

Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.

strategy_spec_file

string

Optional path to the specification file that is used for build strategies for building an image.

strategy_type

string

The strategy to use for building the image.

timeout

integer

The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List builds

GET /projects/{project_id}/builds

List all builds in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.build.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of builds per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

builds

array

List of all builds.

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a build

POST /projects/{project_id}/builds

Create a build.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.build.create

Request

Request Body

BuildPrototype

Build prototype

name

Required *

string

The name of the build. Use a name that is unique within the project.

output_image

Required *

string

The name of the image.

output_secret

Required *

string

The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

run_build_params

array

Optional references to config maps and secret keys, or literal values that are exposed as build arguments within the Docker file.

source_context_dir

string

Optional directory in the repository that contains the buildpacks file or the Dockerfile.

source_revision

string

Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.

source_secret

string

Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.

source_type

string

Specifies the type of source to determine if your build source is in a repository or based on local source code.

  • local - For builds from local source code.
  • git - For builds from git version controlled source code.

source_url

string

The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.

strategy_size

string

Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.

strategy_spec_file

string

Optional path to the specification file that is used for build strategies for building an image.

strategy_type

Required *

string

The strategy to use for building the image.

timeout

integer

The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

Response

201 - Created

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the build instance, which is used to achieve optimistic locking.

href

string

When you provision a new build, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the build.

output_image

string

The name of the image.

output_secret

string

The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the build.

run_build_params

array

References to config maps and secret keys, or literal values, which are defined by the build owner and are exposed as build arguments in Docker files.

source_context_dir

string

Optional directory in the repository that contains the buildpacks file or the Dockerfile.

source_revision

string

Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.

source_secret

string

Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.

source_type

string

Specifies the type of source to determine if your build source is in a repository or based on local source code.

  • local - For builds from local source code.
  • git - For builds from git version controlled source code.

source_url

string

The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.

status

string

The current status of the build.

status_details

BuildStatus

The detailed status of the build.

strategy_size

string

Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.

strategy_spec_file

string

Optional path to the specification file that is used for build strategies for building an image.

strategy_type

string

The strategy to use for building the image.

timeout

integer

The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a build

DELETE /projects/{project_id}/builds/{name}

Delete a build.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.build.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a build

GET /projects/{project_id}/builds/{name}

Display the details of a build.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.build.read

Request

Response

200 - OK

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the build instance, which is used to achieve optimistic locking.

href

string

When you provision a new build, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the build.

output_image

string

The name of the image.

output_secret

string

The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the build.

run_build_params

array

References to config maps and secret keys, or literal values, which are defined by the build owner and are exposed as build arguments in Docker files.

source_context_dir

string

Optional directory in the repository that contains the buildpacks file or the Dockerfile.

source_revision

string

Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.

source_secret

string

Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.

source_type

string

Specifies the type of source to determine if your build source is in a repository or based on local source code.

  • local - For builds from local source code.
  • git - For builds from git version controlled source code.

source_url

string

The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.

status

string

The current status of the build.

status_details

BuildStatus

The detailed status of the build.

strategy_size

string

Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.

strategy_spec_file

string

Optional path to the specification file that is used for build strategies for building an image.

strategy_type

string

The strategy to use for building the image.

timeout

integer

The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update a build

PATCH /projects/{project_id}/builds/{name}

Update a build.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.build.read
  • codeengine.build.update

Request

Request Body

Build patch

Path Parameters

Query Parameters

Response

200 - OK

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the build instance, which is used to achieve optimistic locking.

href

string

When you provision a new build, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the build.

output_image

string

The name of the image.

output_secret

string

The secret that is required to access the image registry. Make sure that the secret is granted with push permissions towards the specified container registry namespace.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the build.

run_build_params

array

References to config maps and secret keys, or literal values, which are defined by the build owner and are exposed as build arguments in Docker files.

source_context_dir

string

Optional directory in the repository that contains the buildpacks file or the Dockerfile.

source_revision

string

Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is `git` and uses the HEAD of default branch if not specified. If the `source_type` value is `local`, this field must be omitted.

source_secret

string

Name of the secret that is used access the repository source. This field is optional if the `source_type` is `git`. Additionally, if the `source_url` points to a repository that requires authentication, the build will be created but cannot access any source code, until this property is provided, too. If the `source_type` value is `local`, this field must be omitted.

source_type

string

Specifies the type of source to determine if your build source is in a repository or based on local source code.

  • local - For builds from local source code.
  • git - For builds from git version controlled source code.

source_url

string

The URL of the code repository. This field is required if the `source_type` is `git`. If the `source_type` value is `local`, this field must be omitted. If the repository is publicly available you can provide a 'https' URL like `https://github.com/IBM/CodeEngine`. If the repository requires authentication, you need to provide a 'ssh' URL like `git@github.com:IBM/CodeEngine.git` along with a `source_secret` that points to a secret of format `ssh_auth`.

status

string

The current status of the build.

status_details

BuildStatus

The detailed status of the build.

strategy_size

string

Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.

strategy_spec_file

string

Optional path to the specification file that is used for build strategies for building an image.

strategy_type

string

The strategy to use for building the image.

timeout

integer

The maximum amount of time, in seconds, that can pass before the build must succeed or fail.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List config maps

GET /projects/{project_id}/config_maps

List all config maps in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.configmap.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of config maps per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

config_maps

array

List of all config maps.

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a config map

POST /projects/{project_id}/config_maps

Create a config map.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.configmap.create

Request

Request Body

ConfigMapPrototype

Config map prototype.

data

object

The key-value pair for the config map. Values must be specified in `KEY=VALUE` format. Each `KEY` field must consist of alphanumeric characters, `-`, `_` or `.` and must not be exceed a max length of 253 characters. Each `VALUE` field can consists of any character and must not be exceed a max length of 1048576 characters.

name

Required *

string

The name of the configmap. Use a name that is unique within the project.

Response

201 - Created

created_at

string

The timestamp when the resource was created.

data

object

The key-value pair for the config map. Values must be specified in `KEY=VALUE` format.

entity_tag

string

The version of the config map instance, which is used to achieve optimistic locking.

href

string

When you provision a new config map, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the config map.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the config map.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a config map

DELETE /projects/{project_id}/config_maps/{name}

Delete a config map.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.configmap.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a config map

GET /projects/{project_id}/config_maps/{name}

Display the details of a config map.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.configmap.read

Request

Response

200 - OK

created_at

string

The timestamp when the resource was created.

data

object

The key-value pair for the config map. Values must be specified in `KEY=VALUE` format.

entity_tag

string

The version of the config map instance, which is used to achieve optimistic locking.

href

string

When you provision a new config map, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the config map.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the config map.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update a config map

PUT /projects/{project_id}/config_maps/{name}

Update a config map.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.configmap.read
  • codeengine.configmap.update

Request

Request Body

ConfigMapPatch

Config map prototype.

data

object

The key-value pair for the config map. Values must be specified in `KEY=VALUE` format. Each `KEY` field must consist of alphanumeric characters, `-`, `_` or `.` and must not be exceed a max length of 253 characters. Each `VALUE` field can consists of any character and must not be exceed a max length of 1048576 characters.

Path Parameters

Query Parameters

Response

200 - OK

created_at

string

The timestamp when the resource was created.

data

object

The key-value pair for the config map. Values must be specified in `KEY=VALUE` format.

entity_tag

string

The version of the config map instance, which is used to achieve optimistic locking.

href

string

When you provision a new config map, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the config map.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the config map.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List domain mappings

GET /projects/{project_id}/domain_mappings

List all domain mappings in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.domainmapping.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of domain mappings per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

domain_mappings

array

List of all domain mappings.

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a domain mapping

POST /projects/{project_id}/domain_mappings

Create a domain mapping

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.domainmapping.create

Request

Request Body

DomainMappingPrototype

DomainMapping prototype

component

Required *

ComponentRef

A reference to another component.

name

Required *

string

The name of the referenced component.

resource_type

Required *

string

The type of the referenced resource.

name

Required *

string

The name of the domain mapping.

tls_secret

Required *

string

The name of the TLS secret that includes the certificate and private key of this domain mapping.

Response

201 - Created

cname_target

string

The value of the CNAME record that must be configured in the DNS settings of the domain, to route traffic properly to the target Code Engine region.

component

ComponentRef

A reference to another component.

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the domain mapping instance, which is used to achieve optimistic locking.

href

string

When you provision a new domain mapping, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the domain mapping.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the Code Engine resource.

status

string

The current status of the domain mapping.

status_details

DomainMappingStatus

The detailed status of the domain mapping.

tls_secret

string

The name of the TLS secret that includes the certificate and private key of this domain mapping.

user_managed

boolean

Specifies whether the domain mapping is managed by the user or by Code Engine.

visibility

string

Specifies whether the domain mapping is reachable through the public internet, or private IBM network, or only through other components within the same Code Engine project.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a domain mapping

DELETE /projects/{project_id}/domain_mappings/{name}

Delete a domain mapping

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.domainmapping.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a domain mapping

GET /projects/{project_id}/domain_mappings/{name}

Get domain mapping

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.domainmapping.read

Request

Response

200 - OK

cname_target

string

The value of the CNAME record that must be configured in the DNS settings of the domain, to route traffic properly to the target Code Engine region.

component

ComponentRef

A reference to another component.

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the domain mapping instance, which is used to achieve optimistic locking.

href

string

When you provision a new domain mapping, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the domain mapping.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the Code Engine resource.

status

string

The current status of the domain mapping.

status_details

DomainMappingStatus

The detailed status of the domain mapping.

tls_secret

string

The name of the TLS secret that includes the certificate and private key of this domain mapping.

user_managed

boolean

Specifies whether the domain mapping is managed by the user or by Code Engine.

visibility

string

Specifies whether the domain mapping is reachable through the public internet, or private IBM network, or only through other components within the same Code Engine project.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update a domain mapping

PATCH /projects/{project_id}/domain_mappings/{name}

Update a domain mapping

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.domainmapping.read
  • codeengine.domainmapping.update

Request

Request Body

DomainMapping patch

Path Parameters

Query Parameters

Response

200 - OK

cname_target

string

The value of the CNAME record that must be configured in the DNS settings of the domain, to route traffic properly to the target Code Engine region.

component

ComponentRef

A reference to another component.

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the domain mapping instance, which is used to achieve optimistic locking.

href

string

When you provision a new domain mapping, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the domain mapping.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the Code Engine resource.

status

string

The current status of the domain mapping.

status_details

DomainMappingStatus

The detailed status of the domain mapping.

tls_secret

string

The name of the TLS secret that includes the certificate and private key of this domain mapping.

user_managed

boolean

Specifies whether the domain mapping is managed by the user or by Code Engine.

visibility

string

Specifies whether the domain mapping is reachable through the public internet, or private IBM network, or only through other components within the same Code Engine project.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List egress IP addresses

GET /projects/{project_id}/egress_ips

Lists all egress IP addresses (public and private) that are used by components running in this project. For information about using egress IP addresses, see Code Engine public and private IP addresses.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Request

Path Parameters

project_id

Required *

string

The ID of the project.

Query Parameters

version

string

The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2021-03-31` and `2026-11-03`.

Response

200 - OK

private

array

List of IBM private network IP addresses

public

array

List of public IP addresses

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List fleets

GET /projects/{project_id}/fleets

List all fleets in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.fleet.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of fleets per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

fleets

array

List of fleets.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a fleet

POST /projects/{project_id}/fleets

Create a fleet.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.fleet.create

Request

Request Body

FleetPrototype

Fleet prototype.

image_reference

Required *

string

The name of the image that is used for this fleet.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the fleet will not be able to process tasks.

name

Required *

string

The name of the fleet.

network_placements

Required *

array

List of network locations determining in which network the workers and processed workload will be running.

run_arguments

array

Optional arguments for the fleet that are passed to start the container.

run_commands

array

Optional commands for the fleet that are passed to start the container.

run_env_variables

array

Optional references to config maps, secrets or literal values that are exposed as environment variables within the running task process.

run_volume_mounts

array

Optional mounts of persistent data stores.

scale_cpu_limit

Required *

string

Number of CPU set for each task in the fleet.

scale_down_delay

string

Optional amount of time that delays worker scale-down after task completion.

scale_gpu

GPUScalePrototype

Optional information around allocation of GPUs to process tasks.

preferences

array

List of GPU preferences in descending order.

scale_max_execution_time

string

Optional maximum execution time of each attempt to process a task instance.

scale_max_instances

Required *

integer

Optional maximum number of instances for this fleet, determining how many task are processed simultaneously.

scale_memory_limit

Required *

string

Amount of memory set for the instance of the fleet.

scale_min_instances

integer

Optional minimum worker capacity that is always retained for the fleet.

scale_preferred_worker_profile

string

Optional worker profile name that will be used to provision a worker. The fleet will fail if the profile is not available in the zones that are referenced as part of `connections`.

scale_retry_limit

integer

Optional number of times to rerun an instance of the task before the task is marked as failed.

scale_spare_instances

integer

Optional spare worker capacity that is retained or created so that future tasks can start immediately.

tasks_specification

TasksSpecificationPrototype

The source of task that are processed by the fleet.

tasks_state_store

Required *

TaskStateStorePrototype

The reference to the object store where the task progress is maintained.

persistent_data_store

Required *

string

Name of referenced persistent data store resource.

sub_path

string

Optional object storage prefix to be used as an entry point.

Response

201 - Created

created_at

string

The timestamp when the resource was created.

finished_at

string

The timestamp when the fleet finished.

href

string

URL identifying the location of the fleet.

id

string

The identifier of the resource.

image_reference

string

The name of the image that is used for this fleet.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the fleet will not be able to process tasks.

name

string

The name of the fleet.

network_placements

array

List of network locations determining in which network the workers and processed workload will be running.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the fleet.

run_arguments

array

Optional arguments for the fleet that are passed to start the container.

run_commands

array

Optional commands for the fleet that are passed to start the container.

run_env_variables

array

Optional references to config maps, secrets or literal values that are exposed as environment variables within the running task process.

run_volume_mounts

array

Optional mounts of persistent data stores.

scale_cpu_limit

string

Number of CPU set for each task in the fleet.

scale_down_delay

string

Optional amount of time that delays worker scale-down after task completion.

scale_gpu

GPUScale

Optional information around allocation of GPUs to process tasks.

scale_max_execution_time

string

Optional maximum execution time in seconds of each tasks.

scale_max_instances

integer

Optional maximum number of instances for this fleet, determining how many task are processed simultaneously.

scale_memory_limit

string

Amount of memory set for the instance of the fleet.

scale_min_instances

integer

Optional minimum worker capacity that is always retained for the fleet.

scale_preferred_worker_profile

string

Optional worker profile name that will be used to provision a worker. The fleet will fail if the profile is not available in the zones that are referenced as part of `locations`.

scale_retry_limit

integer

Optional number of times to rerun an instance of the task before the task is marked as failed.

scale_spare_instances

integer

Optional spare worker capacity that is retained or created so that future tasks can start immediately.

status

string

The current status of the fleet.

status_details

FleetStatusDetails

The detailed status of the fleet.

tasks_specification

TasksSpecification

tasks_state_store

TaskStateStore

The reference to the object store where the task progress is maintained.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List tasks

GET /projects/{project_id}/fleets/{fleet_id}/tasks

List tasks.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.task.list

Request

Path Parameters

project_id

Required *

string

The ID of the project.

fleet_id

Required *

string

The ID of the fleet.

Query Parameters

status

string

Status condition to filter the tasks by

limit

integer

Optional maximum number of subnet pools per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

tasks

array

Collection of fleet task statuses.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a task

GET /projects/{project_id}/fleets/{fleet_id}/tasks/{id}

Get a task.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.task.read

Request

Path Parameters

project_id

Required *

string

The ID of the project.

fleet_id

Required *

string

The ID of the fleet.

id

Required *

string

The ID of the task.

Query Parameters

Response

200 - OK

created_at

string

The timestamp when the task was initially created.

finished_at

string

The timestamp when the resource finished.

fleet_id

string

The ID of the fleet as part of which the task is processing tasks.

href

string

URL identifying the location of the task.

id

string

The identifier of the resource.

index

string

Indicating the index that is provided to the task for reference.

process_id

string

The ID of the process on the worker which is processing the task.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the fleet task status.

retries

integer

Number of performed retries to finish task processing.

started_at

string

The timestamp when the task started processing.

status

string

Current status of the fleet task.

status_details

TaskStatusDetails

Current status of the fleet task.

worker_name

string

The name of the worker that is processing task.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List workers

GET /projects/{project_id}/fleets/{fleet_id}/workers

List workers.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.worker.list

Request

Path Parameters

project_id

Required *

string

The ID of the project.

fleet_id

Required *

string

The ID of the fleet.

Query Parameters

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

workers

array

Collection of fleet workers.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a worker

GET /projects/{project_id}/fleets/{fleet_id}/workers/{name}

Get a worker.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.worker.read

Request

Path Parameters

project_id

Required *

string

The ID of the project.

fleet_id

Required *

string

The ID of the fleet.

name

Required *

string

The name of the worker.

Query Parameters

Response

200 - OK

created_at

string

The timestamp when the resource was created.

finished_at

string

The timestamp when the worker finished.

fleet_id

string

The ID of the fleet as part of which the worker is processing tasks.

href

string

URL identifying the location of the worker.

id

string

The identifier of the resource.

name

string

The name of the worker.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the fleet worker.

status

string

Current status of the fleet worker.

status_details

WorkerStatusDetails

Information around the network and configuration details of the worker.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a fleet

DELETE /projects/{project_id}/fleets/{id}

Delete a fleet.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.fleet.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a fleet

GET /projects/{project_id}/fleets/{id}

Get a fleet.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.fleet.read

Request

Response

200 - OK

created_at

string

The timestamp when the resource was created.

finished_at

string

The timestamp when the fleet finished.

href

string

URL identifying the location of the fleet.

id

string

The identifier of the resource.

image_reference

string

The name of the image that is used for this fleet.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the fleet will not be able to process tasks.

name

string

The name of the fleet.

network_placements

array

List of network locations determining in which network the workers and processed workload will be running.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the fleet.

run_arguments

array

Optional arguments for the fleet that are passed to start the container.

run_commands

array

Optional commands for the fleet that are passed to start the container.

run_env_variables

array

Optional references to config maps, secrets or literal values that are exposed as environment variables within the running task process.

run_volume_mounts

array

Optional mounts of persistent data stores.

scale_cpu_limit

string

Number of CPU set for each task in the fleet.

scale_down_delay

string

Optional amount of time that delays worker scale-down after task completion.

scale_gpu

GPUScale

Optional information around allocation of GPUs to process tasks.

scale_max_execution_time

string

Optional maximum execution time in seconds of each tasks.

scale_max_instances

integer

Optional maximum number of instances for this fleet, determining how many task are processed simultaneously.

scale_memory_limit

string

Amount of memory set for the instance of the fleet.

scale_min_instances

integer

Optional minimum worker capacity that is always retained for the fleet.

scale_preferred_worker_profile

string

Optional worker profile name that will be used to provision a worker. The fleet will fail if the profile is not available in the zones that are referenced as part of `locations`.

scale_retry_limit

integer

Optional number of times to rerun an instance of the task before the task is marked as failed.

scale_spare_instances

integer

Optional spare worker capacity that is retained or created so that future tasks can start immediately.

status

string

The current status of the fleet.

status_details

FleetStatusDetails

The detailed status of the fleet.

tasks_specification

TasksSpecification

tasks_state_store

TaskStateStore

The reference to the object store where the task progress is maintained.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Add tasks to a fleet

POST /projects/{project_id}/fleets/{id}/add_tasks

Add tasks to a fleet.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.fleet.action.addtasks.create

Request

Request Body

FleetAddTasksPrototype

Add tasks request.

batch_name

string

Optional name for the batch of tasks being added.

tasks_specification

Required *

TasksSpecificationPrototype

The source of task that are processed by the fleet.

Path Parameters

project_id

Required *

string

The ID of the project.

id

Required *

string

The ID of the fleet.

Query Parameters

Response

202 - Accepted

id

string

The ID of the created action.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

409 - Conflict

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Cancel a fleet

POST /projects/{project_id}/fleets/{id}/cancel

Cancel a fleet.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.fleet.update

Request

Request Body

FleetCancel

Fleet cancel request.

cancel_processing_tasks

boolean

Property determining if the fleet cancelation should immediately abort already running tasks, if so, set to `true`.

Path Parameters

project_id

Required *

string

The ID of the project.

id

Required *

string

The ID of the fleet.

Query Parameters

Response

202 - Accepted

created_at

string

The timestamp when the resource was created.

finished_at

string

The timestamp when the fleet finished.

href

string

URL identifying the location of the fleet.

id

string

The identifier of the resource.

image_reference

string

The name of the image that is used for this fleet.

image_secret

string

Optional name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the fleet will not be able to process tasks.

name

string

The name of the fleet.

network_placements

array

List of network locations determining in which network the workers and processed workload will be running.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the fleet.

run_arguments

array

Optional arguments for the fleet that are passed to start the container.

run_commands

array

Optional commands for the fleet that are passed to start the container.

run_env_variables

array

Optional references to config maps, secrets or literal values that are exposed as environment variables within the running task process.

run_volume_mounts

array

Optional mounts of persistent data stores.

scale_cpu_limit

string

Number of CPU set for each task in the fleet.

scale_down_delay

string

Optional amount of time that delays worker scale-down after task completion.

scale_gpu

GPUScale

Optional information around allocation of GPUs to process tasks.

scale_max_execution_time

string

Optional maximum execution time in seconds of each tasks.

scale_max_instances

integer

Optional maximum number of instances for this fleet, determining how many task are processed simultaneously.

scale_memory_limit

string

Amount of memory set for the instance of the fleet.

scale_min_instances

integer

Optional minimum worker capacity that is always retained for the fleet.

scale_preferred_worker_profile

string

Optional worker profile name that will be used to provision a worker. The fleet will fail if the profile is not available in the zones that are referenced as part of `locations`.

scale_retry_limit

integer

Optional number of times to rerun an instance of the task before the task is marked as failed.

scale_spare_instances

integer

Optional spare worker capacity that is retained or created so that future tasks can start immediately.

status

string

The current status of the fleet.

status_details

FleetStatusDetails

The detailed status of the fleet.

tasks_specification

TasksSpecification

tasks_state_store

TaskStateStore

The reference to the object store where the task progress is maintained.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List functions

GET /projects/{project_id}/functions

List all functions in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.function.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of functions per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the 'next_url' field of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

functions

array

List of all functions.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a function

POST /projects/{project_id}/functions

Create a function.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.function.create

Request

Request Body

FunctionPrototype

Function prototype

code_binary

boolean

Specifies whether the code is binary or not. Defaults to false when `code_reference` is set to a data URL. When `code_reference` is set to a code bundle URL, this field is always true.

code_main

string

Specifies the name of the function that should be invoked.

code_reference

Required *

string

Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

code_secret

string

The name of the secret that is used to access the specified `code_reference`. The secret is used to authenticate with a non-public endpoint that is specified as`code_reference`.

managed_domain_mappings

string

Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

name

Required *

string

The name of the function. Use a name that is unique within the project.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

Optional references to config maps, secrets or literal values.

runtime

Required *

string

The managed runtime used to execute the injected code.

scale_concurrency

integer

Number of parallel requests handled by a single instance, supported only by Node.js, default is `1`.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale down behavior for a function.

scale_max_execution_time

integer

Timeout in secs after which the function is terminated

scale_memory_limit

string

Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

Response

201 - Created

code_binary

boolean

Specifies whether the code is binary or not. Defaults to false when `code_reference` is set to a data URL. When `code_reference` is set to a code bundle URL, this field is always true.

code_main

string

Specifies the name of the function that should be invoked.

code_reference

string

Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

code_secret

string

The name of the secret that is used to access the specified `code_reference`. The secret is used to authenticate with a non-public endpoint that is specified as`code_reference`.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

created_at

string

The timestamp when the resource was created.

endpoint

string

URL to invoke the function.

endpoint_internal

string

URL to function that is only visible within the project.

entity_tag

string

The version of the function instance, which is used to achieve optimistic locking.

href

string

When you provision a new function, a relative URL path is created identifying the location of the instance.

id

string

The identifier of the resource.

managed_domain_mappings

string

Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

name

string

The name of the function.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the function.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

runtime

string

The managed runtime used to execute the injected code.

scale_concurrency

integer

Number of parallel requests handled by a single instance, supported only by Node.js, default is `1`.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale down behavior for a function.

scale_max_execution_time

integer

Timeout in secs after which the function is terminated

scale_memory_limit

string

Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

status

string

The current status of the function.

status_details

FunctionStatus

The detailed status of the function.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a function

DELETE /projects/{project_id}/functions/{name}

Delete a function.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.function.delete

Request

Path Parameters

Query Parameters

keep_service_access

boolean

Determines if connected service access secrets remain intact after function deletion.

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a function

GET /projects/{project_id}/functions/{name}

Display the details of a function.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.function.read

Request

Response

200 - OK

code_binary

boolean

Specifies whether the code is binary or not. Defaults to false when `code_reference` is set to a data URL. When `code_reference` is set to a code bundle URL, this field is always true.

code_main

string

Specifies the name of the function that should be invoked.

code_reference

string

Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

code_secret

string

The name of the secret that is used to access the specified `code_reference`. The secret is used to authenticate with a non-public endpoint that is specified as`code_reference`.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

created_at

string

The timestamp when the resource was created.

endpoint

string

URL to invoke the function.

endpoint_internal

string

URL to function that is only visible within the project.

entity_tag

string

The version of the function instance, which is used to achieve optimistic locking.

href

string

When you provision a new function, a relative URL path is created identifying the location of the instance.

id

string

The identifier of the resource.

managed_domain_mappings

string

Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

name

string

The name of the function.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the function.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

runtime

string

The managed runtime used to execute the injected code.

scale_concurrency

integer

Number of parallel requests handled by a single instance, supported only by Node.js, default is `1`.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale down behavior for a function.

scale_max_execution_time

integer

Timeout in secs after which the function is terminated

scale_memory_limit

string

Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

status

string

The current status of the function.

status_details

FunctionStatus

The detailed status of the function.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update a function

PATCH /projects/{project_id}/functions/{name}

Update the given function.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.function.read
  • codeengine.function.update

Request

Request Body

Function patch

Path Parameters

Query Parameters

Response

200 - OK

code_binary

boolean

Specifies whether the code is binary or not. Defaults to false when `code_reference` is set to a data URL. When `code_reference` is set to a code bundle URL, this field is always true.

code_main

string

Specifies the name of the function that should be invoked.

code_reference

string

Specifies either a reference to a code bundle or the source code itself. To specify the source code, use the data URL scheme and include the source code as base64 encoded. The data URL scheme is defined in RFC 2397.

code_secret

string

The name of the secret that is used to access the specified `code_reference`. The secret is used to authenticate with a non-public endpoint that is specified as`code_reference`.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the function.

created_at

string

The timestamp when the resource was created.

endpoint

string

URL to invoke the function.

endpoint_internal

string

URL to function that is only visible within the project.

entity_tag

string

The version of the function instance, which is used to achieve optimistic locking.

href

string

When you provision a new function, a relative URL path is created identifying the location of the instance.

id

string

The identifier of the resource.

managed_domain_mappings

string

Optional value controlling which of the system managed domain mappings will be setup for the function. Valid values are 'local_public', 'local_private' and 'local'. Visibility can only be 'local_private' if the project supports function private visibility.

name

string

The name of the function.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the function.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the function.

runtime

string

The managed runtime used to execute the injected code.

scale_concurrency

integer

Number of parallel requests handled by a single instance, supported only by Node.js, default is `1`.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the function. For valid values see Supported memory and CPU combinations.

scale_down_delay

integer

Optional amount of time in seconds that delays the scale down behavior for a function.

scale_max_execution_time

integer

Timeout in secs after which the function is terminated

scale_memory_limit

string

Optional amount of memory set for the instance of the function. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

status

string

The current status of the function.

status_details

FunctionStatus

The detailed status of the function.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List job runs

GET /projects/{project_id}/job_runs

List all job runs in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.jobrun.list

Request

Path Parameters

Query Parameters

job_name

string

Optional name of the job that you want to use to filter.

limit

integer

Optional maximum number of job runs per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

job_runs

array

List of all jobs.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a job run

POST /projects/{project_id}/job_runs

Create an job run.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.jobrun.create

Request

Request Body

JobRunPrototype

Job run prototype

image_reference

string

The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.

job_name

string

Optional name of the job on which this job run is based on. If specified, the job run will inherit the configuration of the referenced job.

name

string

The name of the job. Use a name that is unique within the project.

run_arguments

array

Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

The user ID (UID) to run the job.

run_commands

array

Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

Optional references to config maps, secrets or literal values.

run_mode

string

The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.

run_service_account

string

The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.

run_volume_mounts

array

Optional mounts of config maps or a secrets.

scale_array_size_variable_override

integer

Optional value to override the JOB_ARRAY_SIZE environment variable for a job run.

scale_array_spec

string

Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_max_execution_time

integer

The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.

scale_memory_limit

string

Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_retry_limit

integer

The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.

Response

202 - Accepted

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.

created_at

string

The timestamp when the resource was created.

href

string

When you provision a new job run, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_reference

string

The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.

job_name

string

Optional name of the job reference of this job run. If specified, the job run will inherit the configuration of the referenced job.

name

string

The name of the job run.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the job run.

run_arguments

array

Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

The user ID (UID) to run the job.

run_commands

array

Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the job run.

run_mode

string

The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.

run_service_account

string

The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.

run_volume_mounts

array

Optional mounts of config maps or secrets.

scale_array_size_variable_override

integer

Optional value to override the JOB_ARRAY_SIZE environment variable for a job run.

scale_array_spec

string

Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_max_execution_time

integer

The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.

scale_memory_limit

string

Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_retry_limit

integer

The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.

status

string

The current status of the job run.

status_details

JobRunStatus

The detailed status of the job run.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a job run

DELETE /projects/{project_id}/job_runs/{name}

Delete a job run.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.jobrun.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a job run

GET /projects/{project_id}/job_runs/{name}

Display the details of a job run.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.jobrun.read

Request

Response

200 - OK

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.

created_at

string

The timestamp when the resource was created.

href

string

When you provision a new job run, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_reference

string

The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.

job_name

string

Optional name of the job reference of this job run. If specified, the job run will inherit the configuration of the referenced job.

name

string

The name of the job run.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the job run.

run_arguments

array

Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

The user ID (UID) to run the job.

run_commands

array

Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the job run.

run_mode

string

The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.

run_service_account

string

The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.

run_volume_mounts

array

Optional mounts of config maps or secrets.

scale_array_size_variable_override

integer

Optional value to override the JOB_ARRAY_SIZE environment variable for a job run.

scale_array_spec

string

Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_max_execution_time

integer

The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.

scale_memory_limit

string

Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_retry_limit

integer

The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.

status

string

The current status of the job run.

status_details

JobRunStatus

The detailed status of the job run.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List jobs

GET /projects/{project_id}/jobs

List all jobs in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.job.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of jobs per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

jobs

array

List of all jobs.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a job

POST /projects/{project_id}/jobs

Create a job.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.job.create

Request

Request Body

JobPrototype

Job prototype

image_reference

Required *

string

The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.

name

Required *

string

The name of the job. Use a name that is unique within the project.

run_arguments

array

Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

The user ID (UID) to run the job.

run_commands

array

Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

Optional references to config maps, secrets or literal values.

run_mode

string

The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.

run_service_account

string

The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.

run_volume_mounts

array

Optional mounts of config maps or a secrets.

scale_array_spec

string

Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_max_execution_time

integer

The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.

scale_memory_limit

string

Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_retry_limit

integer

The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.

Response

201 - Created

build

string

Reference to a build that is associated with the job.

build_run

string

Reference to a build run that is associated with the job.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the job instance, which is used to achieve optimistic locking.

href

string

When you provision a new job, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_reference

string

The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.

name

string

The name of the job.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the job.

run_arguments

array

Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

The user ID (UID) to run the job.

run_commands

array

Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the job run.

run_mode

string

The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.

run_service_account

string

The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.

run_volume_mounts

array

Optional mounts of config maps or secrets.

scale_array_spec

string

Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_max_execution_time

integer

The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.

scale_memory_limit

string

Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_retry_limit

integer

The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a job

DELETE /projects/{project_id}/jobs/{name}

Delete a job.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.job.delete

Request

Path Parameters

Query Parameters

keep_service_access

boolean

Determines if connected service access secrets remain intact after job deletion.

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a job

GET /projects/{project_id}/jobs/{name}

Display the details of a job.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.job.read

Request

Response

200 - OK

build

string

Reference to a build that is associated with the job.

build_run

string

Reference to a build run that is associated with the job.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the job instance, which is used to achieve optimistic locking.

href

string

When you provision a new job, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_reference

string

The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.

name

string

The name of the job.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the job.

run_arguments

array

Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

The user ID (UID) to run the job.

run_commands

array

Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the job run.

run_mode

string

The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.

run_service_account

string

The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.

run_volume_mounts

array

Optional mounts of config maps or secrets.

scale_array_spec

string

Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_max_execution_time

integer

The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.

scale_memory_limit

string

Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_retry_limit

integer

The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update a job

PATCH /projects/{project_id}/jobs/{name}

Update the given job.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.job.read
  • codeengine.job.update

Request

Request Body

Job patch prototype

Path Parameters

Query Parameters

Response

200 - OK

build

string

Reference to a build that is associated with the job.

build_run

string

Reference to a build run that is associated with the job.

computed_env_variables

array

References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.

created_at

string

The timestamp when the resource was created.

entity_tag

string

The version of the job instance, which is used to achieve optimistic locking.

href

string

When you provision a new job, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

image_reference

string

The name of the image that is used for this job. The format is `REGISTRY/NAMESPACE/REPOSITORY:TAG` where `REGISTRY` and `TAG` are optional. If `REGISTRY` is not specified, the default is `docker.io`. If `TAG` is not specified, the default is `latest`. If the image reference points to a registry that requires authentication, make sure to also specify the property `image_secret`.

image_secret

string

The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.

name

string

The name of the job.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the job.

run_arguments

array

Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.

run_as_user

integer

The user ID (UID) to run the job.

run_commands

array

Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.

run_compute_resource_token_enabled

boolean

Optional flag to enable the use of a compute resource token mounted to the container file system.

run_env_variables

array

References to config maps, secrets or literal values, which are defined by the function owner and are exposed as environment variables in the job run.

run_mode

string

The mode for runs of the job. Valid values are `task` and `daemon`. In `task` mode, the `max_execution_time` and `retry_limit` properties apply. In `daemon` mode, since there is no timeout and failed instances are restarted indefinitely, the `max_execution_time` and `retry_limit` properties are not allowed.

run_service_account

string

The name of the service account. For built-in service accounts, you can use the shortened names `manager`, `none`, `reader`, and `writer`. This property must not be set on a job run, which references a job template.

run_volume_mounts

array

Optional mounts of config maps or secrets.

scale_array_spec

string

Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.

scale_cpu_limit

string

Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.

scale_ephemeral_storage_limit

string

Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of `scale_memory_limit`. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_max_execution_time

integer

The maximum execution time in seconds for runs of the job. This property can only be specified if `run_mode` is `task`.

scale_memory_limit

string

Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.

scale_retry_limit

integer

The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if `run_mode` is `task`.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List persistent data stores

GET /projects/{project_id}/persistent_data_stores

List all persistent data stores in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.persistentdatastore.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of persistent data stores per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

persistent_data_stores

array

List of persistent data stores.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a persistent data store

POST /projects/{project_id}/persistent_data_stores

Create a persistent data store.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.persistentdatastore.create

Request

Request Body

PersistentDataStorePrototype

PersistentDataStore prototype

data

StorageData

Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, `-`, `_` or `.` and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.

name

Required *

string

The name of the persistent data store.

storage_type

Required *

string

Specify the storage type of the persistent data store.

Response

201 - Created

created_at

string

The timestamp when the resource was created.

data

StorageData

Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, `-`, `_` or `.` and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.

entity_tag

string

The version of the persistent data store, which is used to achieve optimistic locking.

href

string

When you provision a new persistent data store, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the persistent data store.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the persistent data store.

storage_type

string

Specify the storage type of the persistent data store.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a persistent data store

DELETE /projects/{project_id}/persistent_data_stores/{name}

Delete a persistent data store.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.persistentdatastore.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a persistent data store

GET /projects/{project_id}/persistent_data_stores/{name}

Get a persistent data store.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.persistentdatastore.read

Request

Response

200 - OK

created_at

string

The timestamp when the resource was created.

data

StorageData

Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, `-`, `_` or `.` and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.

entity_tag

string

The version of the persistent data store, which is used to achieve optimistic locking.

href

string

When you provision a new persistent data store, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the persistent data store.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the persistent data store.

storage_type

string

Specify the storage type of the persistent data store.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List secrets

GET /projects/{project_id}/secrets

List all secrets in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read
  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.list

Request

Path Parameters

Query Parameters

format

string

Secret format to filter results by.

limit

integer

Optional maximum number of secrets per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

secrets

array

List of secrets.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a secret

POST /projects/{project_id}/secrets

Create a secret.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.create

Request

Request Body

SecretPrototype

Secret prototype.

data

SecretData

Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, `-`, `_` or `.` and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.

format

Required *

string

Specify the format of the secret. The format of the secret will determine how the secret is used.

name

Required *

string

The name of the secret.

service_access

ServiceAccessSecretPrototypeProps

Properties for Service Access Secrets

resource_key

object

The service credential associated with the secret.

role

object

A reference to the Role and Role CRN for service binding

service_instance

Required *

object

The IBM Cloud service instance associated with the secret.

serviceid

object

A reference to a Service ID

service_operator

OperatorSecretPrototypeProps

Properties for the IBM Cloud Operator Secrets

resource_group_ids

array

The list of resource groups (by ID) that the operator secret can bind services in

serviceid

object

A reference to the Service ID

Response

201 - Created

created_at

string

The timestamp when the resource was created.

data

object

Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, `-`, `_` or `.` and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.

entity_tag

string

The version of the secret instance, which is used to achieve optimistic locking.

format

string

Specify the format of the secret.

generated_by

string

Specifies whether the secret is user generated.

href

string

When you provision a new secret, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the secret.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the secret.

service_access

ServiceAccessSecretProps

Properties for Service Access Secrets

service_operator

OperatorSecretProps

Properties for the IBM Cloud Operator Secret

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a secret

DELETE /projects/{project_id}/secrets/{name}

Delete a secret.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.delete

Request

Response

202 - Accepted

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a secret

GET /projects/{project_id}/secrets/{name}

Get a secret.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read
  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.read

Request

Response

200 - OK

created_at

string

The timestamp when the resource was created.

data

object

Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, `-`, `_` or `.` and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.

entity_tag

string

The version of the secret instance, which is used to achieve optimistic locking.

format

string

Specify the format of the secret.

generated_by

string

Specifies whether the secret is user generated.

href

string

When you provision a new secret, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the secret.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the secret.

service_access

ServiceAccessSecretProps

Properties for Service Access Secrets

service_operator

OperatorSecretProps

Properties for the IBM Cloud Operator Secret

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update a secret

PUT /projects/{project_id}/secrets/{name}

Update a secret.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.secret.read
  • codeengine.secret.update

Request

Request Body

SecretPatch

Secret patch.

data

SecretData

Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, `-`, `_` or `.` and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.

format

Required *

string

Specify the format of the secret. The format of the secret will determine how the secret is used.

Path Parameters

Query Parameters

Response

200 - OK

created_at

string

The timestamp when the resource was created.

data

object

Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, `-`, `_` or `.` and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.

entity_tag

string

The version of the secret instance, which is used to achieve optimistic locking.

format

string

Specify the format of the secret.

generated_by

string

Specifies whether the secret is user generated.

href

string

When you provision a new secret, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the secret.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the secret.

service_access

ServiceAccessSecretProps

Properties for Service Access Secrets

service_operator

OperatorSecretProps

Properties for the IBM Cloud Operator Secret

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

409 - Conflict

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get project settings

GET /projects/{project_id}/settings

Get all project-level settings (fleet, monitoring, logging, registry, connectivity).

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.projectsettings.read

Request

Response

200 - OK

entity_tag

string

EntityTag is the version of the resource, used for optimistic concurrency control.

monitoring

ProjectMonitoringSettings

Holds project-wide monitoring configuration.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Update project settings

PATCH /projects/{project_id}/settings

Update project-level settings (fleet, monitoring, logging, registry, connectivity). Only sub-objects present in the request body are updated.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.update

Auditing

Calling this method generates the following auditing event.

  • codeengine.projectsettings.read
  • codeengine.projectsettings.update

Request

Request Body

Project settings patch

Path Parameters

Query Parameters

Response

200 - OK

entity_tag

string

EntityTag is the version of the resource, used for optimistic concurrency control.

monitoring

ProjectMonitoringSettings

Holds project-wide monitoring configuration.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

409 - Conflict

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

412 - Precondition Failed

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get the status details for a project

GET /projects/{project_id}/status_details

Retrieves status details about the given project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Request

Path Parameters

project_id

Required *

string

The ID of the project.

Query Parameters

version

string

The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2021-03-31` and `2026-11-03`.

Response

200 - OK

cbr

CbrStatus

Status of the Context-based-restriction configuration applicable for this project.

domain

string

Status of the domain created for the project.

project

string

Defines whether a project is enabled for management and consumption.

vpe

string

Status of the Virtual Private Endpoint that exposes the project on the IBM Cloud private network.

vpe_not_enabled

boolean

Return true when project is not VPE enabled.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

List subnet pools

GET /projects/{project_id}/subnet_pools

List all subnet pools in a project.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.subnetpool.list

Request

Path Parameters

Query Parameters

limit

integer

Optional maximum number of subnet pools per page.

start

string

An optional token that indicates the beginning of the page of results to be returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query parameter in the `next` object of the operation response.

Response

200 - OK

first

ListFirstMetadata

Describes properties needed to retrieve the first page of a result list.

limit

integer

Maximum number of resources per page.

next

ListNextMetadata

Describes properties needed to retrieve the next page of a result list.

subnet_pools

array

List of all subnet pools.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Create a subnet pool

POST /projects/{project_id}/subnet_pools

Create a subnet pool.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.create

Auditing

Calling this method generates the following auditing event.

  • codeengine.subnetpool.create

Request

Request Body

SubnetPoolPrototype

Subnet pool prototype.

name

Required *

string

The name of the subnet pool. Use a name that is unique within the project.

pool

Required *

array

List of referenced subnets and security groups.

Response

201 - Created

created_at

string

The timestamp when the resource was created.

href

string

When you provision a new subnet pool, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the subnet pool.

pool

array

List of referenced subnets and security groups.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the subnet pool.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Delete a subnet pool

DELETE /projects/{project_id}/subnet_pools/{id}

Delete a subnet pool.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.delete

Auditing

Calling this method generates the following auditing event.

  • codeengine.subnetpool.delete

Request

Response

204 - No Content

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

Get a subnet pool

GET /projects/{project_id}/subnet_pools/{id}

Get a subnet pool.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • codeengine.tenant.entities.read

Auditing

Calling this method generates the following auditing event.

  • codeengine.subnetpool.read

Request

Response

200 - OK

created_at

string

The timestamp when the resource was created.

href

string

When you provision a new subnet pool, a URL is created identifying the location of the instance.

id

string

The identifier of the resource.

name

string

The name of the subnet pool.

pool

array

List of referenced subnets and security groups.

project_id

string

The ID of the project in which the resource is located.

region

string

The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.

resource_type

string

The type of the subnet pool.

400 - Bad Request

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

401 - Unauthorized

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

403 - Forbidden

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

404 - Not Found

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request

500 - Internal Server Error

errors

array

Contains an array with at least one error model.

status_code

integer

Status code used for the response.

trace

string

Lowercase UUID uniquely identifying the request