Check timeslots availability

Available in versions: 12.56 and later

Description

Checks if a timeslot can be allocated.

URL

Copy code
/LoadTest/rest/domains/{domainName}/projects/{projectName}/timeslots/availabilities

Remarks

Body of the request should contain a timeslot description in xml format.

HTTP Method

PUT: Checks timeslot availability.

Request

Headers:

Content-Type: application/xml

Cookies:

  • Version 2020 (or later): LWSSO_COOKIE_KEY={LwssoCookie};

  • Versions earlier than 2020: LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

PUT: An XML describing the timeslot to be verified.

Fields that can be used in the request body for checking timeslot availability:

ElementDescription
SearchDurationInHours(Optional) Default value is 42 hours.
Timeslot

The type of demands for timeslot creation. Can include:

  • ControllerDemandManual. Fields include: HostID (mandatory), IsLoadGenerator (optional)

  • ControllerDemandAutomatic. Contains no fields; any host can be allocated as a Controller.

  • LoadGeneratorDemandManual. Fields: HostID (mandatory)

  • LoadGeneratorDemandAutomatic. Fields: HostsToReserve (mandatory), LocationID (optional)

Response

Headers:

One of:

  • Content-Type: application/xml
  • Content-Type: application/json

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

The response body contains a list of conflicts that the timeslot could encounter during the selected search interval. If the list is empty, the timeslot can be allocated at any time within the search interval.

See Also

Create or get all timeslots
Delete a timeslot
Timeslot XML