Skip to content

About

ArgoCD Client Python Library

Resources

Stars

8 stars

Watchers

10 watching

Forks

Repository files navigation

argocd-client

Description of all APIs

  • API version: version not set
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/globocom/argocd-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/globocom/argocd-client.git)

Then import the package:

import argocd_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import argocd_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function

import time
import argocd_client
from argocd_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = argocd_client.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with argocd_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = argocd_client.AccountServiceApi(api_client)
    resource = 'resource_example' # str | 
action = 'action_example' # str | 
subresource = 'subresource_example' # str | 

    try:
        api_response = api_instance.can_i(resource, action, subresource)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AccountServiceApi->can_i: %s\n" % e)
    

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AccountServiceApi can_i GET /api/v1/account/can-i/{resource}/{action}/{subresource}
AccountServiceApi create_token_mixin10 POST /api/v1/account/{name}/token
AccountServiceApi delete_token_mixin10 DELETE /api/v1/account/{name}/token/{id}
AccountServiceApi get_account GET /api/v1/account/{name}
AccountServiceApi list_accounts GET /api/v1/account
AccountServiceApi update_password PUT /api/v1/account/password UpdatePassword updates an account's password to a new value
ApplicationServiceApi create_mixin9 POST /api/v1/applications Create creates an application
ApplicationServiceApi delete_mixin9 DELETE /api/v1/applications/{name} Delete deletes an application
ApplicationServiceApi delete_resource DELETE /api/v1/applications/{name}/resource DeleteResource deletes a single application resource
ApplicationServiceApi get_application_sync_windows GET /api/v1/applications/{name}/syncwindows Get returns an application by name
ApplicationServiceApi get_manifests GET /api/v1/applications/{name}/manifests GetManifests returns application manifests
ApplicationServiceApi get_mixin9 GET /api/v1/applications/{name} Get returns an application by name
ApplicationServiceApi get_resource GET /api/v1/applications/{name}/resource GetResource returns single application resource
ApplicationServiceApi list_mixin9 GET /api/v1/applications List returns list of applications
ApplicationServiceApi list_resource_actions GET /api/v1/applications/{name}/resource/actions
ApplicationServiceApi list_resource_events GET /api/v1/applications/{name}/events ListResourceEvents returns a list of event resources
ApplicationServiceApi managed_resources GET /api/v1/applications/{applicationName}/managed-resources
ApplicationServiceApi patch PATCH /api/v1/applications/{name} Patch patch an application
ApplicationServiceApi patch_resource POST /api/v1/applications/{name}/resource PatchResource patch single application resource
ApplicationServiceApi pod_logs GET /api/v1/applications/{name}/pods/{podName}/logs PodLogs returns stream of log entries for the specified pod. Pod
ApplicationServiceApi resource_tree GET /api/v1/applications/{applicationName}/resource-tree
ApplicationServiceApi revision_metadata GET /api/v1/applications/{name}/revisions/{revision}/metadata Get the meta-data (author, date, tags, message) for a specific revision of the application
ApplicationServiceApi rollback POST /api/v1/applications/{name}/rollback Rollback syncs an application to its target state
ApplicationServiceApi run_resource_action POST /api/v1/applications/{name}/resource/actions
ApplicationServiceApi sync POST /api/v1/applications/{name}/sync Sync syncs an application to its target state
ApplicationServiceApi terminate_operation DELETE /api/v1/applications/{name}/operation TerminateOperation terminates the currently running operation
ApplicationServiceApi update_mixin9 PUT /api/v1/applications/{application.metadata.name} Update updates an application
ApplicationServiceApi update_spec PUT /api/v1/applications/{name}/spec UpdateSpec updates an application spec
ApplicationServiceApi watch GET /api/v1/stream/applications Watch returns stream of application change events.
CertificateServiceApi create_certificate POST /api/v1/certificates Creates repository certificates on the server
CertificateServiceApi delete_certificate DELETE /api/v1/certificates Delete the certificates that match the RepositoryCertificateQuery
CertificateServiceApi list_certificates GET /api/v1/certificates List all available repository certificates
ClusterServiceApi create POST /api/v1/clusters Create creates a cluster
ClusterServiceApi delete DELETE /api/v1/clusters/{server} Delete deletes a cluster
ClusterServiceApi get_mixin2 GET /api/v1/clusters/{server} Get returns a cluster by server address
ClusterServiceApi invalidate_cache POST /api/v1/clusters/{server}/invalidate-cache InvalidateCache invalidates cluster cache
ClusterServiceApi list GET /api/v1/clusters List returns list of clusters
ClusterServiceApi rotate_auth POST /api/v1/clusters/{server}/rotate-auth RotateAuth rotates the bearer token used for a cluster
ClusterServiceApi update PUT /api/v1/clusters/{cluster.server} Update updates a cluster
GPGKeyServiceApi create_mixin7 POST /api/v1/gpgkeys Create one or more GPG public keys in the server's configuration
GPGKeyServiceApi delete_mixin7 DELETE /api/v1/gpgkeys Delete specified GPG public key from the server's configuration
GPGKeyServiceApi get_mixin7 GET /api/v1/gpgkeys/{keyID} Get information about specified GPG public key from the server
GPGKeyServiceApi list_mixin7 GET /api/v1/gpgkeys List all available repository certificates
ProjectServiceApi create_mixin6 POST /api/v1/projects Create a new project.
ProjectServiceApi create_token POST /api/v1/projects/{project}/roles/{role}/token Create a new project token.
ProjectServiceApi delete_mixin6 DELETE /api/v1/projects/{name} Delete deletes a project
ProjectServiceApi delete_token DELETE /api/v1/projects/{project}/roles/{role}/token/{iat} Delete a new project token.
ProjectServiceApi get_mixin6 GET /api/v1/projects/{name} Get returns a project by name
ProjectServiceApi get_sync_windows_state GET /api/v1/projects/{name}/syncwindows GetSchedulesState returns true if there are any active sync syncWindows
ProjectServiceApi list_events GET /api/v1/projects/{name}/events ListEvents returns a list of project events
ProjectServiceApi list_mixin6 GET /api/v1/projects List returns list of projects
ProjectServiceApi update_mixin6 PUT /api/v1/projects/{project.metadata.name} Update updates a project
RepoCredsServiceApi create_repository_credentials POST /api/v1/repocreds CreateRepositoryCredentials creates a new repository credential set
RepoCredsServiceApi delete_repository_credentials DELETE /api/v1/repocreds/{url} DeleteRepositoryCredentials deletes a repository credential set from the configuration
RepoCredsServiceApi list_repository_credentials GET /api/v1/repocreds ListRepositoryCredentials gets a list of all configured repository credential sets
RepoCredsServiceApi update_repository_credentials PUT /api/v1/repocreds/{creds.url} UpdateRepositoryCredentials updates a repository credential set
RepositoryServiceApi create_repository POST /api/v1/repositories CreateRepository creates a new repository configuration
RepositoryServiceApi delete_repository DELETE /api/v1/repositories/{repo} DeleteRepository deletes a repository from the configuration
RepositoryServiceApi get_app_details POST /api/v1/repositories/{source.repoURL}/appdetails GetAppDetails returns application details by given path
RepositoryServiceApi get_helm_charts GET /api/v1/repositories/{repo}/helmcharts
RepositoryServiceApi get_mixin3 GET /api/v1/repositories/{repo} Get returns a repository or its credentials
RepositoryServiceApi list_apps GET /api/v1/repositories/{repo}/apps ListApps returns list of apps in the repo
RepositoryServiceApi list_repositories GET /api/v1/repositories ListRepositories gets a list of all configured repositories
RepositoryServiceApi update_repository PUT /api/v1/repositories/{repo.repo} UpdateRepository updates a repository configuration
RepositoryServiceApi validate_access POST /api/v1/repositories/{repo}/validate ValidateAccess validates access to a repository with given parameters
SessionServiceApi create_mixin11 POST /api/v1/session Create a new JWT for authentication and set a cookie if using HTTP.
SessionServiceApi delete_mixin11 DELETE /api/v1/session Delete an existing JWT cookie if using HTTP.
SessionServiceApi get_user_info GET /api/v1/session/userinfo Get the current user's info
SettingsServiceApi get GET /api/v1/settings Get returns Argo CD settings
VersionServiceApi version GET /api/version Version returns version information of the API server

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

ArgoCD Client Python Library

Resources

Stars

8 stars

Watchers

10 watching

Forks

Releases

Packages

Contributors

Languages