Reconciler

Collect entity counts on cluster via agent

Returns number of entities that exist in the cluster on the agent. Filter can be used to count only global entities (with empty project) and those specified by the filter.

Securityx-api-key
Request
path Parameters
agentIdentifier
required
string

Agent identifier for entity.

query Parameters
accountIdentifier
string

Account Identifier for the Entity.

orgIdentifier
string

Organization Identifier for the Entity.

projectIdentifier
string

Project Identifier for the Entity.

Request Body schema: application/json
required
projectNames
Array of strings
Responses
200

A successful response.

default

An unexpected error response.

post/gitops/api/v1/agents/{agentIdentifier}/reconcile/counts
Request samples
application/json
{
  • "projectNames": [
    ]
}
Response samples
application/json
{
  • "applicationCount": 0,
  • "clusterCount": 0,
  • "repositoryCount": 0,
  • "repositoryCertificateCount": 0,
  • "gnuPGPublicKeyCount": 0,
  • "repoCredsCount": 0,
  • "applicationPerProjectCount": {
    },
  • "clusterPerProjectCount": {
    },
  • "repositoryPerProjectCount": {
    }
}

Import data from cluster via agent

Imports data from cluster via agent. There must be at least one project mapping in the database. Returns number of entities imported.

Securityx-api-key
Request
path Parameters
agentIdentifier
required
string

Agent identifier for entity.

query Parameters
accountIdentifier
string

Account Identifier for the Entity.

orgIdentifier
string

Organization Identifier for the Entity.

projectIdentifier
string

Project Identifier for the Entity.

Request Body schema: application/json
required
projectNames
Array of strings
Responses
200

A successful response.

default

An unexpected error response.

post/gitops/api/v1/agents/{agentIdentifier}/reconcile/import
Request samples
application/json
{
  • "projectNames": [
    ]
}
Response samples
application/json
{
  • "applicationCount": 0,
  • "clusterCount": 0,
  • "repositoryCount": 0,
  • "repositoryCertificateCount": 0,
  • "gnuPGPublicKeyCount": 0,
  • "repoCredsCount": 0,
  • "applicationPerProjectCount": {
    },
  • "clusterPerProjectCount": {
    },
  • "repositoryPerProjectCount": {
    }
}