Get Agent Default Version

Get default version by agent type

GET /sl-api/v1/agent-apis/agents/types/{agentType}/default-version

This API uses the Agent token

Request Parameters

Parameter

Description

Parameter

Description

agentType

See Supported Agent Types

Supported Agent Types

Agent Type

Description

Agent Type

Description

dotnet

.NET and .NET Core Agent

sealights-java

Java Agent

sl-maven-plugin

Maven Plugin

sl-gradle-plugin

Gradle Plugin

Sample HTTP request and response

GET /sl-api/v1/agent-apis/agents/types/{agentType}/default-version HTTP/1.1 Authorization: Bearer {sealights-agent-token} Accept: application/json HTTP/1.1 200 OK Content-Type: application/json { "data": { "name": "dotnet", "version": "2.0.1.728", "date": "2020-02-17T19:55:46.890Z", "url": "http://agents.sealights.co/SL.DotNet/SL.DotNet-2.0.1.728.zip" } }

Sample Shell command and response:

curl -X GET "https://$DOMAIN/sl-api/v1/agent-apis/agents/types/$AGENT_TYPE/default-version" \ -H "Authorization: Bearer $SEALIGHTS_AGENT_TOKEN" -H "accept: application/json" 200 OK application/json { "data": { "name": "dotnet", "version": "2.0.1.728", "date": "2020-02-17T19:55:46.890Z", "url": "http://agents.sealights.co/SL.DotNet/SL.DotNet-2.0.1.728.zip" } }