Identity and Access Management API, REST: RefreshToken.list
List subjects Refresh Tokens.
HTTP request
GET https://iam.api.cloud.yandex.net/iam/v1/refreshTokens
Query parameters
Parameter | Description |
---|---|
subjectId | The maximum string length in characters is 50. |
pageSize | The maximum number of results per page to return. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Default value: 100. Acceptable values are 0 to 1000, inclusive. |
pageToken | Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. The maximum string length in characters is 2000. |
filter | A filter expression that filters refresh tokens listed in the response. The expression must specify:
The maximum string length in characters is 1000. |
Response
HTTP Code: 200 - OK
{
"refreshTokens": [
{
"id": "string",
"clientInstanceInfo": "string",
"clientId": "string",
"subjectId": "string",
"createdAt": "string",
"expiresAt": "string",
"lastUsedAt": "string",
"protectionLevel": "string"
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
refreshTokens[] | object List of Refresh Tokens |
refreshTokens[]. id |
string Refresh Token id. |
refreshTokens[]. clientInstanceInfo |
string Information about the app for which the Refresh Token was issued. |
refreshTokens[]. clientId |
string The OAuth client identifier for which the Refresh Token was issued. |
refreshTokens[]. subjectId |
string The subject identifier for whom the Refresh Token was issued. |
refreshTokens[]. createdAt |
string (date-time) Refresh token creation time. 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). |
refreshTokens[]. expiresAt |
string (date-time) Refresh token expiration time. 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). |
refreshTokens[]. lastUsedAt |
string (date-time) Timestamp for the last authentication using this Refresh Token. 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). |
refreshTokens[]. protectionLevel |
string Protection level of the refresh token. It shows whether DPOP was used to protect the Refresh Token and and the level of security of the storage used for the DPOP key. Protection level of the refresh token.
|
nextPageToken | string This token allows you to get the next page of results for list requests. If the number of results is larger than [ListRefreshTokensForSubjectRequest.page_size], use the nextPageToken as the value for the [ListRefreshTokensForSubjectRequest.page_token] query parameter in the next list request. Each subsequent list request will have its own nextPageToken to continue paging through the results. |