Home > Cloud Cruiser 4 > REST API reference > Example code > Browser

Browser

You can invoke REST API methods that use the HTTP GET method directly from a browser. Just enter a valid Cloud Cruiser REST URL in the browser address bar, then enter your username and password when prompted. When you have successfully authenticated to the Cloud Cruiser server, the response appears in the browser.

To invoke REST API methods that use other HTTP methods, you must use a browser extension-based REST client.

The following are examples of GET browser invocation.

Get a user by ID

The request URL http://localhost:8080/rest/v2/ccusers/users/10005 might generate the following response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user xmlns="http://www.cloudcruiser.com/webservices/v2/User" id="10005">
    <userName>devmgr</userName>
    <active>true</active>
    <userGroup name="admin" id="2"/>
    <fullName>Devin McManager</fullName>
    <emailAddress>dmcmanager@cloudcruiser.com</emailAddress>
    <nativeCCUser>true</nativeCCUser>
    <roles>
        <role>
            <name>Admin</name>
            <type>ADMIN</type>
            <description>Full access to all application functions</description>
        </role>
        <role>
            <name>Report User</name>
            <type>REPORT_USER</type>
            <description>Access only to running reports</description>
        </role>
    </roles>
</user>

Get a user group by name

The request URL http://localhost:8080/rest/v2/ccusers/groups?groupName=admin might generate the following response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<userGroupList xmlns="http://www.cloudcruiser.com/webservices/v2/User">
    <userGroup id="2">
        <groupName>admin</groupName>
        <title>Administration Group</title>
        <accountView name="Default" groupDefault="true"/>
        <allAccounts>true</allAccounts>
        <users>
            <user name="admin" id="2" active="true"/>
            <user name="Sally" id="10003" active="true"/>
            <user name="storagemgr" id="10004" active="true"/>
            <user name="devmgr" id="10005" active="true"/>
            <user name="bill" id="10006" active="true"/>
            <user name="vpitfinance" id="10007" active="true"/>
        </users>
    </userGroup>
</userGroupList>
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP