ListRepositories gets a list of all configured repositories.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&identifier=string&query.repo=string&query.forceRefresh=true&query.project=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "metadata": {
- "selfLink": "string",
- "resourceVersion": "string",
- "continue": "string",
- "remainingItemCount": "string"
}, - "items": [
- {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}
]
}
CreateRepository creates a new repository configuration.
A successful response.
An unexpected error response.
{- "repo": {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}, - "upsert": true,
- "credsOnly": true,
- "genType": "UNSET",
- "ecrGen": {
- "region": "string",
- "secretRef": {
- "awsAccessKeyID": "string",
- "awsSecretAccessKey": "string",
- "awsSessionToken": "string"
}, - "jwtAuth": {
- "name": "string",
- "namespace": "string",
- "audiences": [
- "string"
]
}, - "role": "string"
}, - "gcrGen": {
- "projectID": "string",
- "accessKey": "string",
- "workloadIdentity": {
- "serviceAccountRef": {
- "name": "string",
- "namespace": "string",
- "audiences": [
- "string"
]
}, - "clusterLocation": "string",
- "clusterName": "string",
- "clusterProjectID": "string"
}
}, - "refreshInterval": "string"
}
{- "accountIdentifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "agentIdentifier": "string",
- "identifier": "string",
- "repository": {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "stale": true,
- "repositoryCredentialsId": "string"
}
CheckExternalSecretsOperator Checks whether External Secrets Operator is installed or not
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories/eso/check?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "esoPresent": true
}
Returns a list of ESO generators installed in agent namespace.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories/eso/generators?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&type=UNSET&name=string&url=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "type": "UNSET",
- "ecrGen": {
- "region": "string",
- "secretRef": {
- "awsAccessKeyID": "string",
- "awsSecretAccessKey": "string",
- "awsSessionToken": "string"
}, - "jwtAuth": {
- "name": "string",
- "namespace": "string",
- "audiences": [
- "string"
]
}, - "role": "string"
}, - "gcrGen": {
- "projectID": "string",
- "accessKey": "string",
- "workloadIdentity": {
- "serviceAccountRef": {
- "name": "string",
- "namespace": "string",
- "audiences": [
- "string"
]
}, - "clusterLocation": "string",
- "clusterName": "string",
- "clusterProjectID": "string"
}
}
}
CheckOCIRepoType Returns the Repository type of OCI repo
A successful response.
An unexpected error response.
{- "repoURL": "string"
}
{- "ociRepoType": "UNSET"
}
ValidateAccess gets connection state for a repository.
A successful response.
An unexpected error response.
{- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "insecure": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "enableOci": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "updateMask": {
- "paths": [
- "string"
]
}
}
{- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}
Get returns a repository or its credentials.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories/{identifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&query.repo=string&query.forceRefresh=true&query.project=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "accountIdentifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "agentIdentifier": "string",
- "identifier": "string",
- "repository": {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "stale": true,
- "repositoryCredentialsId": "string"
}
DeleteRepository deletes a repository from the configuration.
A successful response.
An unexpected error response.
curl -i -X DELETE \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories/{identifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&query.repo=string&query.forceRefresh=true&query.project=string&forceDelete=true' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{ }
UpdateRepository updates a repository configuration.
A successful response.
An unexpected error response.
{- "repo": {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}, - "updateMask": {
- "paths": [
- "string"
]
}, - "genType": "UNSET",
- "ecrGen": {
- "region": "string",
- "secretRef": {
- "awsAccessKeyID": "string",
- "awsSecretAccessKey": "string",
- "awsSessionToken": "string"
}, - "jwtAuth": {
- "name": "string",
- "namespace": "string",
- "audiences": [
- "string"
]
}, - "role": "string"
}, - "gcrGen": {
- "projectID": "string",
- "accessKey": "string",
- "workloadIdentity": {
- "serviceAccountRef": {
- "name": "string",
- "namespace": "string",
- "audiences": [
- "string"
]
}, - "clusterLocation": "string",
- "clusterName": "string",
- "clusterProjectID": "string"
}
}, - "refreshInterval": "string"
}
{- "accountIdentifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "agentIdentifier": "string",
- "identifier": "string",
- "repository": {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "stale": true,
- "repositoryCredentialsId": "string"
}
GetAppDetails returns application details by given path.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories/{identifier}/appdetails?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&query.source.repoURL=string&query.source.path=string&query.source.targetRevision=string&query.source.helm.valueFiles=string&query.source.helm.releaseName=string&query.source.helm.values=string&query.source.helm.version=string&query.source.helm.passCredentials=true&query.source.helm.ignoreMissingValueFiles=true&query.source.helm.skipCrds=true&query.source.helm.namespace=string&query.source.helm.kubeVersion=string&query.source.helm.apiVersions=string&query.source.helm.skipTests=true&query.source.helm.skipSchemaValidation=true&query.source.kustomize.namePrefix=string&query.source.kustomize.nameSuffix=string&query.source.kustomize.images=string&query.source.kustomize.version=string&query.source.kustomize.forceCommonLabels=true&query.source.kustomize.forceCommonAnnotations=true&query.source.kustomize.namespace=string&query.source.kustomize.components=string&query.source.kustomize.labelWithoutSelector=true&query.source.kustomize.kubeVersion=string&query.source.kustomize.apiVersions=string&query.source.ksonnet.environment=string&query.source.directory.recurse=true&query.source.directory.jsonnet.libs=string&query.source.directory.exclude=string&query.source.directory.include=string&query.source.plugin.name=string&query.source.chart=string&query.source.ref=string&query.source.name=string&query.appName=string&query.appProject=string&query.sourceIndex=0&query.versionId=0' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "type": "string",
- "ksonnet": {
- "name": "string",
- "environments": {
- "property1": {
- "name": "string",
- "k8sVersion": "string",
- "destination": {
- "server": "string",
- "namespace": "string"
}
}, - "property2": {
- "name": "string",
- "k8sVersion": "string",
- "destination": {
- "server": "string",
- "namespace": "string"
}
}
}, - "parameters": [
- {
- "component": "string",
- "name": "string",
- "value": "string"
}
]
}, - "helm": {
- "name": "string",
- "valueFiles": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string",
- "forceString": true
}
], - "values": "string",
- "fileParameters": [
- {
- "name": "string",
- "path": "string"
}
]
}, - "kustomize": {
- "images": [
- "string"
]
}, - "directory": { }
}
ListApps returns list of apps in the repo.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories/{identifier}/apps?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&query.repo=string&query.revision=string&query.appName=string&query.appProject=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "items": [
- {
- "type": "string",
- "path": "string"
}
]
}
GetHelmCharts returns list of helm charts in the specified repository.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories/{identifier}/helmcharts?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&query.repo=string&query.forceRefresh=true&query.project=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "items": [
- {
- "name": "string",
- "versions": [
- "string"
]
}
]
}
Returns a list of refs (e.g. branches and tags) in the repo.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories/{identifier}/refs?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&query.repo=string&query.forceRefresh=true&query.project=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "branches": [
- "string"
], - "tags": [
- "string"
]
}
GetAppDetails returns application details by given path.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories_byurl/appdetails?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&identifier=string&query.source.repoURL=string&query.source.path=string&query.source.targetRevision=string&query.source.helm.valueFiles=string&query.source.helm.releaseName=string&query.source.helm.values=string&query.source.helm.version=string&query.source.helm.passCredentials=true&query.source.helm.ignoreMissingValueFiles=true&query.source.helm.skipCrds=true&query.source.helm.namespace=string&query.source.helm.kubeVersion=string&query.source.helm.apiVersions=string&query.source.helm.skipTests=true&query.source.helm.skipSchemaValidation=true&query.source.kustomize.namePrefix=string&query.source.kustomize.nameSuffix=string&query.source.kustomize.images=string&query.source.kustomize.version=string&query.source.kustomize.forceCommonLabels=true&query.source.kustomize.forceCommonAnnotations=true&query.source.kustomize.namespace=string&query.source.kustomize.components=string&query.source.kustomize.labelWithoutSelector=true&query.source.kustomize.kubeVersion=string&query.source.kustomize.apiVersions=string&query.source.ksonnet.environment=string&query.source.directory.recurse=true&query.source.directory.jsonnet.libs=string&query.source.directory.exclude=string&query.source.directory.include=string&query.source.plugin.name=string&query.source.chart=string&query.source.ref=string&query.source.name=string&query.appName=string&query.appProject=string&query.sourceIndex=0&query.versionId=0' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "type": "string",
- "ksonnet": {
- "name": "string",
- "environments": {
- "property1": {
- "name": "string",
- "k8sVersion": "string",
- "destination": {
- "server": "string",
- "namespace": "string"
}
}, - "property2": {
- "name": "string",
- "k8sVersion": "string",
- "destination": {
- "server": "string",
- "namespace": "string"
}
}
}, - "parameters": [
- {
- "component": "string",
- "name": "string",
- "value": "string"
}
]
}, - "helm": {
- "name": "string",
- "valueFiles": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string",
- "forceString": true
}
], - "values": "string",
- "fileParameters": [
- {
- "name": "string",
- "path": "string"
}
]
}, - "kustomize": {
- "images": [
- "string"
]
}, - "directory": { }
}
ListApps returns list of apps in the repo.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories_byurl/apps?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&identifier=string&query.repo=string&query.revision=string&query.appName=string&query.appProject=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "items": [
- {
- "type": "string",
- "path": "string"
}
]
}
GetHelmCharts returns list of helm charts in the specified repository.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories_byurl/helmcharts?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&identifier=string&query.repo=string&query.forceRefresh=true&query.project=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "items": [
- {
- "name": "string",
- "versions": [
- "string"
]
}
]
}
Returns a list of refs (e.g. branches and tags) in the repo.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repositories_byurl/refs?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&identifier=string&query.repo=string&query.forceRefresh=true&query.project=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "branches": [
- "string"
], - "tags": [
- "string"
]
}
Returns a repository by URL
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/agents/{agentIdentifier}/repository_byurl?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&url=string&fetchScopePrefixedIdentifier=true' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "repository": [
- {
- "accountIdentifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "agentIdentifier": "string",
- "identifier": "string",
- "repository": {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "stale": true,
- "repositoryCredentialsId": "string"
}
]
}
ListRepositoriesByRepositoryCredentialTemplate lists Repositories by repositories credential template
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/repositories?repositoryCredentialURL=string&accountIdentifier=string&projectIdentifier=string&orgIdentifier=string&agentIdentifier=string&pageSize=0&pageIndex=0' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "content": [
- {
- "accountIdentifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "agentIdentifier": "string",
- "identifier": "string",
- "repository": {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "stale": true,
- "repositoryCredentialsId": "string"
}
], - "totalPages": 0,
- "totalItems": 0,
- "pageItemCount": 0,
- "pageSize": 0,
- "pageIndex": 0,
- "empty": true
}
ListRepositories retrieves a list of all configured repositories.
A successful response.
An unexpected error response.
{- "accountIdentifier": "string",
- "projectIdentifier": "string",
- "orgIdentifier": "string",
- "agentIdentifier": "string",
- "searchTerm": "string",
- "pageSize": 0,
- "pageIndex": 0,
- "filter": { },
- "sortBy": "SORT_BY_NOT_SET",
- "sortOrder": "SORT_ORDER_NOT_SET",
- "inheritedCreds": true
}
{- "content": [
- {
- "accountIdentifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "agentIdentifier": "string",
- "identifier": "string",
- "repository": {
- "repo": "string",
- "username": "string",
- "password": "string",
- "sshPrivateKey": "string",
- "connectionState": {
- "status": "string",
- "message": "string",
- "attemptedAt": {
- "seconds": "string",
- "nanos": 0
}, - "attemptedAtTs": "2019-08-24T14:15:22Z"
}, - "insecureIgnoreHostKey": true,
- "insecure": true,
- "enableLfs": true,
- "tlsClientCertData": "string",
- "tlsClientCertKey": "string",
- "type": "string",
- "name": "string",
- "inheritedCreds": true,
- "enableOCI": true,
- "githubAppPrivateKey": "string",
- "githubAppID": "string",
- "githubAppInstallationID": "string",
- "githubAppEnterpriseBaseUrl": "string",
- "proxy": "string",
- "project": "string",
- "connectionType": "string",
- "forceHttpBasicAuth": true,
- "noProxy": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "stale": true,
- "repositoryCredentialsId": "string"
}
], - "totalPages": 0,
- "totalItems": 0,
- "pageItemCount": 0,
- "pageSize": 0,
- "pageIndex": 0,
- "empty": true
}
Exists checks whether a repository with the given URL exists.
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://app.harness.io/gitops/api/v1/repositories/exists?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&agentIdentifier=string&url=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
true