For the complete documentation index, see llms.txt. This page is also available as Markdown.

Server for staging API

API calls to execute actions on an environment's preparation server.

Base Path: /environments/{amb_uuid}/servers/template/

Get staging server data

Retrieves the staging server data for the specified environment.

GET /environments/{amb_uuid}/servers/template/

Path parameters

Parameters
Required
Description

amb_uuid

Yes

Environment UUID

Query Parameters (Optional)

Parameters
Type
Description

force_refresh

boolean

Forces the information to refresh with the provider.

Response

Status: 200 OK

{
    "instance_id": "ocid1.instance.oc1...",
    "name": "TEMPLATE_SERVER_NAME",
    "instance_state": "RUNNING",
    "public_ip": "1.2.3.4",
    "private_ip": "4.3.2.1",
    "stop_time": "2021/03/15 19:42:25"
}

Possible Values for instance_state

Value
Description

RUNNING

Server running

STOPPED

Server stopped

STOPPING

Server stopping

PENDING

Server pending

TERMINATED

Server terminated

WARNING

Server with warning

Start Staging Server

Starts the environment's staging server.

Path Parameters

Parameters
Required
Description

amb_uuid

Yes

Environment UUID

Response

Status: 204 No Content

Stop Staging Server

Path Parameters

Parameters
Required
Description

amb_uuid

Yes

Environment UUID

Response

Status: 204 No Content

Publish Default Image

Starts the default publication process for the environment's staging instance.

Path Parameters

Parameters
Required
Description

amb_uuid

Yes

Environment UUID

Response

Status: 202 Accepted

Image Publication Status

Retrieves the image publication status for the specified request.

Path Parameters

Parameters
Required
Description

amb_uuid

Yes

Environment UUID

request_id

Yes

Publication request UUID

Response

Status: 200 OK

Possible Values for image_publication_status

Value
Description

PUBLISHING

Publication in progress

PUBLISHED

Publication completed

ERROR

Publication error

Optimized Publication

Optimized publication offers more control over the staging server image publication process.

Publish image in an optimized way

Path Parameters

Parameters
Required
Description

amb_uuid

Yes

Environment UUID

Request Body

Field
Type
Description

stop_server

boolean

Whether the staging server should be stopped during image creation.

notify_list

array

List of emails to be notified when publication ends.

replace_instances

object

Publication settings.

replace_instances.block_instances

boolean

Whether instances with previous versions should be blocked after publication.

replace_instances.block_users

boolean

Whether to request use block_instances: true)

replace_instances.block_users_message

string

Reconnection warning message (when block_users: true)

replace_instances.block_users_seconds

number

Disconnection time in seconds (when block_users: true)

Accepted Values for block_users_seconds

Value
Equivalent

300

5 minutes

600

10 minutes

900

15 minutes

1200

20 minutes

1500

25 minutes

1800

30 minutes

Publication Modes

Updated instances are started, previous instances are not blocked, and users are not disconnected.

Updated instances are started, previous instances are blocked, but users are not disconnected.

Previous instances are blocked and users are notified to reconnect.

Important: It is not possible to send block_users: true with block_instances: false.

Any mode above accepts stop_server: true to make the staging server unavailable during image creation.

Response

Status: 202 Accepted

Check optimized publication status

Verifies the image publication status for the specified request.

Path Parameters

Parameter
Required
Description

amb_uuid

Sim

Environment UUID

request_id

Sim

Publication request UUID

Response

Status: 200 OK

Possible Values for image_publication_status

Value
Description

PUBLISHING

Publication in progress

PUBLISHED

Publication completed

ERROR

Publication error

Last updated

Was this helpful?