<?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>API Reference Archives - SearchStax Docs</title>
	<atom:link href="https://demo.searchstax.com/docs/category/managed-solr/mloud-manager/searchstax-api/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Documentation</description>
	<lastBuildDate>Tue, 22 Apr 2025 18:31:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://demo.searchstax.com/docs/wp-content/uploads/2023/10/cropped-favicon-32x32.png</url>
	<title>API Reference Archives - SearchStax Docs</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Managed Search APIs Overview</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-apis-overview/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-apis-overview/#respond</comments>
		
		<dc:creator><![CDATA[Tom Humbarger]]></dc:creator>
		<pubDate>Wed, 10 May 2023 17:50:08 +0000</pubDate>
				<category><![CDATA[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=15203</guid>

					<description><![CDATA[<p>Managed Search APIs Overview Overview The SearchStax Managed Search service provides various APIs for supporting the creation, deletion, and management of Solr deployments. Learn more about SearchStax Managed Search Solr&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstax-cloud-apis-overview/">Continue reading <span class="screen-reader-text">Managed Search APIs Overview</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-apis-overview/">Managed Search APIs Overview</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="searchstax-managed-solr-provisioning-api-authentication">Managed Search APIs Overview</h1>



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



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



<p>The SearchStax Managed Search service provides various APIs for supporting the creation, deletion, and management of Solr deployments.</p>



<p>Learn more about SearchStax Managed Search Solr APIs:</p>



<ul class="wp-block-list">
<li><a href="https://demo.searchstax.com/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>



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



<p>SearchStax Managed Search deployments also support custom JAR files to add custom analyzers, tokenizers, query parsers and other plugins for Solr deployments. Learn more about <a href="https://demo.searchstax.com/docs/searchstax-cloud-custom-jar-files/">custom JAR files for SearchStax Managed Search </a>.</p>



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



<p>Do not hesitate to contact the&nbsp;<a href="mailto:support@demo.searchstax.com?subject=SearchStax%20Cloud%20Provisioning%20API%20–%20Authentication" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-apis-overview/">Managed Search APIs Overview</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-apis-overview/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Provisioning API &#8211; Authentication</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-authentication-api/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-authentication-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 10:27:07 +0000</pubDate>
				<category><![CDATA[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=7676</guid>

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



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



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



<p>The SearchStax Managed Search service provides an API supporting the creation, deletion, and management of Solr deployments.</p>



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



<p>The Provisioning API uses two methods of authentication appropriate to two levels of security:</p>



<ul class="wp-block-list">
<li><strong>Token Authentication:</strong> Use the username and password of an authorized user to obtain an <em>authentication token</em>. The token authorizes API calls within the normal scope of the user&#8217;s permissions. A token expires after 24 hours of inactivity.</li>



<li><strong>API Key Authentication:</strong>&nbsp;The API Key authenticates a narrow set of API functions for managing Solr Basic Auth users and Zookeeper configurations in a deployment. The API Key does not expire, but it can be revoked.</li>
</ul>



<p>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>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>Contents:</p>



<ul class="wp-block-list">
<li><a href="#token">Token Authentication</a>
<ul class="wp-block-list">
<li><a href="#create-auth-token">obtain-auth-token &gt; create</a></li>



<li><a href="#verify-auth-token">verify-auth-token</a></li>
</ul>
</li>



<li><a href="#apikey">API Key Authentication</a>
<ul class="wp-block-list">
<li><a href="#createapikey">account &gt; apikey &gt; create</a></li>



<li><a href="#addkeytodeployment">account &gt; apikey &gt; associate_apikey_to_deployment</a></li>



<li><a href="#keydeployments">account &gt; apikey &gt; apikey_deployments</a></li>



<li><a href="#keydeployments">account &gt; apikey &gt; deployment_apikeys</a></li>



<li><a href="#account-apikey-disassociate_apikey_from_deployment">account &gt; apikey &gt; disassociate_apikey_from_deployment</a></li>



<li><a href="#revokeapikey">account &gt; apikey &gt; revoke</a></li>
</ul>
</li>
</ul>



<p>Related Pages:</p>



<ul class="wp-block-list">
<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>



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



<h2 class="wp-block-heading" id="token">Token Authentication</h2>



<p>The first step in using the SearchStax API is to obtain an authentication token by logging in to the SearchStax server. The token authorizes subsequent API requests.</p>



<h3 class="wp-block-heading" id="create-auth-token">obtain-auth-token &gt; create</h3>



<p>Generates an authentication token for the user of a tenant account. This token expires after 24 hours of inactivity</p>



<pre class="wp-block-code"><code>POST https://app.searchstax.com/api/rest/v2/obtain-auth-token/
</code></pre>



<p>The request body should be an &#8220;application/x-www-form-urlencoded&#8221; object to accommodate the non-alphanumeric characters that sometimes appear in usernames and passwords.</p>



<pre class="wp-block-code"><code>"username=&lt;username&gt;&amp;password=&lt;password&gt;"
</code></pre>



<p>&nbsp;</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>username</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the email address used when you log into the SearchStax server.</td><td>&#8220;user@company.com&#8221;</td></tr><tr><td><strong>password</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the password associated with that username.</td><td>&#8220;4r36%74m&#8221;</td></tr><tr><td><strong>tfa_token</strong><br><span style="color:#32cd32" class="has-inline-color">optional</span><br>string</td><td>This is a six-digit code supplied by the Google Authenticator to enable <a href="/docs/searchstax-cloud-user-roles/#2FA">two-factor authentication.</a> Each code is good for one minute, so move fast.<br><br>The eight-character backup codes work with no time limit, but only once each.<br><br>If TFA is not enabled for this user account, this token is ignored.  </td><td>&#8220;123456&#8221;<br>or<br>&#8220;noho2x5n&#8221;</td></tr></tbody></table></figure>



<p></p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
TOKEN=$(curl -s -H &quot;Content-Type: application/json&quot; -X POST \
       -d &quot;{\&quot;username\&quot;:\&quot;$USER\&quot;,\&quot;password\&quot;:\&quot;$PASSWORD\&quot;,\&quot;tfa_token\&quot;:\&quot;$TWOFACTOR\&quot;}&quot; \
       https://app.searchstax.com/api/rest/v2/obtain-auth-token/)
</pre></div>


<p><em>If SearchStax will not accept your credentials from Bash, check your password for a $ or # character. Bash will try to interpret these characters, changing the text of the password.</em> </p>



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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$USER = &quot;username&quot;
$PASSWORD = &quot;password&quot;
$TFA = &quot;123456&quot;

$body = @{
    username=$USER
    password=$PASSWORD
    tfa_token=$TFA
}

$body = $body | ConvertTo-Json

$TOKEN = Invoke-RestMethod -Method Post -Body $body -ContentType &#039;application/json&#039; `
        -uri &quot;https://app.searchstax.com/api/rest/v2/obtain-auth-token/&quot; 
$TOKEN = $TOKEN.token
</pre></div>


<p>The response is a JSON document containing an authorization token.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;token&quot;: &quot;aa70cb0a180a0532ae8855f7a1712eeceb81e080&quot;
}

</pre></div>


<div class="alert alert-info">
<h3>Using the token in Bash</h3>
<p>In the Bash scripts, the authorization token is incorporated directly in the header of the cURL call:</p>
<pre><code>    curl -s -H "Authorization: Token $TOKEN" etc.</code></pre>
</div>



<div class="alert alert-info">
<h3>Using the token in PowerShell</h3>
<p>In the PowerShell scripts, we use the token by assembling a header for the Invoke-RestMethod call. Note that <strong>$TOKEN.token</strong> extracts the actual token number from the Json response.</p>
<pre><code>
$TOKEN = $TOKEN.token

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Token $TOKEN")

$RESULTS = Invoke-RestMethod -Headers $headers etc. </code></pre>
</div>



<p></p>



<h3 class="wp-block-heading" id="verify-auth-token">verify-auth-token</h3>



<p>Verifies if the auth token is valid, or needs to be re-generated</p>



<pre class="wp-block-code"><code>GET https://app.searchstax.com/api/rest/v2/verify-auth-token/
</code></pre>



<p>The Authorization header should be passed with the token to verify</p>



<pre class="wp-block-code"><code>Authorization "Token &lt;token>"
</code></pre>



<p>&nbsp;</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>token</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>The token to verify</td><td>&#8220;XyZ190189898njjhjhjhjhjhj&#8221;</td></tr></tbody></table></figure>



<p></p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
TOKEN=$(curl -s -H &quot;Content-Type: application/json&quot; -X GET  \
   -H &#039;authorization: Token YXBwNDAtYXBpOmdUSG8xNyNrdXU4&#039; \
 https://app.searchstax.com/api/rest/v2/verify-auth-token/)
</pre></div>


<p>The response is a JSON with the expiry information of the token</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;token&quot;: {
        &quot;key&quot;: &quot;YXBwNDAtYXBpOmdUSG8xNyNrdXU4&quot;,
        &quot;created&quot;: &quot;2024-03-31T23:46:28Z&quot;,
        &quot;expires&quot;: &quot;2024-04-01T23:46:28Z&quot;
    }
}

</pre></div>


<p></p>



<h2 class="wp-block-heading" id="apikey">API Key Authentication</h2>



<p>An API Key is a non-expiring authorization allowing certain non-SearchStax users to perform a <em>specific set</em> of API operations on <em>specific deployments</em> of a <em>specific account</em>. If you step outside of that scope, you will see an <a href="https://demo.searchstax.com/docs/hc/api-key-is-not-valid-for-required-scope/">Out of Scope</a> error. </p>



<p>In a little more detail:</p>



<ul class="wp-block-list">
<li>You must be the Owner or an Admin of a Platinum or Platinum Plus account to generate an API Key. </li>



<li>You will need <a href="#token">Token Authentication</a> to create the API Key. </li>



<li>The API Key by itself is not good for anything. The account Owner or an Admin must <a href="#addkeytodeployment">associate the API Key</a> with a specific deployment before the key becomes active. </li>



<li>At this point, anyone who possesses the API Key (anyone at all) can use SearchStax Provisioning API methods to:
<ul class="wp-block-list">
<li>Manage <a href="https://demo.searchstax.com/docs/searchstax-cloud-basic-auth-api/">Solr Basic Auth</a> users on that specific deployment. </li>



<li>Manage <a href="https://demo.searchstax.com/docs/searchstax-cloud-zookeeper-api/">Solr configurations</a> on Zookeeper in that specific deployment.</li>
</ul>
</li>
</ul>



<p>Note that the API Key is good for absolutely nothing else. </p>



<p>Procedure for creating an APIkey:</p>



<ol class="wp-block-list">
<li><a href="#token">Obtain an authentication Token</a>.</li>



<li><a href="#createapikey">Generate an APIkey</a>.</li>



<li><a href="#addkeytodeployment">Associate the APIkey with a specific deployment</a>.</li>
</ol>



<p>Once the APIkey has been associated with a deployment, you can view the APIkey under the&nbsp;<strong>Security</strong>&nbsp;menu for that deployment in the Managed Search dashboard.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="541" src="https://demo.searchstax.com/docs/wp-content/uploads/2024/06/APIkey-1-1024x541.png" alt="" class="wp-image-18968" srcset="https://demo.searchstax.com/docs/wp-content/uploads/2024/06/APIkey-1-1024x541.png 1024w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/APIkey-1-300x159.png 300w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/APIkey-1-768x406.png 768w, https://demo.searchstax.com/docs/wp-content/uploads/2024/06/APIkey-1.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



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



<p>This method creates an API Key based on a valid authentication token.</p>



<pre class="wp-block-code"><code>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/
</code></pre>



<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



<p>This method uses&nbsp;<a href="#token">Token</a>&nbsp;authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    &quot;scope&quot;:&#x5B;&quot;deployment.dedicateddeployment&quot;]
}

</pre></div>


<figure class="wp-block-table table table-bordered table-striped"><table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>scope</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>list of strings</td><td>The scope in which this API key will be effective. Default value is&nbsp;<strong>deployment.dedicateddeployment</strong>.</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{
    \&quot;scope\&quot;:&#x5B;\&quot;deployment.dedicateddeployment\&quot;]
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$body = @{
    scope=@(&#039;deployment.dedicateddeployment&#039;)   # Force single-value to be a list
}
$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/apikey/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{ &quot;apikey&quot;: &quot;eyJhbGciOiJIUzVCJ9.eyJpYXQiOjE1NDMyNDc0ODMsImp0aSI6IjhmYTlkZThjNTIyNjRjZTc2Njg0NTkyMWQ4MTQ0MDY5ZThkMjc5NmMiLCJzY29wZSI6WyJkZXBsb3ltZW50LmRlZGljYXRlZGRlcGxveW1lbnQiXSwiQ1MrdThSZmlNTzMwNnZJM082QSJ9.r6X7bJi_ZWGR99XC0Ac&quot; }
</pre></div>


<div class="alert alert-info">
<h3>Using the API key in Bash</h3>
<p>In the Bash scripts, we use the API key directly in the header of the cURL call:</p>
<pre><code> curl -s -H "Authorization: APIkey $APIKEY" etc.</code></pre>
</div>



<div class="alert alert-info">
<h3>Using the API key in PowerShell</h3>
<p>In the PowerShell scripts, we use the API key by assembling a header and using it in the Invoke-RestMethod call:</p>
<pre><code> $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "APIkey $APIKEY")

$RESULTS = Invoke-RestMethod -Headers $headers etc. </code></pre>
</div>



<h3 class="wp-block-heading" id="addkeytodeployment">account &gt; apikey &gt; associate_apikey_to_deployment</h3>



<p>This method associates an API key to a specific deployment. Note that an API key can be associated with multiple deployments, but each deployment can be associated with only one API key at a time.</p>



<pre class="wp-block-code"><code>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/associate/
</code></pre>



<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



<p>This method requires&nbsp;<a href="#token">Token</a>&nbsp;authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;apikey&quot;: &quot;eyJhbGciOiJI6IkpXVCJ9...&quot;,
    &quot;deployment&quot;: &quot;ss123456&quot;
}

</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>apikey</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the API key that needs to be associated with the deployment.</td><td>&#8220;eyJhbGciOiJI6IkpXVCJ9&#8230;&#8221;</td></tr><tr><td><strong>deployment</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the UID of the deployment.</td><td>&#8220;ss123456&#8221;</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/associate/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{
    \&quot;apikey\&quot;: \&quot;eyJhbGciOiJI6IkpXVCJ9...\&quot;,
    \&quot;deployment\&quot;: \&quot;ss123456\&quot;
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    apikey=$APIKEY
    deployment=$uid
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod  -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/apikey/associate/&quot;

$RESULT = $RESULT | ConvertTo-Json 

</pre></div>


<p>The response is a JSON document containing a list of deployments associated with this key.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;deployments&quot;: &#x5B; &quot;ssXXXXX1&quot;, &quot;ssXXXXX2&quot;]
}

</pre></div>


<h3 class="wp-block-heading" id="keydeployments">account &gt; apikey &gt; apikey_deployments</h3>



<p>This method lists the deployments associated with the given API key.</p>



<pre class="wp-block-code"><code>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/deployments/
</code></pre>



<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



<p>This method uses&nbsp;<a href="#token">Token</a>&nbsp;authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;apikey&quot; : &quot;eyJhbGciOiJI6IkpXVCJ9...&quot;
}

</pre></div>


<figure class="wp-block-table table table-bordered table-striped"><table><thead><tr><th>Parameter</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><strong>apikey</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the API key that is associated with the deployments.</td><td>&#8220;eyJhbGciOiJI6IkpXVCJ9&#8230;&#8221;</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/deployments/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{ \&quot;apikey\&quot; : \&quot;eyJhbGciOiJI6IkpXVCJ9...\&quot; }&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$APIKEY = &quot;eyJhbGciOiJI6IkpXVCJ9...&quot;

$body = @{
    apikey=$APIKEY
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/apikey/deployments/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing a list of deployment UIDs.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;deployments&quot;: &#x5B; &quot;ss123456&quot; ]
}

</pre></div>


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



<p>This method disassociates an API key from a deployment.</p>



<pre class="wp-block-code"><code>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/disassociate/
</code></pre>



<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



<p>This method uses&nbsp;<a href="#token">Token</a>&nbsp;authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;apikey&quot; : &quot;eyJhbGciOiJI6IkpXVCJ9...&quot;,
    &quot;deployment&quot;: &quot;ss123456&quot;
}

</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>apikey</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the API key that needs to be disassociated from the deployment.</td><td>&#8220;eyJhbGciOiJI6IkpXVCJ9&#8230;&#8221;</td></tr><tr><td><strong>deployment</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the UID of the deployment.</td><td>&#8220;ss123456&#8221;</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/disassociate/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{
    \&quot;apikey\&quot; : \&quot;eyJhbGciOiJI6IkpXVCJ9...\&quot;,
    \&quot;deployment\&quot;: \&quot;ss123456\&quot;
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$APIKEY = &quot;eyJhbGciOiJI6IkpXVCJ9...&quot;

$body = @{
    apikey=$APIKEY
    deployment=$uid
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/apikey/disassociate/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing a list of deployments with which the API key is still associated.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;deployments&quot;: &#x5B;
    &quot;ssXXXXX1&quot;,
    &quot;ssXXXXX2&quot;,
    &quot;ssXXXXX3&quot;
  ]
}

</pre></div>


<h3 class="wp-block-heading" id="removefromdeployment">account &gt; apikey &gt; deployment_apikeys</h3>



<p>This method lists the API key that is associated with a deployment. Each deployment may be associated with only one API key at a time.</p>



<pre class="wp-block-code"><code>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/list/
</code></pre>



<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



<p>This method uses&nbsp;<a href="#token">Token</a>&nbsp;authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;deployment&quot; : &quot;ss123456&quot;
}

</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</td><td>This is the UID of the deployment.</td><td>&#8220;ss123456&#8221;</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/list/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{ \&quot;deployment\&quot; : \&quot;ss123456\&quot; }&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    deployment=$uid
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/apikey/list/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing the API key associated with the deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;apikey&quot;: &#x5B; &quot;eyJhbGciOiJI6IkpXVCJ9...&quot; ]
}

</pre></div>


<h3 class="wp-block-heading" id="revokeapikey">account &gt; apikey &gt; revoke</h3>



<p>This method revokes an API key.</p>



<pre class="wp-block-code"><code>POST https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/revoke/
</code></pre>



<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



<p>This method uses&nbsp;<a href="#token">Token</a>&nbsp;authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;apikey&quot; : &quot;eyJhbGciOiJI6IkpXVCJ9...&quot;
}

</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>apikey</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the API key to revoke.</td><td>&#8220;eyJhbGciOiJI6IkpXVCJ9&#8230;&#8221;</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/apikey/revoke/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{
    \&quot;apikey\&quot; : \&quot;eyJhbGciOiJI6IkpXVCJ9...\&quot;
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$APIKEY = &quot;eyJhbGciOiJI6IkpXVCJ9...&quot;

$body = @{
    apikey=$APIKEY
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/apikey/revoke/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing a success/failure message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;success&quot;: &quot;API Key revoked successfully.&quot;
}

</pre></div>


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



<p>Do not hesitate to contact the&nbsp;<a href="mailto:support@demo.searchstax.com?subject=SearchStax%20Cloud%20Provisioning%20API%20–%20Authentication" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-authentication-api/">Provisioning API &#8211; Authentication</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-authentication-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SearchStax Users API</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-users-api/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-users-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 10:23:05 +0000</pubDate>
				<category><![CDATA[API Reference]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=7669</guid>

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



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



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



<p>The SearchStax Managed Search service provides an API supporting the creation, deletion and management of SearchStax Managed Search service deployments.</p>



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



<p>This page describes how to manage the users of a SearchStax account through the API.</p>



<p>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>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>Contents:</p>



<ul class="wp-block-list">
<li><a href="#users">Users</a>
<ul class="wp-block-list">
<li><a href="#listusers">users &gt; list</a></li>



<li><a href="#h-users-add-user-create">users &gt; add-user &gt; create</a></li>



<li><a href="#changepasswordcreate">users &gt; change-password &gt; create</a></li>



<li><a href="#setrolecreate">users &gt; set-role &gt; create</a></li>



<li><a href="#deleteusers">users &gt; delete</a></li>
</ul>
</li>
</ul>



<p>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-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-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="users">Users</h2>



<p>The SearchStax Provisioning API provides methods for managing the users of a SearchStax Account from a remote application.</p>



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



<p>This method lists the SearchStax users for an account.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET https://app.searchstax.com/api/rest/users/?account=&amp;lt;account_name&gt;
</pre></div>


<p>where&nbsp;<strong>?account=&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



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



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET https://app.searchstax.com/api/rest/users/?account=$ACCOUNT 
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/users/?account=$ACCOUNT&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>The response is a JSON document containing the SearchStax users of the account and their details:</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%"><div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;success&quot;: true,
  &quot;users&quot;: &#x5B;
    {
      &quot;firstname&quot;: &quot;FirstName&quot;,
      &quot;lastname&quot;: &quot;LastName&quot;,
      &quot;email&quot;: &quot;user@company.com&quot;,
      &quot;role&quot;: &quot;Team Member&quot;,
      &quot;phone&quot;: &quot;123-456-7890&quot;,
      &quot;company&quot;: &quot;Company&quot;,
      &quot;id&quot;: 3201,
      &quot;last_login&quot;: null,
      &quot;created&quot;: &quot;2021-01-06T19:51:28Z&quot;,
      &quot;invitation_status&quot;: &quot;Completed&quot;
    }
  ]
}
</pre></div></div>
</div>
</div></div>
</div>
</div>



<h3 class="wp-block-heading" id="h-users-gt-add-user-gt-create">users &gt; add-user &gt; create</h3>



<p>This method invites a new user to join an existing tenant account. </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/users/add-user?account=&amp;lt;account_name&gt;
</pre></div>


<p>where&nbsp;<strong>?account=&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



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



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; quick-code: false; notranslate">
{
    &quot;email&quot;: &quot;user@company.com&quot;,
    &quot;role&quot;: &quot;Admin&quot;,
    &quot;first_name&quot;: &quot;First&quot;,
    &quot;last_name&quot;: &quot;Last&quot;,    
    &quot;phone_number&quot;: &quot;8005551212&quot;
}
</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></tr></thead><tbody><tr><td><strong>email</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark><br>string</td><td>The user&#8217;s email.</td></tr><tr><td><strong>role</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark><br>string</td><td>One of &#8216;Admin&#8217;, &#8216;Technical Contact&#8217;, &#8216;Billing Member&#8217;, &#8216;Team Member&#8217;.</td></tr><tr><td><strong>first_name</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark><br>string</td><td>User&#8217;s first name.</td></tr><tr><td><strong>last_name</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark><br>string</td><td>User&#8217;s last name.</td></tr><tr><td><strong>phone_number</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#32cd32" class="has-inline-color">optional</mark><br>string</td><td>User&#8217;s phone number.</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl -s -H &quot;Authorization: Token $TOKEN&quot; -H &quot;Content-Type: application/json&quot; -d &quot;${BODY}&quot; 
-X POST https://app.searchstax.com/api/rest/users/add-user?account=$ACCOUNT
</pre></div>


<p>When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/usersadd-usercreate.ps1">PowerShell script</a>):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
$body = @{
    email=&#039;clayton@sti.net&#039;
    role=&#039;Admin&#039;
    first_name=&#039;Bruce&#039;
    last_name=&#039;Clayton&#039;    
    phone_number=&#039;8005551212&#039;
}

$body = $body | ConvertTo-Json

$RESULTS = Invoke-RestMethod -Method Post -Body $body -ContentType &#039;application/json&#039; -Headers $headers `
          -uri &quot;https://app.searchstax.com/api/rest/users/add-user?account=$ACCOUNT&quot; 
$RESULTS = $RESULTS | ConvertTo-Json

</pre></div>


<p>This method returns a JSON document containing a success message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;success&quot;: true,
  &quot;message&quot;: &quot;User &#039;user@company.com&#039; invited successfully.&quot;
}
</pre></div>


<h3 class="wp-block-heading" id="changepasswordcreate">users &gt; change-password &gt; create</h3>



<p>This method allows an authenticated user to change his own password. It is not possible to change someone else&#8217;s password.  </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/users/change-password?account=&amp;lt;account_name&gt;&amp;amp;id=&amp;lt;id&gt;
</pre></div>


<p>where&nbsp;<strong>?account=&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and <strong>id=&lt;id&gt;</strong> is the user identification number obtained from <a href="#listusers">users &gt; list</a>. </p>



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



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following item:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;password&quot;: &quot;new-password&quot;
}
</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></tr></thead><tbody><tr><td><strong>password</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark><br>string</td><td>The desired new password. </td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl -s -H &quot;Authorization: Token $TOKEN&quot; -H &quot;Content-Type: application/json&quot; -d &quot;${BODY}&quot; 
-X POST &quot;https://app.searchstax.com/api/rest/users/change-password?account=$ACCOUNT&amp;$ID&quot;
</pre></div>


<p>When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/userschange-passwordcreate.ps1">PowerShell script</a>):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
$body = @{
    password=&#039;password&#039;
}

$body = $body | ConvertTo-Json

$RESULTS = Invoke-RestMethod -Method Post -Body $body -ContentType &#039;application/json&#039; -Headers $headers `
          -uri &quot;https://app.searchstax.com/api/rest/users/change-password?account=$ACCOUNT&amp;amp;id=$ID&quot; 
 
$RESULTS = $RESULTS | ConvertTo-Json

</pre></div>


<p>This method returns a JSON document containing a success message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;success&quot;:  true,
    &quot;message&quot;:  &quot;Password changed successfully.&quot;
}
</pre></div>


<p>If you received an error saying, &#8220;<code>You can not change password for another user</code>,&#8221; check to be sure the URL is within double-quotes. If not, everything to the right of the ampersand (&amp;) will be truncated, usually resulting in the loss of the user ID. </p>



<h3 class="wp-block-heading" id="setrolecreate">users &gt; set-role &gt; create</h3>



<div class="alert alert-info">
<h3>Managed Search User Roles</h3>
<p>For background on user roles in Managed Search, see <a href="https://www.searchstax.com/blog/role-based-user-roles-for-your-searchstax-team/">Role-based User Roles for Your SearchStax Team</a> and <a href="https://demo.searchstax.com/docs/searchstax-cloud-user-roles/#userroles">User Management</a>.</p>
</div>



<p>This method allows an Author or Admin to change the role of one or more account users.  </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/users/set-role/?account=&amp;lt;account_name&gt;
</pre></div>


<p>where&nbsp;<strong>?account=&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.. </p>



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



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following item:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
    &quot;id&quot;: &quot;2178,2067,3385&quot;,
    &quot;role&quot;: &quot;Team Member&quot;
}
</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></tr></thead><tbody><tr><td><strong>id</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark><br>string</td><td>A comma-separated list of user ID numbers obtained from <a href="#listusers">users &gt; list</a>.  </td></tr><tr><td>role<br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark><br>string</td><td>One of Admin, Technical Contact, Billing Member, Team Member, Marketer. All users in the <strong>id</strong> list will be assigned to this role.</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl -s -H &quot;Authorization: Token $TOKEN&quot; -H &quot;Content-Type: application/json&quot; -d &quot;${BODY}&quot; 
-X POST &quot;https://app.searchstax.com/api/rest/users/set-role?account=$ACCOUNT&quot;
</pre></div>


<p>When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/master/restapi/usersset-rolecreate.ps1">PowerShell script</a>):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
$body = @{
    id=&#039;2178,2067,3385&#039;
    role=&#039;Team Member&#039;
}

$body = $body | ConvertTo-Json

$RESULTS = Invoke-RestMethod -Method Post -Body $body -ContentType &#039;application/json&#039; -Headers $headers `
          -uri &quot;https://app.searchstax.com/api/rest/users/set-role?account=$ACCOUNT&quot; 
 
$RESULTS = $RESULTS | ConvertTo-Json

</pre></div>


<p>This method returns a JSON document containing a success/failure message for each user.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
&#x5B;
  {
    &quot;id&quot;: 2178,
    &quot;success&quot;: true,
    &quot;message&quot;: &quot;Role updated successfully.&quot;
  },
  {
    &quot;id&quot;: 2067,
    &quot;success&quot;: false,
    &quot;message&quot;: &quot;User id 2067 does not exist.&quot;
  },
  {
    &quot;id&quot;: 3385,
    &quot;success&quot;: true,
    &quot;message&quot;: &quot;Role updated successfully.&quot;
  }
]

</pre></div>


<h3 class="wp-block-heading" id="deleteusers">users &gt; delete</h3>



<p>This method deletes a SearchStax user from an Account.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
DELETE https://app.searchstax.com/api/rest/users/?account=&amp;lt;account_name&gt;&amp;amp;id=&amp;lt;user_id&gt;
</pre></div>


<p>where&nbsp;<strong>?account=&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and&nbsp;<strong>&amp;id=&lt;user_id&gt;</strong>&nbsp;is the ID of the user.</p>



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



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl -H &quot;Content-Type: application/json&quot; -H &quot;Authorization: Token $TOKEN&quot; 
     -X DELETE &quot;https://app.searchstax.com/api/rest/users/?account=$ACCOUNT&amp;id=$DELUSER&quot;
</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$DELUSER = &quot;1234&quot;

$RESULT = Invoke-RestMethod -Method Delete -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/users/?account=$ACCOUNT&amp;id=$DELUSER&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>This method returns a JSON document containing a success message.</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%"><div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
   &quot;id&quot;:3204,
   &quot;success&quot;:true,
   &quot;message&quot;:&quot;User deleted successfully.&quot;
}
</pre></div></div>
</div>
</div>
</div>



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



<p>Do not hesitate to contact the&nbsp;<a href="mailto:support@demo.searchstax.com?subject=ASearchStax%20Cloud%20API%20–%20Users" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-users-api/">SearchStax Users API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-users-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solr Basic Auth API</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-basic-auth-api/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-basic-auth-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 10:10:05 +0000</pubDate>
				<category><![CDATA[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=7660</guid>

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



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



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



<p>The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments.</p>



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



<p>This page describes how to manage <a href="https://demo.searchstax.com/docs/searchstax-cloud-deployment-security/">Solr Basic Auth</a> features through the API.</p>



<p>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="https://demo.searchstax.com/docs/userroles/#userroles">SearchStax User Roles</a>.</p>
</div>



<p>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>Contents:</p>



<ul class="wp-block-list">
<li><a href="#solr-basic-auth">Solr Basic Auth</a>
<ul class="wp-block-list">
<li><a href="#enablesolrauth">account &gt; deployment &gt; solr &gt; auth &gt; enable_basic_auth</a></li>



<li><a href="#disablesolrauth">account &gt; deployment &gt; solr &gt; auth &gt; disable_basic_auth</a></li>



<li><a href="#addsolruser">account &gt; deployment &gt; solr &gt; auth &gt; add_solr_user</a></li>



<li><a href="#deletesolruser">account &gt; deployment &gt; solr &gt; auth &gt; delete_solr_user</a></li>



<li><a href="#getsolrusers">account &gt; deployment &gt; solr &gt; auth &gt; get_solr_users</a></li>



<li><a href="#setsolrpassword">account &gt; deployment &gt; solr &gt; auth &gt; set_solr_user_password</a></li>



<li><a href="#setsolrrole">account &gt; deployment &gt; solr &gt; auth &gt; set_solr_user_role</a></li>
</ul>
</li>
</ul>



<p>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-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-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 A</a><a href="/docs/staxapi2alerts/">P</a><a href="https://demo.searchstax.com/docs/staxapi2alerts/">I</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="solr-basic-auth">Solr Basic Auth</h2>



<p>The SearchStax Provisioning API provides a selection of methods for managing Solr basic authentication from a remote application.</p>



<h4 class="wp-block-heading" id="enablesolrauth">account &gt; deployment &gt; solr &gt; auth &gt; enable_basic_auth</h4>



<p>This method enables basic auth for a Solr deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/auth/enable/

</pre></div>


<p>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>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>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/auth/enable/&quot; \
  --header &quot;Authorization: APIkey &lt;apikey&gt;&quot; 
</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/auth/enable/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>This method returns a JSON document containing a success message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;message&quot;: &quot;Basic authentication successfully Enabled for Solr&quot;,
  &quot;success&quot;: &quot;true&quot;
}

</pre></div>


<h3 class="wp-block-heading" id="disablesolrauth">account &gt; deployment &gt; solr &gt; auth &gt; disable_basic_auth</h3>



<p>This method disables basic auth for a Solr deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/auth/disable/
</pre></div>


<p>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>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>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/auth/disable/&quot; \
  --header &quot;Authorization: APIkey &lt;apikey&gt;&quot; \
</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/auth/disable/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>This method returns a JSON document containing a success message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;message&quot;: &quot;Basic authentication successfully Disabled for Solr&quot;,
  &quot;success&quot;: &quot;true&quot;
}

</pre></div>


<h3 class="wp-block-heading" id="addsolruser">account &gt; deployment &gt; solr &gt; auth &gt; add_solr_user</h3>



<p>This method adds a Solr user to the deployment. Basic auth must be enabled.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/auth/add-user/

</pre></div>


<p>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>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>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
    &quot;username&quot; : &quot;demoSolrUser&quot;,
    &quot;password&quot; : &quot;test123&quot;,
    &quot;role&quot; : &quot;Admin&quot;
}

</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>username</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the Solr user name.</td><td>&#8220;demoSolrUser&#8221;</td></tr><tr><td><strong>password</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the Solr user&#8217;s password.</td><td>&#8220;test123&#8221;</td></tr><tr><td><strong>role</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the Solr role: Admin, Read, Write, or ReadWrite.</td><td>&#8220;Admin&#8221;</td></tr></tbody></table></figure>



<p>See&nbsp;<a href="/docs/searchstax-cloud-deployment-security/#solrauth/">Solr Basic Authentication</a>&nbsp;for an explanation of the Solr roles.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/auth/add-user/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{
    \&quot;username\&quot; : \&quot;demoSolrUser\&quot;,
    \&quot;password\&quot; : \&quot;test123\&quot;,
    \&quot;role\&quot; : \&quot;Admin\&quot;
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    username=&#039;demoSolrUser&#039;
    password=&#039;test123&#039;
    role=&#039;Admin&#039;
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/auth/add-user/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>This method returns a JSON document containing a success message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;message&quot;: &quot;User successfully added&quot;,
  &quot;success&quot;: &quot;true&quot;
}

</pre></div>


<h3 class="wp-block-heading" id="deletesolruser">account &gt; deployment &gt; solr &gt; auth &gt; delete_solr_user</h3>



<p>This method deletes a Solr user from a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/auth/delete-user/

</pre></div>


<p>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>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>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
    &quot;username&quot; : &quot;demoSolrUser&quot;
}

</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>username</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the Solr user name.</td><td>&#8220;demoSolrUser&#8221;</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/auth/delete-user/&quot; \
  --header &quot;Authorization: APIkey &lt;apikey&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{
    \&quot;username\&quot; : \&quot;demoSolrUser\&quot;
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    username=&#039;demoSolrUser&#039;
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/auth/delete-user/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>This method returns a JSON document containing a success message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;message&quot;: &quot;User successfully deleted!&quot;,
  &quot;success&quot;: &quot;true&quot;
}

</pre></div>


<h3 class="wp-block-heading" id="getsolrusers">account &gt; deployment &gt; solr &gt; auth &gt; get_solr_users</h3>



<p>This method gets the Solr users for a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/auth/get-users/

</pre></div>


<p>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>This method uses either&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#key/">Token</a>&nbsp;authentication or&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#key/">API Key</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/auth/get-users/&quot; \
  --header &quot;Authorization: APIkey &lt;apikey&gt;&quot; 

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/auth/get-users/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing the Solr users and the roles associated with them.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;success&quot;: &quot;true&quot;,
  &quot;users&quot;: {
    &quot;demoSolrUser&quot;: {
      &quot;roles&quot;: &#x5B; &quot;Read&quot;, &quot;Write&quot;, &quot;Admin&quot; ]
    }
  }
}

</pre></div>


<h3 class="wp-block-heading" id="setsolrpassword">account &gt; deployment &gt; solr &gt; auth &gt; set_solr_user_password</h3>



<p>This method sets a password for a Solr user.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/auth/set-password/

</pre></div>


<p>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>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>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
    &quot;username&quot; : &quot;demoSolrUser&quot;,
    &quot;password&quot;: &quot;test456&quot;
}

</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>username</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the Solr user name.</td><td>&#8220;demoSolrUser&#8221;</td></tr><tr><td><strong>password</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the Solr user&#8217;s password.</td><td>&#8220;test456&#8221;</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/auth/set-password/&quot; \
  --header &quot;Authorization: APIkey &lt;apikey&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{
    \&quot;username\&quot; : \&quot;demoSolrUser\&quot;,
    \&quot;password\&quot;: \&quot;test456\&quot;
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    username=&#039;demoSolrUser&#039;
    password=&#039;test456&#039;
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/auth/set-password/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>This method returns a JSON document containing a success message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;message&quot;: &quot;Password successfully updated!&quot;,
  &quot;success&quot;: &quot;true&quot;
}

</pre></div>


<h3 class="wp-block-heading" id="setsolrrole">account &gt; deployment &gt; solr &gt; auth &gt; set_solr_user_role</h3>



<p>This method sets the Solr user&#8217;s role. Available roles are Admin, Read, Write, and ReadWrite.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/auth/set-role/

</pre></div>


<p>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>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>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
    &quot;username&quot; : &quot;demoSolrUser&quot;,
    &quot;role&quot; : &quot;Read&quot;
}

</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>username</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the Solr user name.</td><td>&#8220;demoSolrUser&#8221;</td></tr><tr><td><strong>role</strong><br><span style="color:#ff0000" class="has-inline-color">required</span><br>string</td><td>This is the Solr role: Admin, Read, Write, or ReadWrite.</td><td>&#8220;Read&#8221;</td></tr></tbody></table></figure>



<p>See&nbsp;<a href="/docs/security/#solrauth/">Solr Basic Authentication</a>&nbsp;for an explanation of the Solr roles.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/auth/set-role/&quot; \
  --header &quot;Authorization: APIkey &lt;apikey&gt;&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --data &quot;{
    \&quot;username\&quot; : \&quot;demoSolrUser\&quot;,
    \&quot;role\&quot; : \&quot;Read\&quot;
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    username=&#039;demoSolrUser&#039;
    role=&#039;Read&#039;
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/auth/set-role/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>This method returns a JSON document containing a success message.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;message&quot;: &quot;Successfully updated user role!&quot;,
  &quot;success&quot;: &quot;true&quot;
}

</pre></div>


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



<p>Do not hesitate to contact the&nbsp;<a href="mailto:support@demo.searchstax.com?subject=SearchStax%20Cloud%20API%20–%20Basic%20Auth" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-basic-auth-api/">Solr Basic Auth API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-basic-auth-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solr IP Filtering API</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-ipfilter-api/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-ipfilter-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 09:57:52 +0000</pubDate>
				<category><![CDATA[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=7653</guid>

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



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



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



<p>The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments.</p>



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



<p>This page describes how to set up IP Filtering using the API methods.</p>



<p>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>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>Contents:</p>



<ul class="wp-block-list">
<li><a href="#ipfiltering">IP Filtering</a>
<ul class="wp-block-list">
<li><a href="#ipfilterlist">account &gt; deployment &gt; ip-filter &gt; list</a></li>



<li><a href="#IPadd">account &gt; deployment &gt; ip-filter &gt; add_cidr_ip</a></li>



<li><a href="#IPdelete">account &gt; deployment &gt; ip-filter &gt; delete_cidr_ip</a></li>



<li><a href="#ipupdate">account &gt; deployment &gt; ip-filter &gt; update_cidr_ip</a></li>
</ul>
</li>
</ul>



<p>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-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-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="ipfiltering">IP Filtering</h2>



<p>The SearchStax Provisioning API includes methods for applying IP Filters to deployments.</p>



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



<p>This method returns a list of IP Filters from a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/ip-filter/?page=&amp;lt;n&gt;

</pre></div>


<p>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. The query parameter&nbsp;<strong>page</strong>&nbsp;is a number,&nbsp;<strong>&lt;n&gt;</strong>, that defaults to 1.</p>



<p>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>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/ip-filter/?page=&lt;n&gt;&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$RESULTS = Invoke-RestMethod -Method Get -Headers $headers `
          -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/ip-filter/?page=1&quot; 
$RESULTS = $RESULTS | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing a list of IP Filters.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
&#x5B;
  {
    &quot;services&quot;: &#x5B;
      &quot;solr&quot;
    ],
    &quot;cidr_ip&quot;: &quot;0.0.0.0/0&quot;,
    &quot;description&quot;: &quot;&quot;
  }
]

</pre></div>


<h3 class="wp-block-heading" id="IPadd">account &gt; deployment &gt; ip-filter &gt; add-cidr-ip</h3>



<div class="alert alert-warning">
<h3>Setting IP Filters on Azure Deployments</h3>
<p>When using add-cidr-ip in an Azure environment, IP filters for Zookeeper and Solr must both be explicitly set.</p>
<p>SearchStax requires Zookeeper to be locked down by IP filters. To then leave Solr open to any connection (a common request), set the Solr IP filter to &#8216;0.0.0.0/0&#8217;.</p>
</div>



<p>This method adds a new IP Filter to a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/ip-filter/add-cidr-ip/

</pre></div>


<p>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>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>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    services=@(&#039;solr&#039;,&#039;zk&#039;)
    cidr_ip=&#039;100.100.100.100&#039;
    description=&#039;Added by API&#039;
}

</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>services</strong><br><span class="has-inline-color" style="color: #ff0000;">required</span><br>list of strings</td>
<td>Which services to apply the filter to. Allowed values are &#8216;solr&#8217; and &#8216;zk&#8217;.</td>
<td>(&#8216;solr&#8217;,&#8217;zk&#8217;)</td>
</tr>
<tr>
<td><strong>cidr_ip</strong><br><span class="has-inline-color" style="color: #ff0000;">required</span><br>string</td>
<td>The IP address.</td>
<td>&#8220;100.100.100.100&#8221;</td>
</tr>
<tr>
<td><strong>description</strong><br><span class="has-inline-color" style="color: #32cd32;">optional</span><br>string</td>
<td>A very brief label.</td>
<td>&#8220;Added by API&#8221;</td>
</tr>
</tbody>
</table>
</figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/ip-filter/add-cidr-ip/&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --data &#039;{&quot;services&quot;:&#x5B;&quot;solr&quot;,&quot;zk&quot;],&quot;cidr_ip&quot;:&quot;100.100.100.100&quot;,&quot;description&quot;:&quot;Added by API&quot;}&#039;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    services=@(&#039;solr&#039;,&#039;zk&#039;)
    cidr_ip=&#039;100.100.100.100&#039;
    description=&#039;Added by PowerShell&#039;
}
$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/ip-filter/add-cidr-ip/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document confirming success.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;detail&quot;: null,
  &quot;success&quot;: true
}


</pre></div>


<h3 class="wp-block-heading" id="IPdelete">account &gt; deployment &gt; ip-filter &gt; delete-cidr-ip</h3>



<p>This method deletes an IP Filter from a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/ip-filter/delete-cidr-ip/

</pre></div>


<p>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>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>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    cidr_ip=&#039;100.100.100.100&#039;
}

</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>cidr_ip</strong><br /><span class="has-inline-color" style="color: #ff0000;">required</span><br />string</td>
<td>The IP address of the filter to delete.</td>
<td>&#8220;100.100.100.100&#8221;</td>
</tr>
</tbody>
</table>
</figure>


<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/ip-filter/delete-cidr-ip/&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --data &#039;{&quot;cidr_ip&quot;:&quot;100.100.100.100&quot;}&#039;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    cidr_ip=&#039;100.100.100.100&#039;
}
$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/ip-filter/delete-cidr-ip/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document confirming success.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;detail&quot;: null,
  &quot;success&quot;: true
}


</pre></div>


<h3 class="wp-block-heading" id="ipupdate">account &gt; deployment &gt; ip-filter &gt; update-cidr-ip</h3>



<p>This method updates an IP Filter in a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/ip-filter/update-cidr-ip/

</pre></div>


<p>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>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>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    services=@(&#039;solr&#039;,&#039;zk&#039;)
    cidr_ip=&#039;100.100.100.100&#039;
    description=&#039;Updated by API&#039;
}

</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>services</strong><br /><span class="has-inline-color" style="color: #ff0000;">required</span><br />list of strings</td>
<td>Which services to apply the filter to. Allowed values are &#8216;solr&#8217; and &#8216;zk&#8217;.</td>
<td>(&#8216;solr&#8217;,&#8217;zk&#8217;)</td>
</tr>
<tr>
<td><strong>cidr_ip</strong><br /><span class="has-inline-color" style="color: #ff0000;">required</span><br />string</td>
<td>The IP address.</td>
<td>&#8220;100.100.100.100&#8221;</td>
</tr>
<tr>
<td><strong>description</strong><br /><span class="has-inline-color" style="color: #32cd32;">optional</span><br />string</td>
<td>A very brief label.</td>
<td>&#8220;Added by API&#8221;</td>
</tr>
</tbody>
</table>
</figure>


<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/ip-filter/add-cidr-ip/&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --data &#039;{&quot;services&quot;:&#x5B;&quot;solr&quot;,&quot;zk&quot;],&quot;cidr_ip&quot;:&quot;100.100.100.100&quot;,&quot;description&quot;:&quot;Updated by API&quot;}&#039;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    services=@(&#039;solr&#039;,&#039;zk&#039;)
    cidr_ip=&#039;100.100.100.100&#039;
    description=&#039;Updated by PowerShell&#039;
}
$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/ip-filter/update-cidr-ip/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document confirming success.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;detail&quot;: null,
  &quot;success&quot;: true
}


</pre></div>


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



<p>Do not hesitate to contact the&nbsp;<a href="mailto:support@demo.searchstax.com?subject=SearchStax%20Cloud%20API%20–%20IP%20Filtering" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-ipfilter-api/">Solr IP Filtering API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-ipfilter-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solr Deployment API</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-deployment-api/</link>
					<comments>https://demo.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[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.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. Platinum and Platinum Plus Clients Only! The SearchStax&#8230; <a class="more-link" href="https://demo.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://demo.searchstax.com/docs/searchstax-cloud-deployment-api/">Solr Deployment API</a> appeared first on <a href="https://demo.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>The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments.</p>



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



<p>This page describes how to create and manage deployments using API methods.</p>



<p>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>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>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>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>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-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/

</pre></div>


<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



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



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
    &quot;name&quot;: &quot;SolrFromAPI&quot;,
    &quot;application&quot;: &quot;Solr&quot;,
    &quot;application_version&quot;: &quot;7.3.1&quot;,
    &quot;termination_lock&quot;: false,
    &quot;plan_type&quot;: &quot;DedicatedDeployment&quot;,
    &quot;plan&quot;: &quot;NDN1-AWS-S&quot;,
    &quot;region_id&quot;: &quot;ap-northeast-1&quot;,
    &quot;cloud_provider_id&quot;: &quot;aws&quot;,
    &quot;num_additional_app_nodes&quot;: 0
    &quot;private_vpc&quot;: 2
}
</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;NDN1-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>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --data &quot;{
    \&quot;name\&quot;: \&quot;SolrFromAPI\&quot;,
    \&quot;application\&quot;: \&quot;Solr\&quot;,
    \&quot;application_version\&quot;: \&quot;7.3.1\&quot;,
    \&quot;termination_lock\&quot;: false,
    \&quot;plan_type\&quot;: \&quot;DedicatedDeployment\&quot;,
    \&quot;plan\&quot;: \&quot;NDN1-AWS-S\&quot;,
    \&quot;region_id\&quot;: \&quot;ap-northeast-1\&quot;,
    \&quot;cloud_provider_id\&quot;: \&quot;aws\&quot;,
    \&quot;num_additional_app_nodes\&quot;: \&quot;0\&quot;
    \&quot;private_vpc\&quot;: \&quot;2\&quot;
    }&quot;
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

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

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -Body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>The response is a JSON document containing &#8230;</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;name&quot;: &quot;SolrFromAPI&quot;,
  &quot;uid&quot;: &quot;ss123456&quot;,
  &quot;application&quot;: &quot;Solr&quot;,
  &quot;application_version&quot;: &quot;7.5.0&quot;,
  &quot;tier&quot;: &quot;Silver&quot;,
  &quot;http_endpoint&quot;: null,
  &quot;status&quot;: &quot;Pending&quot;,
  &quot;provision_state&quot;: &quot;Pending&quot;,
  &quot;termination_lock&quot;: false,
  &quot;plan_type&quot;: &quot;DedicatedDeployment&quot;,
  &quot;plan&quot;: &quot;NDN1-AWS-S&quot;,
  &quot;is_master_slave&quot;: false,
  &quot;vpc_type&quot;: &quot;Public&quot;,
  &quot;vpc_name&quot;: &quot;&quot;,
  &quot;region_id&quot;: &quot;us-west-1&quot;,
  &quot;cloud_provider&quot;: &quot;Amazon Web Services&quot;
  &quot;cloud_provider_id&quot;: &quot;aws&quot;,
  &quot;num_additional_app_nodes&quot;: 0,
  &quot;deployment_type&quot;: &quot;Dedicated Node&quot;,
  &quot;num_nodes_default&quot;: 1,
  &quot;num_zookeeper_nodes_default&quot;: 0,
  &quot;num_additional_zookeeper_nodes&quot;: 0,
  &quot;servers&quot;: &#x5B;],
  &quot;zookeeper_ensemble&quot;: null,
  &quot;tag&quot;: &#x5B;],
  &quot;specifications&quot;: {
    &quot;jvm_heap_memory&quot;: &quot;536870912&quot;,
    &quot;disk_space&quot;: &quot;8589934592&quot;,
    &quot;physical_memory&quot;: &quot;1073741824&quot;
  },
  &quot;backups_enabled&quot;: false,
  &quot;dr_enabled&quot;: false,
  &quot;sla_active&quot;: false,
  &quot;state_changed&quot;: null,
  &quot;term_end&quot;: null,
  &quot;date_created&quot;: &quot;2023-01-25&quot;,
  &quot;application_nodes_count&quot;: 1,
  &quot;selected_node_count&quot;: 0,
  &quot;savings&quot;: {
    &quot;one_year_saving_perc&quot;: &quot;52.38&quot;,
    &quot;three_year_saving_perc&quot;: &quot;59.52&quot;
  },
  &quot;dr_plan_type&quot;: null,
  &quot;subscription&quot;: &quot;monthly&quot;,
  &quot;security_pack&quot;: false,
  &quot;desired_tier&quot;: &quot;silver&quot;,
  &quot;backup&quot;: null,
  &quot;onboarding&quot;: false,
  &quot;selected_plan_memory&quot;: 0.0,
  &quot;selected_plan_storage&quot;: 0.0,
  &quot;dr&quot;: null,
  &quot;payment_method&quot;: null,
  &quot;purchase_order&quot;: null
}
</pre></div>


<p>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>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-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
DELETE https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request DELETE &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$RESULT = Invoke-RestMethod -Method Delete -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>A success response will identify the deleted deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;success&quot;: &quot;true&quot;,
  &quot;message&quot;: &quot;Successfully deleted ss123456&quot;
}
</pre></div>


<p>Invalid UID will throw a&nbsp;<strong>Not Found</strong>&nbsp;error.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;detail&quot;: &quot;Not found.&quot;
}
</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>If the Termination Lock is set, you&#8217;ll see a message like this one:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
   &quot;detail&quot;:&quot;This deployment has Termination Lock enabled. Please first remove the termination lock, and then retry deleting the deployment.&quot;
}
</pre></div>


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



<p>This method lists the deployments of an account along with their deployment details.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/?page=&amp;lt;n&gt;&amp;amp;page_size=&amp;lt;m&gt;

</pre></div>


<p>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>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot;
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$DEPLOYMENTS = Invoke-RestMethod -Method Get -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/&quot; 
$DEPLOYMENTS = $DEPLOYMENTS | ConvertTo-Json
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;count&quot;: 3,
  &quot;next&quot;: null,
  &quot;previous&quot;: null,
  &quot;results&quot;: &#x5B;
    {
      &quot;name&quot;: &quot;ListByAPI&quot;,
      &quot;uid&quot;: &quot;ss123456&quot;,
      &quot;application&quot;: &quot;Solr&quot;,
      &quot;application_version&quot;: &quot;8.11.2&quot;,
      &quot;tier&quot;: &quot;Silver&quot;,
      &quot;http_endpoint&quot;: &quot;https://ss123456-7hp6b4y0-us-west-1-aws.searchstax.com/solr/&quot;,
      &quot;status&quot;: &quot;Configuring Deployment&quot;,
      &quot;provision_state&quot;: &quot;Pending&quot;,
      &quot;termination_lock&quot;: false,
      &quot;plan_type&quot;: &quot;DedicatedDeployment&quot;,
      &quot;plan&quot;: &quot;NDC128-AWS-G&quot;,
      &quot;is_master_slave&quot;: false,
      &quot;vpc_type&quot;: &quot;Public&quot;,
      &quot;vpc_name&quot;: &quot;&quot;,
      &quot;region_id&quot;: &quot;us-west-1&quot;,
      &quot;cloud_provider&quot;: &quot;Amazon Web Services&quot;,
      &quot;cloud_provider_id&quot;: &quot;aws&quot;,
      &quot;num_additional_app_nodes&quot;: 0,
      &quot;deployment_type&quot;: &quot;Dedicated Cluster&quot;,
      &quot;num_nodes_default&quot;: 2,
      &quot;num_zookeeper_nodes_default&quot;: 3,
      &quot;num_additional_zookeeper_nodes&quot;: 0,
      &quot;servers&quot;: &quot;ss123456-5 ss123456-4 ss123456-3 ss123456-2 ss123456-1&quot;,
      &quot;zookeeper_ensemble&quot;: &quot;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&quot;,
      &quot;tag&quot;: &quot;&quot;,
      &quot;specifications&quot;: &quot;@{disk_space=; physical_memory=; jvm_heap_memory=}&quot;,
      &quot;backups_enabled&quot;: false,
      &quot;dr_enabled&quot;: false,
      &quot;sla_active&quot;: false,
      &quot;state_changed&quot;: null,
      &quot;term_end&quot;: null,
      &quot;date_created&quot;: &quot;2023-01-25&quot;,
      &quot;application_nodes_count&quot;: 2,
      &quot;selected_node_count&quot;: 0,
      &quot;savings&quot;: &quot;@{one_year_saving_perc=0.00; three_year_saving_perc=15.00}&quot;,
      &quot;dr_plan_type&quot;: null,
      &quot;subscription&quot;: &quot;yearly&quot;,
      &quot;security_pack&quot;: false,
      &quot;desired_tier&quot;: &quot;silver&quot;,
      &quot;backup&quot;: null,
      &quot;onboarding&quot;: false,
      &quot;selected_plan_memory&quot;: 0.0,
      &quot;selected_plan_storage&quot;: 0.0,
      &quot;dr&quot;: null,
      &quot;payment_method&quot;: null,
      &quot;purchase_order&quot;: null
    }, &lt;plus more deployments, if any...&gt;
</pre></div>


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



<p>This method lists the properties of a specific deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$DETAILS = Invoke-RestMethod -Method Get -ContentType &#039;application/json&#039; -Headers $headers `
          -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/&quot; 
$DETAILS1 = $DETAILS | ConvertTo-Json
</pre></div>


<p>The response is a JSON document containing the detailed properties of a deployment:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;name&quot;: &quot;ReadByAPI&quot;,
  &quot;uid&quot;: &quot;ss123456&quot;,
  &quot;application&quot;: &quot;Solr&quot;,
  &quot;application_version&quot;: &quot;7.7.2&quot;,
  &quot;tier&quot;: &quot;Silver&quot;,
  &quot;http_endpoint&quot;: &quot;https://ss123456-hjmll0ug-us-west-1-aws.searchstax.com/solr/&quot;,
  &quot;status&quot;: &quot;Running&quot;,
  &quot;provision_state&quot;: &quot;Done&quot;,
  &quot;termination_lock&quot;: true,
  &quot;plan_type&quot;: &quot;DedicatedDeployment&quot;,
  &quot;plan&quot;: &quot;NDN1&quot;,
  &quot;is_master_slave&quot;: false,
  &quot;vpc_type&quot;: &quot;Public&quot;,
  &quot;vpc_name&quot;: &quot;&quot;,
  &quot;region_id&quot;: &quot;us-west-1&quot;,
  &quot;cloud_provider&quot;: &quot;Amazon Web Services&quot;,
  &quot;cloud_provider_id&quot;: &quot;aws&quot;,
  &quot;num_additional_app_nodes&quot;: 0,
  &quot;deployment_type&quot;: &quot;Dedicated Node&quot;,
  &quot;num_nodes_default&quot;: 1,
  &quot;num_zookeeper_nodes_default&quot;: 0,
  &quot;num_additional_zookeeper_nodes&quot;: 0,
  &quot;servers&quot;: &#x5B;
    &quot;ss123456-1&quot;
  ],
  &quot;zookeeper_ensemble&quot;: &quot;ss123456-hjmll0ug-1-us-west-1-aws.searchstax.com:2181&quot;,
  &quot;tag&quot;: &#x5B;
    &quot;DoNotDelete&quot;
  ],
  &quot;specifications&quot;: {
    &quot;jvm_heap_memory&quot;: &quot;536870912&quot;,
    &quot;disk_space&quot;: &quot;8589934592&quot;,
    &quot;physical_memory&quot;: &quot;1073741824&quot;
  },
  &quot;backups_enabled&quot;: false,
  &quot;dr_enabled&quot;: false,
  &quot;sla_active&quot;: false,
  &quot;state_changed&quot;: &quot;1571931445&quot;,
  &quot;term_end&quot;: null,
  &quot;date_created&quot;: &quot;2019-10-24&quot;,
  &quot;application_nodes_count&quot;: 1,
  &quot;selected_node_count&quot;: 0,
  &quot;savings&quot;: {
    &quot;one_year_saving_perc&quot;: &quot;52.50&quot;,
    &quot;three_year_saving_perc&quot;: &quot;64.38&quot;
  },
  &quot;dr_plan_type&quot;: null,
  &quot;subscription&quot;: &quot;monthly&quot;,
  &quot;security_pack&quot;: false,
  &quot;desired_tier&quot;: null,
  &quot;backup&quot;: null,
  &quot;onboarding&quot;: false,
  &quot;selected_plan_memory&quot;: 0.0,
  &quot;selected_plan_storage&quot;: 0.0,
  &quot;dr&quot;: null,
  &quot;payment_method&quot;: null,
  &quot;purchase_order&quot;: null
}
</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>This method gets the deployment&#8217;s health using its UID.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/deployment-health/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/deployment-health/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 

</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/deployment-health/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>Responses are JSON documents like those shown below. These examples are from a three-node cluster:</p>



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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{ &quot;status&quot;: &quot;OK&quot;, &quot;level&quot;: &quot;success&quot; }

</pre></div>


<ul class="wp-block-list">
<li>One or two of the three servers is down.</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{ &quot;status&quot;: &quot;Warn&quot;, &quot;level&quot;: &quot;warning&quot; }

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{ &quot;status&quot;: &quot;Error&quot;, &quot;level&quot;: &quot;danger&quot; }

</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-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{ &quot;detail&quot;: &quot;Not found.&quot; }


</pre></div>


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



<p>This method gets the health of a deployment&#8217;s collections.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/collection-health/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/collections-health/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/collections-health/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{ &quot;success&quot;: true, &quot;healthy&quot;: true}

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{ &quot;success&quot;: true, &quot;healthy&quot;: false }

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{ &quot;success&quot;: false, &quot;error&quot;: &quot;some message&quot; }

</pre></div>


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



<p>This method lets you restart the Solr or Zookeeper nodes of a cluster in a rolling manner. </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
PUT https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/rolling-restart/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
    &quot;solr&quot;: true,
    &quot;zookeeper&quot;: false
}
</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>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request PUT &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/rolling-restart/&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --data &quot;{
    \&quot;solr\&quot;: true,
    \&quot;zookeeper\&quot;: false
    }&quot;
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    solr=&#039;true&#039;
    zookeeper=&#039;false&#039;
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Put -Body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/rolling-restart/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>The response is a JSON document containing &#8230;</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;detail&quot;: &quot;Rolling restart initiated&quot;
}
</pre></div>


<p>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>This method starts an individual Solr node using its UID.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/server/&amp;lt;node&gt;/start-solr/

</pre></div>


<p>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>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>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/start-solr/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$NODE = &quot;ss123456-4&quot;

$RESULT = Invoke-RestMethod -Method Post -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/server/$NODE/start-solr/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>The response is a JSON document similar to this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;success&quot;: true
}
</pre></div>


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



<p>This method stops an individual Solr node using its UID.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/server/&amp;lt;node&gt;/stop-solr/

</pre></div>


<p>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>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>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/stop-solr/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$NODE = &quot;ss123456-4&quot;

$RESULT = Invoke-RestMethod -Method Post -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/server/$NODE/stop-solr/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>The response is a JSON document similar to this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;success&quot;: true
}

</pre></div>


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



<p>This method returns the status of an individual Solr node using its UID.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/server/&amp;lt;node&gt;/host-status/

</pre></div>


<p>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>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>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&lt;node&gt;/host-status/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$NODE = &quot;4&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/server/$NODE/host-status/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>The response is a JSON document similar to this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
{
  &quot;level&quot;: &quot;success&quot;,
  &quot;status&quot;: &quot;OK&quot;
}
</pre></div>


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



<p>This method returns a list of nodes making up a Solr deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/server/

</pre></div>


<p>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>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>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/server/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/server/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>The response is a JSON document similar to this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
&#x5B;
  {
    &quot;sn&quot;: 1,
    &quot;node&quot;: &quot;ss123456-1&quot;,
    &quot;private_address&quot;: &quot;10.0.1.78&quot;,
    &quot;dns_address&quot;: &quot;ss123456-jkzg2pr0-1-ca-central-1-aws.searchstax.com&quot;,
    &quot;status&quot;: &quot;Running&quot;,
    &quot;solr&quot;: false,
    &quot;zookeeper&quot;: true,
    &quot;silk&quot;: false
  },
  {
    &quot;sn&quot;: 2,
    &quot;node&quot;: &quot;ss123456-2&quot;,
    &quot;private_address&quot;: &quot;10.0.1.74&quot;,
    &quot;dns_address&quot;: &quot;ss123456-jkzg2pr0-2-ca-central-1-aws.searchstax.com&quot;,
    &quot;status&quot;: &quot;Running&quot;,
    &quot;solr&quot;: false,
    &quot;zookeeper&quot;: true,
    &quot;silk&quot;: false
  },
]
</pre></div>


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



<p>This method lists the available deployment plans and the regions where those plans are available.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/plan/?page=1&amp;amp;application=Solr&amp;amp;plan_type=DedicatedPlan

</pre></div>


<p>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 either &#8220;Solr&#8221; or &#8220;elasticsearch&#8221;; and&nbsp;<strong>plan_type</strong>&nbsp;is &#8220;DedicatedPlan&#8221;. (The API currently supports only one plan type.)</p>



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



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>




<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/plan/?page=1&amp;application=Solr&amp;plan_type=DedicatedPlan&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/plan/?page=1&amp;application=Solr&amp;plan_type=DedicatedPlan&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>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>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-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/usage/&amp;lt;year&gt;/&amp;lt;month&gt;/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/usage/&lt;year&gt;/&lt;month&gt;/ \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 

</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$YEAR = &quot;2023&quot;
$MONTH = &quot;3&quot;

$RESULTS = Invoke-RestMethod -Method Get -Headers $headers `
          -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/usage/$YEAR/$MONTH/&quot; 
$RESULTS = $RESULTS | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing a list of usage events like this one:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
  {
    &quot;startDate&quot;: &quot;2022-04-01&quot;,
    &quot;endDate&quot;: &quot;2022-04-30&quot;,
    &quot;objectID&quot;: &quot;ss123456&quot;,
    &quot;SKU&quot;: &quot;NDN4-AWS-S&quot;,
    &quot;currency&quot;: &quot;USD&quot;,
    &quot;amount&quot;: &quot;192.00&quot;,
    &quot;usage&quot;: 30,
    &quot;tagCollection&quot;: &#x5B;]
  },

</pre></div>


<p><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>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-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/usage-extended/&amp;lt;year&gt;/&amp;lt;month&gt;/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/usage-extended/&lt;year&gt;/&lt;month&gt;/ \
  --header &quot;Authorization: Token &lt;token&gt;&quot; 

</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$YEAR = &quot;2023&quot;
$MONTH = &quot;3&quot;

$RESULTS = Invoke-RestMethod -Method Get -Headers $headers `
          -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/usage-extended/$YEAR/$MONTH/&quot; 
$RESULTS = $RESULTS | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing a list of usage events like this one:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; notranslate">
  {
    &quot;startDate&quot;: &quot;2023-12-01&quot;,
    &quot;endDate&quot;: &quot;2023-12-31&quot;,
    &quot;objectID&quot;: &quot;4008_QuickStart&quot;,
    &quot;SKU&quot;: &quot;SH-STARTER&quot;,
    &quot;usage&quot;: 31,
    &quot;tagCollection&quot;: &#x5B;
      &quot;Serverless_Index&quot;,
      &quot;type:index&quot;
    ],
    &quot;currency&quot;: &quot;USD&quot;,
    &quot;amount&quot;: 9.15,
    &quot;extendedAttributes&quot;: &#x5B;
      &quot;createdDate:2023-10-06&quot;,
      &quot;totalRequests:0&quot;,
      &quot;indexID:4008&quot;,
      &quot;name:QuickStart&quot;,
      &quot;region:us-west-2&quot;,
      &quot;indexSize:0.002734375&quot;,
      &quot;indexSizeWUnit:2.8 KB&quot;,
      &quot;status:active&quot;,
      &quot;orderStatus:completed&quot;,
      &quot;subscription:yearly&quot;
    ]
  }

</pre></div>


<p><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>Do not hesitate to contact the&nbsp;<a href="mailto:support@demo.searchstax.com?subject=SearchStax%20Cloud%20API%20–%20Deployments" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-deployment-api/">Solr Deployment API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-deployment-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Private VPC API</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-private-vpc-api/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-private-vpc-api/#respond</comments>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Fri, 24 Jun 2022 01:18:46 +0000</pubDate>
				<category><![CDATA[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=11800</guid>

					<description><![CDATA[<p>Private VPC API The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments. Platinum and Platinum Plus Clients Only! The SearchStax API suite&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstax-cloud-private-vpc-api/">Continue reading <span class="screen-reader-text">Private VPC API</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-private-vpc-api/">Private VPC API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-private-vpc-api">Private VPC API</h1>



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



<p>The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments.</p>



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



<p>This page describes how to obtain the ID number of a Virtual Private Cloud (VPC) using the API. This ID is essential to creating a new deployment inside the VPC using the <a href="/docs/searchstax-cloud-deployment-api/#createdeployment">account &gt; deployment &gt; create</a> method. </p>



<p>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="../userroles/#userroles">SearchStax User Roles</a>.</p>
</div>



<p>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>Contents:</p>



<ul class="wp-block-list">
<li><a href="#PrivateVPC">Private VPC API</a>
<ul class="wp-block-list">
<li><a href="#VPClist">account &gt; privatevpc &gt; list</a></li>
</ul>
</li>
</ul>



<p>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-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="PrivateVPC">Private VPC API</h2>



<p>SearchStax provides the ability to create new Solr deployments within your VPC using the <a href="/docs/searchstax-cloud-deployment-api/#createdeployment">account &gt; deployment &gt; create</a> method. That method, in turn, requires the ID number of the VPC in your account. The following method lets you obtain this ID number. </p>



<h4 class="wp-block-heading" id="VPClist">account &gt; privatevpc &gt; list</h4>



<p>This method lists VPCs associated with an account.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/privatevpc/?page=1

</pre></div>


<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account, and <strong>&lt;page&gt;</strong> is an optional page number within the paginated result set.</p>



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



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/privatevpc&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$RESULT = Invoke-RestMethod -Method Get -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/privatevpc/&quot;
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>A successful response is a JSON object describing the VPCs of the account:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;count&quot;: 1,
  &quot;next&quot;: null,
  &quot;previous&quot;: null,
  &quot;results&quot;: &#x5B;
    {
      &quot;id&quot;: 2,
      &quot;account&quot;: &quot;test&quot;,
      &quot;region&quot;: &quot;us-east1&quot;,
      &quot;status&quot;: &quot;Active&quot;,
      &quot;address_space&quot;: &quot;10.63.0.0/16&quot;,
      &quot;name&quot;: &quot;test-vpc&quot;
    }
  ]
}

</pre></div>


<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=SearchStax%20Cloud%20Private%20VPC%20API" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-private-vpc-api/">Private VPC API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-private-vpc-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solr DNS Alias API</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-dns-alias-api/</link>
					<comments>https://demo.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[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.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. Platinum and Platinum Plus Clients Only! The SearchStax&#8230; <a class="more-link" href="https://demo.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://demo.searchstax.com/docs/searchstax-cloud-dns-alias-api/">Solr DNS Alias API</a> appeared first on <a href="https://demo.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>The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr deployments.</p>



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



<p>This page describes how to redirect a DNS alias from one deployment to another using the API.</p>



<p>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>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>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>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>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>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>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@demo.searchstax.com?subject=Vanity%20DNS%20Request" target="_blank" rel="noreferrer noopener">sales@demo.searchstax.com</a>.</p>



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



<p>This method lists the existing CNAME aliases of an account.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/dns-record/

</pre></div>


<p>where&nbsp;<strong>&lt;account_name&gt;</strong>&nbsp;is the name of the tenant account.</p>



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



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/dns-record/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$ALIASES = Invoke-RestMethod -Method Get -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/dns-record/&quot;
$ALIASES = $ALIASES | ConvertTo-Json
</pre></div>


<p>A successful response is a JSON object containing a list of CNAME records for this account:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;count&quot;: 3,
  &quot;next&quot;: null,
  &quot;previous&quot;: null,
  &quot;results&quot;: &#x5B;
    {
      &quot;associated&quot;: true,
      &quot;name&quot;: &quot;alias1&quot;,
      &quot;value&quot;: &quot;ss123456-dbw2acz6-us-west-1-aws.searchstax.com&quot;,
      &quot;deployment&quot;: &quot;ss123456&quot;,
      &quot;ttl&quot;: 300
    },
    {
      &quot;associated&quot;: true,
      &quot;name&quot;: &quot;alias2&quot;,
      &quot;value&quot;: &quot;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&quot;,
      &quot;deployment&quot;: &quot;ss123456&quot;,
      &quot;ttl&quot;: 300
    },
    {
      &quot;associated&quot;: true,
      &quot;name&quot;: &quot;alias3&quot;,
      &quot;value&quot;: &quot;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&quot;,
      &quot;deployment&quot;: &quot;ss123456&quot;,
      &quot;ttl&quot;: 300
    }
  ]
}
</pre></div>


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



<p>This method reads a single CNAME record.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/dns-record/&amp;lt;name&gt;/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/dns-record/&lt;name&gt;/&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$NAME = &quot;alias1&quot;

$ALIASES = Invoke-RestMethod -Method Get -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/dns-record/$NAME/&quot;
$ALIAS = $ALIAS | ConvertTo-Json
</pre></div>


<p>A successful response is a JSON object containing a single CNAME record from this account:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;associated&quot;: true,
  &quot;name&quot;: &quot;alias3&quot;,
  &quot;value&quot;: &quot;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&quot;,
  &quot;deployment&quot;: &quot;ss123456&quot;,
  &quot;ttl&quot;: 300
}
</pre></div>


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



<p>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-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
PATCH https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/dns-record/&amp;lt;name&gt;/

</pre></div>


<p>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>This method uses&nbsp;<a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a>&nbsp;authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    deployment=&#039;ss123456&#039;
    ttl=&#039;300&#039;
}
</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>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request PATCH &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/dns-record/&lt;name&gt;/&quot; \
  --header &quot;Content-Type: application/json&quot; \
  --header &quot;Authorization: Token &lt;token&gt;&quot; \
  --data &#039;{&quot;deployment&quot;:&quot;ss123456&quot;,&quot;ttl&quot;:&quot;300&quot;}&#039;
</pre></div>


<p>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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$NAME = &quot;alias1&quot;

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

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Patch -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/dns-record/$NAME/&quot; 
$RESULT = $RESULT | ConvertTo-Json
</pre></div>


<p>The response is a JSON document containing the updated CNAME record.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; auto-links: false; title: ; quick-code: false; notranslate">
{
  &quot;associated&quot;: true,
  &quot;name&quot;: &quot;alias3&quot;,
  &quot;value&quot;: &quot;ss123456-jdwz6lb2-us-west-1-aws.searchstax.com&quot;,
  &quot;deployment&quot;: &quot;ss123456&quot;,
  &quot;ttl&quot;: 300
}
</pre></div>


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



<p>Do not hesitate to contact the&nbsp;<a href="mailto:support@demo.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://demo.searchstax.com/docs/searchstax-cloud-dns-alias-api/">Solr DNS Alias API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-dns-alias-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solr Backup/Restore API</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-backup-restore-api/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-backup-restore-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 07:56:22 +0000</pubDate>
				<category><![CDATA[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=7603</guid>

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



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



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



<p>The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr Cloud deployments.</p>



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



<p>This page describes how to perform backup and restore operations through API methods.</p>



<p>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 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">
<h4>Account Owner, Admin, or Technical Contact</h4>
<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>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>Contents:</p>



<ul class="wp-block-list">
<li><a href="#h-account-level-methods">Account-Level Methods</a>
<ul class="wp-block-list">
<li><a href="#accountbackuplist">account &gt; backup &gt; list</a></li>



<li><a href="#h-account-gt-backup-gt-delete">account &gt; backup &gt; delete</a></li>



<li><a href="#h-account-gt-restore-gt-create">account &gt; restore &gt; create</a></li>
</ul>
</li>



<li><a href="#deploymentmethods">Deployment-Level Methods</a>
<ul class="wp-block-list">
<li><a href="#backuplist">account &gt; deployment &gt; backup &gt; list</a></li>



<li><a href="#backupcreate">account &gt; deployment &gt; backup &gt; create</a></li>



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



<li><a href="#schedulelist">account &gt; deployment &gt; backup &gt; schedule &gt; list</a></li>



<li><a href="#schedulecreate">account &gt; deployment &gt; backup &gt; schedule &gt; create</a></li>



<li><a href="#scheduledelete">account &gt; deployment &gt; backup &gt; schedule &gt; delete</a></li>



<li><a href="#restorecreate">account &gt; deployment &gt; restore &gt; create</a></li>



<li><a href="#restorestatus">account &gt; deployment &gt; restore &gt; status</a></li>
</ul>
</li>
</ul>



<p>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-dns-alias-api/">DNS Alias 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="h-account-level-methods">Account-Level Methods</h2>



<p>Backup files do not disappear when you delete the associated  deployment. However, the deployment&#8217;s ssID (ss123456) becomes invalid, making it impossible to use the <a href="#deploymentmethods">deployment-level methods</a> to restore or delete the orphaned backup files. </p>



<p>The following three methods let us list, restore, and delete orphaned backup files from the API.</p>



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



<p>This method lists the existing backups of an account, including any orphaned backup files.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/backup/

</pre></div>


<p>where <strong>&lt;account_name&gt;</strong> is the name of the tenant account.</p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/backup/&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: java; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$BACKUPS = Invoke-RestMethod -Method Get -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/backup/&quot;
$BACKUPS = $BACKUPS | ConvertTo-Json

</pre></div>


<p>A successful response contains a JSON object containing a list of backups:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
&#x5B;
    {
      &quot;id&quot;: 57198,
      &quot;backup_type&quot;: &quot;One time&quot;,
      &quot;created&quot;: &quot;2020-06-19 04:49:42 PM (2020-06-19 16:49:42 UTC)&quot;,
      &quot;status&quot;: &quot;Done&quot;,
      &quot;size&quot;: 223608,
      &quot;region&quot;: &quot;US West (N. California)&quot;,
      &quot;collections&quot;: null,
      &quot;deployment_uid&quot;: &quot;ss305854&quot;,
      &quot;deployment_name&quot;: &quot;QuickStart&quot;,
      &quot;version&quot;: &quot;8.3.1&quot;,
      &quot;cloud&quot;: &quot;aws&quot;,
      &quot;size_display&quot;: &quot;223.61 KB&quot;,
      &quot;replication_region&quot;: &quot;-&quot;,
      &quot;error_message&quot;: &#x5B;]
    }
]

</pre></div>


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



<p>This method deletes a backup from a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
DELETE /api/rest/v2/account/&amp;lt;account_name&gt;/backup/&amp;lt;buid&gt;/

</pre></div>


<p>where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, and <strong>&lt;buid&gt;</strong> is the ID of the backup.</p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request DELETE &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/backup/&lt;buid&gt;/&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$BUID = &quot;27004&quot;

$BACKUPS = Invoke-RestMethod -Method Delete -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/backup/$BUID/&quot;
$BACKUPS = $BACKUPS | ConvertTo-Json

</pre></div>


<p>A successful response returns a 204 code and an empty string. </p>





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



<p>This method restores an orphan backup file to a deployment. See also <a href="#restorecreate">account &gt; deployment &gt; restore &gt; create</a> for more versatile restore options.</p>



<div class="alert alert-warning">
<h4>Parallel Restoration</h4>
<p>Note that restoring a backup takes all collections offline until the restore is complete. </p>
<p>The <strong>parallel_restore</strong> parameter reduces restore time by rebuilding each collection in a separate thread.</p>
<p>Downtime due to a restore is difficult to estimate, ranging from minutes to hours for very large backup files. Experience must be your guide.</p>
</div>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/restore/

</pre></div>


<p>where <strong>&lt;account_name&gt;</strong> is the name of the tenant account.</p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    id=&quot;27004&quot;
    target_deployment_id=&quot;ss123456&quot;
    parallel_restore=&quot;true&quot;
}

</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>id</strong><br>
                     <span style="color:#ff0000" class="has-inline-color">required</span><br>
                     string</td>
            <td>The backup id number, from the List Backups method.</td>
            <td>&#8220;27004&#8221;</td>
        </tr>
        <tr>
            <td><strong>target_deployment_uid</strong><br>
                    <span style="color:#32cd32" class="has-inline-color">optional</span><br>
                    string</td>
           <td>The target deployment ID number.</td>
           <td>&#8220;ss123456&#8221;</td>
        </tr>
        <tr>
            <td><strong>parallel_restore</strong><br>
                    <span style="color:#32cd32" class="has-inline-color">optional</span><br>
                    string</td>
           <td>Optional ability to restore collections in parallel (multiple threads). Default is &#8220;false.&#8221;</td>
           <td>&#8220;true&#8221;</td>
        </tr>        
     </tbody>
  </table>
</figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/restore/&quot; 
  --header &quot;Content-Type: application/json&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
  --data &#039;{&quot;id&quot;:&quot;27004&quot;,&quot;target_deployment_uid&quot;:&quot;ss123456&quot;}&#039;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;

$body = @{
    id=&#039;27004&#039;
    target_deployment_uid=&#039;ss123456&#039;
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/restore/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document confirming that the restore has been scheduled.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;message&quot;: &quot;restore begun&quot;
}

</pre></div>


<h2 class="wp-block-heading" id="deploymentmethods">Deployment-Level Methods</h2>



<p>The SearchStax Provisioning API includes methods for performing backup and restore operations. If the backup file has been &#8220;orphaned&#8221; by deleting the source deployment, use the <a href="#h-account-level-methods">account-level methods</a> instead. </p>



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



<p>This method lists the existing backups of a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/backup/

</pre></div>


<p>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>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/backup/&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$BACKUPS = Invoke-RestMethod -Method Get -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/backup/&quot;
$BACKUPS = $BACKUPS | ConvertTo-Json

</pre></div>


<p>A successful response contains a JSON object containing a list of backups:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
&#x5B;
   {
     &quot;id&quot;: 26919,
     &quot;backup_type&quot;: &quot;onetime&quot;,
     &quot;created&quot;: &quot;2019-11-14T17:22:22Z&quot;,
     &quot;status&quot;: &quot;done&quot;,
     &quot;size&quot;: 210553,
     &quot;region&quot;: &quot;Amazon Web Services - us-west-1&quot;
   }
]

</pre></div>


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



<p>This method makes a one-time backup of a deployment. </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/backup/

</pre></div>


<p>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>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    region: &quot;us-west-1&quot;,
    collections: &quot;&#x5B;filmcollection]&quot;
}

</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>region</strong><br><span style="color:#32cd32" class="has-inline-color">optional</span><br>string</td><td>The region ID of the region where the backup should be created. Defaults to the deployment&#8217;s region. Region codes can be obtained using the <a href="https://demo.searchstax.com/docs/searchstax-cloud-deployment-api/#listplans">List Plans</a> method or from the deployment&#8217;s description in the SearchStax dashboard. </td><td>&#8220;us-west-2&#8221;</td></tr><tr><td><strong>collections</strong><br><span style="color:#34a300" class="has-inline-color"><meta charset="utf-8"><span style="color:#32cd32" class="has-inline-color">optional</span></span><br>list</td><td>List of collections to back up &#8211; [] to back up all collections</td><td>Bash: [&#8220;collection1&#8221;, &#8220;collection2&#8221;]<br><br>PowerShell: @(&#8216;collection1&#8217;, &#8216;collection2&#8217;)</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/backup/&quot; 
  --header &quot;Content-Type: application/json&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
  --data &#039;{&quot;region&quot;:&quot;us-west-1&quot;,&quot;collection&quot;:&quot;&#x5B;filmcollection]&quot;}&#039;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    region=&#039;us-west-1&#039;
    collections=@(&#039;filmcollection&#039;)
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/backup/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document containing the description of the new backup.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;id&quot;: 123456,
  &quot;created&quot;: &quot;2019-11-14T19:20:45.903037Z&quot;,
  &quot;status&quot;: &quot;pending&quot;,
  &quot;size&quot;: 0,
  &quot;region&quot;: &quot;Amazon Web Services - us-west-1&quot;
  &quot;collections&quot;: &#x5B;
     &quot;filmcollection&quot;
     ]
}


</pre></div>


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



<p>This method deletes a backup from a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
DELETE /api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/backup/&amp;lt;buid&gt;/

</pre></div>


<p>where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, <strong>&lt;uid&gt;</strong> is the ID of the deployment, and <strong>&lt;buid&gt;</strong> is the ID of the backup.</p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request DELETE &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/backup/&lt;buid&gt;/&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$BUID = &quot;27004&quot;

$BACKUPS = Invoke-RestMethod -Method Delete -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/backup/$BUID/&quot;
$BACKUPS = $BACKUPS | ConvertTo-Json

</pre></div>


<p>A successful response is a JSON document containing a confirmation message:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;message&quot;: &quot;Successfully deleted backup 27004&quot;,
  &quot;success&quot;: &quot;true&quot;
}

</pre></div>


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



<p>This method lists the existing backup schedules of a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET /api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/backup/schedule/

</pre></div>


<p>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>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/backup/schedule/&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$BACKUPS = Invoke-RestMethod -Method Get -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/backup/schedule/&quot;

$BACKUPS = $BACKUPS | ConvertTo-Json
</pre></div>


<p>A successful response contains a JSON object containing a list of backups:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
&#x5B;
  {
    &quot;id&quot;: 1234,
    &quot;days&quot;: &#x5B;
      &quot;mon&quot;,
      &quot;tue&quot;,
      &quot;wed&quot;,
      &quot;thu&quot;,
      &quot;fri&quot;,
      &quot;sat&quot;,
      &quot;sun&quot;
    ],
    &quot;time&quot;: &quot;00:00:00&quot;,
    &quot;retention&quot;: 1,
    &quot;collections&quot;: &#x5B;]
  }
]
</pre></div>


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



<p>This method creates a backup schedule for a deployment. </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/backup/schedule/

</pre></div>


<p>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>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    &quot;retention&quot;:  7,
    &quot;days&quot;:  &#x5B;
                 &quot;mon&quot;,
                 &quot;wed&quot;,
                 &quot;fri&quot;
             ],
    &quot;region_id&quot;:  &quot;us-west-1&quot;,
    &quot;frequency&quot;:  6,
    &quot;collections&quot;:  &#x5B;
                        &quot;filmcollection&quot;
                    ],
    &quot;time&quot;:  &quot;07:00&quot;
}

</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>time</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#32cd32" class="has-inline-color">optional</mark><br>string</td><td>Time (UTC) the backup should run. (Format: HH:MM)<br>Either time or frequency must be provided. </td><td>&#8220;07:00&#8221;</td></tr><tr><td>days<br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark> list<br></td><td>List of days on which backup should run. </td><td>[&#8220;mon&#8221;, &#8220;tue&#8221;, &#8220;wed&#8221;, &#8220;thu&#8221;, &#8220;fri&#8221;, &#8220;sat&#8221;, &#8220;sun&#8221;]<br><br>[&#8220;everyday&#8221;]</td></tr><tr><td>retention<br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark> number</td><td>Number of days to retain the backup.</td><td>7</td></tr><tr><td>frequency<br><mark style="background-color:rgba(0, 0, 0, 0);color:#32cd32" class="has-inline-color">optional</mark><br>number<br></td><td>At what interval (hours) the backups should run in the day.<br>Either time or frequency must be provided. </td><td>3</td></tr><tr><td><strong>region</strong>_id<br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark> <br>string</td><td>The region ID of the region where the backup should be created. Defaults to the deployment&#8217;s region. <br>Region codes can be obtained using the <a href="https://demo.searchstax.com/docs/searchstax-cloud-deployment-api/#listplans">List Plans</a> method or from the deployment&#8217;s description in the SearchStax dashboard. </td><td>&#8220;us-west-1&#8221;</td></tr><tr><td><strong>collections</strong><br><span style="color:#34a300" class="has-inline-color"><span style="color:#32cd32" class="has-inline-color">optional</span></span><br>list</td><td>List of collections to back up. Defaults to [] to back up all collections</td><td>Bash: [&#8220;collection1&#8221;, &#8220;collection2&#8221;]<br><br>PowerShell: @(&#8216;collection1&#8217;, &#8216;collection2&#8217;)</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/backup/schedule/&quot; 
  --header &quot;Content-Type: application/json&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
  --data &#039;{&quot;time&quot;:&quot;08:30&quot;,&quot;collections&quot;:&#x5B;&quot;filmcollection&quot;],&quot;days&quot;:&#x5B;&quot;everyday&quot;],&quot;retention&quot;:&quot;7&quot;,&quot;region_id&quot;:&quot;us-west-1&quot;}&#039;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$body = @{
    days=@(&#039;mon&#039;, &#039;wed&#039;, &#039;fri&#039;)
    time=&#039;07:00&#039;
    frequency=6
    retention=7
    region_id=&#039;us-west-1&#039;
    collections=@(&#039;filmcollection&#039;)
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/backup/schedule/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document confirming success.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;message&quot;: &quot;Backup Scheduled Successfully&quot;
}
</pre></div>


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



<p>This method deletes a backup schedule from a deployment.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
DELETE /api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/backup/schedule/&amp;lt;buid&gt;/

</pre></div>


<p>where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, <strong>&lt;uid&gt;</strong> is the ID of the deployment, and <strong>&lt;buid&gt;</strong> is the ID of the backup.</p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request DELETE &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/backup/schedule/&lt;buid&gt;/&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$BUID = &quot;27004&quot;

$BACKUPS = Invoke-RestMethod -Method Delete -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/backup/schedule/$BUID/&quot;
$BACKUPS = $BACKUPS | ConvertTo-Json

</pre></div>


<p>A successful response is a JSON document containing a confirmation message:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;success&quot;: &quot;The backup schedule has been deleted!&quot;
}

</pre></div>


<p></p>



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



<p>This method restores a backup to a deployment. Optionally, it can restore one or more individual collections from a multi-collection backup. </p>



<div class="alert alert-warning">
<h4>Restoring Individual Collections</h4>
<p>This method can be used to restore one or more individual collections from a multi-collection backup to a multi-collection deployment. Note that restoring individual collections takes all collections offline until the restore is complete. </p>
<p>The <strong>parallel_restore</strong> parameter reduces restore time by rebuilding each collection in a separate thread.</p>
<p>Downtime due to a restore is difficult to estimate, ranging from minutes to hours for very large backup files. Experience must be your guide.</p>
</div>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/restore/

</pre></div>


<p>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>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>The request body should be a &#8220;application/json&#8221; encoded object, containing the following items:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
    backup_id=&quot;27004&quot;
    replication_factor=&quot;3&quot;
    collection_name=&quot;quickstart&quot;
    collections=&#x5B;&quot;Col1&quot;, &quot;Col2&quot;, &quot;Col3&quot;]
    parallel_restore=&quot;true&quot;
}

</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>backup_id</strong><br>
                     <span style="color:#ff0000" class="has-inline-color">required</span><br>
                     string</td>
            <td>The backup id number, from the List Backups method.</td>
            <td>&#8220;27004&#8221;</td>
        </tr>
        <tr>
            <td><strong>replication_factor</strong><br>
                    <span style="color:#32cd32" class="has-inline-color">optional</span><br>
                    string</td>
           <td>Defaults to the number of nodes in the target cluster. You may ask for fewer replicas, but not for more.</td>
           <td>&#8220;2&#8221;</td>
        </tr>
        <tr>
            <td><strong>collection_name</strong><br>
                    <span style="color:#32cd32" class="has-inline-color">optional</span><br>
                    string</td>
           <td>[Deprecated.] Optional name of a single collection to restore.</td>
           <td>&#8220;quickstart&#8221;</td>
        </tr>
        <tr>
            <td><strong>collections</strong><br>
                    <span style="color:#32cd32" class="has-inline-color">optional</span><br>
                    list</td>
           <td>[Preferred.] Optional list of collection names to restore.</td>
           <td>[&#8220;Col1&#8221;, &#8220;Col2&#8221;, &#8220;Col3&#8221;]</td>
        </tr>
        <tr>
            <td><strong>parallel_restore</strong><br>
                    <span style="color:#32cd32" class="has-inline-color">optional</span><br>
                    string</td>
           <td>Optional ability to restore collections in parallel (multiple threads). Default is &#8220;false.&#8221;</td>
           <td>&#8220;true&#8221;</td>
        </tr>
     </tbody>
  </table>
</figure>



<p>If <strong>collection_name</strong> and <strong>collections</strong> are both present, the method will restore all of the listed collections. </p>



<p>If <strong>collection_name</strong> and <strong>collections</strong> are both absent<strong>, </strong>the method will restore all the collections in the backup file, overwriting all previous data on the deployment.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/restore/&quot; 
  --header &quot;Content-Type: application/json&quot; 
  --header &quot;Authorization: Token &lt;Token&gt;&quot; 
  --data &#039;{&quot;backup_id&quot;:&quot;12345678&quot;,&quot;collections&quot;:&#x5B;&quot;collection1&quot;,&quot;collection3&quot;]}&#039;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$list = @(&quot;collection1&quot;,&quot;collection3&quot;)

$body = @{
    backup_id=&#039;12345678&#039;
    collections=$list
}

$body = $body | ConvertTo-Json

$RESULT = Invoke-RestMethod -Method Post -body $body -ContentType &#039;application/json&#039; -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/restore/&quot; 
$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document confirming that the restore has been scheduled.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;message&quot;: &quot;The restore request has been successfully placed in the Task queue and will be initiated soon. You can check the status with the restore-status API&quot;
}

</pre></div>


<p>When performing a partial restore, SearchStax will overwrite the restored collections while preserving any others that are present.  </p>



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



<p>This method reports on the status of a restore.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST /api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/restore/status/

</pre></div>


<p>where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, <strong>&lt;uid&gt;</strong> is the ID of the deployment.</p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request POST &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/restore/status/&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;

$RESULTS = Invoke-RestMethod -Method Post -ContentType &#039;application/json&#039; -Headers $headers `
              -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/restore/status/&quot;
$RESULTS = $RESULTS | ConvertTo-Json

</pre></div>


<p>The response is a JSON object containing an appropriate message string:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;message&quot;: &quot;Backup Restore in Progress&quot;
}

{
  &quot;message&quot;: &quot;No restore Running on this deployment&quot;
}

</pre></div>


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



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=SearchStax%20Cloud%20API%20–%20Backup%2FRestore" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstax-cloud-backup-restore-api/">Solr Backup/Restore API</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://demo.searchstax.com/docs/searchstax-cloud-backup-restore-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Solr Custom JARs API</title>
		<link>https://demo.searchstax.com/docs/searchstax-cloud-custom-jars-api/</link>
					<comments>https://demo.searchstax.com/docs/searchstax-cloud-custom-jars-api/#respond</comments>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 06 Jul 2022 12:50:29 +0000</pubDate>
				<category><![CDATA[API Reference]]></category>
		<category><![CDATA[Cloud]]></category>
		<guid isPermaLink="false">https://demo.searchstax.com/docs/?p=11929</guid>

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



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



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



<p>The SearchStax Managed Search service provides an API supporting the creation, deletion and management of Solr Cloud deployments.</p>



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



<p>This page describes how to add and manage custom JAR files using API methods.</p>



<div class="alert alert-warning">
<h3>JAR size limit!</h3>
<p>The API can handle JAR files up to 75 MB. If this is a problem, submit a support ticket.</p>
</div>



<div class="alert alert-success">
<h3>Restart Solr Nodes!</h3>
<p>After uploading a custom Jar, you must perform a <a href="https://demo.searchstax.com/docs/hc/start-stop-searchstax-solr/">Rolling Restart</a> of the deployment. The API does not automatically restart the Solr nodes.</p>
</div>



<p>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 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>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>Contents:</p>



<ul class="wp-block-list">
<li><a href="#jars">JARs</a>
<ul class="wp-block-list">
<li><a href="#listjars">account &gt; deployment &gt; solr &gt; custom-jars&gt; list</a></li>



<li><a href="#createjar">account &gt; deployment &gt; solr &gt; custom-jars &gt; create</a></li>



<li><a href="#deletejar">account &gt; deployment &gt; solr &gt; custom-jars &gt; delete</a></li>
</ul>
</li>
</ul>



<p>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-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-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="jars">JARs</h2>



<h3 class="wp-block-heading" id="listjars">account &gt; deployment &gt; solr &gt; custom-jars &gt; list</h3>



<p>This method lists the JAR files of a deployment or server.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
GET https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/custom-jars/?server_sn=&amp;lt;server_number&gt;&amp;amp;page=&amp;lt;page_number&gt;

</pre></div>


<p>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><strong>&lt;server_number&gt;</strong> is the optional number of the Solr server within the deployment (usually 4 or 5). If unstated, the method addresses all Solr servers.</p>



<p><strong>&lt;page_number&gt;</strong> is the optional page of the results list. Default is 1.  </p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body.</p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request GET &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/custom-jars/?server_sn=&lt;server-number&gt;&amp;page=&lt;page_number&gt;&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$SID = &quot;4&quot;
$PAGE = &quot;1&quot;

$RESULT = Invoke-RestMethod -Method Get -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/custom-jars/?server_sn=$SID&amp;page=$PAGE&quot; 

$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a list of JSON documents identifying the deployment and its current set of JAR files:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
&#x5B;
  {
    &quot;server_sn&quot;: 4,
    &quot;jars&quot;: &#x5B;]
  },
  {
    &quot;server_sn&quot;: 5,
    &quot;jars&quot;: &#x5B;
      &quot;jarfile.jar&quot;
    ]
  }
]



</pre></div>


<h3 class="wp-block-heading" id="createjar">account &gt; deployment &gt; solr &gt; custom-jars &gt; create</h3>



<p>This method uploads a custom JAR file to a deployment or a server. The JAR will be replaced if it already exists.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
POST https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/custom-jars/?server_sn=&amp;lt;server_number&gt;

</pre></div>


<p>where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, <strong>&lt;uid&gt;</strong> is the ID of the deployment, and <strong>&lt;server_number&gt;</strong> is the optional number of the Solr server within the deployment (usually 4 or 5). If unspecified, the method will address all Solr servers. </p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>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>file</strong><br><mark style="background-color:rgba(0, 0, 0, 0);color:#ff0000" class="has-inline-color">required</mark><br>string<br></td><td>Path to load JAR file.</td><td>&#8220;file=@jarfile.jar&#8221;</td></tr></tbody></table></figure>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl -i -X POST -H &quot;Authorization: Token &lt;Token&gt;&quot; -H &quot;Content-Type: multipart/form-data&quot; -F &quot;file=@jarfile.jar&quot; https://staging.searchstax.com/api/rest/v2/account/staging/deployment/ss123456/solr/custom-jars/

</pre></div>


<p>When invoked from Windows (<a href="https://github.com/searchstax/searchstax-client-powershell/blob/a19664c452f67793132dd2b85f307c2b750039a5/restapi/accountdeploymentsolrcustomjarscreate.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://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-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$SID = &quot;4&quot;

$form = @{
    file = Get-Item -Path &#039;$JARFILE&#039;
}

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

$RESULTS = Invoke-RestMethod -Method Post -Form $form -Headers $headers `
          -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/custom-jars/&quot; 
$RESULTS = $RESULTS | ConvertTo-Json

Write-Host $RESULTS


</pre></div>


<p>The response is a list of JSON documents identifying the deployment and its current set of JAR files: </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
&#x5B;
  {
    &quot;server_sn&quot;: 4,
    &quot;jars&quot;: &#x5B;
      &quot;jarfile.jar&quot;
    ]
  },
  {
    &quot;server_sn&quot;: 5,
    &quot;jars&quot;: &#x5B;
      &quot;jarfile.jar&quot;
    ]
  }
]


</pre></div>


<h3 class="wp-block-heading" id="deletejar">account &gt; deployment &gt; solr &gt; custom-jars &gt; delete</h3>



<p>This method deletes a JAR from a deployment or a server.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; auto-links: false; title: ; quick-code: false; notranslate">
DELETE https://app.searchstax.com/api/rest/v2/account/&amp;lt;account_name&gt;/deployment/&amp;lt;uid&gt;/solr/custom-jars/&amp;lt;jar-name&gt;/?server_sn=&amp;lt;server_number&gt;

</pre></div>


<p>where <strong>&lt;account_name&gt;</strong> is the name of the tenant account, <strong>&lt;uid&gt;</strong> is the ID of the deployment, <strong>&lt;jar-name&gt;</strong> is the name of the JAR file, and <strong>&lt;server_number&gt;</strong> is the optional number of the Solr server within the deployment (usually 4 or 5). If not specified, the method addresses all Solr servers. </p>



<p>This method uses <a href="/docs/searchstax-cloud-authentication-api/#token/">Token</a> authentication.</p>



<p>There is no request body. </p>



<p>When invoked from Linux (Bash script):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; auto-links: false; title: ; quick-code: false; notranslate">
curl --request DELETE &quot;https://app.searchstax.com/api/rest/v2/account/&lt;account_name&gt;/deployment/&lt;uid&gt;/solr/custom-jars/&lt;jar-name&gt;/?server_sn=&lt;server_number&gt;&quot; 
  --header &quot;Authorization: Token &lt;token&gt;&quot; 
}&quot;

</pre></div>


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


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; auto-links: false; title: ; quick-code: false; notranslate">
$ACCOUNT = &quot;AccountName&quot;
$uid = &quot;ss123456&quot;
$sid = &quot;4&quot;

$RESULT = Invoke-RestMethod -Method DELETE `
         -Headers $headers `
         -uri &quot;https://app.searchstax.com/api/rest/v2/account/$ACCOUNT/deployment/$uid/solr/custom-jars/&lt;jar-name&gt;/?server_sn=$sid&quot; 

$RESULT = $RESULT | ConvertTo-Json

</pre></div>


<p>The response is a JSON document confirming the deletion:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
{
  &quot;success&quot;: &quot;true&quot;
}

</pre></div>


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



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