<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>REST API on CloudBolt Documentation</title>
		<link>https://docs.cloudbolt.io/docs/cmp/developer-resources/rest-api/</link>
		<description>Recent content in REST API on CloudBolt Documentation</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<atom:link href="https://docs.cloudbolt.io/docs/cmp/developer-resources/rest-api/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Make your first request</title>
				<link>https://docs.cloudbolt.io/docs/cmp/developer-resources/rest-api/first-request/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/cmp/developer-resources/rest-api/first-request/</guid>
				<description>&lt;p&gt;These examples use curl, but the requests are the same regardless of the client. To browse the full list of endpoints, use the API console at &lt;code&gt;/api-docs/v3/cmp/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;get-a-token&#34;&gt;Get a token&lt;/h2&gt;&#xA;&lt;p&gt;Exchange your Cloud Management Platform (CMP) credentials for a token:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl -X POST -H &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Content-Type: application/json&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  -d &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;{&amp;#34;username&amp;#34;:&amp;#34;&amp;lt;username&amp;gt;&amp;#34;,&amp;#34;password&amp;#34;:&amp;#34;&amp;lt;password&amp;gt;&amp;#34;}&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;https://&amp;lt;cmp-ip-or-hostname&amp;gt;/api/v3/cmp/apiToken/&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The response returns two tokens. &lt;code&gt;token&lt;/code&gt; is the short-lived access token used in the requests below; &lt;code&gt;refreshToken&lt;/code&gt; is the longer-lived one you exchange for a new access token when it expires. Keep the access token and your CMP address in shell variables:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Authentication</title>
				<link>https://docs.cloudbolt.io/docs/cmp/developer-resources/rest-api/authentication/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/cmp/developer-resources/rest-api/authentication/</guid>
				<description>&lt;p&gt;The API uses the same accounts and permissions as the rest of Cloud Management Platform (CMP): the roles and group permissions that apply in the web interface also apply to the API.&lt;/p&gt;&#xA;&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;&#xA;&lt;p&gt;An account you can log in to the web interface with. Every user has API access.&lt;/p&gt;&#xA;&lt;h2 id=&#34;get-a-bearer-token&#34;&gt;Get a bearer token&lt;/h2&gt;&#xA;&lt;h3 id=&#34;with-curl&#34;&gt;With curl&lt;/h3&gt;&#xA;&lt;p&gt;Replace &lt;code&gt;cmp-ip-or-hostname&lt;/code&gt;, &lt;code&gt;username&lt;/code&gt;, and &lt;code&gt;password&lt;/code&gt;. Include &lt;code&gt;domain&lt;/code&gt; only when logging in against a directory domain.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Conventions</title>
				<link>https://docs.cloudbolt.io/docs/cmp/developer-resources/rest-api/conventions/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/cmp/developer-resources/rest-api/conventions/</guid>
				<description>&lt;p&gt;These conventions apply across every endpoint. For the endpoint reference, use the API console built into CMP at &lt;code&gt;/api-docs/v3/cmp/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;urls-and-verbs&#34;&gt;URLs and verbs&lt;/h2&gt;&#xA;&lt;p&gt;Paths follow a small number of patterns.&lt;/p&gt;&#xA;&lt;div class=&#34;table-scroll&#34;&gt;&#xA;&lt;div class=&#34;table-responsive&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Path&lt;/th&gt;&#xA;          &lt;th&gt;What it addresses&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;/{plural-noun}&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;A collection of that type, such as &lt;code&gt;/api/v3/cmp/servers/&lt;/code&gt;.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;/{plural-noun}/{id}&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;A single item within a collection.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;/{single-noun}&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;A singleton that exists without a collection. The current-user singleton is &lt;code&gt;/api/v3/cmp/user/&lt;/code&gt;.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;/{plural-noun}/actions/{action}&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Functionality better expressed in RPC style than REST, such as &lt;code&gt;/resource-handlers/actions/sync-vms&lt;/code&gt;.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Both collections and items are called resources. Collections are the more common of the two.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
