Get Latest Use Info
- Print
- PDF
Get Latest Use Info
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
Get the latest key usage history.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /keys/{keyTag}/last-use-info |
Request headers
For information about the headers common to all Key Management Service APIs, see the account authentication method in Key Management Service request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
keyTag | String | Required | Key tag
|
Request example
The request example is as follows:
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
code | String | - | Success or Failure |
data | Object | - | Response result |
data.timestamp | String | - | Query date and time (millisecond)
|
data.data | Object | - | Usage history details |
data.data.KmsKey | Object | - | Key details |
data.data.KmsKey.keyTag | String | - | Tag of the key that was used |
data.data.KmsKey.keyName | String | - | Key name |
data.KmsKey.nrn | String | - | Key resource global identifier name (Ncloud resource name) |
data.requestor | Object | - | Request details |
data.requestor.requestType | String | - | Request type
|
data.requestor.id | String | - | Requestor account ID |
data.requestor.ip | String | - | Requestor IP address |
data.data.api | Object | - | API request details |
data.data.api.result | String | - | API request result
|
data.data.api.action | String | - | API request name |
data.api.type | String | - | API authentication method
|
message | String | - | Response content
|
Response status codes
For response status codes common to all Key Management Service APIs, see Key Management Service response status codes.
Response example
The response example is as follows:
Was this article helpful?