[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen

Find Sessions By Agent Guid

Description

Filter sessions by AgentSessionGUIDs.

Request

Request

URL

URL


post
https://cloud.vmwarehorizon.com/portal/v2/sessions/bulk
Copy

Query Parameters

Query Parameters

string
org_id Optional

org_id


Request Body

Request Body

SessionBatchReq of mimetype application/json Required

sessionBatchReq

{
	"userGuidDTOs": [
		{
			"agentSessionGuid": [
				"string"
			],
			"userId": "userId"
		}
	]
}
array of UserGuidDTO
userGuidDTOs Required

List of UserIds and corresponding Agent session Guids

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns array of InvSessionDTO of type application/json
{
	"agentSessionGuid": "string",
	"clientId": "string",
	"dspecId": "string",
	"edgeId": "string",
	"edgeName": "string",
	"entitlementId": "string",
	"haiAgentVersion": "string",
	"id": "string",
	"lastAssignedTime": "string",
	"normalizedAgentVersion": "string",
	"poolId": "string",
	"poolName": "string",
	"providerLabel": "string",
	"sessionStatus": "string",
	"sessionType": "string",
	"siteId": "string",
	"siteName": "string",
	"templateId": "string",
	"templateType": "string",
	"userId": "string",
	"username": "string",
	"viewAgentVersion": "string",
	"vmId": "string"
}
string
agentSessionGuid Optional

string
clientId Optional

string
dspecId Optional

string
edgeId Optional

string
edgeName Optional

string
entitlementId Optional

string
haiAgentVersion Optional

string
id Optional

string as date-time
lastAssignedTime Optional

string
normalizedAgentVersion Optional

string
poolId Optional

string
poolName Optional

string
providerLabel Optional

string
sessionStatus Optional

string
sessionType Optional

string
siteId Optional

string
siteName Optional

string
templateId Optional

string
templateType Optional

string
userId Optional

string
username Optional

string
viewAgentVersion Optional

string
vmId Optional
Errors

Errors

ErrorResponse
400

Bad Request


ErrorResponse
401

Unauthorized


ErrorResponse
403

Forbidden


ErrorResponse
404

Not Found


ErrorResponse
412

Precondition Failed

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"userGuidDTOs":[{"agentSessionGuid":["string"],"userId":"userId"}]}' https://cloud.vmwarehorizon.com/portal/v2/sessions/bulk
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: sessionBatchReq


Feedback

Was this page helpful?