RepoCredsService

CreateRepositoryCredentials creates a new repository credential set

POST
https://argocd.example.com/api/v1/repocreds

Body

application/json

Repository definition

azureActiveDirectoryEndpointstring
azureServicePrincipalClientIdstring
azureServicePrincipalClientSecretstring
azureServicePrincipalTenantIdstring
bearerTokenstring
enableOCIboolean
forceHttpBasicAuthboolean
gcpServiceAccountKeystring
githubAppEnterpriseBaseUrlstring
githubAppIDinteger<int64>
githubAppInstallationIDinteger<int64>
githubAppPrivateKeystring
insecureOCIForceHttpboolean

InsecureOCIForceHttp specifies whether the connection to the repository uses TLS at all. If true, no TLS. This flag is applicable for OCI repos only.

noProxystring
passwordstring
proxystring
sshPrivateKeystring
tlsClientCertDatastring
tlsClientCertKeystring
typestring

Type specifies the type of the repoCreds. Can be either "git", "helm" or "oci". "git" is assumed if empty or absent.

urlstring
useAzureWorkloadIdentityboolean
usernamestring

Parameters

upsertbooleanquery

Whether to create in upsert mode.

Response

A successful response.

Response fields application/json
azureActiveDirectoryEndpointstring
azureServicePrincipalClientIdstring
azureServicePrincipalClientSecretstring
azureServicePrincipalTenantIdstring
bearerTokenstring
enableOCIboolean
forceHttpBasicAuthboolean
gcpServiceAccountKeystring
githubAppEnterpriseBaseUrlstring
githubAppIDinteger<int64>
githubAppInstallationIDinteger<int64>
githubAppPrivateKeystring
insecureOCIForceHttpboolean

InsecureOCIForceHttp specifies whether the connection to the repository uses TLS at all. If true, no TLS. This flag is applicable for OCI repos only.

noProxystring
passwordstring
proxystring
sshPrivateKeystring
tlsClientCertDatastring
tlsClientCertKeystring
typestring

Type specifies the type of the repoCreds. Can be either "git", "helm" or "oci". "git" is assumed if empty or absent.

urlstring
useAzureWorkloadIdentityboolean
usernamestring

An unexpected error response.

Response fields application/json
codeinteger<int32>
Show child attributes
type_urlstring
valuestring<byte>
errorstring
messagestring

Authorization

bearerapiKey in header

A token sent as Authorization: Bearer <token>. API Docs shows how to get one.