# Agents

## AgentServiceForServer_List

 - [GET /gitops/api/v1/agents](https://apidocs.harness.io/agents/agentserviceforserver_list.md): List agents.

## AgentServiceForServer_Create

 - [POST /gitops/api/v1/agents](https://apidocs.harness.io/agents/agentserviceforserver_create.md): Create agent.

## AgentServiceForServer_ListNamespaces

 - [GET /gitops/api/v1/agents/ns](https://apidocs.harness.io/agents/agentserviceforserver_listnamespaces.md): Get agent namespaces.

## AgentServiceForServer_Search

 - [POST /gitops/api/v1/agents/search](https://apidocs.harness.io/agents/agentserviceforserver_search.md): Search agents.

## AgentServiceForServer_ListTags

 - [GET /gitops/api/v1/agents/tags](https://apidocs.harness.io/agents/agentserviceforserver_listtags.md): Get agent tags.

## AgentServiceForServer_ListVersions

 - [GET /gitops/api/v1/agents/versions](https://apidocs.harness.io/agents/agentserviceforserver_listversions.md): Get agent versions.

## Update agents.

 - [PUT /gitops/api/v1/agents/{agent.identifier}](https://apidocs.harness.io/agents/agentserviceforserver_update.md): This API can be used to update an agent's details in Harness. The following fields will be updated to the new values in the body - "tags", "metadata"(all nested fields in metadata will be replaced with new provided values including empty/nil values if they're sent), "description", "type".

## AgentServiceForServer_GetDeployYaml

 - [GET /gitops/api/v1/agents/{agentIdentifier}/deploy.yaml](https://apidocs.harness.io/agents/agentserviceforserver_getdeployyaml.md): GetDeployYaml returns deployment yamls for agents.

## AgentServiceForServer_PostDeployHelmChart

 - [POST /gitops/api/v1/agents/{agentIdentifier}/deployment-spec/helm](https://apidocs.harness.io/agents/agentserviceforserver_postdeployhelmchart.md): PostDeployHelmChart returns the Helm Chart for deploying the agents.

## AgentServiceForServer_PostDeployYaml

 - [POST /gitops/api/v1/agents/{agentIdentifier}/deployment-spec/yaml](https://apidocs.harness.io/agents/agentserviceforserver_postdeployyaml.md): PostDeployYaml returns deployment yamls for agents.

## AgentServiceForServer_GetDeployHelmChart

 - [GET /gitops/api/v1/agents/{agentIdentifier}/helm-chart](https://apidocs.harness.io/agents/agentserviceforserver_getdeployhelmchart.md): GetDeployHelmChart returns the Helm Chart for deploying the agents.

## AgentServiceForServer_GetDeployOverrides

 - [GET /gitops/api/v1/agents/{agentIdentifier}/helm-overrides](https://apidocs.harness.io/agents/agentserviceforserver_getdeployoverrides.md): GetDeployOverrides returns the Helm Chart overrides for the agents.

## AgentServiceForServer_PostDeployOverrides

 - [POST /gitops/api/v1/agents/{agentIdentifier}/helm-overrides](https://apidocs.harness.io/agents/agentserviceforserver_postdeployoverrides.md): PostDeployOverrides returns the Helm Chart overrides for deploying the agents.

## AgentServiceForServer_GetOperatorYaml

 - [GET /gitops/api/v1/agents/{agentIdentifier}/operator/yaml](https://apidocs.harness.io/agents/agentserviceforserver_getoperatoryaml.md): GetOperatorYaml returns operator yaml for deploying the agents.

## AgentServiceForServer_PostOperatorYaml

 - [POST /gitops/api/v1/agents/{agentIdentifier}/operator/yaml](https://apidocs.harness.io/agents/agentserviceforserver_postoperatoryaml.md): PostOperatorYaml returns operator yaml for deploying the agents.

## AgentServiceForServer_SetPrimaryNode

 - [PATCH /gitops/api/v1/agents/{agentIdentifier}/primaryNode](https://apidocs.harness.io/agents/agentserviceforserver_setprimarynode.md): Set primary disaster recovery node.

## AgentServiceForServer_GetSyncAllowed

 - [GET /gitops/api/v1/agents/{agentIdentifier}/sync-allowed](https://apidocs.harness.io/agents/agentserviceforserver_getsyncallowed.md): GetSyncStatus returns the sync status of the agent.

## AgentServiceForServer_UpdateSyncAllowed

 - [PUT /gitops/api/v1/agents/{agentIdentifier}/sync-allowed](https://apidocs.harness.io/agents/agentserviceforserver_updatesyncallowed.md): UpdateSyncAllowed updates the sync status of the agent by creating deny sync windows for mapped app projects.

## AgentServiceForServer_Get

 - [GET /gitops/api/v1/agents/{identifier}](https://apidocs.harness.io/agents/agentserviceforserver_get.md): Get agents.

## AgentServiceForServer_Delete

 - [DELETE /gitops/api/v1/agents/{identifier}](https://apidocs.harness.io/agents/agentserviceforserver_delete.md): Delete agents.

## AgentServiceForServer_RegenerateCredentials

 - [POST /gitops/api/v1/agents/{identifier}/credentials](https://apidocs.harness.io/agents/agentserviceforserver_regeneratecredentials.md): Regenerate credentials for agents.

## AgentServiceForServer_Scale

 - [POST /gitops/api/v1/agents/{identifier}/scale](https://apidocs.harness.io/agents/agentserviceforserver_scale.md): Scale the Hosted agent.

## AgentServiceForServer_Unique

 - [GET /gitops/api/v1/agents/{identifier}/unique](https://apidocs.harness.io/agents/agentserviceforserver_unique.md): Unique returns unique agents.

## VersionUpgradeService_UpgradeAvailableV2

 - [GET /gitops/api/v2/versions/agents/upgrade-available](https://apidocs.harness.io/agents/versionupgradeservice_upgradeavailablev2.md): Check for version updates.

