List user actions
Changed onRetrieve user action log for one client or a set of projects
Request
- Base URLhttps://api.gcore.com
- URLhttps://api.gcore.com/cloud/v1/user_actions
- AuthHTTP apikey
Query parameters
User action type. Several options can be specified.
[ "activate", "delete" ]
API group that requested action belongs to. Several options can be specified.
[ "ai_cluster", "image" ]
ISO formatted datetime string. Starting timestamp from which user actions are requested
Optional. Limit the number of returned items
Optional. Offset value is used to exclude the first set of records from the result
Sorting by timestamp. Oldest first, or most recent first
Project ID. Several options can be specified.
[ 1, 2, 3 ]
Region ID. Several options can be specified.
[ 1, 2, 3 ]
Resource ID. Several options can be specified.
Extra search field for common object properties such as name, IP address, or other, depending on the resource_type
(DEPRECATED Use 'order_by' instead) Sorting by timestamp. Oldest first, or most recent first
Originating IP address of the client making the request. Several options can be specified.
[ "203.0.113.42", "192.168.1.100" ]
ISO formatted datetime string. Ending timestamp until which user actions are requested
User-Agent string identifying the client making the request. Several options can be specified.
[ "Mozilla/5.0", "MyApp/1.0.0" ]
Response
OK
Example response
{
"count": 1,
"results": [
{
"acknowledged": true,
"api_group": "project",
"client_id": 10,
"email": "user@example.com",
"id": "123",
"is_complete": true,
"issued_by_user_id": 222324,
"project_id": 1,
"region_id": 4,
"resources": [
{
"resource_body": {
"key": "value"
},
"resource_id": "1234",
"resource_type": "project",
"search_field": "name"
}
],
"source_user_ip": "1.2.3.4",
"task_id": "1bdcc138-e716-41ff-ad8d-3477a7ac6d14",
"timestamp": "2019-11-14T10:30:32+00:00",
"token_id": 192021,
"total_price": {
"currency_code": "USD",
"price_per_hour": 0.01,
"price_per_month": 7.2
},
"user_agent": "Mozilla/5.0",
"user_id": 789
}
]
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- warning
added the new
get_certificateenum value to the//response property for the response status - warning
added the new
get_consoleenum value to the//response property for the response status - warning
added the new
get_kubeconfigenum value to the//response property for the response status - warning
added the new
get_logsenum value to the//response property for the response status - warning
added the new
slurmenum value to the//response property for the response status - warning
added the new
slurm_clusterenum value to the////response property for the response status - warning
added the new
slurm_node_setenum value to the////response property for the response status - info
added the enum value
get_certificateto the propertyitems/of thequeryrequest parameteraction_type - info
added the enum value
get_consoleto the propertyitems/of thequeryrequest parameteraction_type - info
added the enum value
get_kubeconfigto the propertyitems/of thequeryrequest parameteraction_type - info
added the enum value
get_logsto the propertyitems/of thequeryrequest parameteraction_type - info
added the enum value
slurmto the propertyitems/of thequeryrequest parameterapi_group
- warning