Drift Detection
APIs to track drift between the last deployed manifest and the live cluster state
Path parameters
entityIdstringRequired
Identifier of the deployed target (e.g. infrastructure key)
Query parameters
accountIdentifierstringRequired
Account Identifier for the Entity.
orgIdentifierstringRequired
Organization Identifier for the Entity.
projectIdentifierstringRequired
Project Identifier for the Entity.
Responses
default
Returns the drift detection detail
application/json
statusstring · enumOptionalPossible values:
metaDataobjectOptional
correlationIdstringOptional
get/drift-detection/{entityId}
GET /gateway/ng/api/drift-detection/{entityId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
default
Returns the drift detection detail
{
"status": "SUCCESS",
"data": {
"entityId": "text",
"type": "K8S_MANIFEST_DIFF",
"serviceRef": "text",
"envRef": "text",
"infraIdentifier": "text",
"connectorRef": "text",
"capturedPayload": {
"infraNamespace": "text",
"type": "K8S_MANIFEST_DIFF",
"@type": "text"
},
"lastDeploymentAt": 1,
"status": "NO_DRIFT",
"errorMessage": "text",
"lastDriftCheckAt": 1,
"infraNamespace": "text",
"resourceNamespaces": [
"text"
],
"driftPayload": {
"@type": "text"
}
},
"metaData": {},
"correlationId": "text"
}Query parameters
accountIdentifierstringRequired
Account Identifier for the Entity.
orgIdentifierstringRequired
Organization Identifier for the Entity.
projectIdentifierstringRequired
Project Identifier for the Entity.
pageinteger · int32OptionalDefault:
Page Index of the results to fetch.Default Value: 0
0sizeinteger · int32OptionalDefault:
Results per page
25sortstring[]Optional
Sort criteria for the elements.
Responses
default
Returns the paginated list of drift detection targets
application/json
statusstring · enumOptionalPossible values:
metaDataobjectOptional
correlationIdstringOptional
get/drift-detection
GET /gateway/ng/api/drift-detection?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
default
Returns the paginated list of drift detection targets
{
"status": "SUCCESS",
"data": {
"totalPages": 1,
"totalItems": 1,
"pageItemCount": 1,
"pageSize": 1,
"content": [
{
"entityId": "text",
"type": "K8S_MANIFEST_DIFF",
"serviceRef": "text",
"envRef": "text",
"infraIdentifier": "text",
"connectorRef": "text",
"status": "NO_DRIFT",
"errorMessage": "text",
"lastDriftCheckAt": 1,
"infraNamespace": "text",
"resourceNamespaces": [
"text"
],
"lastDeploymentAt": 1
}
],
"pageIndex": 1,
"empty": true,
"pageToken": "text"
},
"metaData": {},
"correlationId": "text"
}Last updated
Was this helpful?