// removed jquery ui css and js

View User's Keys

Details

API Details
NameView User's Keys
Description

The API key is also referred to as the management key or access key is required to use CloudCenter APIs. See API Management Key for additional context. This admin only API allows admins to view the keys for any user belonging to this admin's tenant.

MethodGET
URIv1/users/userId/keys
CloudCenter ReleaseIntroduced in CloudCenter 4.0.
Notes
  • For additional context on <PORT> usage in the following example(s), see Base URI Format.
  • The CloudCenter GET APIs display up to 20 entities in the listing by default. If you have more than 20 entities in your resource listing, use the pagination query parameters to view them beyond the first 20 entities returned by default. See the CloudCenter API Overview  > Pagination  section for additional context.
ESB Headeraction: get.users.userId.keys

Example

curl -k -X GET -H "Accept: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/v1/users/6/keys"

Response

{
    "apiKey": {
        "key": "A76DF23EF30F0F18"
    },
    "sshKeys": [
        {
            "key": "-----BEGIN RSA PRIVATE KEY-----\nMI...MWJ0ruVm\n-----END RSA PRIVATE KEY-----\n",
            "cloudAccountId": "1",
            "cloudAccountName": "Vikram's US DC OpenStack cloud account",
            "cloudRegionId": "1",
            "cloud": "OpenStack-regionOne"
        },
        {
            "key": "-----BEGIN RSA PRIVATE KEY-----\nMI...w4ukgdxf\n-----END RSA PRIVATE KEY-----",
            "cloudAccountId": "2",
            "cloudAccountName": "642111779657",
            "cloudRegionId": "2",
            "cloud": "Amazon-eu-west-1"
        }
    ],
    "sftpKeys": []
}

Request Attributes

userId
  • Description: Unique, system-generated identifier for a user
  • Type: String

Response Attributes

apiKey
  • Description: Identifies the API access key. See API Management Key for additional details.
  • Type: API key data type

    key
sshKeys
  • Description: Information about SSH access keys
  • Type: Array of mapped data types

    key
    cloudAccountId
    • Description: Unique, system-generated identifier for the cloudAccount
    • Type: String
    cloudAccountName
    • Description:The account name associated with this  cloud
    • Type: String
    cloudRegionId
    • Description: Unique, system-generated identifier for a cloud region
    • Type: String
    cloud
    • DescriptionThe name of this cloud
    • Type: String
sftpKeys (click for additional details)
© 2017 Cisco Systems