GET
/
cloud
/
v1
/
user_actions
List user actions
curl --request GET \
  --url https://api.gcore.com/cloud/v1/user_actions \
  --header 'Authorization: <api-key>'
{
  "count": 1,
  "results": [
    {
      "acknowledged": true,
      "action_data": "{\"name\": \"test_project_a\"}",
      "action_type": "create",
      "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"
        }
      ],
      "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,
        "price_status": "show"
      },
      "user_id": 789
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

action_type
enum<string>[]

User action type. Several options can be specified.

Examples:
["activate", "delete"]
api_group
enum<string>[]

API group that requested action belongs to. Several options can be specified.

Examples:
["ai_cluster", "image"]
from_timestamp
string

ISO formatted datetime string. Starting timestamp from which user actions are requested

Examples:

"2019-11-14T10:30:32Z"

limit
integer
default:1000

Optional. Limit the number of returned items

Required range: 0 < x <= 1000
Examples:

1000

offset
integer
default:0

Optional. Offset value is used to exclude the first set of records from the result

Required range: x >= 0
Examples:

0

order_by
enum<string>

Sorting by timestamp. Oldest first, or most recent first

Available options:
asc,
desc
project_id
integer[]

Project ID. Several options can be specified.

Examples:
[1, 2, 3]
region_id
integer[]

Region ID. Several options can be specified.

Examples:
[1, 2, 3]
resource_id
string[]

Resource ID. Several options can be specified.

search_field
string

Extra search field for common object properties such as name, IP address, or other, depending on the resource_type

Examples:

"default"

sorting
enum<string>

(DEPRECATED Use 'order_by' instead) Sorting by timestamp. Oldest first, or most recent first

Available options:
asc,
desc
to_timestamp
string

ISO formatted datetime string. Ending timestamp until which user actions are requested

Examples:

"2019-11-14T10:30:32Z"

Response

200 - application/json

OK

The response is of type object.