Identity and Access Management API, REST: ApiKey.get
Returns the specified API key.
To get the list of available API keys, make a list request.
HTTP request
GET https://iam.api.cloud.yandex.net/iam/v1/apiKeys/{apiKeyId}
Path parameters
Parameter | Description |
---|---|
apiKeyId | Required. ID of the API key to return. To get the API key ID, use a list request. The maximum string length in characters is 50. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"serviceAccountId": "string",
"createdAt": "string",
"description": "string"
}
An ApiKey resource. For more information, see Api-Key.
Field | Description |
---|---|
id | string ID of the API Key. |
serviceAccountId | string ID of the service account that the API key belongs to. |
createdAt | string (date-time) Creation timestamp. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
description | string Description of the API key. 0-256 characters long. |