CoreService

<back to all web services

GetUpdate

Patching - CRUD

Returns a single update by its id

Requires Authentication
Requires the role:TenantReader
The following routes are available for this service:
GET/api/patching/updates/{Id}Returns a single update by its id
GET/patching/updates/{Id}Returns a single update by its id
"use strict";
export class UpdateDto {
    /** @param {{id?:string,name?:string,severity?:string,published?:string,classifications?:string[],isRebootRequired?:boolean,extId?:string,version?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    name;
    /**
     * @type {?string}
     * @description The severity of the vulnerability this update fixes (e.g. Critical, Important, Moderate, etc.) */
    severity;
    /**
     * @type {string}
     * @description The time the update was first published */
    published;
    /**
     * @type {?string[]}
     * @description Update classification/type (e.g. Critical Update, Definition Update, Security Update, etc.) */
    classifications;
    /**
     * @type {boolean}
     * @description Whether the update needs a reboot or not */
    isRebootRequired;
    /**
     * @type {?string}
     * @description In case of windows this is the KB id */
    extId;
    /**
     * @type {?string}
     * @description In case of linux this is the update package version */
    version;
}
export class GetUpdate {
    /** @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 GetUpdate 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/updates/{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","severity":"String","published":"0001-01-01T00:00:00.0000000Z","classifications":["String"],"isRebootRequired":false,"extId":"String","version":"String"}