7.2

Table Of Contents
Parameter Description
Links Species an array of link objects, each of which contains the
following parts:
n
rel
Species the name of the link.
n
Self refers to the object that was returned or
requested. This parameter does not appear when you
query a single prole.
n
First, Previous, Next, and Last refer to
corresponding pages of pageable lists.
n
Species the application or service that determines the
other names.
n
href
Species the URL that produces the result.
Content Species an array of data rows, each of which represents one
of the tenant objects returned in a pageable list. Each tenant
object can contain the following information:
n
@type:
Contains the KeyPair string.
n
$id:
Species the unique identier of the key pair.
n
$name:
Species the name of the key pair.
n
$computeresourceId:
Species the compute resource ID that is binded to the key
pair.
n
$secretKey:
Species the secret key for the key pair.
Metadata Species the following paging-related data:
n
Size: Species the maximum number of rows per page.
n
totalElement: Species the number of rows returned. This
parameter is not output when you query for a single
prole.
n
totalPages: Species the total number of pages of data
available.
n
Number: Species the current page number.
n
Oset: Species the number of rows skipped.
Example: curl Command
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/iaas-proxy-provider/api/keyPairs
Example: JSON Output
The following JSON output is returned based on the command input.
{
"links": [
],
"content": [
{
Chapter 3 REST API Use Cases
VMware, Inc. 277