Embed presentation
Downloaded 418 times














![Adding navigation buttons and functionality 6. Add the section to the pre-filter, so that it isn't filtered out for the admin account: -- sectionPreFilter: function(args) { if(isAdmin()) { return ["dashboard", "instances", "storage", "network", "templates", "accounts", "domain s", "events", "system", "global-settings", "configuration", "projects"]; }, sectionPreFilter: function(args) { if(isAdmin()) { return ["dashboard", "instances", "storage", "network", "templates", "accounts", "domain s", "events", "system", "global-settings", "configuration", "projects", // New section "testSection"]; }, ...](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcloudstackcustomizationv3-120504013317-phpapp02%2f75%2fCloudstack-UI-Customization-15-2048.jpg&f=jpg&w=240)










![RESPONSE FORMATCloudStack supports two formats as the response to an API call.The default response is XML. If you would like the response to be in JSON, add &response=json to theCommand String.Sample XML Response:<listipaddressesresponse> <allocatedipaddress> <ipaddress>192.168.10.141</ipaddress> <allocated>2009-09-18T13:16:10-0700</allocated> <zoneid>4</zoneid> <zonename>WC</zonename> <issourcenat>true</issourcenat></allocatedipaddress> </listipaddressesresponse>Sample JSON Response:{ "listipaddressesresponse" : { "allocatedipaddress" : [ { "ipaddress" : "192.168.10.141", "allocated" : "2009-09-18T13:16:10-0700", "zoneid" : "4", "zonename" : "WC", "issourcenat" : "true" } ]](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcloudstackcustomizationv3-120504013317-phpapp02%2f75%2fCloudstack-UI-Customization-26-2048.jpg&f=jpg&w=240)


The document provides information on customizing and integrating with the CloudStack user interface and API. It discusses how to customize the UI through CSS edits, add new navigation sections, deal with cross-site request forgery, and enable simple single sign-on. It also covers working with the CloudStack API, including differences between session-based and API key authentication, signing requests, asynchronous commands, response formats, and pagination. The document is intended to help developers get started with customizing and integrating with the CloudStack platform.














![Adding navigation buttons and functionality 6. Add the section to the pre-filter, so that it isn't filtered out for the admin account: -- sectionPreFilter: function(args) { if(isAdmin()) { return ["dashboard", "instances", "storage", "network", "templates", "accounts", "domain s", "events", "system", "global-settings", "configuration", "projects"]; }, sectionPreFilter: function(args) { if(isAdmin()) { return ["dashboard", "instances", "storage", "network", "templates", "accounts", "domain s", "events", "system", "global-settings", "configuration", "projects", // New section "testSection"]; }, ...](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcloudstackcustomizationv3-120504013317-phpapp02%2f75%2fCloudstack-UI-Customization-15-2048.jpg&f=jpg&w=240)










![RESPONSE FORMATCloudStack supports two formats as the response to an API call.The default response is XML. If you would like the response to be in JSON, add &response=json to theCommand String.Sample XML Response:<listipaddressesresponse> <allocatedipaddress> <ipaddress>192.168.10.141</ipaddress> <allocated>2009-09-18T13:16:10-0700</allocated> <zoneid>4</zoneid> <zonename>WC</zonename> <issourcenat>true</issourcenat></allocatedipaddress> </listipaddressesresponse>Sample JSON Response:{ "listipaddressesresponse" : { "allocatedipaddress" : [ { "ipaddress" : "192.168.10.141", "allocated" : "2009-09-18T13:16:10-0700", "zoneid" : "4", "zonename" : "WC", "issourcenat" : "true" } ]](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcloudstackcustomizationv3-120504013317-phpapp02%2f75%2fCloudstack-UI-Customization-26-2048.jpg&f=jpg&w=240)

