ReloadSecureSettings.php 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. declare(strict_types = 1);
  3. namespace Elasticsearch\Endpoints\Cluster\Nodes;
  4. /**
  5. * Class ReloadSecureSettings
  6. *
  7. * @category Elasticsearch
  8. * @package Elasticsearch\Endpoints\Cluster\Nodes
  9. * @author Zachary Tong <zach@elastic.co>
  10. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
  11. * @link http://elastic.co
  12. */
  13. class ReloadSecureSettings extends AbstractNodesEndpoint
  14. {
  15. /**
  16. * @return string
  17. */
  18. public function getURI()
  19. {
  20. $nodeId = $this->nodeID;
  21. $uri = "/_nodes/reload_secure_settings";
  22. if (isset($nodeId) === true) {
  23. $uri = "/_nodes/$nodeId/reload_secure_settings";
  24. }
  25. return $uri;
  26. }
  27. /**
  28. * @return string[]
  29. */
  30. public function getParamWhitelist()
  31. {
  32. return [];
  33. }
  34. /**
  35. * @return string
  36. */
  37. public function getMethod()
  38. {
  39. return 'POST';
  40. }
  41. }