For the complete documentation index, see llms.txt. This page is also available as Markdown.

Drift Detection

APIs to track drift between the last deployed manifest and the live cluster state

Get the captured deployment snapshot and latest drift check result for a deployed target

get
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"
}

List deployed targets (service/env/infra) tracked for drift detection in a project

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

pageinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
sizeinteger · int32Optional

Results per page

Default: 25
sortstring[]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?