CoreService

<back to all web services

GetPatchingWindow

Patching - CRUD

Returns a single patching window by its id

Requires Authentication
Requires the role:TenantReader
The following routes are available for this service:
GET/api/patching/windows/{Id}Returns a single patching window by its id
GET/patching/windows/{Id}Returns a single patching window by its id
"use strict";
/** @typedef {number} */
export var MonthlyDayOccurence;
(function (MonthlyDayOccurence) {
    MonthlyDayOccurence[MonthlyDayOccurence["First"] = 1] = "First"
    MonthlyDayOccurence[MonthlyDayOccurence["Second"] = 2] = "Second"
    MonthlyDayOccurence[MonthlyDayOccurence["Third"] = 3] = "Third"
    MonthlyDayOccurence[MonthlyDayOccurence["Fourth"] = 4] = "Fourth"
})(MonthlyDayOccurence || (MonthlyDayOccurence = {}));
export class PatchingWindowDto {
    /** @param {{id?:string,name?:string,dayOfWeek?:DayOfWeek,monthlyOccurence?:MonthlyDayOccurence,timeOfDay?:string,duration?:string,isDefault?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    name;
    /** @type {DayOfWeek} */
    dayOfWeek;
    /** @type {MonthlyDayOccurence} */
    monthlyOccurence;
    /** @type {string} */
    timeOfDay;
    /** @type {string} */
    duration;
    /** @type {boolean} */
    isDefault;
}
export class GetPatchingWindow {
    /** @param {{id?:string,tenantName?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The primary key of every config item */
    id;
    /** @type {string} */
    tenantName;
}

JavaScript GetPatchingWindow DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /api/patching/windows/{Id} HTTP/1.1 
Host: core.starburst.svc 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":"00000000-0000-0000-0000-000000000000","name":"String","dayOfWeek":"Sunday","monthlyOccurence":"First","timeOfDay":"00:00:00","duration":"00:00:00","isDefault":false}