GET
/
cloud
/
v1
/
users
/
assignments
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.cloud.users.role_assignments.list()
page = page.results[0]
print(page.id)
{
  "count": 1,
  "results": [
    {
      "assigned_by": 123,
      "client_id": 123,
      "created_at": "2019-06-25T08:42:42Z",
      "id": 12,
      "project_id": 123,
      "role": "ClientAdministrator",
      "updated_at": "2019-06-25T08:42:42Z",
      "user_id": 123
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

limit
integer
default:1000

Limit the number of returned items. Falls back to default of 1000 if not specified. Limited by max limit value of 1000

Required range: 0 < x <= 1000
Examples:

100

offset
integer
default:0

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

Required range: x >= 0
Examples:

0

project_id
integer

Project ID

Examples:

123

user_id
integer

User ID for filtering

Examples:

123

Response

200 - application/json

OK

The response is of type object.