List users
curl --request GET \
--url https://api.gcore.com/iam/resellers/v2/users \
--header 'Authorization: <api-key>'import requests
url = "https://api.gcore.com/iam/resellers/v2/users"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.gcore.com/iam/resellers/v2/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gcore.com/iam/resellers/v2/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gcore.com/iam/resellers/v2/users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gcore.com/iam/resellers/v2/users")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/iam/resellers/v2/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"count": 123,
"results": [
{
"id": 123,
"email": "jsmith@example.com",
"name": "<string>",
"client": 123,
"groups": [
{
"id": 123,
"name": "<string>"
}
],
"activated": true,
"user_type": "<string>",
"two_fa": true,
"auth_types": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"deleted": true,
"last_login": "2023-11-07T05:31:56Z",
"reseller": 123,
"clients_and_roles": [
{
"client_id": 123,
"client_company_name": "<string>",
"user_roles": [
"<string>"
],
"user_id": 123,
"auth_types": [
"<string>"
]
}
],
"lang": "az",
"phone": "<string>"
}
],
"next": "https://api.gcore.com/iam/resellers/v2/users?offset=400&limit=100",
"previous": "https://api.gcore.com/iam/resellers/v2/users?offset=200&limit=100"
}Users
List users
List the users of the caller’s reseller: the users of its clients, plus its own sellers / reseller-admins.
Filtering follows the standard query filtering rules: ids, client_ids,
langs and user_types are repeated flat parameters (OR), e.g.
ids=1&ids=2; email, name and created_at require a bracket operator,
e.g. email[contains]=example.com. Sorting is order_by=field.direction
(e.g. order_by=created_at.desc, the default); results are paginated with
limit/offset.
GET
/
iam
/
resellers
/
v2
/
users
List users
curl --request GET \
--url https://api.gcore.com/iam/resellers/v2/users \
--header 'Authorization: <api-key>'import requests
url = "https://api.gcore.com/iam/resellers/v2/users"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.gcore.com/iam/resellers/v2/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gcore.com/iam/resellers/v2/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gcore.com/iam/resellers/v2/users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gcore.com/iam/resellers/v2/users")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/iam/resellers/v2/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"count": 123,
"results": [
{
"id": 123,
"email": "jsmith@example.com",
"name": "<string>",
"client": 123,
"groups": [
{
"id": 123,
"name": "<string>"
}
],
"activated": true,
"user_type": "<string>",
"two_fa": true,
"auth_types": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"deleted": true,
"last_login": "2023-11-07T05:31:56Z",
"reseller": 123,
"clients_and_roles": [
{
"client_id": 123,
"client_company_name": "<string>",
"user_roles": [
"<string>"
],
"user_id": 123,
"auth_types": [
"<string>"
]
}
],
"lang": "az",
"phone": "<string>"
}
],
"next": "https://api.gcore.com/iam/resellers/v2/users?offset=400&limit=100",
"previous": "https://api.gcore.com/iam/resellers/v2/users?offset=200&limit=100"
}Authorizations
Query Parameters
Was this page helpful?