Create a cluster
import requests
url = "https://{FUSION HOST}/api/searchCluster"
payload = {
"authConfig": {},
"validateCluster": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"connectString": "<string>",
"zkClientTimeout": 123,
"zkConnectTimeout": 123,
"cloud": true,
"bufferFlushInterval": 123,
"bufferSize": 123,
"concurrency": 123,
"authConfig": {
"username": "<string>",
"password": "<string>",
"keyTab": "<string>",
"principal": "<string>"
},
"validateCluster": true
}Create a cluster
Create a new cluster definition.
POST
/
searchCluster
Create a cluster
import requests
url = "https://{FUSION HOST}/api/searchCluster"
payload = {
"authConfig": {},
"validateCluster": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"connectString": "<string>",
"zkClientTimeout": 123,
"zkConnectTimeout": 123,
"cloud": true,
"bufferFlushInterval": 123,
"bufferSize": 123,
"concurrency": 123,
"authConfig": {
"username": "<string>",
"password": "<string>",
"keyTab": "<string>",
"principal": "<string>"
},
"validateCluster": true
}Query Parameters
Before creating the cluster definition, verify that Fusion can connect to this new search cluster correctly.
Body
application/json
JSON-formatted cluster configuration values.
Response
200 - application/json
successful operation
Show child attributes
Show child attributes
Was this page helpful?
⌘I