PatchServiceParameters#

Description#

Request to modify some parameters of a PaaS service.

In the request, you may omit parameters that you do not want to modify.

Attention

If a pre-set configurable parameter is not specified in the request, it will remain the same. If you include in the request any parameter that was not previously set, this new parameter will be applied. If the value of any parameter in the request differs from the current one, the latter will be modified. This method does not reset the parameter value. To do so, use the full update method ModifyServiceParameters.

Attention

Some parameters cannot be modified after the service is created, and any such attempt will return an error. For such parameters, the pre-set values must be specified or values must not be passed at all. To learn which parameters can or cannot be modified, see PaaS parameters section.

Request Parameters#

  • parameters — A list of PaaS service parameters to be modified.

    • Type: Dict

    • Required: Yes

    • Valid values: Depend on service type (see PaaS Parameters)

  • serviceId — The service ID.

    • Type: String

    • Required: Yes

Response Elements#

  • service — Detailed description of a service.

Examples#

Managing PaaS services in NGN Cloud via API requires a customized version of the boto3 library:

import boto3

session = boto3.Session(
   aws_access_key_id="<AWS_ACCESS_KEY_ID>",
   aws_secret_access_key="<AWS_SECRET_ACCESS_KEY>",
   region_name="ngn",
)

paas_client = session.client(
   "paas",
   endpoint_url="https://paas.cloud.ngn.com.tr/",
)

paas_client.patch_service_parameters(
   serviceId="fm-cluster-9EE731A6",
   parameters={
      "log_to": "fm-cluster-C27426C0"
   }
)

Or c2-paas utility from CROC Cloud API Client software suite:

c2-paas PatchServiceParameters serviceId fm-cluster-9EE731A6 parameters.log_to fm-cluster-C27426C0