StarterTemplate ASP.NET Host

<back to all web services

RequestHostByIdV2

TestHost Service

The following routes are available for this service:
GET/service/automation/v2/hosts/{HostId}Returns a test host by its IDThe authenticating user must have Read access to Test Hosts. The specified test host must exist.
Parameters:
NameParameterData TypeRequiredDescription
HostIdpathintYesThe ID of the host computer

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/RequestHostByIdV2 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/jsv
Content-Length: length

{
	host_id: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	host_name: String,
	host_configuration: String,
	agents: 
	[
		String
	],
	os: String,
	is_active: False,
	security_token: String,
	agent_version: String
}