VxRail+7 0 XXX+Feature+-+REST+API+-+Student+Guide
VxRail+7 0 XXX+Feature+-+REST+API+-+Student+Guide
XXX
FEATURE - REST API
DOWNLOADABLE CONTENT
DOWNLOADABLE CONTENT
ES102CPX02009 ~ VxRail 7.0.XXX Feature - REST API-SSP
Appendix ................................................................................................. 31
Glossary .................................................................................................. 33
API Overview
What Is an API?
VxRail includes an implementation of REST API called VxRail API, which is part of
VxRail Manager. The VxRail API provides management functions for installation,
upgrade, and expansion to API clients. The client uses HTTP to send VxRail API
requests, and the server uses HTTP to respond.
There are numerous benefits of using the VxRail API. To explore two benefits in
more detail, select each tab.
Automating Operations
The VxRail API supports automation tools for performing upgrade operations of
one or more VxRail systems. Automation reduces the amount of human time and
intervention during an upgrade. Automation tools work with the VxRail API to
perform:
Gathering information
1. Which of the following is supported by the VxRail API? Select three (3).
a. Automation of upgrade operations.
b. Programmatic gathering of VxRail statistics including: System Health,
Heartbeat, and other information.
c. Programmatic collection of VxRail logs.
d. Continuous polling for performance statistics.
e. Automatic security audits of VxRail systems.
f. Remote upgrade of iDRAC related software only.
The VxRail API request structure is based on the HTTP protocol. To learn about
the four basic parts of a VxRail API request, select each tab.
API.
The VxRail API uses the VMware vCenter or Platform VxM API Headers
Services Controller (PSC) single sign-on (SSO) for (Authentication)
API response contains a three-digit status code and a body. The body of the
response is provided in JSON format.
Once the client receives the API response, the VxRail API interaction between the
VxRail Manager and the client is complete.
Status Codes
The API client would use the status code to determine the next step; retry, wait,
error out, or warn. For example, some requests may return a 202 code (API
request accepted for processing, but not completed) and include a Request ID in
the response body. The API client could then send another request with the
request ID to check on the status of the previous request until the operation is
successful.
The table lists some of the VxRail API status codes. Sometimes the description
may be more detailed based on the API call that was made.
1. Which components are required for a VxRail API request? Select three (3).
a. Base URL
b. Method
c. Header
d. Body
e. Parameter
f. VxRail Node ID
2. When an API call to VxRail Manager has been submitted, what part of the
response indicates that the request was not completed?
a. Status code
b. Body
c. Header
d. Schema
1: To retrieve a list of VxRail chassis' and information about the nodes in each
chassis, the Get a list of VxRail chassis(v1)API call would be used.
Some calls have multiple versions. As an example, the Get a list of VxRail
chassis(v4)API provides the same information as the v1 API but also adds
support for satellite nodes.
The HTTP method that is used in the example is GET, and is displayed in green.
2: The VxRail API uses the VMware vCenter for Single Sign-On (SSO)
authentication. Use a vCenter SSO account with the proper access when using the
VxRail API.
VxRail Manager and VxRail API do not provide management of vCenter user
accounts. Manage your credentials using vSphere.
The API passes credentials to the vCenter for authentication. HTTP Basic
authentication authorization method is configured for the VxRail REST API.
API requests can be sent from the onboard API documentation using the Send
Request button.
3:
Available programming
language
5: After VxRail Manager receives an API request from the API client, it sends a
response back to the client. VxRail API responses have a schema similar to VxRail
API requests.
The VxRail API response contains a status code. The API client would use the
status code value in a conditional to determine what to do next. For example retry,
wait, error out, warn.
6: The UI displays the API endpoint path, and a brief description. The endpoint
path would be appended to the base URL. For example: https://<VxM IP or
FQDN>/rest/vxm/v1/chassis.
The VxRail onboard API documentation can be used for both Day 1 and Day 2
operations. To learn about the differences between Day 1 and Day 2 operations,
select the tabs.
Day 1 Operations
Day 1 operations all pertain to the readiness of nodes that are used to form a
cluster and the cluster formation itself. Day 1 VxRail operations include: scanning
for available hosts, getting disk slot mappings of hosts, re-IP the VxRail Manager to
a permanent address, cluster initialization dry run, cluster initialization, and
monitoring the cluster initialization status.
The Get disk slot mappings for hosts is an example of a Day 1 operation.
Day 2 Operations
Day 2 operations can be run after deployment of a VxRail cluster. Day 2 operations
all pertain to the maintenance of nodes after the cluster formation itself. The
Remove a host from the cluster is a Day 2 operation.
1. A VxRail implementer has sent an API request to VxRail Manager before the
deployment of a new cluster. The VxRail Manager responded with a request ID
and 202 status code. What type of request was sent? Select two (2).
a. Day 1
b. Day 2
c. Asynchronous
d. Synchronous
Use the VxRail onboard API documentation simulator below to answer the
questions. Scroll down to view both questions.
2. Which VxRail API endpoint is used to add a VxRail node to an existing VxRail
cluster?
a. /v1/cluster/expansion/validate
b. /v1/cluster/expansion
c. /v2/hosts
d. /v1/host-folder/expansion
3. Which HTTP method is used when sending a VxRail cluster expansion API
request?
a. POST
b. PUT
c. GET
d. PATCH
To learn about the available VxRail API resources, select each tab:
The Dell Technologies Developer Portal provides a catalog of platform APIs to fit
your development and automation needs. The VxRail API is in the catalog. The
Developer Portal contains a VxRail API Introduction, a Getting started guide, a
What's new page, and a list of resources. In addition, the Dell Technologies
Developer Portal allows you to view details about each of the APIs. For more
information, go to the Dell Technologies Developer Portal for VxRail API.
Windows PowerShell example using Get-Help to retrieve help for the VxRail API PowerShell
Modules Get-SystemInfo cmdlet.
Search for "PowerShell" on the VxRail product support page to download the
VxRail API PowerShell Modules.
The VxRail RESTful API Cookbookcontains sample VxRail RESTful API workflows.
Dell provides sample Ansible Playbooks that can be used for automation of Day 1
and Day 2 VxRail tasks. The Ansible modules can be used independently for ad
hoc commands. For more information, go to the Ansible Modules for Dell EMC
VxRail.
Use the Dell Technologies Developer Portal for VxRail API to answer the following
question.
1. A developer is getting started with the VxRail API. What is the VxRail API base
URL?
a. https://<VxM_IP>/rest/vxm/
b. https://<VxM_IP>/vxm/
c. http://<VxM_IP>/rest/vxm/
d. https://<VxM_IP>/rest/vxm/v1
Click the Save Progress and Exit button in the course menu to record this
content as complete.
Go to the next learning or assessment, if applicable.
PowerShell cmdlets
Commands are available for the following modules:
• VxRail.API.Certificate
• VxRail.API.Chassis
• VxRail.API.Cluster
• VxRail.API.Common
• VxRail.API.Disk
• VxRail.API.Host
• VxRail.API.LCM
• VxRail.API.Support
• VxRail.API.SysBringup
• VxRail.API.System
• VxRail.API.Telemetry
• VxRail.API.VC
Synchronous
Synchronous API request operations are short duration requests. The request is
made, an operation immediately completes, and a status code is returned in the
body. These requests have a Status Code of 200 in the response.