If you want to have an overview of server updates in your K2 artifacts. You can create a REST service instance using the following swagger. Please be aware to publish this swagger to a public endpoint if you want to consume it from K2 Cloud. Also, replace the host with you K2 Cloud environment:
{
"swagger": "2.0",
"info": {
"title": "K2updates",
"description": "API to find the latest server updates on your K2 Cloud environment.",
"version": "1.0.0"
},
"host": ">YOUR.K2.ENV.ID].onk2.com",
"schemes":
"https"
],
"paths": {
"/autodiscover/updates": {
"get": {
"tags":
"Autodiscover"
],
"description": "Server updates",
"operationId": "ServerUpdates",
"produces":
"application/json"
],
"parameters":
{
"name": "top",
"in": "query",
"description": "",
"required": false,
"type": "integer",
"format": "int32"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/K2AutoDiscover"
},
"examples": {}
}
},
"security": ]
}
}
},
"definitions": {
"ServerUpdate": {
"description": "Model for ServerUpdate",
"required":
"DateImplemented"
],
"properties": {
"DateImplemented": {
"type": "string",
"format": "date-time",
"x-example": "20*personal details removed*T19:24:12"
},
"TfsNumber": {
"type": "string",
"x-example": "Unknown"
},
"TicketNumber": {
"type": "string",
"x-example": "Unknown"
},
"UpdateName": {
"type": "string",
"x-example": "K2 Cloud Update 5 FP9"
},
"VersionOfK2Patched": {
"type": "string",
"x-example": "PVM-05826921: K2 (5.1005.1000.0)"
}
}
},
"K2AutoDiscover": {
"description": "Model for K2 Auto Discover",
"required":
"ServerUpdates"
],
"properties": {
"ServerUpdates": {
"type": "array",
"items": {
"$ref": "#/definitions/ServerUpdate"
}
}
}
}
},
"securityDefinitions": {},
"security": ],
"tags":
{
"name": "Autodiscover",
"description": "Operations about Autodiscover"
}
],
"produces":
"application/json"
],
"consumes":
"application/json"
]
}