id ?? null; if (isset($id)) { return "/_logstash/pipeline/$id"; } throw new RuntimeException('Missing parameter for the endpoint logstash.get_pipeline'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'GET'; } }