IBM SmartCloud Enterprise V2.2 describes some of the new features that users can use through the graphical user interface (GUI) and application programming interfaces (APIs) of the solution portal. In this article, we focus on the use of the API, enumerate several sample use cases, introduce several functions, and provide code examples for the following features:
User Management
Guest Message Delivery
Service Product Management
Service Instance Management
Storage Unit Configuration
The user accesses the SmartCloud Enterprise API using a representational state Transfer, REST, which can be sent directly using an HTTP call, a command-line interface, or a client library. (The Support tab on the SmartCloud Enterprise portal site provides command-line interface references and Java client library documentation.) This article provides a rest request to access the SmartCloud Enterprise 2.2 API and also provides code snippets for other language versions.
For all features, we use the popular CURL command-line utility to provide code samples that allow you to transfer data using HTTP commands, and we also display the rest invocation parameters in each CURL call. Throughout this article, we will also provide command-line interface commands and Java and PHP code examples to invoke API functions.
The REST API accesses SmartCloud Enterprise resources through HTTP requests made to the central SmartCloud Enterprise API endpoint URL. This central URL is described in the entire article as <base-URL>. (For a detailed description of the rest API syntax and parameters, see the Rest API reference documentation provided in the SmartCloud Enterprise Asset directory.) )
It is noteworthy that, although the SmartCloud Enterprise GUI portal implements its functionality using API calls, the GUI portal does not provide all the available functionality; some SmartCloud Enterprise features can only be obtained through API calls that are emitted programmatically 。
User Management
SmartCloud Enterprise users who have administrative rights can add or remove portal users (not administrators) from their accounts. All SmartCloud nterprise user records are valid for all SmartCloud Enterprise SmartCloud data Center locations. User management functions can be obtained through APIs and GUIs.
Possible use cases for user management APIs:
IBM Business can provide its own custom front-end for user management features.
Account administrators can enable user account scripting and automation for their smartcloud Enterprise projects.
Add and remove SmartCloud Enterprise portal users
Let's take a look at Portal user additions and deletions:
Using REST Requests
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/extra/