Get the agents of an account
curl --request GET \
--url https://pria.praxislxp.com/api/admin/accounts/{accountId}/agents \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/admin/accounts/{accountId}/agents"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/admin/accounts/{accountId}/agents', 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://pria.praxislxp.com/api/admin/accounts/{accountId}/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <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://pria.praxislxp.com/api/admin/accounts/{accountId}/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<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://pria.praxislxp.com/api/admin/accounts/{accountId}/agents")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/accounts/{accountId}/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"id": "<string>",
"name": "<string>",
"status": "<string>",
"disabled": true
},
"activationAvailable": true,
"vm": {
"id": "<string>",
"status": "<string>",
"stopReason": "<string>",
"size": {
"taskSizeCpu": 123,
"taskSizeMemoryMb": 123
},
"health": "<string>"
},
"rollout": {
"state": "<string>",
"desiredCount": 123,
"runningCount": 123,
"pendingCount": 123,
"failedTasks": 123,
"startedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"rolloutRead": "ok",
"busy": {
"busy": true,
"reasons": [
{
"kind": "<string>",
"label": "<string>",
"since": "2023-11-07T05:31:56Z"
}
]
},
"twins": [
{
"id": "<string>",
"name": "<string>",
"agentsAllowed": true,
"enabled": true,
"status": "<string>",
"activatedBy": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"activatedAt": "2023-11-07T05:31:56Z",
"configured": {
"agents": [
{
"key": "<string>",
"name": "<string>"
}
],
"workflows": {
"count": 123,
"more": true,
"scheduled": 123,
"items": [
{
"name": "<string>",
"enabled": true,
"scheduled": true,
"owner": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
]
},
"olderWorkflows": {
"count": 123,
"more": true
},
"fleetTasks": {
"count": 123,
"more": true
},
"chatApps": [
{
"kind": "<string>",
"status": "<string>"
}
]
},
"running": [
{
"kind": "<string>",
"label": "<string>",
"since": "2023-11-07T05:31:56Z",
"lastActiveAt": "2023-11-07T05:31:56Z"
}
],
"runningTruncated": true,
"people": [
{
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"role": "<string>",
"workspaceStatus": "<string>",
"since": "2023-11-07T05:31:56Z",
"principalStatus": "<string>"
}
],
"peopleTruncated": true
}
],
"twinsTruncated": true,
"runsTruncated": true,
"principalsMore": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Admin Accounts
Get the agents of an account
One account: its agent computer, where it stands and what runs on it now, and for each Digital Twin that can or does use agents what is configured, what runs and who has a workspace. For an administrator of the account.
GET
/
api
/
admin
/
accounts
/
{accountId}
/
agents
Get the agents of an account
curl --request GET \
--url https://pria.praxislxp.com/api/admin/accounts/{accountId}/agents \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/admin/accounts/{accountId}/agents"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/admin/accounts/{accountId}/agents', 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://pria.praxislxp.com/api/admin/accounts/{accountId}/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <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://pria.praxislxp.com/api/admin/accounts/{accountId}/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<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://pria.praxislxp.com/api/admin/accounts/{accountId}/agents")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/accounts/{accountId}/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"id": "<string>",
"name": "<string>",
"status": "<string>",
"disabled": true
},
"activationAvailable": true,
"vm": {
"id": "<string>",
"status": "<string>",
"stopReason": "<string>",
"size": {
"taskSizeCpu": 123,
"taskSizeMemoryMb": 123
},
"health": "<string>"
},
"rollout": {
"state": "<string>",
"desiredCount": 123,
"runningCount": 123,
"pendingCount": 123,
"failedTasks": 123,
"startedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"rolloutRead": "ok",
"busy": {
"busy": true,
"reasons": [
{
"kind": "<string>",
"label": "<string>",
"since": "2023-11-07T05:31:56Z"
}
]
},
"twins": [
{
"id": "<string>",
"name": "<string>",
"agentsAllowed": true,
"enabled": true,
"status": "<string>",
"activatedBy": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"activatedAt": "2023-11-07T05:31:56Z",
"configured": {
"agents": [
{
"key": "<string>",
"name": "<string>"
}
],
"workflows": {
"count": 123,
"more": true,
"scheduled": 123,
"items": [
{
"name": "<string>",
"enabled": true,
"scheduled": true,
"owner": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
}
}
]
},
"olderWorkflows": {
"count": 123,
"more": true
},
"fleetTasks": {
"count": 123,
"more": true
},
"chatApps": [
{
"kind": "<string>",
"status": "<string>"
}
]
},
"running": [
{
"kind": "<string>",
"label": "<string>",
"since": "2023-11-07T05:31:56Z",
"lastActiveAt": "2023-11-07T05:31:56Z"
}
],
"runningTruncated": true,
"people": [
{
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"role": "<string>",
"workspaceStatus": "<string>",
"since": "2023-11-07T05:31:56Z",
"principalStatus": "<string>"
}
],
"peopleTruncated": true
}
],
"twinsTruncated": true,
"runsTruncated": true,
"principalsMore": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Response
The account's agents.
Was this page helpful?