See all operations
POST: floating-licenses
Description
Creates a new floating license session
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://api.inflectra.com/Spira/Services/v7_0/RestService.svc/floating-licenses
Request Body
Property
|
Description
|
SessionId
|
The GUID of the unique floating license session
|
AutomationEngineToken
|
The token of the tool which the license is for (currently only "Rapise" is supported)
|
MachineId
|
The unique ID of the machine requesting the license
|
AutomationHost
|
The token of the automation host assigned to this machine
|
DateStarted
|
The date the license was first issued
|
ExpirationDate
|
The expiration date of the license
|
LastContactDate
|
The date of last contact between the tool and Spira
|
IpAddress
|
The IP address of the machine holding the floating license
|
<RemoteFloatingLicense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<AutomationEngineToken i:nil="true" />
<AutomationHost i:nil="true" />
<DateStarted>0001-01-01T00:00:00</DateStarted>
<ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
<IpAddress i:nil="true" />
<LastContactDate>0001-01-01T00:00:00</LastContactDate>
<MachineId i:nil="true" />
<SessionId i:nil="true" />
</RemoteFloatingLicense>
{"SessionId":null,
"AutomationEngineToken":null,
"MachineId":null,
"AutomationHost":null,
"DateStarted":"0001-01-01T00:00:00",
"ExpirationDate":"0001-01-01T00:00:00",
"LastContactDate":"0001-01-01T00:00:00",
"IpAddress":null}
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.
Property
|
Description
|
SessionId
|
The GUID of the unique floating license session
|
AutomationEngineToken
|
The token of the tool which the license is for (currently only "Rapise" is supported)
|
MachineId
|
The unique ID of the machine requesting the license
|
AutomationHost
|
The token of the automation host assigned to this machine
|
DateStarted
|
The date the license was first issued
|
ExpirationDate
|
The expiration date of the license
|
LastContactDate
|
The date of last contact between the tool and Spira
|
IpAddress
|
The IP address of the machine holding the floating license
|
<RemoteFloatingLicense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<AutomationEngineToken i:nil="true" />
<AutomationHost i:nil="true" />
<DateStarted>0001-01-01T00:00:00</DateStarted>
<ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
<IpAddress i:nil="true" />
<LastContactDate>0001-01-01T00:00:00</LastContactDate>
<MachineId i:nil="true" />
<SessionId i:nil="true" />
</RemoteFloatingLicense>
{"SessionId":null,
"AutomationEngineToken":null,
"MachineId":null,
"AutomationHost":null,
"DateStarted":"0001-01-01T00:00:00",
"ExpirationDate":"0001-01-01T00:00:00",
"LastContactDate":"0001-01-01T00:00:00",
"IpAddress":null}