Getting Information About Your Access Keys

You can get information about one or more access keys and a list of the access keys with their corresponding information associated with your account.

When using the API, you can get further information about your access key, such as its state (ACTIVE or INACTIVE). You can either use the GetAccessKey or the ListAccessKeys methods.

If you exceed the number of identical requests allowed for a configured time period, the Throttling error message is returned.

Getting Information About Your Access Keys Using Cockpit

  1. Hover over your name.
    A drop-down menu appears.

  2. Click Personal Information and Access keys .
    A page with your account details appears.

  3. Click Access keys.
    The PASSWORD CONFIRMATION dialog box appears.

  4. Enter your current password and click Confirm.
    The list of your access keys appears.

    You can click View to display a QR code that contains the access key ID and the secret key.

Getting Information About Your Access Keys Using OSC CLI

Before you begin: See Installing and Configuring OSC CLI to set up OSC CLI.

To list your access keys, use the ListAccessKeys command following this syntax:

Request sample (with login and password)
$ osc-cli icu ListAccessKeys \
    --authentication-method password \
    --login email@user.com \
    --password XXXXXXXX

This command contains the following attributes that you need to specify:

  • authentication-method: The method of connection (here, password).

  • login: The email address of the account.

  • password: The password of the account.

Request sample (without login and password)
$ osc-cli icu ListAccessKeys
  • The ListAccessKeys command returns the following elements:

    • accessKeys: A list of access keys. This element contains the following information:

      • status: The state of the access key (ACTIVE if the key is valid for API calls, or INACTIVE if not).

      • tags: The tags associated to the resource.

      • createDate: The date and time of creation of the access key.

      • accessKeyId: The ID of the access key.

      • secretAccessKey: The secret key corresponding to the access key.

      • expirationDate: The expiration date of the access key.

      • touchDate: The date and time of last modification of the access key.

      • ownerId: The account ID of the owner of the access key.

    • marker: The marker to request the next results page.

    • isTruncated: If true, there are more items to return using the marker in a new request.

    • ResponseMetadata: Information about the response. This element contains the following information:

      • RequestId: The ID of the request.

Result sample
{
    "accessKeys": [
        {
            "status": "ACTIVE",
            "tags": "EXAMPLE"
            "createDate": "2018-01-01T11:30:27.000Z",
            "accessKeyId": "EXAMPLEXXXXXXXXXXXXX",
            "secretAccessKey": "EXAMPLEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "expirationDate": "2019-01-01T11:30:27.000Z",
            "touchDate": "2018-01-01T11:30:27.000Z",
            "ownerId": "123456789012"
        }
    ],
    "marker": null,
    "isTruncated": false,
    "ResponseMetadata": {
        "RequestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
}

Related Pages

Corresponding API Methods