Resources > Timeslots > Timeslots (Check availability)

Timeslots (Check availability)

Description

Checks if a timeslot can be allocated.

URL

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

Remarks

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

HTTP Method

PUT: Checks timeslot availability.

Request

Headers:

One of:

Cookies:

LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

PUT: An XML describing the timeslot to be verified, or the equivalent in JSON format.

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

Element Description
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:

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

Timeslots (Create, Get all timeslots)
Timeslots (Delete a timeslot)
Timeslot XML