CoreService

<back to all web services

GetPatchingWindowAssignment

Patching - CRUD

Returns a single patching window assignment by its id

Requires Authentication
Requires the role:TenantReader
The following routes are available for this service:
GET/api/patching/windows/assignments/{Id}Returns a single patching window assignment by its id
GET/patching/windows/assignments/{Id}Returns a single patching window assignment by its id
"use strict";
/** @typedef {'None'|'ConfigItem'|'Tenant'|'Collection'|'Resource'|'ComputeNode'|'VirtualMachine'|'PhysicalMachine'|'Disk'|'Subnet'|'IPAddress'|'Job'|'JobEvent'|'FreezePeriod'|'ResourceGroup'|'Deployment'|'ResourceGroupTemplate'|'DeploymentTemplate'|'ResourceProvider'|'GenericResource'|'Role'|'Permission'|'User'|'PatchingWindow'|'Update'|'ReportDefinition'|'TimeSeries'|'DataPoint'|'Action'|'ActionAssignment'|'UserNote'} */
export var ObjectTypes;
(function (ObjectTypes) {
    ObjectTypes["None"] = "None"
    ObjectTypes["ConfigItem"] = "ConfigItem"
    ObjectTypes["Tenant"] = "Tenant"
    ObjectTypes["Collection"] = "Collection"
    ObjectTypes["Resource"] = "Resource"
    ObjectTypes["ComputeNode"] = "ComputeNode"
    ObjectTypes["VirtualMachine"] = "VirtualMachine"
    ObjectTypes["PhysicalMachine"] = "PhysicalMachine"
    ObjectTypes["Disk"] = "Disk"
    ObjectTypes["Subnet"] = "Subnet"
    ObjectTypes["IPAddress"] = "IPAddress"
    ObjectTypes["Job"] = "Job"
    ObjectTypes["JobEvent"] = "JobEvent"
    ObjectTypes["FreezePeriod"] = "FreezePeriod"
    ObjectTypes["ResourceGroup"] = "ResourceGroup"
    ObjectTypes["Deployment"] = "Deployment"
    ObjectTypes["ResourceGroupTemplate"] = "ResourceGroupTemplate"
    ObjectTypes["DeploymentTemplate"] = "DeploymentTemplate"
    ObjectTypes["ResourceProvider"] = "ResourceProvider"
    ObjectTypes["GenericResource"] = "GenericResource"
    ObjectTypes["Role"] = "Role"
    ObjectTypes["Permission"] = "Permission"
    ObjectTypes["User"] = "User"
    ObjectTypes["PatchingWindow"] = "PatchingWindow"
    ObjectTypes["Update"] = "Update"
    ObjectTypes["ReportDefinition"] = "ReportDefinition"
    ObjectTypes["TimeSeries"] = "TimeSeries"
    ObjectTypes["DataPoint"] = "DataPoint"
    ObjectTypes["Action"] = "Action"
    ObjectTypes["ActionAssignment"] = "ActionAssignment"
    ObjectTypes["UserNote"] = "UserNote"
})(ObjectTypes || (ObjectTypes = {}));
export class TagDto {
    /** @param {{name?:string,value?:string,isProtected?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    name;
    /** @type {?string} */
    value;
    /** @type {boolean} */
    isProtected;
}
export class PathItemDto {
    /** @param {{label?:string,link?:string,objectType?:ObjectTypes,objectId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    label;
    /** @type {string} */
    link;
    /** @type {ObjectTypes} */
    objectType;
    /** @type {string} */
    objectId;
}
export class LinkDto {
    /** @param {{caption?:string,rel?:string,hRef?:string,method?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    caption;
    /** @type {string} */
    rel;
    /** @type {string} */
    hRef;
    /** @type {string} */
    method;
}
export class ConfigItemDto {
    /** @param {{id?:string,name?:string,displayName?:string,description?:string,objectType?:ObjectTypes,selfLink?:string,tags?:IList<TagDto>,path?:IList<PathItemDto>,created?:string,createUser?:string,createUserId?:string,modified?:string,modifyUser?:string,modifyUserId?:string,isDeleted?:boolean,deleted?:string,deleteUser?:string,deleteUserId?:string,links?:IList<LinkDto>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    name;
    /** @type {string} */
    displayName;
    /** @type {?string} */
    description;
    /** @type {ObjectTypes} */
    objectType;
    /** @type {string} */
    selfLink;
    /** @type {IList<TagDto>} */
    tags;
    /** @type {IList<PathItemDto>} */
    path;
    /** @type {string} */
    created;
    /** @type {string} */
    createUser;
    /** @type {string} */
    createUserId;
    /** @type {string} */
    modified;
    /** @type {string} */
    modifyUser;
    /** @type {string} */
    modifyUserId;
    /** @type {boolean} */
    isDeleted;
    /** @type {?string} */
    deleted;
    /** @type {?string} */
    deleteUser;
    /** @type {?string} */
    deleteUserId;
    /** @type {IList<LinkDto>} */
    links;
}
/** @typedef {'None'|'Starting'|'Running'|'Stopping'|'Stopped'|'Restarting'|'Deleting'|'Unknown'} */
export var OperationalStates;
(function (OperationalStates) {
    OperationalStates["None"] = "None"
    OperationalStates["Starting"] = "Starting"
    OperationalStates["Running"] = "Running"
    OperationalStates["Stopping"] = "Stopping"
    OperationalStates["Stopped"] = "Stopped"
    OperationalStates["Restarting"] = "Restarting"
    OperationalStates["Deleting"] = "Deleting"
    OperationalStates["Unknown"] = "Unknown"
})(OperationalStates || (OperationalStates = {}));
/** @typedef {'New'|'Deploying'|'Deployed'|'Removing'|'Removed'|'Failure'|'Imported'} */
export var LifecycleStates;
(function (LifecycleStates) {
    LifecycleStates["New"] = "New"
    LifecycleStates["Deploying"] = "Deploying"
    LifecycleStates["Deployed"] = "Deployed"
    LifecycleStates["Removing"] = "Removing"
    LifecycleStates["Removed"] = "Removed"
    LifecycleStates["Failure"] = "Failure"
    LifecycleStates["Imported"] = "Imported"
})(LifecycleStates || (LifecycleStates = {}));
/** @typedef {'Lab'|'Poc'|'Dev'|'Test'|'Int'|'Uat'|'Prod'} */
export var Environments;
(function (Environments) {
    Environments["Lab"] = "Lab"
    Environments["Poc"] = "Poc"
    Environments["Dev"] = "Dev"
    Environments["Test"] = "Test"
    Environments["Int"] = "Int"
    Environments["Uat"] = "Uat"
    Environments["Prod"] = "Prod"
})(Environments || (Environments = {}));
/** @typedef {'String'|'Number'|'Boolean'|'SecureString'} */
export var ParameterValueType;
(function (ParameterValueType) {
    ParameterValueType["String"] = "String"
    ParameterValueType["Number"] = "Number"
    ParameterValueType["Boolean"] = "Boolean"
    ParameterValueType["SecureString"] = "SecureString"
})(ParameterValueType || (ParameterValueType = {}));
export class ParameterDto {
    /** @param {{name?:string,description?:string,value?:string,default?:string,optional?:boolean,type?:ParameterValueType,validation?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    name;
    /** @type {?string} */
    description;
    /**
     * @type {?string}
     * @description Value in form of a json string (e.g. Number = 1234, String = "foo", Boolean = false). Note: string values need extra quotes */
    value;
    /**
     * @type {?string}
     * @description Optional default value for the frontend. Needs to be in the same format as the value */
    default;
    /**
     * @type {boolean}
     * @description Optional parameters do not need to have a value. Default -> Optional=false */
    optional;
    /**
     * @type {ParameterValueType}
     * @description The data type of the value and default property */
    type;
    /** @type {?string} */
    validation;
}
/** @typedef {'String'|'Number'|'Boolean'|'List'} */
export var ValueDataType;
(function (ValueDataType) {
    ValueDataType["String"] = "String"
    ValueDataType["Number"] = "Number"
    ValueDataType["Boolean"] = "Boolean"
    ValueDataType["List"] = "List"
})(ValueDataType || (ValueDataType = {}));
export class VariableDto {
    /** @param {{name?:string,value?:string,type?:ValueDataType,description?:string,isInherited?:boolean,environment?:Environments}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    name;
    /**
     * @type {string}
     * @description Value in form of a json string (e.g. Number = 1234, String = "foo", Boolean = false, List = [1,2,3,4]). Note: string values need extra quotes */
    value;
    /**
     * @type {ValueDataType}
     * @description The data type of the value property */
    type;
    /** @type {?string} */
    description;
    /** @type {boolean} */
    isInherited;
    /** @type {?Environments} */
    environment;
}
/** @typedef {'Native'|'Foreign'|'Mixed'} */
export var ResourceCompositions;
(function (ResourceCompositions) {
    ResourceCompositions["Native"] = "Native"
    ResourceCompositions["Foreign"] = "Foreign"
    ResourceCompositions["Mixed"] = "Mixed"
})(ResourceCompositions || (ResourceCompositions = {}));
export class DeploymentDto extends ConfigItemDto {
    /** @param {{operationalState?:OperationalStates,resourcesRunning?:number,resourcesTotal?:number,shortId?:string,nameUserDefinedPart?:string,tenantId?:string,state?:LifecycleStates,environment?:Environments,templateId?:string,isTemplateBased?:boolean,parameters?:IList<ParameterDto>,variables?:IList<VariableDto>,variablesSnapshot?:IList<VariableDto>,parentId?:string,parent?:ConfigItemDto,validFrom?:string,validUntil?:string,isNeverExpiring?:boolean,nextPatchDate?:string,defaultResourceProviderId?:string,needsAttention?:boolean,composition?:ResourceCompositions,monthlyBudget?:number,sendBudgetNotificationMails?:boolean,budgetWarningThresholdPercent?:number,links?:IList<LinkDto>,id?:string,name?:string,displayName?:string,description?:string,objectType?:ObjectTypes,selfLink?:string,tags?:IList<TagDto>,path?:IList<PathItemDto>,created?:string,createUser?:string,createUserId?:string,modified?:string,modifyUser?:string,modifyUserId?:string,isDeleted?:boolean,deleted?:string,deleteUser?:string,deleteUserId?:string,links?:IList<LinkDto>}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /**
     * @type {OperationalStates}
     * @description The operational state of the deployment (Running, Stopped, None, Unknown) */
    operationalState;
    /**
     * @type {number}
     * @description How many start/stop-capable resources are currently running */
    resourcesRunning;
    /**
     * @type {number}
     * @description Total number of start/stop-capable resources in this deployment */
    resourcesTotal;
    /**
     * @type {string}
     * @description Shorter id than the guid which can be used for automation (tenant wide unique) prefixed with a 'd'. E.g. dr36x3 */
    shortId;
    /**
     * @type {string}
     * @description The user defined part of the name property {userDefined}_{environment} */
    nameUserDefinedPart;
    /**
     * @type {string}
     * @description The id of the tenant */
    tenantId;
    /**
     * @type {LifecycleStates}
     * @description The state of the deployment */
    state;
    /**
     * @type {Environments}
     * @description The environment the deployment is deployed in */
    environment;
    /**
     * @type {?string}
     * @description The id of the template which was used to create the deployment */
    templateId;
    /**
     * @type {boolean}
     * @description Shows if a deployment was rolled out through a dune template or not */
    isTemplateBased;
    /**
     * @type {IList<ParameterDto>}
     * @description The parameters which were used to create this deployment */
    parameters;
    /**
     * @type {IList<VariableDto>}
     * @description A deployment scoped list of variables used for deployment of resources */
    variables;
    /**
     * @type {IList<VariableDto>}
     * @description A snapshot of the varialbs used to create the deployment */
    variablesSnapshot;
    /**
     * @type {string}
     * @description The id of the parent (collection) of the deployment */
    parentId;
    /**
     * @type {?ConfigItemDto}
     * @description The parent (collection) of the deployment */
    parent;
    /**
     * @type {string}
     * @description The Date when the resources got deployed */
    validFrom;
    /**
     * @type {?string}
     * @description The Date when the deployment expires and has to be reevaluated */
    validUntil;
    /**
     * @type {boolean}
     * @description The deployment will never expire */
    isNeverExpiring;
    /**
     * @type {?string}
     * @description The date, when the deployments resources will receive updates */
    nextPatchDate;
    /**
     * @type {string}
     * @description The default resource provider where the resources are deployed */
    defaultResourceProviderId;
    /**
     * @type {boolean}
     * @description Deployments which have issues in Jobs are marked with NeedsAttention */
    needsAttention;
    /**
     * @type {ResourceCompositions}
     * @description Composition show if all resources in the deployment are dune native, dune foreign or a mix of both */
    composition;
    /**
     * @type {?number}
     * @description The monthly cost budget for the whole collection */
    monthlyBudget;
    /**
     * @type {?boolean}
     * @description Whether to send budget information mails to the collection owners */
    sendBudgetNotificationMails;
    /**
     * @type {?number}
     * @description A threshold, when to send the first budget warning mail */
    budgetWarningThresholdPercent;
    /** @type {IList<LinkDto>} */
    links;
}
export class TenantDto extends ConfigItemDto {
    /** @param {{variables?:IList<VariableDto>,allowedMailDomains?:IList<string>,licensedModules?:IList<string>,defaultDeploymentLifetimeDays?:number,maxDeploymentLifetimeDays?:number,systemUnpatchedWarningDays?:number,systemBackupMissingWarningHours?:number,stopVulnerableResourceAfterDays?:number,deploymentExpirationWarningDays?:number,patchNotificationDays?:number,useCustomHostnames?:boolean,removeInactiveVulnerabilitiesAfterDays?:number,links?:IList<LinkDto>,id?:string,name?:string,displayName?:string,description?:string,objectType?:ObjectTypes,selfLink?:string,tags?:IList<TagDto>,path?:IList<PathItemDto>,created?:string,createUser?:string,createUserId?:string,modified?:string,modifyUser?:string,modifyUserId?:string,isDeleted?:boolean,deleted?:string,deleteUser?:string,deleteUserId?:string,links?:IList<LinkDto>}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /**
     * @type {IList<VariableDto>}
     * @description Variables defined on tenant level */
    variables;
    /**
     * @type {IList<string>}
     * @description Allowed email domains used for authentication */
    allowedMailDomains;
    /**
     * @type {IList<string>}
     * @description List of licensed modules for this tenant */
    licensedModules;
    /**
     * @type {number}
     * @description Amount of days until a Deployment expires */
    defaultDeploymentLifetimeDays;
    /**
     * @type {number}
     * @description Max amount of days until a Deployment expires */
    maxDeploymentLifetimeDays;
    /**
     * @type {number}
     * @description Amount of days without patching until a unpatched warning is shown */
    systemUnpatchedWarningDays;
    /**
     * @type {number}
     * @description Amount of hours without backup until a backup missing warning is shown */
    systemBackupMissingWarningHours;
    /**
     * @type {number}
     * @description Amount of days until a vulnerable resource is getting stopped */
    stopVulnerableResourceAfterDays;
    /**
     * @type {number}
     * @description Amount of days before deployment expiration, which triggers the expiration warning */
    deploymentExpirationWarningDays;
    /**
     * @type {number}
     * @description Amount of days the patch notification is sent out prior to the patch date */
    patchNotificationDays;
    /**
     * @type {boolean}
     * @description Use a pool with your own hostnames (true) or let the hostname be auto generated (false) */
    useCustomHostnames;
    /**
     * @type {number}
     * @description After how many days inactive vulnerabilities will be purged from database */
    removeInactiveVulnerabilitiesAfterDays;
    /** @type {IList<LinkDto>} */
    links;
}
export class DeploymentCollectionDto extends ConfigItemDto {
    /** @param {{tenantId?:string,tenant?:TenantDto,variables?:IList<VariableDto>,isLostAndFound?:boolean,monthlyBudget?:number,sendBudgetNotificationMails?:boolean,budgetWarningThresholdPercent?:number,links?:IList<LinkDto>,id?:string,name?:string,displayName?:string,description?:string,objectType?:ObjectTypes,selfLink?:string,tags?:IList<TagDto>,path?:IList<PathItemDto>,created?:string,createUser?:string,createUserId?:string,modified?:string,modifyUser?:string,modifyUserId?:string,isDeleted?:boolean,deleted?:string,deleteUser?:string,deleteUserId?:string,links?:IList<LinkDto>}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {string} */
    tenantId;
    /** @type {?TenantDto} */
    tenant;
    /**
     * @type {IList<VariableDto>}
     * @description A collection scoped list of variables */
    variables;
    /**
     * @type {boolean}
     * @description Defines the collection where scanned but not deployed resources will be stored */
    isLostAndFound;
    /**
     * @type {?number}
     * @description The monthly cost budget for the whole collection */
    monthlyBudget;
    /**
     * @type {?boolean}
     * @description Whether to send budget information mails to the collection owners */
    sendBudgetNotificationMails;
    /**
     * @type {?number}
     * @description A threshold, when to send the first budget warning mail */
    budgetWarningThresholdPercent;
    /** @type {IList<LinkDto>} */
    links;
}
/** @typedef {'Azure'|'AmazonWebServices'|'GoogleCloudPlatform'|'ActiveDirectoryServices'|'DomainNameSystem'|'SwisscomESC'|'AzureKeyVault'} */
export var ResourceProviderTypes;
(function (ResourceProviderTypes) {
    ResourceProviderTypes["Azure"] = "Azure"
    ResourceProviderTypes["AmazonWebServices"] = "AmazonWebServices"
    ResourceProviderTypes["GoogleCloudPlatform"] = "GoogleCloudPlatform"
    ResourceProviderTypes["ActiveDirectoryServices"] = "ActiveDirectoryServices"
    ResourceProviderTypes["DomainNameSystem"] = "DomainNameSystem"
    ResourceProviderTypes["SwisscomESC"] = "SwisscomESC"
    ResourceProviderTypes["AzureKeyVault"] = "AzureKeyVault"
})(ResourceProviderTypes || (ResourceProviderTypes = {}));
export class ProviderConfigEntryDto {
    /** @param {{name?:string,value?:string,isSecure?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    name;
    /** @type {string} */
    value;
    /** @type {boolean} */
    isSecure;
}
export class ResourceProviderDto extends ConfigItemDto {
    /** @param {{tenantId?:string,defaultEnvironment?:Environments,allowedEnvironments?:IList<Environments>,type?:ResourceProviderTypes,config?:IList<ProviderConfigEntryDto>,isDisabled?:boolean,isReadyForDeployments?:boolean,costCurrentMonth?:number,costLastMonth?:number,costCurrency?:string,id?:string,name?:string,displayName?:string,description?:string,objectType?:ObjectTypes,selfLink?:string,tags?:IList<TagDto>,path?:IList<PathItemDto>,created?:string,createUser?:string,createUserId?:string,modified?:string,modifyUser?:string,modifyUserId?:string,isDeleted?:boolean,deleted?:string,deleteUser?:string,deleteUserId?:string,links?:IList<LinkDto>}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {string} */
    tenantId;
    /**
     * @type {Environments}
     * @description If environment cannot be detected while scanning, default environment will be used */
    defaultEnvironment;
    /**
     * @type {IList<Environments>}
     * @description List off all allowed environments for this resource provider */
    allowedEnvironments;
    /**
     * @type {ResourceProviderTypes}
     * @description Defines the provider type (e.g. Azure, Aws) */
    type;
    /**
     * @type {IList<ProviderConfigEntryDto>}
     * @description Additional generic data which varies depending on ProviderType */
    config;
    /**
     * @type {boolean}
     * @description Disabled ResourceProviders cannot be selected for new deployments */
    isDisabled;
    /**
     * @type {boolean}
     * @description Shows if a ResourceProvider has been initialized and can accept deployments (resources) */
    isReadyForDeployments;
    /**
     * @type {number}
     * @description The cost for the current month */
    costCurrentMonth;
    /**
     * @type {number}
     * @description The cost for the last month */
    costLastMonth;
    /**
     * @type {string}
     * @description The cost currency */
    costCurrency;
}
export class ResourceDto extends ConfigItemDto {
    /** @param {{extId?:string,extType?:string,extName?:string,tenantId?:string,parentId?:string,parent?:ConfigItemDto,deploymentId?:string,deployment?:DeploymentDto,collectionId?:string,collection?:DeploymentCollectionDto,environment?:Environments,resourceProviderId?:string,resourceProvider?:ResourceProviderDto,state?:OperationalStates,variables?:IList<VariableDto>,location?:string,lastSeen?:string,lastPatchDate?:string,nextPatchDate?:string,lastBackupDate?:string,isForeign?:boolean,isAlerting?:boolean,alertingDisabledId?:string,alertingDisabledReason?:string,isVulnerable?:boolean,vulnerabilityReason?:string,isMissingOnProvider?:boolean,supportsStartStop?:boolean,costCurrentMonth?:number,costLastMonth?:number,costCurrency?:string,config?:{ [index:string]: Object; },links?:IList<LinkDto>,id?:string,name?:string,displayName?:string,description?:string,objectType?:ObjectTypes,selfLink?:string,tags?:IList<TagDto>,path?:IList<PathItemDto>,created?:string,createUser?:string,createUserId?:string,modified?:string,modifyUser?:string,modifyUserId?:string,isDeleted?:boolean,deleted?:string,deleteUser?:string,deleteUserId?:string,links?:IList<LinkDto>}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /**
     * @type {?string}
     * @description Free text field to store an external resource id */
    extId;
    /**
     * @type {?string}
     * @description Free text field to store an external resource type */
    extType;
    /**
     * @type {?string}
     * @description Free text field to store an external resource name */
    extName;
    /**
     * @type {string}
     * @description The id of the tenant */
    tenantId;
    /**
     * @type {string}
     * @description The id of the parent (ResourceGroup) */
    parentId;
    /**
     * @type {?ConfigItemDto}
     * @description The parent (ResourceGroup */
    parent;
    /**
     * @type {string}
     * @description The id of the parent (Deployment */
    deploymentId;
    /**
     * @type {?DeploymentDto}
     * @description The parent (Deployement */
    deployment;
    /**
     * @type {string}
     * @description The id of the collection the resource belongs to */
    collectionId;
    /**
     * @type {?DeploymentCollectionDto}
     * @description The collection the resource belongs to */
    collection;
    /**
     * @type {Environments}
     * @description The environment the resourcegroup is deployed in */
    environment;
    /**
     * @type {string}
     * @description The id of the provider of the resource (e.g. Azure, AWS, other DC provider */
    resourceProviderId;
    /**
     * @type {?ResourceProviderDto}
     * @description The provider of the resource (e.g. Azure, AWS, other DC provider */
    resourceProvider;
    /**
     * @type {OperationalStates}
     * @description State of the resource */
    state;
    /** @type {IList<VariableDto>} */
    variables;
    /**
     * @type {?string}
     * @description Can be used for dc location */
    location;
    /**
     * @type {?string}
     * @description Last time the resource was seen/updated by a scan/cfgmgmt run etc. */
    lastSeen;
    /**
     * @type {?string}
     * @description Last time the resource has been patched successfully */
    lastPatchDate;
    /**
     * @type {?string}
     * @description Scheduled time for the next patching window */
    nextPatchDate;
    /**
     * @type {?string}
     * @description Time of the last successfull backup */
    lastBackupDate;
    /**
     * @type {boolean}
     * @description True = scanned (not deployed from dune template), False = deployed from dune with template */
    isForeign;
    /**
     * @type {boolean}
     * @description Is alerting in external monitoring activated */
    isAlerting;
    /**
     * @type {?string}
     * @description Used to identify external monitoring maintenance/downtime id */
    alertingDisabledId;
    /**
     * @type {?string}
     * @description Reason why alerting is disabled */
    alertingDisabledReason;
    /**
     * @type {boolean}
     * @description Identifies the resource as vulnerable (security) */
    isVulnerable;
    /**
     * @type {?string}
     * @description Reason why the resource is vulnerable */
    vulnerabilityReason;
    /**
     * @type {boolean}
     * @description True if resource is in cmdb but missing on provider/infra */
    isMissingOnProvider;
    /**
     * @type {boolean}
     * @description Shows if a resource can be started/stopped */
    supportsStartStop;
    /**
     * @type {number}
     * @description The cost for the current month */
    costCurrentMonth;
    /**
     * @type {number}
     * @description The cost for the last month */
    costLastMonth;
    /**
     * @type {string}
     * @description The cost currency */
    costCurrency;
    /**
     * @type {{ [index:string]: Object; }}
     * @description Additional generic configs */
    config = {};
    /** @type {IList<LinkDto>} */
    links;
}
/** @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 PatchingWindowAssignmentDto {
    /** @param {{id?:string,resourceId?:string,resource?:ResourceDto,patchingWindowId?:string,patchingWindow?:PatchingWindowDto}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {string} */
    resourceId;
    /** @type {?ResourceDto} */
    resource;
    /** @type {string} */
    patchingWindowId;
    /** @type {?PatchingWindowDto} */
    patchingWindow;
}
export class GetPatchingWindowAssignment {
    /** @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 GetPatchingWindowAssignment 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/assignments/{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","resourceId":"00000000-0000-0000-0000-000000000000","resource":{"extId":"String","extType":"String","extName":"String","tenantId":"00000000-0000-0000-0000-000000000000","parentId":"00000000-0000-0000-0000-000000000000","parent":{"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String","links":null},"deploymentId":"00000000-0000-0000-0000-000000000000","deployment":{"operationalState":"None","resourcesRunning":0,"resourcesTotal":0,"shortId":"String","nameUserDefinedPart":"String","tenantId":"00000000-0000-0000-0000-000000000000","state":"New","environment":"Lab","templateId":"00000000-0000-0000-0000-000000000000","isTemplateBased":true,"parameters":null,"variables":null,"variablesSnapshot":null,"parentId":"00000000-0000-0000-0000-000000000000","parent":{"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String","links":null},"validFrom":"0001-01-01T00:00:00.0000000Z","validUntil":"0001-01-01T00:00:00.0000000Z","isNeverExpiring":false,"nextPatchDate":"0001-01-01T00:00:00.0000000Z","defaultResourceProviderId":"00000000-0000-0000-0000-000000000000","needsAttention":false,"composition":"Native","monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"links":[{"caption":"Index","rel":"index","hRef":"/deployments/","method":"GET"},{"caption":"Collection","rel":"up","hRef":"/collections/00000000-0000-0000-0000-000000000000","method":"GET"},{"caption":"Resourcegroups","rel":"down","hRef":"/resourcegroups?parentId=00000000-0000-0000-0000-000000000000","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"collectionId":"00000000-0000-0000-0000-000000000000","collection":{"tenantId":"00000000-0000-0000-0000-000000000000","tenant":{"variables":null,"allowedMailDomains":null,"licensedModules":null,"defaultDeploymentLifetimeDays":0,"maxDeploymentLifetimeDays":0,"systemUnpatchedWarningDays":0,"systemBackupMissingWarningHours":0,"stopVulnerableResourceAfterDays":0,"deploymentExpirationWarningDays":0,"patchNotificationDays":0,"useCustomHostnames":false,"removeInactiveVulnerabilitiesAfterDays":0,"links":[{"caption":"Collections","rel":"down","hRef":"/collections/","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"links":[{"caption":"Index","rel":"up","hRef":"/collections/","method":"GET"},{"caption":"Deployments","rel":"down","hRef":"/deployments?parentId=00000000-0000-0000-0000-000000000000","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"environment":"Lab","resourceProviderId":"00000000-0000-0000-0000-000000000000","resourceProvider":{"tenantId":"00000000-0000-0000-0000-000000000000","defaultEnvironment":"Lab","allowedEnvironments":null,"type":"Azure","config":null,"isDisabled":false,"isReadyForDeployments":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String","links":null},"state":"None","variables":null,"location":"String","lastSeen":"0001-01-01T00:00:00.0000000Z","lastPatchDate":"0001-01-01T00:00:00.0000000Z","nextPatchDate":"0001-01-01T00:00:00.0000000Z","lastBackupDate":"0001-01-01T00:00:00.0000000Z","isForeign":false,"isAlerting":false,"alertingDisabledId":"String","alertingDisabledReason":"String","isVulnerable":false,"vulnerabilityReason":"String","isMissingOnProvider":false,"supportsStartStop":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","config":{"String":{}},"links":[{"caption":"Index","rel":"index","hRef":"/resources/","method":"GET"},{"caption":"ResourceGroup","rel":"up","hRef":"/resourcegroups/00000000-0000-0000-0000-000000000000","method":"GET"},{"caption":"Deployment","rel":"up","hRef":"/deployments/00000000-0000-0000-0000-000000000000","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"patchingWindowId":"00000000-0000-0000-0000-000000000000","patchingWindow":{"id":"00000000-0000-0000-0000-000000000000","name":"String","dayOfWeek":"Sunday","monthlyOccurence":"First","timeOfDay":"00:00:00","duration":"00:00:00","isDefault":false}}