Help Center/ Cloud Service Engine/ API Reference/ CSE API/ Engine Management/ Changing Microservice Engine Specifications
Updated on 2023-12-18 GMT+08:00

Changing Microservice Engine Specifications

Function

This API is used to change microservice engine specifications.

URI

PUT /v2/{project_id}/enginemgr/engines/{engine_id}/resize

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

engine_id

Yes

String

Engine ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

IAM-Token.

X-Enterprise-Project-ID

No

String

Default enterprise project: default. Default ID: 0.

Default: 0

Content-Type

Yes

String

Enter application/json;charset=UTF-8.

Accept

Yes

String

Enter application/json.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

flavor

No

String

New flavor.

inputs

No

Map<String,String>

New configuration, which overwrites the input parameter of the component.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

id

String

Engine ID.

name

String

Engine name.

job_id

Integer

jobID.

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

detail

String

Location details.

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

detail

String

Location details.

Example Requests

PUT https://{endpoint}/v2/{project_id}/enginemgr/engines/{engine_id}/resize

{
  "flavor" : "string",
  "inputs" : {
    "additionalProp1" : "string",
    "additionalProp2" : "string",
    "additionalProp3" : "string"
  }
}

Example Responses

Status code: 200

OK

{
  "id" : "string",
  "name" : "string",
  "job_id" : 0
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

500

Internal Server Error

Error Codes

See CSE Error Codes..