Remove ESP servers from the associated deployment

patch/deployments/{deploymentName}/edgeServers

Removes ESP servers from the associated deployment. Provides a list of names of existing ESP servers to be removed.

Request Samples

1

Response Samples

1{
2 "createdBy": "user1",
3 "createdOn": 1675175923129,
4 "deleted": false,
5 "description": "Created by user1",
6 "label": "edgeDeployment",
7 "modifiedBy": "user1",
8 "modifiedOn": 1675175923129,
9 "production": false,
10 "projectStatuses": {},
11 "serverCount": 0,
12 "serverStatuses": {},
13 "servers": [],
14 "tags": [],
15 "type": "edge",
16 "uuid": "6fdd9044-f8e7-47b9-9837-cc457d8e2bee"
17}

Path Parameters

NameTypeRequiredDescription
deploymentName
string
true

The name of the deployment.

Query Parameters

NameTypeRequiredDescription
forceRemoval
boolean
false

When this parameter is set to true, all ESP servers are removed, including ESP servers that have running projects. When this parameter is set to false, if there are any ESP servers that have running projects, then no ESP servers are removed.

Default:
false

Header Parameters

NameTypeRequiredDescription
If-Unmodified-Since
string<HTTP-date>
false

If-Unmodified-Since

Request Body

Associates ESP servers with a deployment. A list of ESP server names are used to associate ESP servers with the deployment.

NameTypeRequiredDescription
serverNames
array [string]
false

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid. Additional information is available in the application logs if the environment variable LOGGING_LEVEL_ORG_SPRINGFRAMEWORK is set to DEBUG.

Schema
412Precondition Failed

The If-Unmodified-Since request header did not match the resource's last modified timestamp.

Schema
428Precondition Required

A precondition header is required.

Schema