ModifyLogstashPipeline#

Description#

Request to modify a Logstash data pipeline in ELK service.

Request Parameters#

  • configuration — The configuration of the data pipeline.

    • Type: String

    • Required: Yes

  • pipelineId — The ID of the data pipeline.

    • Type: String

    • Required: Yes

  • serviceId — The ID of the ELK service.

    • Type: String

    • Required: Yes

Response Elements#

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/',
)

configuration = """input {
    http {
        port => 5678
        tags => events
    }
    http {
        port => 5555
        tags => api
    }
}
"""

pipeline = paas_client.modify_logstash_pipeline(
    serviceId='fm-cluster-C27426C0',
    pipelineId="logstash-pipeline-7C507C2C",
    configuration=configuration,
)

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

c2-paas ModifyLogstashPipeline serviceId fm-cluster-C27426C0 pipelineId logstash-pipeline-7C507C2C configuration 'input {}'