» Data Source: oci_identity_api_keys

This data source provides the list of Api Keys in Oracle Cloud Infrastructure Identity service.

Lists the API signing keys for the specified user. A user can have a maximum of three keys.

Every user has permission to use this API call for their own user ID. An administrator in your organization does not need to write a policy to give users this ability.

» Example Usage

data "oci_identity_api_keys" "test_api_keys" {
    user_id = "${oci_identity_user.test_user.id}"

» Argument Reference

The following arguments are supported:

  • user_id - (Required) The OCID of the user.

» Attributes Reference

The following attributes are exported:

» ApiKey Reference

The following attributes are exported:

  • fingerprint - The key's fingerprint (e.g., 12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef).
  • id - An Oracle-assigned identifier for the key, in this format: TENANCY_OCID/USER_OCID/KEY_FINGERPRINT.
  • inactive_status - The detailed status of INACTIVE lifecycleState.
  • key_value - The key's value.
  • state - The API key's current state.
  • time_created - Date and time the ApiKey object was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
  • user_id - The OCID of the user the key belongs to.