ViPR 2.1 - Access the ViPR REST API
Table of Contents
Using a web browser you would first authenticate with the ViPR REST API by typing:
<loggedIn> <user>root</user> </loggedIn>
Once the browser is authenticated with the ViPR REST API, you can send other GET requests, such as a request to retrieve the tenant of the current user.
<tenant_info> <name>Provider Tenant</name> <link rel="self" href="/tenants/urn:storageos:TenantOrg:2b5f6d7c-e670-4aee-9fc1-ddbf0fc8de22:global"/> <id>urn:storageos:TenantOrg:2b5f6d7c-e670-4aee-9fc1-ddbf0fc8de22:global</id> </tenant_info>
- <ViPR_VIP> is the IP address or fully qualified domain name (FQDN) of the public virtual IP address of your ViPR vApp.
- Port 4443 is the HTTP port used for REST client access to many services on the ViPR virtual appliance. Other REST services are accessed through port 443, as described in REST API Ports.
To issue POST, PUT, and DELETE HTTP requests from a web browser, you need browser plugins, such as Internet Explorer's httpAnalyzer. Most major browsers, such as Firefox and Chrome, have a poster plugin that will allow you to call HTTP commands directly from your browser.
You can also access the REST API using scripting platforms such as curl and perl. EMC also provides a Java client that wraps the ViPR REST API calls in a set of Java classes.Back to Top
The following table show the services available on each of the two ports used by the ViPR REST API.Back to Top