<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Deployment and Networking APIs Archives - SearchStax Docs</title>
	<atom:link href="https://www.searchstax.com/docs/category/managed-solr/mloud-manager/searchstax-api/deployment-and-networking-apis/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Documentation</description>
	<lastBuildDate>Fri, 10 Jul 2026 15:40:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.searchstax.com/docs/wp-content/uploads/2023/10/cropped-favicon-32x32.png</url>
	<title>Deployment and Networking APIs Archives - SearchStax Docs</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Solr Deployment API</title>
		<link>https://www.searchstax.com/docs/searchstax-cloud-deployment-api/</link>
					<comments>https://www.searchstax.com/docs/searchstax-cloud-deployment-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 09:15:08 +0000</pubDate>
				<category><![CDATA[Deployment and Networking APIs]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://www.searchstax.com/docs/?p=7637</guid>

					<description><![CDATA[<p>Provisioning API &#8211; Deployments Overview The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments. Core and Enterprise Clients Only! The SearchStax&#8230; <a class="more-link" href="https://www.searchstax.com/docs/searchstax-cloud-deployment-api/">Continue reading <span class="screen-reader-text">Solr Deployment API</span></a></p>
<p>The post <a href="https://www.searchstax.com/docs/searchstax-cloud-deployment-api/">Solr Deployment API</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-provisioning-api-deployments">Provisioning API &#8211; Deployments</h1>



<hr class="wp-block-separator has-css-opacity"/>



<h2 class="wp-block-heading">Overview</h2>



<p class="wp-block-paragraph">The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments.</p>



<div class="alert alert-info">
<h3>Core and Enterprise Clients Only!</h3>
<p>The SearchStax API suite is available to our Core and Enterprise
clients only, as noted on our <a href="https://www.searchstax.com/pricing/cloud/">Pricing</a> page. </p>
</div>



<p class="wp-block-paragraph">This page describes how to create and manage deployments using API methods.</p>



<p class="wp-block-paragraph">The API can be accessed through any tool that assembles HTTP requests and dispatches them to a server. Among these would be the Python&nbsp;<a href="https://pypi.org/project/coreapi/" target="_blank" rel="noreferrer noopener">coreapi</a>&nbsp;package, the&nbsp;<a href="https://www.postman.com/" target="_blank" rel="noreferrer noopener">Postman</a>&nbsp;tool, and&nbsp;<a href="https://www.postman.com/" target="_blank" rel="noreferrer noopener">cURL</a>. For Windows, use&nbsp;<a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2&amp;viewFallbackFrom=powershell-7.1" target="_blank" rel="noreferrer noopener">PowerShell 7+</a>.</p>



<div class="alert alert-warning">
<h3>Account Owner, Admin, or Technical Contact</h3>
<p>To run the SearchStax Provisioning API, you must be the account Owner,
an account Admin, or a Technical Contact. See <a href="/docs/searchstax-cloud-user-roles/#userroles">SearchStax User Roles</a>.</p>
</div>



<p class="wp-block-paragraph">Symbols enclosed in carets (&lt; and &gt;) such as&nbsp;<strong>&lt;username&gt;</strong>&nbsp;are metavariables. Substitute your local values when you encounter them in the examples.</p>



<p class="wp-block-paragraph">Contents:</p>



<ul class="wp-block-list">
<li><a href="#deployment">Deployment</a>
<ul class="wp-block-list">
<li><a href="#createdeployment">account &gt; deployment &gt; create</a></li>



<li><a href="#deletedeployment">account &gt; deployment &gt; delete</a></li>



<li><a href="#listdeployment">account &gt; deployment &gt; list</a></li>



<li><a href="#accountdepdetail">account &gt; deployment &gt; read</a></li>



<li><a href="#deploymenthealth">account &gt; deployment &gt; get_deployment_health</a></li>



<li><a href="#collections">account &gt; deployment &gt; collections_health</a></li>



<li><a href="#rollingrestart">account &gt; deployment &gt; rolling_restart</a></li>



<li><a href="#start">account &gt; deployment &gt; server &gt; start_solr</a></li>



<li><a href="#stop">account &gt; deployment &gt; server &gt; stop_solr</a></li>



<li><a href="#status">account &gt; deployment &gt; server &gt; host_status</a></li>



<li><a href="#listnodes">account &gt; deployment &gt; server &gt; list</a></li>



<li><a href="#listplans">account &gt; plan &gt; list</a></li>



<li><a href="#usage">account &gt; usage &gt; list</a></li>



<li><a href="#usage-extended">account &gt; usage-extended &gt; list</a></li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">Related Pages:</p>



<ul class="wp-block-list">
<li><a href="/docs/searchstax-cloud-authentication-api/">Authentication API</a></li>



<li><a href="/docs/searchstax-cloud-users-api/">Users API</a></li>



<li><a href="/docs/searchstax-cloud-basic-auth-api/">Basic Auth API</a></li>



<li><a href="/docs/searchstax-cloud-ipfilter-api/">IP Filtering API</a></li>



<li><a href="/docs/searchstax-cloud-private-vpc-api/">Private VPC API</a></li>



<li><a href="/docs/searchstax-cloud-dns-alias-api/">DNS Alias API</a></li>



<li><a href="/docs/searchstax-cloud-backup-restore-api/">Backup/Restore API</a></li>



<li><a href="/docs/searchstax-cloud-custom-jars-api/">Custom JARs API</a></li>



<li><a href="/docs/searchstax-cloud-tags-api/">Tags API</a></li>



<li><a href="/docs/searchstax-cloud-alerts-api/">Alerts API</a></li>



<li><a href="/docs/searchstax-cloud-webhooks-api/">Webhooks API</a></li>



<li><a href="/docs/searchstax-cloud-zookeeper-api/">Zookeeper API</a></li>
</ul>



<h2 class="wp-block-heading" id="deployment">Deployment</h2>



<h3 class="wp-block-heading" id="createdeployment">account &gt; deployment &gt; create</h3>



<p class="wp-block-paragraph">This method lets you create a new deployment. Note that a successful response indicates only that deployment creation was authorized and has begun. It can take up to an hour to bring a new deployment on line depending on the cloud provider.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">POST</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
    "name": "SolrFromAPI",
    "application": "Solr",
    "application_version": "7.3.1",
    "termination_lock": false,
    "plan_type": "DedicatedDeployment",
    "plan": "NDN2-AWS-S",
    "region_id": "ap-northeast-1",
    "cloud_provider_id": "aws",
    "num_additional_app_nodes": 0
    "private_vpc": 2
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;SolrFromAPI&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;application&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Solr&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;application_version&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;7.3.1&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;termination_lock&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;plan_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;DedicatedDeployment&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;plan&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;NDN2-AWS-S&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;region_id&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ap-northeast-1&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;cloud_provider_id&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;aws&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;num_additional_app_nodes&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;private_vpc&quot;</span><span style="color: #B31D28; font-style: italic">:</span><span style="color: #24292E"> </span><span style="color: #005CC5">2</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<figure class="wp-block-table table table-bordered table-striped"><table><thead><tr><th><strong>Parameter</strong></th><th><strong>Description</strong></th><th><strong>Example</strong></th></tr></thead><tbody><tr><td><strong>name</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>The name of the new deployment</td><td>&#8220;SolrFromAPI&#8221;</td></tr><tr><td><strong>application</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>The application for which this deployment is being created.</td><td>&#8220;Solr&#8221;</td></tr><tr><td><strong>application_version</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>The version of application being deployed. Detailed information regarding application versions is available from the <a href="#listplans">List Plans</a> method.</td><td>&#8220;7.3.1&#8221;</td></tr><tr><td><strong>termination_lock</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>boolean</td><td>Whether or not the deployment should be shielded from API deletion.</td><td>false</td></tr><tr><td><strong>plan_type</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>Available plan type could be SharedDeployment or DedicatedDeployment. Currently SearchStax only supports DedicatedDeployment (the default).</td><td>&#8220;DedicatedDeployment&#8221;</td></tr><tr><td><strong>plan</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>The plan of the selected plan type. Detailed information regarding plans available can be fetched using <a href="#listplans">List Plans</a> method.</td><td>&#8220;NDN2-AWS-S&#8221;</td></tr><tr><td><strong>region_id</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>The region ID of the region where deployment has to be created. Detailed information regarding regions available can be fetched using <a href="#listplans">List Plans</a> method.</td><td>&#8220;ap-northeast-1&#8221;</td></tr><tr><td><strong>cloud_provider_id</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>The cloud provider to be used to create this deployment. Detailed information regarding cloud providers available can be fetched using <a href="#listplans">List Plans</a> method.</td><td>&#8220;aws&#8221; &#8220;azure&#8221; &#8220;gcp&#8221;</td></tr><tr><td><strong>num_additional_app_nodes</strong><br><span style="color:#32cd32" class="has-inline-color">optional</span><br>number</td><td>The number of additional nodes to be added to the deployment beyond the default number of nodes.<br><br>If the deployment will grow to a large number of nodes, create it with 10 &#8220;additional&#8221; nodes. This allocates a large IP subnet that can scale up gracefully. You may then use the SearchStax Dashboard to manage the actual number of nodes up or down as needed.</td><td>&#8220;10&#8221;</td></tr><tr><td><strong>private_vpc</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#32cd32" class="has-inline-color">optional</mark><br>number</td><td>The ID of the Private VPC where the new deployment will appear. Private VPC IDs are available from the <a href="/docs/searchstax-cloud-private-vpc-api/#VPClist">account &gt; privatevpc &gt; list</a> method.</td><td>&#8220;2&#8221;</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>curl --request POST "https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/" \
  --header "Content-Type: application/json" \
  --header "Authorization: Token &lt;token>" \
  --data "{
    \"name\": \"SolrFromAPI\",
    \"application\": \"Solr\",
    \"application_version\": \"7.3.1\",
    \"termination_lock\": false,
    \"plan_type\": \"DedicatedDeployment\",
    \"plan\": \"NDN2-AWS-S\",
    \"region_id\": \"ap-northeast-1\",
    \"cloud_provider_id\": \"aws\",
    \"num_additional_app_nodes\": \"0\"
    \"private_vpc\": \"2\"
    }"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">POST</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Content-Type: application/json&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--data</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;{</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">name</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">SolrFromAPI</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">application</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">Solr</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">application_version</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">7.3.1</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">termination_lock</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: false,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">plan_type</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">DedicatedDeployment</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">plan</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">NDN2-AWS-S</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">region_id</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">ap-northeast-1</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">cloud_provider_id</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">aws</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">num_additional_app_nodes</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">0</span><span style="color: #005CC5">\&quot;</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">private_vpc</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">2</span><span style="color: #005CC5">\&quot;</span></span>
<span class="line"><span style="color: #032F62">    }&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentcreate.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>$ACCOUNT = "AccountName"

$body = @{
    name='SolrFromAPI'
    application='Solr'
    application_version='7.5.0'
    termination_lock='false'
    plan_type='DedicatedDeployment'
    plan='NDN2-AWS-S'
    region_id='us-west-1'
    cloud_provider_id='aws'
    num_additional_app_nodes='0'
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -Body $body -ContentType 'application/json' -Headers $headers `
         -uri "https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/" 
$RESULT = $RESULT | ConvertTo-Json</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$body </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #D73A49">@</span><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    name</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;SolrFromAPI&#39;</span></span>
<span class="line"><span style="color: #24292E">    application</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;Solr&#39;</span></span>
<span class="line"><span style="color: #24292E">    application_version</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;7.5.0&#39;</span></span>
<span class="line"><span style="color: #24292E">    termination_lock</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;false&#39;</span></span>
<span class="line"><span style="color: #24292E">    plan_type</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;DedicatedDeployment&#39;</span></span>
<span class="line"><span style="color: #24292E">    plan</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;NDN2-AWS-S&#39;</span></span>
<span class="line"><span style="color: #24292E">    region_id</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;us-west-1&#39;</span></span>
<span class="line"><span style="color: #24292E">    cloud_provider_id</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;aws&#39;</span></span>
<span class="line"><span style="color: #24292E">    num_additional_app_nodes</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;0&#39;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$body </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $body </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Post </span><span style="color: #D73A49">-</span><span style="color: #24292E">Body $body </span><span style="color: #D73A49">-</span><span style="color: #24292E">ContentType </span><span style="color: #032F62">&#39;application/json&#39;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing &#8230;</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
  "name": "SolrFromAPI",
  "uid": "ss123456",
  "application": "Solr",
  "application_version": "7.5.0",
  "tier": "Development",
  "http_endpoint": null,
  "status": "Pending",
  "provision_state": "Pending",
  "termination_lock": false,
  "plan_type": "DedicatedDeployment",
  "plan": "NDN2-AWS-S",
  "is_master_slave": false,
  "vpc_type": "Public",
  "vpc_name": "",
  "region_id": "us-west-1",
  "cloud_provider": "Amazon Web Services"
  "cloud_provider_id": "aws",
  "num_additional_app_nodes": 0,
  "deployment_type": "Dedicated Node",
  "num_nodes_default": 1,
  "num_zookeeper_nodes_default": 0,
  "num_additional_zookeeper_nodes": 0,
  "servers": [],
  "zookeeper_ensemble": null,
  "tag": [],
  "specifications": {
    "jvm_heap_memory": "536870912",
    "disk_space": "8589934592",
    "physical_memory": "1073741824"
  },
  "backups_enabled": false,
  "dr_enabled": false,
  "sla_active": false,
  "state_changed": null,
  "term_end": null,
  "date_created": "2023-01-25",
  "application_nodes_count": 1,
  "selected_node_count": 0,
  "savings": {
    "one_year_saving_perc": "52.38",
    "three_year_saving_perc": "59.52"
  },
  "dr_plan_type": null,
  "subscription": "monthly",
  "security_pack": false,
  "desired_tier": "development",
  "backup": null,
  "onboarding": false,
  "selected_plan_memory": 0.0,
  "selected_plan_storage": 0.0,
  "dr": null,
  "payment_method": null,
  "purchase_order": null
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;SolrFromAPI&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;uid&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;application&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Solr&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;application_version&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;7.5.0&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;tier&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Development&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;http_endpoint&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Pending&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;provision_state&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Pending&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;termination_lock&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;plan_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;DedicatedDeployment&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;plan&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;NDN2-AWS-S&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;is_master_slave&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;vpc_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Public&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;vpc_name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;region_id&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;us-west-1&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;cloud_provider&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Amazon Web Services&quot;</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #032F62">&quot;cloud_provider_id&quot;</span><span style="color: #B31D28; font-style: italic">:</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;aws&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;num_additional_app_nodes&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;deployment_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Dedicated Node&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;num_nodes_default&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">1</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;num_zookeeper_nodes_default&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;num_additional_zookeeper_nodes&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;servers&quot;</span><span style="color: #24292E">: [],</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;zookeeper_ensemble&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;tag&quot;</span><span style="color: #24292E">: [],</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;specifications&quot;</span><span style="color: #24292E">: {</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;jvm_heap_memory&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;536870912&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;disk_space&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;8589934592&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;physical_memory&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;1073741824&quot;</span></span>
<span class="line"><span style="color: #24292E">  },</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;backups_enabled&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;dr_enabled&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;sla_active&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;state_changed&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;term_end&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;date_created&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;2023-01-25&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;application_nodes_count&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">1</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;selected_node_count&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;savings&quot;</span><span style="color: #24292E">: {</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;one_year_saving_perc&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;52.38&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;three_year_saving_perc&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;59.52&quot;</span></span>
<span class="line"><span style="color: #24292E">  },</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;dr_plan_type&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;subscription&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;monthly&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;security_pack&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;desired_tier&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;development&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;backup&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;onboarding&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;selected_plan_memory&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0.0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;selected_plan_storage&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0.0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;dr&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;payment_method&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;purchase_order&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Note that the&nbsp;<strong>servers</strong>&nbsp;and the&nbsp;<strong>zookeeper_ensemble</strong>&nbsp;values are not initially available because those entities take time to create. Wait until the deployment is up and running, and then use the&nbsp;<a href="/docs/searchstax-cloud-deployment-api/#listdeployment/">account &gt; deployment &gt; list</a>&nbsp;method (below).</p>



<h3 class="wp-block-heading" id="deletedeployment">account &gt; deployment &gt; delete</h3>



<p class="wp-block-paragraph">This method deletes a deployment from the tenant account. Note that a successful response means only that the deletion process was authorized and has begun. It can take up to an hour to delete a deployment depending on the cloud provider.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>DELETE https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">DELETE</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and&nbsp;<strong>&lt;uid&gt;</strong>&nbsp;is the ID of the deployment.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
    "retain_backups": false
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;retain_backups&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<figure class="wp-block-table table table-bordered table-striped"><table><thead><tr><th><strong>Parameter</strong></th><th><strong>Description</strong></th><th><strong>Example</strong></th></tr></thead><tbody><tr><td><strong>retain_backups</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color"><span style="color:#32cd32" class="has-inline-color">optional</span></mark> <br>boolean<br></td><td>If true, will not delete the scheduled backups. Default is false.</td><td>false</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>curl --request DELETE "https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/" \
  --header "Authorization: Token &lt;token>" \
  --data "{
    \"retain_backups\": false
    }"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">DELETE</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--data</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;{</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">retain_backups</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: false</span></span>
<span class="line"><span style="color: #032F62">    }&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentdelete.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>$ACCOUNT = "AccountName"

$body = @{
    retain_backups='false'
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Delete -Body $body -ContentType 'application/json' -Headers $headers `
         -uri "https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/" 
$RESULT = $RESULT | ConvertTo-Json</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$body </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #D73A49">@</span><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    retain_backups</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;false&#39;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$body </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $body </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Delete </span><span style="color: #D73A49">-</span><span style="color: #24292E">Body $body </span><span style="color: #D73A49">-</span><span style="color: #24292E">ContentType </span><span style="color: #032F62">&#39;application/json&#39;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">A success response will identify the deleted deployment.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
  "success": "true",
  "message": "Successfully deleted ss123456",
  "retain_backups": "false"
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;true&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;message&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Successfully deleted ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;retain_backups&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;false&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Invalid UID will throw a&nbsp;<strong>Not Found</strong>&nbsp;error.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
  "detail": "Not found."
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;detail&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Not found.&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<div class="alert alert-danger">
<h3>Subject to Termination Lock</h3>
<p>The <strong>Termination Lock</strong> button on the Deployment Details page in the SearchStax Dashboard protects the deployment from API deletion until the lock is released.</p>
</div>



<p class="wp-block-paragraph">If the Termination Lock is set, you&#8217;ll see a message like this one:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
   "detail":"This deployment has Termination Lock enabled. Please first remove the termination lock, and then retry deleting the deployment."
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">   </span><span style="color: #005CC5">&quot;detail&quot;</span><span style="color: #24292E">:</span><span style="color: #032F62">&quot;This deployment has Termination Lock enabled. Please first remove the termination lock, and then retry deleting the deployment.&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<h3 class="wp-block-heading" id="listdeployment">account &gt; deployment &gt; list</h3>



<p class="wp-block-paragraph">This method lists the deployments of an account along with their deployment details.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/?page=&lt;n>&amp;page_size=&lt;m>
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/?page=&lt;n&gt;&amp;page_size=&lt;m&gt;</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account;&nbsp;<strong>page</strong>&nbsp;(optional) is the page number of a multi-page list; and&nbsp;<strong>page_size</strong>&nbsp;(optional) is the number of deployments to include on a page.</p>



<p class="wp-block-paragraph">This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221;</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentlist.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$DEPLOYMENTS = Invoke-RestMethod -Method Get -ContentType &#8216;application/json&#8217; -Headers $headers `
              -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/&#8221; 
$DEPLOYMENTS = $DEPLOYMENTS | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$DEPLOYMENTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">ContentType </span><span style="color: #032F62">&#39;application/json&#39;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">              </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$DEPLOYMENTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $DEPLOYMENTS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">A successful response contains a JSON object containing a list of deployment descriptions. Note that&nbsp;<strong>next</strong>&nbsp;and&nbsp;<strong>previous</strong>&nbsp;are literal URLs that fetch the next and previous pages of a multi-page list of deployments.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;count&#8221;: 3,
  &#8220;next&#8221;: null,
  &#8220;previous&#8221;: null,
  &#8220;results&#8221;: [
    {
      &#8220;name&#8221;: &#8220;ListByAPI&#8221;,
      &#8220;uid&#8221;: &#8220;ss123456&#8221;,
      &#8220;application&#8221;: &#8220;Solr&#8221;,
      &#8220;application_version&#8221;: &#8220;8.11.2&#8221;,
      &#8220;tier&#8221;: &#8220;Development&#8221;,
      &#8220;http_endpoint&#8221;: &#8220;https://ss123456-7hp6b4y0-us-west-1-aws.searchstax.com/solr/&#8221;,
      &#8220;status&#8221;: &#8220;Configuring Deployment&#8221;,
      &#8220;provision_state&#8221;: &#8220;Pending&#8221;,
      &#8220;termination_lock&#8221;: false,
      &#8220;plan_type&#8221;: &#8220;DedicatedDeployment&#8221;,
      &#8220;plan&#8221;: &#8220;NDC128-AWS-G&#8221;,
      &#8220;is_master_slave&#8221;: false,
      &#8220;vpc_type&#8221;: &#8220;Public&#8221;,
      &#8220;vpc_name&#8221;: &#8220;&#8221;,
      &#8220;region_id&#8221;: &#8220;us-west-1&#8221;,
      &#8220;cloud_provider&#8221;: &#8220;Amazon Web Services&#8221;,
      &#8220;cloud_provider_id&#8221;: &#8220;aws&#8221;,
      &#8220;num_additional_app_nodes&#8221;: 0,
      &#8220;deployment_type&#8221;: &#8220;Dedicated Cluster&#8221;,
      &#8220;num_nodes_default&#8221;: 2,
      &#8220;num_zookeeper_nodes_default&#8221;: 3,
      &#8220;num_additional_zookeeper_nodes&#8221;: 0,
      &#8220;servers&#8221;: &#8220;ss123456-5 ss123456-4 ss123456-3 ss123456-2 ss123456-1&#8221;,
      &#8220;zookeeper_ensemble&#8221;: &#8220;ss123456-7hp6b4y0-1-us-west-1-aws.searchstax.com:2181,ss123456-7hp6b4y0-2-us-west-1-aws.
rchstax.com:2181,ss123456-7hp6b4y0-3-us-west-1-aws.searchstax.com:2181&#8221;,
      &#8220;tag&#8221;: &#8220;&#8221;,
      &#8220;specifications&#8221;: &#8220;@{disk_space=; physical_memory=; jvm_heap_memory=}&#8221;,
      &#8220;backups_enabled&#8221;: false,
      &#8220;dr_enabled&#8221;: false,
      &#8220;sla_active&#8221;: false,
      &#8220;state_changed&#8221;: null,
      &#8220;term_end&#8221;: null,
      &#8220;date_created&#8221;: &#8220;2023-01-25&#8221;,
      &#8220;application_nodes_count&#8221;: 2,
      &#8220;selected_node_count&#8221;: 0,
      &#8220;savings&#8221;: &#8220;@{one_year_saving_perc=0.00; three_year_saving_perc=15.00}&#8221;,
      &#8220;dr_plan_type&#8221;: null,
      &#8220;subscription&#8221;: &#8220;yearly&#8221;,
      &#8220;security_pack&#8221;: false,
      &#8220;desired_tier&#8221;: &#8220;development&#8221;,
      &#8220;backup&#8221;: null,
      &#8220;onboarding&#8221;: false,
      &#8220;selected_plan_memory&#8221;: 0.0,
      &#8220;selected_plan_storage&#8221;: 0.0,
      &#8220;dr&#8221;: null,
      &#8220;payment_method&#8221;: null,
      &#8220;purchase_order&#8221;: null
    }, &lt;plus more deployments, if any&#8230;></textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;count&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">3</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;next&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;previous&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;results&quot;</span><span style="color: #24292E">: [</span></span>
<span class="line"><span style="color: #24292E">    {</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ListByAPI&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;uid&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;application&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Solr&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;application_version&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;8.11.2&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;tier&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Development&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;http_endpoint&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;https://ss123456-7hp6b4y0-us-west-1-aws.searchstax.com/solr/&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Configuring Deployment&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;provision_state&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Pending&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;termination_lock&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;plan_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;DedicatedDeployment&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;plan&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;NDC128-AWS-G&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;is_master_slave&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;vpc_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Public&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;vpc_name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;region_id&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;us-west-1&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;cloud_provider&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Amazon Web Services&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;cloud_provider_id&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;aws&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;num_additional_app_nodes&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;deployment_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Dedicated Cluster&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;num_nodes_default&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">2</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;num_zookeeper_nodes_default&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">3</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;num_additional_zookeeper_nodes&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;servers&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-5 ss123456-4 ss123456-3 ss123456-2 ss123456-1&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;zookeeper_ensemble&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-7hp6b4y0-1-us-west-1-aws.searchstax.com:2181,ss123456-7hp6b4y0-2-us-west-1-aws.</span></span>
<span class="line"><span style="color: #032F62">rchstax.com:2181,ss123456-7hp6b4y0-3-us-west-1-aws.searchstax.com:2181&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;tag&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;specifications&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;@{disk_space=; physical_memory=; jvm_heap_memory=}&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;backups_enabled&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;dr_enabled&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;sla_active&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;state_changed&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;term_end&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;date_created&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;2023-01-25&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;application_nodes_count&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">2</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;selected_node_count&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;savings&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;@{one_year_saving_perc=0.00; three_year_saving_perc=15.00}&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;dr_plan_type&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;subscription&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;yearly&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;security_pack&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;desired_tier&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;development&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;backup&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;onboarding&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;selected_plan_memory&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0.0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;selected_plan_storage&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0.0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;dr&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;payment_method&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;purchase_order&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span></span>
<span class="line"><span style="color: #24292E">    }, </span><span style="color: #B31D28; font-style: italic">&lt;plus</span><span style="color: #24292E"> </span><span style="color: #B31D28; font-style: italic">more</span><span style="color: #24292E"> </span><span style="color: #B31D28; font-style: italic">deployments</span><span style="color: #24292E">, </span><span style="color: #B31D28; font-style: italic">if</span><span style="color: #24292E"> </span><span style="color: #B31D28; font-style: italic">any...&gt;</span></span></code></pre></div>



<h3 class="wp-block-heading" id="accountdepdetail">account &gt; deployment &gt; read</h3>



<p class="wp-block-paragraph">This method lists the properties of a specific deployment.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET /api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and&nbsp;<strong>&lt;uid&gt;</strong>&nbsp;is the ID of the deployment.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; </textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentread.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;
$DETAILS = Invoke-RestMethod -Method Get -ContentType &#8216;application/json&#8217; -Headers $headers `
          -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/&#8221; 
$DETAILS1 = $DETAILS | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$DETAILS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">ContentType </span><span style="color: #032F62">&#39;application/json&#39;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">          </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$DETAILS1 </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $DETAILS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing the detailed properties of a deployment:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
  "name": "ReadByAPI",
  "uid": "ss123456",
  "application": "Solr",
  "application_version": "7.7.2",
  "tier": "Development",
  "http_endpoint": "https://ss123456-hjmll0ug-us-west-1-aws.searchstax.com/solr/",
  "status": "Running",
  "provision_state": "Done",
  "termination_lock": true,
  "plan_type": "DedicatedDeployment",
  "plan": "NDN2-AWS-S",
  "is_master_slave": false,
  "vpc_type": "Public",
  "vpc_name": "",
  "region_id": "us-west-1",
  "cloud_provider": "Amazon Web Services",
  "cloud_provider_id": "aws",
  "num_additional_app_nodes": 0,
  "deployment_type": "Dedicated Node",
  "num_nodes_default": 1,
  "num_zookeeper_nodes_default": 0,
  "num_additional_zookeeper_nodes": 0,
  "servers": &#91;
    "ss123456-1"
  &#93;,
  "zookeeper_ensemble": "ss123456-hjmll0ug-1-us-west-1-aws.searchstax.com:2181",
  "tag": &#91;
    "DoNotDelete"
  &#93;,
  "specifications": {
    "jvm_heap_memory": "536870912",
    "disk_space": "8589934592",
    "physical_memory": "1073741824"
  },
  "backups_enabled": false,
  "dr_enabled": false,
  "sla_active": false,
  "state_changed": "1571931445",
  "term_end": null,
  "date_created": "2019-10-24",
  "application_nodes_count": 1,
  "selected_node_count": 0,
  "savings": {
    "one_year_saving_perc": "52.50",
    "three_year_saving_perc": "64.38"
  },
  "dr_plan_type": null,
  "subscription": "monthly",
  "security_pack": false,
  "desired_tier": null,
  "backup": null,
  "onboarding": false,
  "selected_plan_memory": 0.0,
  "selected_plan_storage": 0.0,
  "dr": null,
  "payment_method": null,
  "purchase_order": null
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ReadByAPI&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;uid&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;application&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Solr&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;application_version&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;7.7.2&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;tier&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Development&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;http_endpoint&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;https://ss123456-hjmll0ug-us-west-1-aws.searchstax.com/solr/&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Running&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;provision_state&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Done&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;termination_lock&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;plan_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;DedicatedDeployment&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;plan&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;NDN2-AWS-S&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;is_master_slave&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;vpc_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Public&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;vpc_name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;region_id&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;us-west-1&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;cloud_provider&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Amazon Web Services&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;cloud_provider_id&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;aws&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;num_additional_app_nodes&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;deployment_type&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Dedicated Node&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;num_nodes_default&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">1</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;num_zookeeper_nodes_default&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;num_additional_zookeeper_nodes&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;servers&quot;</span><span style="color: #24292E">: &#91;</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;ss123456-1&quot;</span></span>
<span class="line"><span style="color: #24292E">  &#93;,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;zookeeper_ensemble&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-hjmll0ug-1-us-west-1-aws.searchstax.com:2181&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;tag&quot;</span><span style="color: #24292E">: &#91;</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;DoNotDelete&quot;</span></span>
<span class="line"><span style="color: #24292E">  &#93;,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;specifications&quot;</span><span style="color: #24292E">: {</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;jvm_heap_memory&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;536870912&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;disk_space&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;8589934592&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;physical_memory&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;1073741824&quot;</span></span>
<span class="line"><span style="color: #24292E">  },</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;backups_enabled&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;dr_enabled&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;sla_active&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;state_changed&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;1571931445&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;term_end&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;date_created&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;2019-10-24&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;application_nodes_count&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">1</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;selected_node_count&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;savings&quot;</span><span style="color: #24292E">: {</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;one_year_saving_perc&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;52.50&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;three_year_saving_perc&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;64.38&quot;</span></span>
<span class="line"><span style="color: #24292E">  },</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;dr_plan_type&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;subscription&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;monthly&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;security_pack&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;desired_tier&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;backup&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;onboarding&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;selected_plan_memory&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0.0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;selected_plan_storage&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">0.0</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;dr&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;payment_method&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;purchase_order&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<div class="alert alert-info">
<h3>Converting specifications to GB</h3>
<p>In a PowerShell script, we can convert the reported specification values to GB using the following lines. Do not convert the output to JSON before making these calculations:</p>
<pre><code>
$GB = [math]::pow( 1024, 3 )  # To convert raw memory to rounded GB like the UI uses.

$DISK = $DETAILS.specifications.disk_space / $GB
$JVM = $DETAILS.specifications.jvm_heap_memory / $GB
$MEMORY = $DETAILS.specifications.physical_memory / $GB


Write-Host "Disk space is $DISK GB"
Write-Host "JVM heap memory is $JVM GB"
Write-Host "Physical memory is $MEMORY GB"
</code></pre>
</div>



<h3 class="wp-block-heading" id="deploymenthealth">account &gt; deployment &gt; get_deployment_health</h3>



<p class="wp-block-paragraph">This method gets the deployment&#8217;s health using its UID.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/deployment-health/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/deployment-health/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and&nbsp;<strong>&lt;uid&gt;</strong>&nbsp;is the ID of the deployment.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/deployment-health/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; 
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/deployment-health/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentgetdeploymenthealth.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;
$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/deployment-health/&#8221; 
$RESULT = $RESULT | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/deployment-health/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">Responses are JSON documents like those shown below. These examples are from a cluster:</p>



<ul class="wp-block-list">
<li>All nodes are running.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{ "status": "OK", "level": "success" }
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{ </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;OK&quot;</span><span style="color: #24292E">, </span><span style="color: #005CC5">&quot;level&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;success&quot;</span><span style="color: #24292E"> }</span></span>
<span class="line"></span></code></pre></div>



<ul class="wp-block-list">
<li>One or more servers is down, but not all of them.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{ &#8220;status&#8221;: &#8220;Warn&#8221;, &#8220;level&#8221;: &#8220;warning&#8221; }
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{ </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Warn&quot;</span><span style="color: #24292E">, </span><span style="color: #005CC5">&quot;level&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;warning&quot;</span><span style="color: #24292E"> }</span></span>
<span class="line"></span></code></pre></div>



<ul class="wp-block-list">
<li>All servers are down.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{ &#8220;status&#8221;: &#8220;Error&#8221;, &#8220;level&#8221;: &#8220;danger&#8221; }
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{ </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Error&quot;</span><span style="color: #24292E">, </span><span style="color: #005CC5">&quot;level&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;danger&quot;</span><span style="color: #24292E"> }</span></span>
<span class="line"></span></code></pre></div>



<ul class="wp-block-list">
<li>Invalid UID throws a&nbsp;<strong>Not Found</strong>&nbsp;error.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{ &#8220;detail&#8221;: &#8220;Not found.&#8221; }
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{ </span><span style="color: #005CC5">&quot;detail&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Not found.&quot;</span><span style="color: #24292E"> }</span></span>
<span class="line"></span>
<span class="line"></span></code></pre></div>



<h3 class="wp-block-heading" id="collections">account &gt; deployment &gt; collections_health</h3>



<p class="wp-block-paragraph">This method gets the health of a deployment&#8217;s collections.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/collection-health/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/collection-health/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and&nbsp;<strong>&lt;uid&gt;</strong>&nbsp;is the ID of the deployment.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/collections-health/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; </textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/collections-health/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentcollectionshealth.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;
$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/collections-health/&#8221; 
$RESULT = $RESULT | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/collections-health/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">Responses are JSON documents like those shown below.</p>



<ul class="wp-block-list">
<li>All collections are running.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{ &#8220;success&#8221;: true, &#8220;healthy&#8221;: true}
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{ </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">, </span><span style="color: #005CC5">&quot;healthy&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">}</span></span>
<span class="line"></span></code></pre></div>



<ul class="wp-block-list">
<li>One or more collections are degraded.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{ &#8220;success&#8221;: true, &#8220;healthy&#8221;: false }
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{ </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">, </span><span style="color: #005CC5">&quot;healthy&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E"> }</span></span>
<span class="line"></span></code></pre></div>



<ul class="wp-block-list">
<li>API endpoint failure.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{ &#8220;success&#8221;: false, &#8220;error&#8221;: &#8220;some message&#8221; }
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{ </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">, </span><span style="color: #005CC5">&quot;error&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;some message&quot;</span><span style="color: #24292E"> }</span></span>
<span class="line"></span></code></pre></div>



<h3 class="wp-block-heading" id="rollingrestart">account &gt; deployment &gt; rolling_restart</h3>



<p class="wp-block-paragraph">This method lets you restart the Solr or Zookeeper nodes of a cluster in a rolling manner. </p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>PUT https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/rolling-restart/
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">PUT</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/rolling-restart/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account and <strong>&lt;uid&gt;</strong> is the ID number of the deployment.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
    "solr": true,
    "zookeeper": false
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;solr&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;zookeeper&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<figure class="wp-block-table table table-bordered table-striped"><table><thead><tr><th><strong>Parameter</strong></th><th><strong>Description</strong></th><th><strong>Example</strong></th></tr></thead><tbody><tr><td><strong>solr</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark> boolean<br></td><td>If true, will restart the Solr nodes. Default is true. </td><td>true</td></tr><tr><td><strong>zookeeper</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark> boolean<br></td><td>If true, will restart the Zookeeper nodes. Default is false.</td><td>false</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>curl --request PUT "https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/rolling-restart/" \
  --header "Content-Type: application/json" \
  --header "Authorization: Token &lt;token>" \
  --data "{
    \"solr\": true,
    \"zookeeper\": false
    }"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">PUT</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/rolling-restart/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Content-Type: application/json&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--data</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;{</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">solr</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: true,</span></span>
<span class="line"><span style="color: #032F62">    </span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">zookeeper</span><span style="color: #005CC5">\&quot;</span><span style="color: #032F62">: false</span></span>
<span class="line"><span style="color: #032F62">    }&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentrollingrestart.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>$ACCOUNT = "AccountName"
$uid = "ss123456"

$body = @{
    solr='true'
    zookeeper='false'
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Put -Body $body -ContentType 'application/json' -Headers $headers `
         -uri "https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/rolling-restart/" 
$RESULT = $RESULT | ConvertTo-Json</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$body </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #D73A49">@</span><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    solr</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;true&#39;</span></span>
<span class="line"><span style="color: #24292E">    zookeeper</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;false&#39;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$body </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $body </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Put </span><span style="color: #D73A49">-</span><span style="color: #24292E">Body $body </span><span style="color: #D73A49">-</span><span style="color: #24292E">ContentType </span><span style="color: #032F62">&#39;application/json&#39;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/rolling-restart/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing &#8230;</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;detail&#8221;: &#8220;Rolling restart initiated&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;detail&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Rolling restart initiated&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<p class="wp-block-paragraph">If the message says, &#8220;The specified deployment is not ready for a rolling restart,&#8221; it means that a rolling restart is already underway, or that one of the nodes is down. </p>



<h3 class="wp-block-heading" id="start">account &gt; deployment &gt; server &gt; start_solr</h3>



<p class="wp-block-paragraph">This method starts an individual Solr node using its UID.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/server/&lt;node>/start-solr/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">POST</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/start-solr/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account,&nbsp;<strong>&lt;uid&gt;</strong>&nbsp;is the ID of the deployment, and&nbsp;<strong>&lt;node&gt;</strong>&nbsp;is the ID of the specific node.</p>



<p class="wp-block-paragraph">This method uses either&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication or&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request POST &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/server/&lt;node>/start-solr/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; </textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">POST</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/start-solr/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentserverstart.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;
$NODE = &#8220;ss123456-4&#8221;
$RESULT = Invoke-RestMethod -Method Post -Headers $headers `
         -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/server/$NODE/start-solr/&#8221; 
$RESULT = $RESULT | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"><span style="color: #24292E">$NODE </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456-4&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Post </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/server/</span><span style="color: #24292E">$NODE</span><span style="color: #032F62">/start-solr/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document similar to this:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;success&#8221;: true
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<h3 class="wp-block-heading" id="stop">account &gt; deployment &gt; server &gt; stop_solr</h3>



<p class="wp-block-paragraph">This method stops an individual Solr node using its UID.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/server/&lt;node>/stop-solr/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">POST</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/stop-solr/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account,&nbsp;<strong>&lt;uid&gt;</strong>&nbsp;is the ID of the deployment, and&nbsp;<strong>&lt;node&gt;</strong>&nbsp;is the ID of the specific node.</p>



<p class="wp-block-paragraph">This method uses either&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication or&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request POST &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/server/&lt;node>/stop-solr/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; </textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">POST</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/stop-solr/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentserverstop.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;
$NODE = &#8220;ss123456-4&#8221;
$RESULT = Invoke-RestMethod -Method Post -Headers $headers `
         -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/server/$NODE/stop-solr/&#8221; 
$RESULT = $RESULT | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"><span style="color: #24292E">$NODE </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456-4&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Post </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/server/</span><span style="color: #24292E">$NODE</span><span style="color: #032F62">/stop-solr/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document similar to this:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;success&#8221;: true
}
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span></code></pre></div>



<h3 class="wp-block-heading" id="status">account &gt; deployment &gt; server &gt; host_status</h3>



<p class="wp-block-paragraph">This method returns the status of an individual Solr node using its UID.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/server/&lt;node>/host-status/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/host-status/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account,&nbsp;<strong>&lt;uid&gt;</strong>&nbsp;is the ID of the deployment, and&nbsp;<strong>&lt;node&gt;</strong>&nbsp;is the number of the specific node.</p>



<p class="wp-block-paragraph">This method uses either&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication or&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/server/&lt;node>/host-status/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token></textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/host-status/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;</span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentserverstatus.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;
$NODE = &#8220;4&#8221;
$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/server/$NODE/host-status/&#8221; 
$RESULT = $RESULT | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"><span style="color: #24292E">$NODE </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;4&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/server/</span><span style="color: #24292E">$NODE</span><span style="color: #032F62">/host-status/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document similar to this:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;level&#8221;: &#8220;success&#8221;,
  &#8220;status&#8221;: &#8220;OK&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;level&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;success&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;OK&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<h3 class="wp-block-heading" id="listnodes">account &gt; deployment &gt; server &gt; list</h3>



<p class="wp-block-paragraph">This method returns a list of nodes making up a Solr deployment.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>GET https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/server/
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and&nbsp;<strong>&lt;uid&gt;</strong>&nbsp;is the ID of the deployment.</p>



<p class="wp-block-paragraph">This method uses either&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication or&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>curl --request GET "https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/server/" \
  --header "Authorization: Token &lt;token>" </textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentserverlist.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>$ACCOUNT = "AccountName"
$uid = "ss123456"

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri "https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/server/" 
$RESULT = $RESULT | ConvertTo-Json</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/server/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document similar to this:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>[
  {
    "sn": 1,
    "node": "ss123456-1",
    "private_address": "10.0.1.78",
    "dns_address": "ss123456-jkzg2pr0-1-ca-central-1-aws.searchstax.com",
    "status": "Running",
    "status_details":  "&#91;2026-03-25 17:12:53&#93; restart ended",
    "solr": false,
    "zookeeper": true,
    "silk": false,
    "availability_zone":  null
  },
  {
    "sn": 2,
    "node": "ss123456-2",
    "private_address": "10.0.1.74",
    "dns_address": "ss123456-jkzg2pr0-2-ca-central-1-aws.searchstax.com",
    "status": "Running",
    "status_details":  "&#91;2026-03-25 17:12:57&#93; restart ended",
    "solr": false,
    "zookeeper": true,
    "silk": false,
    "availability_zone":  null
  },
]</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">[</span></span>
<span class="line"><span style="color: #24292E">  {</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;sn&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">1</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;node&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-1&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;private_address&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;10.0.1.78&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;dns_address&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-jkzg2pr0-1-ca-central-1-aws.searchstax.com&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Running&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;status_details&quot;</span><span style="color: #24292E">:  </span><span style="color: #032F62">&quot;&#91;2026-03-25 17:12:53&#93; restart ended&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;solr&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;zookeeper&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;silk&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;availability_zone&quot;</span><span style="color: #24292E">:  </span><span style="color: #005CC5">null</span></span>
<span class="line"><span style="color: #24292E">  },</span></span>
<span class="line"><span style="color: #24292E">  {</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;sn&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">2</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;node&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-2&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;private_address&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;10.0.1.74&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;dns_address&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-jkzg2pr0-2-ca-central-1-aws.searchstax.com&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;status&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;Running&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;status_details&quot;</span><span style="color: #24292E">:  </span><span style="color: #032F62">&quot;&#91;2026-03-25 17:12:57&#93; restart ended&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;solr&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;zookeeper&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;silk&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">false</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;availability_zone&quot;</span><span style="color: #24292E">:  </span><span style="color: #005CC5">null</span></span>
<span class="line"><span style="color: #24292E">  },</span></span>
<span class="line"><span style="color: #24292E">]</span></span></code></pre></div>



<h3 class="wp-block-heading" id="listplans">account &gt; plan &gt; list</h3>



<p class="wp-block-paragraph">This method lists the available deployment plans and the regions where those plans are available.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>GET https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/plan/?page=1&amp;application=Solr&amp;plan_type=DedicatedPlan
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/plan/?page=1&amp;application=Solr&amp;plan_type=DedicatedPlan</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account. There are three query parameters:&nbsp;<strong>page</strong>&nbsp;is the page number within the paginated result set;&nbsp;<strong>application</strong>&nbsp;requests plans for &#8220;Solr&#8221;; and&nbsp;<strong>plan_type</strong>&nbsp;is &#8220;DedicatedPlan&#8221;. (The API currently supports only one application and plan type.)</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>





<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/plan/?page=1&amp;application=Solr&amp;plan_type=DedicatedPlan&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; </textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/plan/?page=1&amp;application=Solr&amp;plan_type=DedicatedPlan&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountplanlist.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/plan/?page=1&amp;application=Solr&amp;plan_type=DedicatedPlan&#8221; 
$RESULT = $RESULT | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/plan/?page=1&amp;application=Solr&amp;plan_type=DedicatedPlan&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document with the following values &#8211;</p>



<figure class="wp-block-table table table-bordered table-striped"><table><thead><tr><th><strong>Parameter</strong></th><th><strong>Description</strong></th><th><strong>Example</strong></th></tr></thead><tbody><tr><td><strong>name</strong><br>string</td><td>The name of the plan</td><td>&#8220;NDN4-AWS-S&#8221;</td></tr><tr><td><strong>description</strong><br>string</td><td>The description of the plan.</td><td>&#8220;Dedicated Node – 4GB/32GB&#8221;</td></tr><tr><td><strong>application</strong><br>object</td><td>JSON object with details of application selected</td><td>{<br>&#8220;name&#8221;: &#8220;Solr&#8221;,<br>&#8220;description&#8221;: &#8220;Apache Solr&#8221;,<br>&#8220;tag&#8221;: &#8220;solr&#8221;<br>}</td></tr><tr><td><strong>application_versions</strong><br>list of strings</td><td>List of available application versions</td><td>[<br>&#8220;8.11.2&#8221;,<br>&#8220;8.11.1&#8221;,<br>&#8220;8.8.2&#8221;,<br>&#8220;8.8.1&#8221;,<br>&#8220;8.6.3&#8221;,<br>and many more&#8230;<br>]</td></tr><tr><td><strong>plan_type</strong><br>string</td><td>The plan type selected</td><td>&#8220;DedicatedPlan&#8221;</td></tr><tr><td><strong>plan_regions</strong><br>list of objects</td><td>List of JSON objects containing information associated with each region.</td><td>{<br>&#8220;price&#8221;: 160,<br>&#8220;additional_application_node_price&#8221;: 0,<br>&#8220;additional_zookeeper_node_price&#8221;: 0,<br>&#8220;region_id&#8221;: &#8220;ap-northeast-1&#8221;,<br>&#8220;cloud_provider&#8221;: &#8220;Amazon Web Services&#8221;,<br>&#8220;cloud_provider_id&#8221;: &#8220;aws&#8221;<br>}</td></tr><tr><td><strong>trial_available</strong><br>boolean</td><td>Whether the plan is available in trial account</td><td>false</td></tr></tbody></table></figure>



<h3 class="wp-block-heading" id="usage">account &gt; usage &gt; list</h3>



<p class="wp-block-paragraph">This method produces a list of the billable usage events of <strong>dedicated deployments</strong> in an account during a specific year and month.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>GET /api/rest/v2/account/&lt;account_name>/usage/&lt;year>/&lt;month>/
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/usage/&lt;year&gt;/&lt;month&gt;/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account,&nbsp;<strong>&lt;year&gt;</strong>&nbsp;is an integer (2023), and&nbsp;<strong>&lt;month&gt;</strong>&nbsp;is an integer (1-12).</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/usage/&lt;year>/&lt;month>/ \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; 
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/usage/&lt;year&gt;/&lt;month&gt;/ </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #032F62">  --header &quot;Authorization:</span><span style="color: #24292E"> </span><span style="color: #032F62">Token</span><span style="color: #24292E"> </span><span style="color: #D73A49">&lt;</span><span style="color: #032F62">toke</span><span style="color: #24292E">n</span><span style="color: #D73A49">&gt;</span><span style="color: #032F62">&quot; </span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountusagelist.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$YEAR = &#8220;2023&#8221;
$MONTH = &#8220;3&#8221;
$RESULTS = Invoke-RestMethod -Method Get -Headers $headers `
          -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/usage/$YEAR/$MONTH/&#8221; 
$RESULTS = $RESULTS | ConvertTo-Json
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$YEAR </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;2023&quot;</span></span>
<span class="line"><span style="color: #24292E">$MONTH </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;3&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">          </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/usage/</span><span style="color: #24292E">$YEAR</span><span style="color: #032F62">/</span><span style="color: #24292E">$MONTH</span><span style="color: #032F62">/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULTS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing a list of usage events like this one:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>  {
    "startDate": "2022-04-01",
    "endDate": "2022-04-30",
    "objectID": "ss123456",
    "SKU": "NDN4-AWS-S",
    "currency": "USD",
    "amount": "192.00",
    "usage": 30,
    "tagCollection": []
  },
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">  {</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;startDate&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;2022-04-01&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;endDate&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;2022-04-30&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;objectID&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;SKU&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;NDN4-AWS-S&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;currency&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;USD&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;amount&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;192.00&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;usage&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">30</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;tagCollection&quot;</span><span style="color: #24292E">: []</span></span>
<span class="line"><span style="color: #24292E">  },</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph"><strong>Usage</strong>&nbsp;is the number of billable days between <strong>startDate</strong> and <strong>endDate</strong>, inclusively. In the case of backup storage, it is the number of bytes stored.</p>



<h3 class="wp-block-heading" id="usage-extended">account &gt; usage-extended &gt; list</h3>





<p class="wp-block-paragraph">This method produces a list of billable usage events for <strong>serverless indexes</strong> of an account during a specific year and month.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>GET /api/rest/v2/account/&lt;account_name>/usage-extended/&lt;year>/&lt;month>/
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/usage-extended/&lt;year&gt;/&lt;month&gt;/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account,&nbsp;<strong>&lt;year&gt;</strong>&nbsp;is an integer (2023), and&nbsp;<strong>&lt;month&gt;</strong>&nbsp;is an integer (1-12).</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/usage-extended/&lt;year>/&lt;month>/ \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; 
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/usage-extended/&lt;year&gt;/&lt;month&gt;/ </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #032F62">  --header &quot;Authorization:</span><span style="color: #24292E"> </span><span style="color: #032F62">Token</span><span style="color: #24292E"> </span><span style="color: #D73A49">&lt;</span><span style="color: #032F62">toke</span><span style="color: #24292E">n</span><span style="color: #D73A49">&gt;</span><span style="color: #032F62">&quot; </span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountusageextendedlist.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$YEAR = &#8220;2023&#8221;
$MONTH = &#8220;3&#8221;
$RESULTS = Invoke-RestMethod -Method Get -Headers $headers `
          -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/usage-extended/$YEAR/$MONTH/&#8221; 
$RESULTS = $RESULTS | ConvertTo-Json
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$YEAR </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;2023&quot;</span></span>
<span class="line"><span style="color: #24292E">$MONTH </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;3&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">          </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/usage-extended/</span><span style="color: #24292E">$YEAR</span><span style="color: #032F62">/</span><span style="color: #24292E">$MONTH</span><span style="color: #032F62">/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULTS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing a list of usage events like this one:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>  {
    &#8220;startDate&#8221;: &#8220;2023-12-01&#8221;,
    &#8220;endDate&#8221;: &#8220;2023-12-31&#8221;,
    &#8220;objectID&#8221;: &#8220;4008_QuickStart&#8221;,
    &#8220;SKU&#8221;: &#8220;SH-STARTER&#8221;,
    &#8220;usage&#8221;: 31,
    &#8220;tagCollection&#8221;: [
      &#8220;Serverless_Index&#8221;,
      &#8220;type:index&#8221;
    ],
    &#8220;currency&#8221;: &#8220;USD&#8221;,
    &#8220;amount&#8221;: 9.15,
    &#8220;extendedAttributes&#8221;: [
      &#8220;createdDate:2023-10-06&#8221;,
      &#8220;totalRequests:0&#8221;,
      &#8220;indexID:4008&#8221;,
      &#8220;name:QuickStart&#8221;,
      &#8220;region:us-west-2&#8221;,
      &#8220;indexSize:0.002734375&#8221;,
      &#8220;indexSizeWUnit:2.8 KB&#8221;,
      &#8220;status:active&#8221;,
      &#8220;orderStatus:completed&#8221;,
      &#8220;subscription:yearly&#8221;
    ]
  }
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">  {</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;startDate&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;2023-12-01&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;endDate&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;2023-12-31&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;objectID&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;4008_QuickStart&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;SKU&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;SH-STARTER&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;usage&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">31</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;tagCollection&quot;</span><span style="color: #24292E">: [</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;Serverless_Index&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;type:index&quot;</span></span>
<span class="line"><span style="color: #24292E">    ],</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;currency&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;USD&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;amount&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">9.15</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;extendedAttributes&quot;</span><span style="color: #24292E">: [</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;createdDate:2023-10-06&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;totalRequests:0&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;indexID:4008&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;name:QuickStart&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;region:us-west-2&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;indexSize:0.002734375&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;indexSizeWUnit:2.8 KB&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;status:active&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;orderStatus:completed&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #032F62">&quot;subscription:yearly&quot;</span></span>
<span class="line"><span style="color: #24292E">    ]</span></span>
<span class="line"><span style="color: #24292E">  }</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph"><strong>Usage</strong>&nbsp;is the number of billable days between <strong>startDate</strong> and <strong>endDate</strong>, inclusively. In the case of backup storage, it is the number of bytes stored. The list of <strong>extendedAttributes</strong> describes a single serverless index (collection).<strong> </strong></p>



<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p class="wp-block-paragraph">Do not hesitate to contact the&nbsp;<a href="mailto:support@searchstax.com?subject=SearchStax%20Cloud%20API%20–%20Deployments" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://www.searchstax.com/docs/searchstax-cloud-deployment-api/">Solr Deployment API</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.searchstax.com/docs/searchstax-cloud-deployment-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solr DNS Alias API</title>
		<link>https://www.searchstax.com/docs/searchstax-cloud-dns-alias-api/</link>
					<comments>https://www.searchstax.com/docs/searchstax-cloud-dns-alias-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 08:55:55 +0000</pubDate>
				<category><![CDATA[Deployment and Networking APIs]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://www.searchstax.com/docs/?p=7629</guid>

					<description><![CDATA[<p>Provisioning API &#8211; DNS Alias The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments. Core and Enterprise Clients Only! The SearchStax&#8230; <a class="more-link" href="https://www.searchstax.com/docs/searchstax-cloud-dns-alias-api/">Continue reading <span class="screen-reader-text">Solr DNS Alias API</span></a></p>
<p>The post <a href="https://www.searchstax.com/docs/searchstax-cloud-dns-alias-api/">Solr DNS Alias API</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-provisioning-api-dns-alias">Provisioning  API &#8211; DNS Alias</h1>



<hr class="wp-block-separator has-css-opacity"/>



<p class="wp-block-paragraph">The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments.</p>



<div class="alert alert-info">
<h3>Core and Enterprise Clients Only!</h3>
<p>The SearchStax API suite is available to our Core and Enterprise
clients only, as noted on our <a href="https://www.searchstax.com/pricing/cloud/">Pricing</a> page. </p>
</div>



<p class="wp-block-paragraph">This page describes how to redirect a DNS alias from one deployment to another using the API.</p>



<p class="wp-block-paragraph">The API can be accessed through any tool that assembles HTTP requests and dispatch them to a server. Among these would be the Python&nbsp;<a href="https://pypi.org/project/coreapi/" target="_blank" rel="noreferrer noopener">coreapi</a>&nbsp;package, the&nbsp;<a href="https://www.postman.com/" target="_blank" rel="noreferrer noopener">Postman</a>&nbsp;tool, and&nbsp;<a href="https://curl.se" target="_blank" rel="noreferrer noopener">cURL</a>. For Windows, use&nbsp;<a href="https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.1" target="_blank" rel="noreferrer noopener">PowerShell 7+</a>.</p>



<div class="alert alert-warning">
<h3>Account Owner, Admin, or Technical Contact</h3>
<p>To run the SearchStax Provisioning API, you must be the account Owner,
an account Admin, or a Technical Contact. See <a href="/docs/searchstax-cloud-user-roles/#userroles">SearchStax User Roles</a>.</p>
</div>



<p class="wp-block-paragraph">Symbols enclosed in carets (&lt; and &gt;) such as&nbsp;<strong>&lt;username&gt;</strong>&nbsp;are metavariables. Substitute your local values when you encounter them in the examples.</p>



<p class="wp-block-paragraph">Contents:</p>



<ul class="wp-block-list">
<li><a href="#DNSAlias">DNS Alias</a>
<ul class="wp-block-list">
<li><a href="#DNSlist">account &gt; dns-record &gt; list</a></li>



<li><a href="#DNSread">account &gt; dns-record &gt; read</a></li>



<li><a href="#DNSupdate">account &gt; dns-record &gt; associate</a></li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">Related Pages:</p>



<ul class="wp-block-list">
<li><a href="/docs/searchstax-cloud-authentication-api/">Authentication API</a></li>



<li><a href="/docs/searchstax-cloud-users-api/">Users API</a></li>



<li><a href="/docs/searchstax-cloud-basic-auth-api/">Basic Auth API</a></li>



<li><a href="/docs/searchstax-cloud-ipfilter-api/">IP Filtering API</a></li>



<li><a href="/docs/searchstax-cloud-deployment-api/">Deployment API</a></li>



<li><a href="/docs/searchstax-cloud-private-vpc-api/">Private VPC API</a></li>



<li><a href="/docs/searchstax-cloud-backup-restore-api/">Backup/Restore API</a></li>



<li><a href="/docs/searchstax-cloud-custom-jars-api/">Custom JARs API</a></li>



<li><a href="/docs/searchstax-cloud-tags-api/">Tags API</a></li>



<li><a href="/docs/searchstax-cloud-alerts-api/">Alerts API</a></li>



<li><a href="/docs/searchstax-cloud-webhooks-api/">Webhooks API</a></li>



<li><a href="/docs/searchstax-cloud-zookeeper-api/">Zookeeper API</a></li>
</ul>



<h2 class="wp-block-heading" id="DNSAlias">DNS Alias</h2>



<p class="wp-block-paragraph">SearchStax provides the ability to set up a&nbsp;<a href="https://en.wikipedia.org/wiki/CNAME_record" target="_blank" rel="noreferrer noopener">DNS CNAME alias</a>&nbsp;for your deployment. This means that your search application can query a domain address of the form&nbsp;<em>myalias.searchstax.com</em>&nbsp;in place of a literal Solr HTTP Endpoint like&nbsp;<em>ss123456-hemxx0ug-us-west-1-aws.searchstax.com/solr/</em>.</p>



<p class="wp-block-paragraph">We also provide API methods that let you redirect this alias to a different deployment in the same account. This lets you switch search traffic from one deployment to another in an emergency. Note that multiple CNAME records can point to the same deployment.</p>



<p class="wp-block-paragraph">Searchstax controls the master list of CNAME records to prevent name collisions. If your system would benefit from a CNAME alias, please contact&nbsp;<a href="mailto:sales@searchstax.com?subject=Vanity%20DNS%20Request" target="_blank" rel="noreferrer noopener">sales@searchstax.com</a>.</p>



<h3 class="wp-block-heading" id="DNSlist">account &gt; dns-record &gt; list</h3>



<p class="wp-block-paragraph">This method lists the existing CNAME aliases of an account.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET /api/rest/v2/account/&lt;account_name>/dns-record/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/dns-record/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/dns-record/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221;
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/dns-record/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdnsrecordlist.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;

$ALIASES = Invoke-RestMethod -Method Get -ContentType &#8216;application/json&#8217; -Headers $headers `
              -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/dns-record/&#8221;
$ALIASES = $ALIASES | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$ALIASES </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">ContentType </span><span style="color: #032F62">&#39;application/json&#39;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">              </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/dns-record/&quot;</span></span>
<span class="line"><span style="color: #24292E">$ALIASES </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $ALIASES </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">A successful response is a JSON object containing a list of CNAME records for this account:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;count&#8221;: 3,
  &#8220;next&#8221;: null,
  &#8220;previous&#8221;: null,
  &#8220;results&#8221;: [
    {
      &#8220;associated&#8221;: true,
      &#8220;name&#8221;: &#8220;alias1&#8221;,
      &#8220;value&#8221;: &#8220;ss123456-dbw2acz6-us-west-1-aws.searchstax.com&#8221;,
      &#8220;deployment&#8221;: &#8220;ss123456&#8221;,
      &#8220;ttl&#8221;: 300
    },
    {
      &#8220;associated&#8221;: true,
      &#8220;name&#8221;: &#8220;alias2&#8221;,
      &#8220;value&#8221;: &#8220;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&#8221;,
      &#8220;deployment&#8221;: &#8220;ss123456&#8221;,
      &#8220;ttl&#8221;: 300
    },
    {
      &#8220;associated&#8221;: true,
      &#8220;name&#8221;: &#8220;alias3&#8221;,
      &#8220;value&#8221;: &#8220;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&#8221;,
      &#8220;deployment&#8221;: &#8220;ss123456&#8221;,
      &#8220;ttl&#8221;: 300
    }
  ]
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;count&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">3</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;next&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;previous&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">null</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;results&quot;</span><span style="color: #24292E">: [</span></span>
<span class="line"><span style="color: #24292E">    {</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;associated&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;alias1&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;value&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-dbw2acz6-us-west-1-aws.searchstax.com&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;deployment&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;ttl&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">300</span></span>
<span class="line"><span style="color: #24292E">    },</span></span>
<span class="line"><span style="color: #24292E">    {</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;associated&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;alias2&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;value&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;deployment&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;ttl&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">300</span></span>
<span class="line"><span style="color: #24292E">    },</span></span>
<span class="line"><span style="color: #24292E">    {</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;associated&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;alias3&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;value&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;deployment&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">      </span><span style="color: #005CC5">&quot;ttl&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">300</span></span>
<span class="line"><span style="color: #24292E">    }</span></span>
<span class="line"><span style="color: #24292E">  ]</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<h3 class="wp-block-heading" id="DNSread">account &gt; dns-record &gt; read</h3>



<p class="wp-block-paragraph">This method reads a single CNAME record.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET /api/rest/v2/account/&lt;account_name>/dns-record/&lt;name>/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/dns-record/&lt;name&gt;/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and&nbsp;<strong>&lt;name&gt;</strong>&nbsp;is the name of the alias.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/dns-record/&lt;name>/&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221;
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/dns-record/&lt;name&gt;/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdnsrecordread.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$NAME = &#8220;alias1&#8221;

$ALIASES = Invoke-RestMethod -Method Get -ContentType &#8216;application/json&#8217; -Headers $headers `
              -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/dns-record/$NAME/&#8221;
$ALIAS = $ALIAS | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$NAME </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;alias1&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$ALIASES </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">ContentType </span><span style="color: #032F62">&#39;application/json&#39;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">              </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/dns-record/</span><span style="color: #24292E">$NAME</span><span style="color: #032F62">/&quot;</span></span>
<span class="line"><span style="color: #24292E">$ALIAS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $ALIAS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">A successful response is a JSON object containing a single CNAME record from this account:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;associated&#8221;: true,
  &#8220;name&#8221;: &#8220;alias3&#8221;,
  &#8220;value&#8221;: &#8220;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&#8221;,
  &#8220;deployment&#8221;: &#8220;ss123456&#8221;,
  &#8220;ttl&#8221;: 300
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;associated&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;alias3&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;value&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;deployment&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;ttl&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">300</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<h3 class="wp-block-heading" id="DNSupdate">account &gt; dns-record &gt; associate</h3>



<p class="wp-block-paragraph">This method updates a DNS CNAME record, associating the alias with a deployment&#8217;s Solr HTTP Endpoint. It can also set the DNS TTL (time to live) value for the record.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>PATCH https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/dns-record/&lt;name>/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">PATCH</span><span style="color: #24292E"> https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/dns-record/&lt;name&gt;/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and&nbsp;<strong>&lt;name&gt;</strong>&nbsp;is the name of the alias.</p>



<p class="wp-block-paragraph">This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p class="wp-block-paragraph">The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
    deployment=&#8217;ss123456&#8242;
    ttl=&#8217;300&#8242;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #B31D28; font-style: italic">deployment=&#39;ss123456&#39;</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #B31D28; font-style: italic">ttl=&#39;300&#39;</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<figure class="wp-block-table table table-bordered table-striped"><table><thead><tr><th><strong>Parameter</strong></th><th><strong>Description</strong></th><th><strong>Example</strong></th></tr></thead><tbody><tr><td><strong>deployment</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string<br></td><td>The deployment ID number from the Solr HTTP Endpoint.<br></td><td>&#8220;ss123456&#8221;</td></tr><tr><td><strong>ttl</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>The DNS&nbsp;<a href="https://en.wikipedia.org/wiki/Time_to_live#DNS_records">time-to-live</a>&nbsp;value (seconds), which must be one of 60, 300, 900, 1800, 3600, 21600, 43200, or 86400.</td><td>&#8220;300&#8221;<br></td></tr></tbody></table></figure>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request PATCH &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/dns-record/&lt;name>/&#8221; \
  &#8211;header &#8220;Content-Type: application/json&#8221; \
  &#8211;header &#8220;Authorization: Token &lt;token>&#8221; \
  &#8211;data &#8216;{&#8220;deployment&#8221;:&#8221;ss123456&#8243;,&#8221;ttl&#8221;:&#8221;300&#8243;}&#8217;</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">PATCH</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/dns-record/&lt;name&gt;/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Content-Type: application/json&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: Token &lt;token&gt;&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--data</span><span style="color: #24292E"> </span><span style="color: #032F62">&#39;{&quot;deployment&quot;:&quot;ss123456&quot;,&quot;ttl&quot;:&quot;300&quot;}&#39;</span></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdnsrecordassociate.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$NAME = &#8220;alias1&#8221;

$body = @{
    deployment=&#8217;ss123456&#8242;
    ttl=&#8217;300&#8242;
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Patch -body $body -ContentType &#8216;application/json&#8217; -Headers $headers `
         -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/dns-record/$NAME/&#8221; 
$RESULT = $RESULT | ConvertTo-Json</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$NAME </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;alias1&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$body </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #D73A49">@</span><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    deployment</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;ss123456&#39;</span></span>
<span class="line"><span style="color: #24292E">    ttl</span><span style="color: #D73A49">=</span><span style="color: #032F62">&#39;300&#39;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$body </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $body </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Patch </span><span style="color: #D73A49">-</span><span style="color: #24292E">body $body </span><span style="color: #D73A49">-</span><span style="color: #24292E">ContentType </span><span style="color: #032F62">&#39;application/json&#39;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">         </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/dns-record/</span><span style="color: #24292E">$NAME</span><span style="color: #032F62">/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULT </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing the updated CNAME record.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;associated&#8221;: true,
  &#8220;name&#8221;: &#8220;alias3&#8221;,
  &#8220;value&#8221;: &#8220;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&#8221;,
  &#8220;deployment&#8221;: &#8220;ss123456&#8221;,
  &#8220;ttl&#8221;: 300
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;associated&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">true</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;alias3&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;value&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;deployment&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;ss123456&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;ttl&quot;</span><span style="color: #24292E">: </span><span style="color: #005CC5">300</span></span>
<span class="line"><span style="color: #24292E">}</span></span></code></pre></div>



<h2 class="wp-block-heading">Questions?</h2>



<p class="wp-block-paragraph">Do not hesitate to contact the&nbsp;<a href="mailto:support@searchstax.com?subject=SearchStax%20Cloud%20API%20–%20DNS%20Alias" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://www.searchstax.com/docs/searchstax-cloud-dns-alias-api/">Solr DNS Alias API</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.searchstax.com/docs/searchstax-cloud-dns-alias-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solr ZooKeeper API</title>
		<link>https://www.searchstax.com/docs/searchstax-cloud-zookeeper-api/</link>
					<comments>https://www.searchstax.com/docs/searchstax-cloud-zookeeper-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 07:10:58 +0000</pubDate>
				<category><![CDATA[Deployment and Networking APIs]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://www.searchstax.com/docs/?p=7550</guid>

					<description><![CDATA[<p>Managed Search API &#8211; ZooKeeper Overview SearchStax provides an API supporting the creation, deletion and management of SearchStax Managed Search service deployments. Core and Enterprise Clients Only! The SearchStax API&#8230; <a class="more-link" href="https://www.searchstax.com/docs/searchstax-cloud-zookeeper-api/">Continue reading <span class="screen-reader-text">Solr ZooKeeper API</span></a></p>
<p>The post <a href="https://www.searchstax.com/docs/searchstax-cloud-zookeeper-api/">Solr ZooKeeper API</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="searchstax-managed-solr-api-zookeeper">Managed Search API &#8211; ZooKeeper</h1>



<hr class="wp-block-separator has-css-opacity"/>



<h2 class="wp-block-heading" id="overview">Overview</h2>



<p class="wp-block-paragraph">SearchStax provides an API supporting the creation, deletion and management of SearchStax Managed Search service deployments.</p>



<div class="alert alert-info">
<h3>Core and Enterprise Clients Only!</h3>
<p>The SearchStax API suite is available to our Core and Enterprise
clients only, as noted on our <a href="https://www.searchstax.com/pricing/cloud/">Pricing</a> page. </p>
</div>



<p class="wp-block-paragraph">This page describes how to manage ZooKeeper configurations using API methods.</p>



<p class="wp-block-paragraph">The API can be accessed through any tool that assembles HTTP requests and dispatch them to a server. Among these would be the Python <a href="https://pypi.org/project/coreapi/" target="_blank" rel="noreferrer noopener">coreapi</a> package, the <a href="https://www.postman.com/" target="_blank" rel="noreferrer noopener">Postman</a> tool, and <a href="https://curl.se" target="_blank" rel="noreferrer noopener">cURL</a>. For Windows, use a version of PowerShell that supports multipart-form data, such as <a href="https://docs.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7" target="_blank" rel="noreferrer noopener">PowerShell Core 6.1+</a> or <a href="https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.1" target="_blank" rel="noreferrer noopener">Powershell 7+</a>.</p>



<div class="alert alert-warning">
<h3>Account Owner, Admin, or Technical Contact</h3>
<p>To run the SearchStax Provisioning API, you must be the account Owner,
an account Admin, or a Technical Contact. See <a href="/docs/searchstax-cloud-user-roles/#userroles">SearchStax User Roles</a>.</p>
</div>



<p class="wp-block-paragraph">Symbols enclosed in carets (&lt; and &gt;) such as <strong>&lt;username&gt;</strong> are metavariables. Substitute your local values when you encounter them in the examples.</p>



<p class="wp-block-paragraph">Contents:</p>



<ul class="wp-block-list">
<li><a href="#zookeeper">Zookeeper</a>
<ul class="wp-block-list">
<li><a href="#zklist">account &gt; deployment &gt; zookeeper-config &gt; list</a></li>



<li><a href="#zkcreate">account &gt; deployment &gt; zookeeper-config &gt; create</a></li>



<li><a href="#zkread">account &gt; deployment &gt; zookeeper-config &gt; read</a></li>



<li><a href="#zkdelete">account &gt; deployment &gt; zookeeper-config &gt; delete</a></li>



<li><a href="#zkdownload">account &gt; deployment &gt; zookeeper-config &gt; download</a></li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">Related Page:</p>



<ul class="wp-block-list">
<li><a href="/docs/searchstax-cloud-authentication-api/">Authentication API</a></li>



<li><a href="/docs/searchstax-cloud-users-api/">Users API</a></li>



<li><a href="/docs/searchstax-cloud-basic-auth-api/">Basic Auth API</a></li>



<li><a href="/docs/searchstax-cloud-users-api/">IP Filtering API</a></li>



<li><a href="/docs/searchstax-cloud-deployment-api/">Deployment API</a></li>



<li><a href="/docs/searchstax-cloud-private-vpc-api/">Private VPC API</a></li>



<li><a href="/docs/searchstax-cloud-dns-alias-api/">DNS Alias API</a></li>



<li><a href="/docs/searchstax-cloud-alerts-api/">Backup/Restore API</a></li>



<li><a href="/docs/searchstax-cloud-custom-jars-api/">Custom JARs API</a></li>



<li><a href="/docs/searchstax-cloud-tags-api/">Tags API</a></li>



<li><a href="/docs/searchstax-cloud-alerts-api/">Alerts API</a></li>



<li><a href="/docs/searchstax-cloud-webhooks-api/">Webhooks API</a></li>
</ul>



<h2 class="wp-block-heading" id="zookeeper">Zookeeper</h2>



<p class="wp-block-paragraph">The Provisioning API includes methods for accessing Zookeeper configuration sets.</p>



<h3 class="wp-block-heading" id="zklist">account &gt; deployment &gt; zookeeper-config &gt; list</h3>



<p class="wp-block-paragraph">This method returns a list of named configurations from a Zookeeper ensemble.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET /api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/?page=&lt;n>
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/?page=&lt;n&gt;</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, and <strong>&lt;uid&gt;</strong> is the ID of the deployment. The query parameter <strong>page</strong> is a number, <strong>&lt;n&gt;</strong>, that defaults to 1.</p>



<p class="wp-block-paragraph">This method uses either <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication or <a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a> authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/?page=&lt;n>&#8221; \
  &#8211;header &#8220;Authorization: APIkey &lt;apikey>&#8221; 
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/?page=&lt;n&gt;&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: APIkey &lt;apikey&gt;&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentzookeeperconfiglist.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;

$RESULTS = Invoke-RestMethod -Method Get -Headers $headers `
          -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/zookeeper-config/&#8221; 
$RESULTS = $RESULTS | ConvertTo-Json
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">          </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/zookeeper-config/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULTS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing a list of Zookeeper configurations.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
    &#8220;configs&#8221;:  [
                    &#8220;_default&#8221;,
                    &#8220;film&#8221;
                ],
    &#8220;success&#8221;:  &#8220;true&#8221;
}
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;configs&quot;</span><span style="color: #24292E">:  [</span></span>
<span class="line"><span style="color: #24292E">                    </span><span style="color: #032F62">&quot;_default&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">                    </span><span style="color: #032F62">&quot;film&quot;</span></span>
<span class="line"><span style="color: #24292E">                ],</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">:  </span><span style="color: #032F62">&quot;true&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span></code></pre></div>



<h3 class="wp-block-heading" id="zkcreate">account &gt; deployment &gt; zookeeper-config &gt; create</h3>



<div style="height:18px" aria-hidden="true" class="wp-block-spacer"></div>



<div class="alert alert-warning">
<h4>Will not overwrite existing configset.</h4>
<p><strong>account &gt; deployment &gt; zookeeper-config &gt; create</strong> cannot overwrite an existing configset. It returns a <a href="https://www.searchstax.com/docs/hc/what-is-a-400-error/">400 Error</a> in that situation.</p>
<p>This is unlike <a href="https://www.searchstax.com/docs/hc/copy-solr-config/">zkcli</a>, which does overwrite existing configs.</p>
</div>



<p class="wp-block-paragraph">This method lets you upload a configset to the Zookeeper ensemble of a deployment.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>POST /api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">POST</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, and <strong>&lt;uid&gt;</strong> is the ID of the deployment.</p>



<p class="wp-block-paragraph">This method uses either <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication or <a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a> authentication.</p>



<p class="wp-block-paragraph">The request body should be a &#8220;multipart/form-data&#8221; encoded object, containing the following items:</p>


<figure class="wp-block-table table table-bordered table-striped">
<table>
<thead>
<tr>
<th><strong>Parameter</strong></th>
<th><strong>Description</strong></th>
<th><strong>Example</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>name</strong><br /><span class="has-inline-color" style="color: #ff0000;">required</span><br />string</td>
<td>This is the name of the new Zookeeper config.</td>
<td>&#8220;text_config&#8221;</td>
</tr>
<tr>
<td><strong>files</strong><br /><span class="has-inline-color" style="color: #ff0000;">required</span><br />file</td>
<td>The value here is the path to a zip file of the contents of a local config directory.</td>
<td>@conf.zip</td>
</tr>
</tbody>
</table>
</figure>


<p class="wp-block-paragraph">The config files are uploaded as a zip file including the contents of the configuration directory but not the directory itself. The zip file should contain all configuration files, including subfolders.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="976" height="212" src="https://www.searchstax.com/docs/wp-content/uploads/2021/03/zookeepercreatezip1.png" alt="SearchStax Provisioning API" class="wp-image-7559" srcset="https://www.searchstax.com/docs/wp-content/uploads/2021/03/zookeepercreatezip1.png 976w, https://www.searchstax.com/docs/wp-content/uploads/2021/03/zookeepercreatezip1-300x65.png 300w, https://www.searchstax.com/docs/wp-content/uploads/2021/03/zookeepercreatezip1-768x167.png 768w" sizes="(max-width: 976px) 100vw, 976px" /></figure>



<p class="wp-block-paragraph">When invoked from Linux (Bash script), use the <strong>-F, &#8211;form &lt;name=content&gt;</strong> param to specify <strong>name</strong> and <strong>files</strong>. This enables uploading of binary files. To force the zip file to be uploaded as a binary file, prefix the file name with an &#8220;@&#8221; character.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl -H &#8220;Authorization: APIkey &lt;apikey>&#8221; \
   -X POST \
   -F &#8220;name=test_config&#8221; \
   -F &#8220;files=@conf.zip&#8221; \
   https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">-H</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: APIkey &lt;apikey&gt;&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">   </span><span style="color: #005CC5">-X</span><span style="color: #24292E"> </span><span style="color: #032F62">POST</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">   </span><span style="color: #005CC5">-F</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;name=test_config&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">   </span><span style="color: #005CC5">-F</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;files=@conf.zip&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">   </span><span style="color: #032F62">https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #D73A49">&lt;</span><span style="color: #032F62">account_nam</span><span style="color: #24292E">e</span><span style="color: #D73A49">&gt;</span><span style="color: #032F62">/deployment/</span><span style="color: #D73A49">&lt;</span><span style="color: #032F62">ui</span><span style="color: #24292E">d</span><span style="color: #D73A49">&gt;</span><span style="color: #032F62">/zookeeper-config/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentzookeeperconfigcreate.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>), use a version of PowerShell that supports <strong>multipart-form data</strong>, such as <a href="https://github.com/PowerShell/PowerShell/releases" target="_blank" rel="noreferrer noopener">PowerShell Core 6.1+</a> or <a href="https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.1" target="_blank" rel="noreferrer noopener">Powershell 7.0+</a>.  To determine what version of PowerShell you are running, evaluate <strong>$PSVersionTable.PSVersion</strong>. </p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;

$form = @{
    name = &#8216;test_config&#8217;
    files = Get-Item -Path &#8216;conf.zip&#8217;
}

# Assuming the zipped config file is in the same directory as this script. 

$RESULTS = Invoke-RestMethod -Method Post -Form $form -Headers $headers `
          -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/zookeeper-config/&#8221; 
$RESULTS = $RESULTS | ConvertTo-Json
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$form </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #D73A49">@</span><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    name </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&#39;test_config&#39;</span></span>
<span class="line"><span style="color: #24292E">    files </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Get-Item</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Path </span><span style="color: #032F62">&#39;conf.zip&#39;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A737D"># Assuming the zipped config file is in the same directory as this script. </span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Post </span><span style="color: #D73A49">-</span><span style="color: #24292E">Form $form </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">          </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/zookeeper-config/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULTS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing a list of the deployment&#8217;s current configsets.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;configs&#8221;: [
    &#8220;_default&#8221;,
    &#8220;film&#8221;,
    &#8220;test_config&#8221;
  ],
  &#8220;success&#8221;: &#8220;true&#8221;
}
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;configs&quot;</span><span style="color: #24292E">: [</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;_default&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;test_config&quot;</span></span>
<span class="line"><span style="color: #24292E">  ],</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;true&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span></code></pre></div>



<h3 class="wp-block-heading" id="zkread">account &gt; deployment &gt; zookeeper-config &gt; read</h3>



<p class="wp-block-paragraph">This method returns a list of config files from a named configuration in the Zookeeper ensemble of a deployment.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET /api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/&lt;name>/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/&lt;name&gt;/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, and <strong>&lt;uid&gt;</strong> is the ID of the deployment. The <strong>&lt;name&gt;</strong> is the name of a configuration within Zookeeper.</p>



<p class="wp-block-paragraph">This method uses either <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication or <a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a> authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/&lt;name>/&#8221; \
  &#8211;header &#8220;Authorization: APIkey &lt;apikey>&#8221; 
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/&lt;name&gt;/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: APIkey &lt;apikey&gt;&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentzookeeperconfigread.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;

$RESULTS = Invoke-RestMethod -Method Get -Headers $headers `
          -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/zookeeper-config/$NAME/&#8221; 
$RESULTS = $RESULTS | ConvertTo-Json
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">          </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/zookeeper-config/</span><span style="color: #24292E">$NAME</span><span style="color: #032F62">/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULTS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing a list of all files in the configset.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
  &#8220;configs&#8221;: [
    &#8220;film/lang/hyphenations_ga.txt&#8221;,
    &#8220;film/lang/stopwords_hu.txt&#8221;,
    &#8220;film/lang/stopwords_el.txt&#8221;,
    &#8220;film/lang/stopwords_no.txt&#8221;,
    &#8220;film/lang/stopwords_ca.txt&#8221;,
    &#8220;film/lang/stopwords_de.txt&#8221;,
    &#8220;film/lang/stopwords_sv.txt&#8221;,
    &#8220;film/stopwords.txt&#8221;,
    &#8220;film/lang/contractions_ca.txt&#8221;,
    &#8220;film/lang/stopwords_ro.txt&#8221;,
    &#8220;film/lang/stopwords_bg.txt&#8221;,
    &#8220;film/solrconfig.xml&#8221;,
    &#8220;film/lang/stopwords_ga.txt&#8221;,
    &#8220;film/lang/stopwords_en.txt&#8221;,
    &#8220;film/lang/stopwords_es.txt&#8221;,
    &#8220;film/lang/stopwords_gl.txt&#8221;,
    &#8220;film/lang/stopwords_fi.txt&#8221;,
    &#8220;film/lang/contractions_fr.txt&#8221;,
    &#8220;film/lang/stopwords_da.txt&#8221;,
    &#8220;film/lang/stopwords_fa.txt&#8221;,
    &#8220;film/lang/stopwords_nl.txt&#8221;,
    &#8220;film/lang/stopwords_it.txt&#8221;,
    &#8220;film/lang/stopwords_pt.txt&#8221;,
    &#8220;film/params.json&#8221;,
    &#8220;film/protwords.txt&#8221;,
    &#8220;film/lang/stoptags_ja.txt&#8221;,
    &#8220;film/lang/userdict_ja.txt&#8221;,
    &#8220;film/lang/stopwords_tr.txt&#8221;,
    &#8220;film/lang/stopwords_ru.txt&#8221;,
    &#8220;film/lang/contractions_ga.txt&#8221;,
    &#8220;film/synonyms.txt&#8221;,
    &#8220;film/lang/stopwords_fr.txt&#8221;,
    &#8220;film/lang/stopwords_ar.txt&#8221;,
    &#8220;film/lang/stopwords_eu.txt&#8221;,
    &#8220;film/lang/stopwords_th.txt&#8221;,
    &#8220;film/lang/stopwords_hy.txt&#8221;,
    &#8220;film/lang/stopwords_lv.txt&#8221;,
    &#8220;film/lang/stemdict_nl.txt&#8221;,
    &#8220;film/lang/contractions_it.txt&#8221;,
    &#8220;film/lang/stopwords_hi.txt&#8221;,
    &#8220;film/lang/stopwords_ja.txt&#8221;,
    &#8220;film/lang/stopwords_cz.txt&#8221;,
    &#8220;film/managed-schema&#8221;,
    &#8220;film/lang/stopwords_id.txt&#8221;
  ],
  &#8220;name&#8221;: &#8220;test_config&#8221;,
  &#8220;success&#8221;: &#8220;true&#8221;
}
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;configs&quot;</span><span style="color: #24292E">: [</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/hyphenations_ga.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_hu.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_el.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_no.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_ca.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_de.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_sv.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/stopwords.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/contractions_ca.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_ro.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_bg.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/solrconfig.xml&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_ga.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_en.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_es.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_gl.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_fi.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/contractions_fr.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_da.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_fa.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_nl.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_it.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_pt.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/params.json&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/protwords.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stoptags_ja.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/userdict_ja.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_tr.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_ru.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/contractions_ga.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/synonyms.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_fr.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_ar.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_eu.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_th.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_hy.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_lv.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stemdict_nl.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/contractions_it.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_hi.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_ja.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_cz.txt&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/managed-schema&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #032F62">&quot;film/lang/stopwords_id.txt&quot;</span></span>
<span class="line"><span style="color: #24292E">  ],</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;name&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;test_config&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">: </span><span style="color: #032F62">&quot;true&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span></code></pre></div>



<h3 class="wp-block-heading" id="zkdelete">account &gt; deployment &gt; zookeeper-config &gt; delete</h3>



<p class="wp-block-paragraph">This method deletes a configset from the Zookeeper ensemble of a deployment.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>DELETE /api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/&lt;name>/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">DELETE</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/&lt;name&gt;/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, and <strong>&lt;uid&gt;</strong> is the ID of the deployment. The <strong>&lt;name&gt;</strong> is the name of a configuration within Zookeeper.</p>



<p class="wp-block-paragraph">This method uses either <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication or <a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a> authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request DELETE &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/&lt;name>/&#8221; \
  &#8211;header &#8220;Authorization: APIkey &lt;apikey>&#8221; 
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">DELETE</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/&lt;name&gt;/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: APIkey &lt;apikey&gt;&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentzookeeperconfigdelete.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;
$NAME = &#8220;ConfigName&#8221;

$RESULTS = Invoke-RestMethod -Method Delete -Headers $headers `
          -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/zookeeper-config/$NAME/&#8221; 
$RESULTS = $RESULTS | ConvertTo-Json
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"><span style="color: #24292E">$NAME </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ConfigName&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Delete </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">          </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/zookeeper-config/</span><span style="color: #24292E">$NAME</span><span style="color: #032F62">/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> $RESULTS </span><span style="color: #D73A49">|</span><span style="color: #24292E"> </span><span style="color: #005CC5">ConvertTo-Json</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">The response is a JSON document containing a confirmation message.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>{
    &#8220;message&#8221;:  &#8220;Config test_config has been deleted.&#8221;,
    &#8220;success&#8221;:  &#8220;true&#8221;
}
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">{</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;message&quot;</span><span style="color: #24292E">:  </span><span style="color: #032F62">&quot;Config test_config has been deleted.&quot;</span><span style="color: #24292E">,</span></span>
<span class="line"><span style="color: #24292E">    </span><span style="color: #005CC5">&quot;success&quot;</span><span style="color: #24292E">:  </span><span style="color: #032F62">&quot;true&quot;</span></span>
<span class="line"><span style="color: #24292E">}</span></span>
<span class="line"></span></code></pre></div>



<h3 class="wp-block-heading" id="zkdownload">account &gt; deployment &gt; zookeeper-config &gt; download</h3>



<p class="wp-block-paragraph">This method downloads a configset from the Zookeeper ensemble of a deployment in the form of a zip file.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>GET /api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/&lt;name>/download/
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #D73A49">GET</span><span style="color: #24292E"> /api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/&lt;name&gt;/download/</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, and <strong>&lt;uid&gt;</strong> is the ID of the deployment. The <strong>&lt;name&gt;</strong> is the name of a configuration within Zookeeper. </p>



<p class="wp-block-paragraph">This method uses either <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication or <a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a> authentication.</p>



<p class="wp-block-paragraph">There is no request body.</p>



<p class="wp-block-paragraph">When invoked from Linux (Bash script):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>curl &#8211;request GET &#8220;https://app.searchstax.com/api/rest/v2/account/&lt;account_name>/deployment/&lt;uid>/zookeeper-config/&lt;name>/download/&#8221; \
  &#8211;header &#8220;Authorization: APIkey &lt;apikey>&#8221; 
  -o &#8220;filename.zip&#8221;
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #6F42C1">curl</span><span style="color: #24292E"> </span><span style="color: #005CC5">--request</span><span style="color: #24292E"> </span><span style="color: #032F62">GET</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/zookeeper-config/&lt;name&gt;/download/&quot;</span><span style="color: #24292E"> </span><span style="color: #005CC5">\</span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #005CC5">--header</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Authorization: APIkey &lt;apikey&gt;&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #24292E">  </span><span style="color: #6F42C1">-o</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;filename.zip&quot;</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">Note the <strong>-o &#8220;filename.zip&#8221;</strong> parameter in cURL. This captures the downloaded zip file and writes it to the current directory.</p>



<p class="wp-block-paragraph">When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/accountdeploymentzookeeperconfigdownload.ps1" target="_blank" rel="noreferrer noopener">PowerShell script</a>):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#24292e;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>$ACCOUNT = &#8220;AccountName&#8221;
$uid = &#8220;ss123456&#8221;
$NAME = &#8220;ConfigName&#8221;

$RESULTS = Invoke-RestMethod -outfile &#8220;$NAME.zip&#8221; -Method Get -Headers $headers `
          -uri &#8220;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/zookeeper-config/$NAME/download/&#8221; 
Write-Host &#8220;Look for $NAME.zip in current directory.&#8221;
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki github-light" style="background-color: #fff" tabindex="0"><code><span class="line"><span style="color: #24292E">$ACCOUNT </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;AccountName&quot;</span></span>
<span class="line"><span style="color: #24292E">$uid </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ss123456&quot;</span></span>
<span class="line"><span style="color: #24292E">$NAME </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;ConfigName&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #24292E">$RESULTS </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">Invoke-RestMethod</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">outfile </span><span style="color: #032F62">&quot;</span><span style="color: #24292E">$NAME</span><span style="color: #032F62">.zip&quot;</span><span style="color: #24292E"> </span><span style="color: #D73A49">-</span><span style="color: #24292E">Method Get </span><span style="color: #D73A49">-</span><span style="color: #24292E">Headers $headers </span><span style="color: #D73A49">`</span></span>
<span class="line"><span style="color: #24292E">          </span><span style="color: #D73A49">-</span><span style="color: #24292E">uri </span><span style="color: #032F62">&quot;https://app.searchstax.com/api/rest/v2/account/</span><span style="color: #24292E">$ACCOUNT</span><span style="color: #032F62">/deployment/</span><span style="color: #24292E">$uid</span><span style="color: #032F62">/zookeeper-config/</span><span style="color: #24292E">$NAME</span><span style="color: #032F62">/download/&quot;</span><span style="color: #24292E"> </span></span>
<span class="line"><span style="color: #005CC5">Write-Host</span><span style="color: #24292E"> </span><span style="color: #032F62">&quot;Look for </span><span style="color: #24292E">$NAME</span><span style="color: #032F62">.zip in current directory.&quot;</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">Note the <strong>-outfile &#8220;$NAME.zip&#8221;</strong> parameter in Invoke-RestMethod. This captures the downloaded zip file and writes it to the current directory.</p>



<p class="wp-block-paragraph">The response is a zip file containing the configset files from Zookeeper.</p>



<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p class="wp-block-paragraph">Do not hesitate to contact the <a href="mailto:support@searchstax.com?subject=SearchStax%20Cloud%20API%20–%20ZooKeeper" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://www.searchstax.com/docs/searchstax-cloud-zookeeper-api/">Solr ZooKeeper API</a> appeared first on <a href="https://www.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.searchstax.com/docs/searchstax-cloud-zookeeper-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
