Use Postman for creating various cloud assets. Specify response in either JSON (default) or XML format.
Table of Contents
The following are prerequisites for completing this tutorial:
Using Postman to create (HTTP POST) cloud assets is fairly simple and quick. No need to spin up servers, write a bash, Ruby or PowerShell script, etc. Basically, all you need to do is:
Having previously authenticated and set the X_API_VERSION HTTP header to 1.5:
Notes:
URL Parameter Name | Value |
---|---|
deployment[name] | Postman Test Deployment |
deployment[description] | Create Deployment using POSTman |
POSTman should look similar to the following before you send the POST request.
In addition to the Status "201 Created", you can verify from the Dashboard as needed. For example, from Manage > Deployments:
Clone a previously imported ServerTemplate so it can be customized for a specific use case by servers in your deployment. The following example was used to clone an imported "ServerTemplate Database Manager for Microsoft SQL Server (13.5.1-LTS)".
https://my.rightscale.com/api/server...28492001/clone
URL Parameter Name | Value |
---|---|
server_template[name] | Gregs Clone of DbMgr for MySQL |
server_template[description] | Clone of MySQL Server DbMgr 13.5 LTS |
https://my.rightscale.com/api/server...te[name]=Gregs Clone of DbMgr for MySQL&server_template[description]=Clone of MySQL Server DbMgr 13.5
POSTman should look similar to the following before you send the POST request.
In addition to the Status "201 Created", you can verify from the Dashboard as needed. For example, from Design > ServerTemplates:
Create a Server and add it to a previously created Deployment. This is a rather lengthy example, and requires a basic understanding of the Dashboard and API, including how to use the API Online Reference Documentation.
Notes:
Do the following to create your new Server:
URL Parameter Name | Value |
---|---|
server[name] | Base Linux Server |
server[description] | Base Linux for POSTman plugin tests |
server[deployment_href] | /api/deployments/443920003 |
server[instance][cloud_href] | /api/clouds/3 ### Note: 3 = the static cloud ID for AWS US-West |
server[instance][server_template_href] | /api/server_templates/320217003 |
server[instance][multi_cloud_image_href] | /api/multi_cloud_images/356113003 |
server[instance][instance_type_href] | /api/clouds/3/instance_types/CSB9P9B0US5VA |
server[instance][security_group_hrefs][] | /api/clouds/3/security_groups/4NASQ1JLPLNM |
POSTman should look similar to the following before you send the POST request.
In addition to the Status "201 Created", you can verify from the Dashboard as needed. For example, from Manage > Deployments > DeploymentName
Notes:
Use POSTman to interface with the RightScale API for other list, show or create operations you want to accomplish.
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.