2.9.3141 • Published 2 years ago

portainer_api_with_docker_api v2.9.3141

Weekly downloads
-
License
mit
Repository
-
Last release
2 years ago

portainer_api_with_docker_api

Portainer api 2.9.3 with Docker api 1.41

PortainerCeApi - JavaScript client for portainer_ce_api Portainer API is an HTTP API served by Portainer. It is used by the Portainer UI and everything you can do with the UI can be done using the HTTP API. Examples are available at https://documentation.portainer.io/api/api-examples/ You can find out more about Portainer at http://portainer.io and get some support on Slack. # Authentication Most of the API environments(endpoints) require to be authenticated as well as some level of authorization to be used. Portainer API uses JSON Web Token to manage authentication and thus requires you to provide a token in the Authorization header of each request with the Bearer authentication mechanism. Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInJvbGUiOjEsImV4cCI6MTQ5OTM3NjE1NH0.NJ6vE8FY1WG6jsRQzfMqeatJ4vh2TWAeeYfDhP71YEE # Security Each API environment(endpoint) has an associated access policy, it is documented in the description of each environment(endpoint). Different access policies are available: - Public access - Authenticated access - Restricted access - Administrator access ### Public access No authentication is required to access the environments(endpoints) with this access policy. ### Authenticated access Authentication is required to access the environments(endpoints) with this access policy. ### Restricted access Authentication is required to access the environments(endpoints) with this access policy. Extra-checks might be added to ensure access to the resource is granted. Returned data might also be filtered. ### Administrator access Authentication as well as an administrator role are required to access the environments(endpoints) with this access policy. # Execute Docker requests Portainer DO NOT expose specific environments(endpoints) to manage your Docker resources (create a container, remove a volume, etc...). Instead, it acts as a reverse-proxy to the Docker HTTP API. This means that you can execute Docker requests via the Portainer HTTP API. To do so, you can use the /endpoints/{id}/docker Portainer API environment(endpoint) (which is not documented below due to Swagger limitations). This environment(endpoint) has a restricted access policy so you still need to be authenticated to be able to query this environment(endpoint). Any query on this environment(endpoint) will be proxied to the Docker API of the associated environment(endpoint) (requests and responses objects are the same as documented in the Docker API). NOTE: You can find more information on how to query the Docker API in the Docker official documentation as well as in this Portainer example. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.9.3
  • Package version: 2.9.3
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install portainer_ce_api --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your portainer_ce_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('portainer_ce_api') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/portainer_ce_api then install it via:

    npm install YOUR_USERNAME/portainer_ce_api --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var PortainerCeApi = require('portainer_ce_api');

var defaultClient = PortainerCeApi.ApiClient.instance;

// Configure API key authorization: jwt
var jwt = defaultClient.authentications['jwt'];
jwt.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt.apiKeyPrefix['Authorization'] = "Token"

var api = new PortainerCeApi.DefaultApi()

var id = 56; // {Number} Team identifier

var body = new PortainerCeApi.TeamsTeamUpdatePayload(); // {TeamsTeamUpdatePayload} Team details


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.teamUpdate(id, body, callback);

Documentation for API Endpoints

All URIs are relative to http://localhost/api

ClassMethodHTTP requestDescription
PortainerCeApi.DefaultApiteamUpdatePUT /team/{id}Update a team
PortainerCeApi.DefaultApiuserAdminInitPOST /users/admin/initInitialize administrator account
PortainerCeApi.AuthApiauthenticateUserPOST /authAuthenticate
PortainerCeApi.AuthApilogoutPOST /auth/logoutLogout
PortainerCeApi.AuthApivalidateOAuthPOST /auth/oauth/validateAuthenticate with OAuth
PortainerCeApi.BackupApibackupPOST /backupCreates an archive with a system data snapshot that could be used to restore the system.
PortainerCeApi.BackupApirestorePOST /restoreTriggers a system restore using provided backup file
PortainerCeApi.ConfigApiconfigCreatePOST /endpoints/{endpointId}/docker/configs/createCreate a config
PortainerCeApi.ConfigApiconfigDeleteDELETE /endpoints/{endpointId}/docker/configs/{id}Delete a config
PortainerCeApi.ConfigApiconfigInspectGET /endpoints/{endpointId}/docker/configs/{id}Inspect a config
PortainerCeApi.ConfigApiconfigListGET /endpoints/{endpointId}/docker/configsList configs
PortainerCeApi.ConfigApiconfigUpdatePOST /endpoints/{endpointId}/docker/configs/{id}/updateUpdate a Config
PortainerCeApi.ContainerApicontainerArchiveGET /endpoints/{endpointId}/docker/containers/{id}/archiveGet an archive of a filesystem resource in a container
PortainerCeApi.ContainerApicontainerArchiveInfoHEAD /endpoints/{endpointId}/docker/containers/{id}/archiveGet information about files in a container
PortainerCeApi.ContainerApicontainerAttachPOST /endpoints/{endpointId}/docker/containers/{id}/attachAttach to a container
PortainerCeApi.ContainerApicontainerAttachWebsocketGET /endpoints/{endpointId}/docker/containers/{id}/attach/wsAttach to a container via a websocket
PortainerCeApi.ContainerApicontainerChangesGET /endpoints/{endpointId}/docker/containers/{id}/changesGet changes on a container’s filesystem
PortainerCeApi.ContainerApicontainerCreatePOST /endpoints/{endpointId}/docker/containers/createCreate a container
PortainerCeApi.ContainerApicontainerDeleteDELETE /endpoints/{endpointId}/docker/containers/{id}Remove a container
PortainerCeApi.ContainerApicontainerExportGET /endpoints/{endpointId}/docker/containers/{id}/exportExport a container
PortainerCeApi.ContainerApicontainerInspectGET /endpoints/{endpointId}/docker/containers/{id}/jsonInspect a container
PortainerCeApi.ContainerApicontainerKillPOST /endpoints/{endpointId}/docker/containers/{id}/killKill a container
PortainerCeApi.ContainerApicontainerListGET /endpoints/{endpointId}/docker/containers/jsonList containers
PortainerCeApi.ContainerApicontainerLogsGET /endpoints/{endpointId}/docker/containers/{id}/logsGet container logs
PortainerCeApi.ContainerApicontainerPausePOST /endpoints/{endpointId}/docker/containers/{id}/pausePause a container
PortainerCeApi.ContainerApicontainerPrunePOST /endpoints/{endpointId}/docker/containers/pruneDelete stopped containers
PortainerCeApi.ContainerApicontainerRenamePOST /endpoints/{endpointId}/docker/containers/{id}/renameRename a container
PortainerCeApi.ContainerApicontainerResizePOST /endpoints/{endpointId}/docker/containers/{id}/resizeResize a container TTY
PortainerCeApi.ContainerApicontainerRestartPOST /endpoints/{endpointId}/docker/containers/{id}/restartRestart a container
PortainerCeApi.ContainerApicontainerStartPOST /endpoints/{endpointId}/docker/containers/{id}/startStart a container
PortainerCeApi.ContainerApicontainerStatsGET /endpoints/{endpointId}/docker/containers/{id}/statsGet container stats based on resource usage
PortainerCeApi.ContainerApicontainerStopPOST /endpoints/{endpointId}/docker/containers/{id}/stopStop a container
PortainerCeApi.ContainerApicontainerTopGET /endpoints/{endpointId}/docker/containers/{id}/topList processes running inside a container
PortainerCeApi.ContainerApicontainerUnpausePOST /endpoints/{endpointId}/docker/containers/{id}/unpauseUnpause a container
PortainerCeApi.ContainerApicontainerUpdatePOST /endpoints/{endpointId}/docker/containers/{id}/updateUpdate a container
PortainerCeApi.ContainerApicontainerWaitPOST /endpoints/{endpointId}/docker/containers/{id}/waitWait for a container
PortainerCeApi.ContainerApiputContainerArchivePUT /endpoints/{endpointId}/docker/containers/{id}/archiveExtract an archive of files or folders to a directory in a container
PortainerCeApi.CustomTemplatesApicustomTemplateCreatePOST /custom_templatesCreate a custom template
PortainerCeApi.CustomTemplatesApicustomTemplateDeleteDELETE /custom_templates/{id}Remove a template
PortainerCeApi.CustomTemplatesApicustomTemplateFileGET /custom_templates/{id}/fileGet Template stack file content.
PortainerCeApi.CustomTemplatesApicustomTemplateInspectGET /custom_templates/{id}Inspect a custom template
PortainerCeApi.CustomTemplatesApicustomTemplateListGET /custom_templatesList available custom templates
PortainerCeApi.CustomTemplatesApicustomTemplateUpdatePUT /custom_templates/{id}Update a template
PortainerCeApi.DistributionApidistributionInspectGET /endpoints/{endpointId}/docker/distribution/{name}/jsonGet image information from the registry
PortainerCeApi.EdgeApiendpointsIdEdgeJobsJobIDLogsPostPOST /endpoints/{id}/edge/jobs/{jobID}/logsInspect an EdgeJob Log
PortainerCeApi.EdgeApiendpointsIdEdgeStacksStackIdGetGET /endpoints/{id}/edge/stacks/{stackId}Inspect an Edge Stack for an Environment(Endpoint)
PortainerCeApi.EdgeGroupsApiedgeGroupCreatePOST /edge_groupsCreate an EdgeGroup
PortainerCeApi.EdgeGroupsApiedgeGroupDeleteDELETE /edge_groups/{id}Deletes an EdgeGroup
PortainerCeApi.EdgeGroupsApiedgeGroupInspectGET /edge_groups/{id}Inspects an EdgeGroup
PortainerCeApi.EdgeGroupsApiedgeGroupListGET /edge_groupslist EdgeGroups
PortainerCeApi.EdgeGroupsApiegeGroupUpdatePUT /edge_groups/{id}Updates an EdgeGroup
PortainerCeApi.EdgeJobsApiedgeJobCreatePOST /edge_jobsCreate an EdgeJob
PortainerCeApi.EdgeJobsApiedgeJobDeleteDELETE /edge_jobs/{id}Delete an EdgeJob
PortainerCeApi.EdgeJobsApiedgeJobFileGET /edge_jobs/{id}/fileFetch a file of an EdgeJob
PortainerCeApi.EdgeJobsApiedgeJobInspectGET /edge_jobs/{id}Inspect an EdgeJob
PortainerCeApi.EdgeJobsApiedgeJobListGET /edge_jobsFetch EdgeJobs list
PortainerCeApi.EdgeJobsApiedgeJobTaskLogsInspectGET /edge_jobs/{id}/tasks/{taskID}/logsFetch the log for a specifc task on an EdgeJob
PortainerCeApi.EdgeJobsApiedgeJobTasksClearDELETE /edge_jobs/{id}/tasks/{taskID}/logsClear the log for a specifc task on an EdgeJob
PortainerCeApi.EdgeJobsApiedgeJobTasksCollectPOST /edge_jobs/{id}/tasks/{taskID}/logsCollect the log for a specifc task on an EdgeJob
PortainerCeApi.EdgeJobsApiedgeJobTasksListGET /edge_jobs/{id}/tasksFetch the list of tasks on an EdgeJob
PortainerCeApi.EdgeJobsApiedgeJobUpdatePOST /edge_jobs/{id}Update an EdgeJob
PortainerCeApi.EdgeStacksApiedgeStackCreatePOST /edge_stacksCreate an EdgeStack
PortainerCeApi.EdgeStacksApiedgeStackDeleteDELETE /edge_stacks/{id}Delete an EdgeStack
PortainerCeApi.EdgeStacksApiedgeStackFileGET /edge_stacks/{id}/fileFetches the stack file for an EdgeStack
PortainerCeApi.EdgeStacksApiedgeStackInspectGET /edge_stacks/{id}Inspect an EdgeStack
PortainerCeApi.EdgeStacksApiedgeStackListGET /edge_stacksFetches the list of EdgeStacks
PortainerCeApi.EdgeStacksApiedgeStackStatusUpdatePUT /edge_stacks/{id}/statusUpdate an EdgeStack status
PortainerCeApi.EdgeStacksApiedgeStackUpdatePUT /edge_stacks/{id}Update an EdgeStack
PortainerCeApi.EdgeStacksApiendpointsIdEdgeStacksStackIdGetGET /endpoints/{id}/edge/stacks/{stackId}Inspect an Edge Stack for an Environment(Endpoint)
PortainerCeApi.EdgeTemplatesApiedgeTemplateListGET /edge_templatesFetches the list of Edge Templates
PortainerCeApi.EndpointGroupsApiendpointGroupAddEndpointPUT /endpoint_groups/{id}/endpoints/{endpointId}Add an environment(endpoint) to an environment(endpoint) group
PortainerCeApi.EndpointGroupsApiendpointGroupDeleteDELETE /endpoint_groups/{id}Remove an environment(endpoint) group
PortainerCeApi.EndpointGroupsApiendpointGroupDeleteEndpointDELETE /endpoint_groups/{id}/endpoints/{endpointId}Removes environment(endpoint) from an environment(endpoint) group
PortainerCeApi.EndpointGroupsApiendpointGroupListGET /endpoint_groupsList Environment(Endpoint) groups
PortainerCeApi.EndpointGroupsApiendpointGroupUpdatePUT /endpoint_groups/{id}Update an environment(endpoint) group
PortainerCeApi.EndpointGroupsApiendpointGroupsIdGetGET /endpoint_groups/{id}Inspect an Environment(Endpoint) group
PortainerCeApi.EndpointGroupsApiendpointGroupsPostPOST /endpoint_groupsCreate an Environment(Endpoint) Group
PortainerCeApi.EndpointsApiendpointAssociationDeletePUT /api/endpoints/{id}/associationDe-association an edge environment(endpoint)
PortainerCeApi.EndpointsApiendpointCreatePOST /endpointsCreate a new environment(endpoint)
PortainerCeApi.EndpointsApiendpointDeleteDELETE /endpoints/{id}Remove an environment(endpoint)
PortainerCeApi.EndpointsApiendpointInspectGET /endpoints/{id}Inspect an environment(endpoint)
PortainerCeApi.EndpointsApiendpointListGET /endpointsList environments(endpoints)
PortainerCeApi.EndpointsApiendpointSettingsUpdatePUT /api/endpoints/{id}/settingsUpdate settings for an environments(endpoints)
PortainerCeApi.EndpointsApiendpointSnapshotPOST /endpoints/{id}/snapshotSnapshots an environments(endpoints)
PortainerCeApi.EndpointsApiendpointSnapshotsPOST /endpoints/snapshotSnapshot all environments(endpoints)
PortainerCeApi.EndpointsApiendpointStatusInspectGET /endpoints/{id}/statusGet environment(endpoint) status
PortainerCeApi.EndpointsApiendpointUpdatePUT /endpoints/{id}Update an environment(endpoint)
PortainerCeApi.EndpointsApiendpointsIdEdgeJobsJobIDLogsPostPOST /endpoints/{id}/edge/jobs/{jobID}/logsInspect an EdgeJob Log
PortainerCeApi.EndpointsApiendpointsIdEdgeStacksStackIdGetGET /endpoints/{id}/edge/stacks/{stackId}Inspect an Edge Stack for an Environment(Endpoint)
PortainerCeApi.ExecApicontainerExecPOST /endpoints/{endpointId}/docker/containers/{id}/execCreate an exec instance
PortainerCeApi.ExecApiexecInspectGET /endpoints/{endpointId}/docker/exec/{id}/jsonInspect an exec instance
PortainerCeApi.ExecApiexecResizePOST /endpoints/{endpointId}/docker/exec/{id}/resizeResize an exec instance
PortainerCeApi.ExecApiexecStartPOST /endpoints/{endpointId}/docker/exec/{id}/startStart an exec instance
PortainerCeApi.HelmApihelmDeleteDELETE /endpoints/{id}/kubernetes/helm/{release}Delete Helm Release
PortainerCeApi.HelmApihelmInstallPOST /endpoints/{id}/kubernetes/helmInstall Helm Chart
PortainerCeApi.HelmApihelmListGET /endpoints/{id}/kubernetes/helmList Helm Releases
PortainerCeApi.HelmApihelmRepoSearchGET /templates/helmSearch Helm Charts
PortainerCeApi.HelmApihelmUserRepositoriesListGET /endpoints/{id}/kubernetes/helm/repositoriesList a users helm repositories
PortainerCeApi.HelmApihelmUserRepositoryCreatePOST /endpoints/{id}/kubernetes/helm/repositoriesCreate a user helm repository
PortainerCeApi.HelmChartApihelmShowGET /templates/helm/{command}Show Helm Chart Information
PortainerCeApi.ImageApibuildPrunePOST /endpoints/{endpointId}/docker/build/pruneDelete builder cache
PortainerCeApi.ImageApiimageBuildPOST /endpoints/{endpointId}/docker/buildBuild an image
PortainerCeApi.ImageApiimageCommitPOST /endpoints/{endpointId}/docker/commitCreate a new image from a container
PortainerCeApi.ImageApiimageCreatePOST /endpoints/{endpointId}/docker/images/createCreate an image
PortainerCeApi.ImageApiimageDeleteDELETE /endpoints/{endpointId}/docker/images/{name}Remove an image
PortainerCeApi.ImageApiimageGetGET /endpoints/{endpointId}/docker/images/{name}/getExport an image
PortainerCeApi.ImageApiimageGetAllGET /endpoints/{endpointId}/docker/images/getExport several images
PortainerCeApi.ImageApiimageHistoryGET /endpoints/{endpointId}/docker/images/{name}/historyGet the history of an image
PortainerCeApi.ImageApiimageInspectGET /endpoints/{endpointId}/docker/images/{name}/jsonInspect an image
PortainerCeApi.ImageApiimageListGET /endpoints/{endpointId}/docker/images/jsonList Images
PortainerCeApi.ImageApiimageLoadPOST /endpoints/{endpointId}/docker/images/loadImport images
PortainerCeApi.ImageApiimagePrunePOST /endpoints/{endpointId}/docker/images/pruneDelete unused images
PortainerCeApi.ImageApiimagePushPOST /endpoints/{endpointId}/docker/images/{name}/pushPush an image
PortainerCeApi.ImageApiimageSearchGET /endpoints/{endpointId}/docker/images/searchSearch images
PortainerCeApi.ImageApiimageTagPOST /endpoints/{endpointId}/docker/images/{name}/tagTag an image
PortainerCeApi.KubernetesApigetKubernetesConfigGET /kubernetes/{id}/configGenerates kubeconfig file enabling client communication with k8s api server
PortainerCeApi.KubernetesApigetKubernetesNodesLimitsGET /kubernetes/{id}/nodes_limitsGet CPU and memory limits of all nodes within k8s cluster
PortainerCeApi.KubernetesApikubernetesNamespacesToggleSystemPUT /kubernetes/{id}/namespaces/{namespace}/systemToggle the system state for a namespace
PortainerCeApi.LdapApilDAPCheckPOST /ldap/checkTest LDAP connectivity
PortainerCeApi.MotdApimotdGetGET /motdfetches the message of the day
PortainerCeApi.NetworkApinetworkConnectPOST /endpoints/{endpointId}/docker/networks/{id}/connectConnect a container to a network
PortainerCeApi.NetworkApinetworkCreatePOST /endpoints/{endpointId}/docker/networks/createCreate a network
PortainerCeApi.NetworkApinetworkDeleteDELETE /endpoints/{endpointId}/docker/networks/{id}Remove a network
PortainerCeApi.NetworkApinetworkDisconnectPOST /endpoints/{endpointId}/docker/networks/{id}/disconnectDisconnect a container from a network
PortainerCeApi.NetworkApinetworkInspectGET /endpoints/{endpointId}/docker/networks/{id}Inspect a network
PortainerCeApi.NetworkApinetworkListGET /endpoints/{endpointId}/docker/networksList networks
PortainerCeApi.NetworkApinetworkPrunePOST /endpoints/{endpointId}/docker/networks/pruneDelete unused networks
PortainerCeApi.NodeApinodeDeleteDELETE /endpoints/{endpointId}/docker/nodes/{id}Delete a node
PortainerCeApi.NodeApinodeInspectGET /endpoints/{endpointId}/docker/nodes/{id}Inspect a node
PortainerCeApi.NodeApinodeListGET /endpoints/{endpointId}/docker/nodesList nodes
PortainerCeApi.NodeApinodeUpdatePOST /endpoints/{endpointId}/docker/nodes/{id}/updateUpdate a node
PortainerCeApi.PluginApigetPluginPrivilegesGET /endpoints/{endpointId}/docker/plugins/privilegesGet plugin privileges
PortainerCeApi.PluginApipluginCreatePOST /endpoints/{endpointId}/docker/plugins/createCreate a plugin
PortainerCeApi.PluginApipluginDeleteDELETE /endpoints/{endpointId}/docker/plugins/{name}Remove a plugin
PortainerCeApi.PluginApipluginDisablePOST /endpoints/{endpointId}/docker/plugins/{name}/disableDisable a plugin
PortainerCeApi.PluginApipluginEnablePOST /endpoints/{endpointId}/docker/plugins/{name}/enableEnable a plugin
PortainerCeApi.PluginApipluginInspectGET /endpoints/{endpointId}/docker/plugins/{name}/jsonInspect a plugin
PortainerCeApi.PluginApipluginListGET /endpoints/{endpointId}/docker/pluginsList plugins
PortainerCeApi.PluginApipluginPullPOST /endpoints/{endpointId}/docker/plugins/pullInstall a plugin
PortainerCeApi.PluginApipluginPushPOST /endpoints/{endpointId}/docker/plugins/{name}/pushPush a plugin
PortainerCeApi.PluginApipluginSetPOST /endpoints/{endpointId}/docker/plugins/{name}/setConfigure a plugin
PortainerCeApi.PluginApipluginUpgradePOST /endpoints/{endpointId}/docker/plugins/{name}/upgradeUpgrade a plugin
PortainerCeApi.RegistriesApiregistryConfigurePOST /registries/{id}/configureConfigures a registry
PortainerCeApi.RegistriesApiregistryCreatePOST /registriesCreate a new registry
PortainerCeApi.RegistriesApiregistryDeleteDELETE /registries/{id}Remove a registry
PortainerCeApi.RegistriesApiregistryInspectGET /registries/{id}Inspect a registry
PortainerCeApi.RegistriesApiregistryListGET /registriesList Registries
PortainerCeApi.RegistriesApiregistryUpdatePUT /registries/{id}Update a registry
PortainerCeApi.ResourceControlsApiresourceControlCreatePOST /resource_controlsCreate a new resource control
PortainerCeApi.ResourceControlsApiresourceControlDeleteDELETE /resource_controls/{id}Remove a resource control
PortainerCeApi.ResourceControlsApiresourceControlUpdatePUT /resource_controls/{id}Update a resource control
PortainerCeApi.RolesApiroleListGET /rolesList roles
PortainerCeApi.SecretApisecretCreatePOST /endpoints/{endpointId}/docker/secrets/createCreate a secret
PortainerCeApi.SecretApisecretDeleteDELETE /endpoints/{endpointId}/docker/secrets/{id}Delete a secret
PortainerCeApi.SecretApisecretInspectGET /endpoints/{endpointId}/docker/secrets/{id}Inspect a secret
PortainerCeApi.SecretApisecretListGET /endpoints/{endpointId}/docker/secretsList secrets
PortainerCeApi.SecretApisecretUpdatePOST /endpoints/{endpointId}/docker/secrets/{id}/updateUpdate a Secret
PortainerCeApi.ServiceApiserviceCreatePOST /endpoints/{endpointId}/docker/services/createCreate a service
PortainerCeApi.ServiceApiserviceDeleteDELETE /endpoints/{endpointId}/docker/services/{id}Delete a service
PortainerCeApi.ServiceApiserviceInspectGET /endpoints/{endpointId}/docker/services/{id}Inspect a service
PortainerCeApi.ServiceApiserviceListGET /endpoints/{endpointId}/docker/servicesList services
PortainerCeApi.ServiceApiserviceLogsGET /endpoints/{endpointId}/docker/services/{id}/logsGet service logs
PortainerCeApi.ServiceApiserviceUpdatePOST /endpoints/{endpointId}/docker/services/{id}/updateUpdate a service
PortainerCeApi.SessionApisessionPOST /endpoints/{endpointId}/docker/sessionInitialize interactive session
PortainerCeApi.SettingsApisettingsInspectGET /settingsRetrieve Portainer settings
PortainerCeApi.SettingsApisettingsPublicGET /settings/publicRetrieve Portainer public settings
PortainerCeApi.SettingsApisettingsUpdatePUT /settingsUpdate Portainer settings
PortainerCeApi.SslApisSLInspectGET /sslInspect the ssl settings
PortainerCeApi.SslApisSLUpdatePUT /sslUpdate the ssl settings
PortainerCeApi.StacksApistackCreatePOST /stacksDeploy a new stack
PortainerCeApi.StacksApistackDeleteDELETE /stacks/{id}Remove a stack
PortainerCeApi.StacksApistackFileInspectGET /stacks/{id}/fileRetrieve the content of the Stack file for the specified stack
PortainerCeApi.StacksApistackGitRedeployPUT /stacks/{id}/git/redeployRedeploy a stack
PortainerCeApi.StacksApistackInspectGET /stacks/{id}Inspect a stack
PortainerCeApi.StacksApistackListGET /stacksList stacks
PortainerCeApi.StacksApistackMigratePOST /stacks/{id}/migrateMigrate a stack to another environment(endpoint)
PortainerCeApi.StacksApistackStartPOST /stacks/{id}/startStarts a stopped Stack
PortainerCeApi.StacksApistackStopPOST /stacks/{id}/stopStops a stopped Stack
PortainerCeApi.StacksApistackUpdatePUT /stacks/{id}Update a stack
PortainerCeApi.StacksApistackUpdateGitPUT /stacks/{id}/gitUpdate a stack's Git configs
PortainerCeApi.StatusApistatusInspectGET /statusCheck Portainer status
PortainerCeApi.StatusApistatusInspectVersionGET /status/versionCheck for portainer updates
PortainerCeApi.SwarmApiswarmInitPOST /endpoints/{endpointId}/docker/swarm/initInitialize a new swarm
PortainerCeApi.SwarmApiswarmInspectGET /endpoints/{endpointId}/docker/swarmInspect swarm
PortainerCeApi.SwarmApiswarmJoinPOST /endpoints/{endpointId}/docker/swarm/joinJoin an existing swarm
PortainerCeApi.SwarmApiswarmLeavePOST /endpoints/{endpointId}/docker/swarm/leaveLeave a swarm
PortainerCeApi.SwarmApiswarmUnlockPOST /endpoints/{endpointId}/docker/swarm/unlockUnlock a locked manager
PortainerCeApi.SwarmApiswarmUnlockkeyGET /endpoints/{endpointId}/docker/swarm/unlockkeyGet the unlock key
PortainerCeApi.SwarmApiswarmUpdatePOST /endpoints/{endpointId}/docker/swarm/updateUpdate a swarm
PortainerCeApi.SystemApisystemAuthPOST /endpoints/{endpointId}/docker/authCheck auth configuration
PortainerCeApi.SystemApisystemDataUsageGET /endpoints/{endpointId}/docker/system/dfGet data usage information
PortainerCeApi.SystemApisystemEventsGET /endpoints/{endpointId}/docker/eventsMonitor events
PortainerCeApi.SystemApisystemInfoGET /endpoints/{endpointId}/docker/infoGet system information
PortainerCeApi.SystemApisystemPingGET /endpoints/{endpointId}/docker/_pingPing
PortainerCeApi.SystemApisystemPingHeadHEAD /endpoints/{endpointId}/docker/_pingPing
PortainerCeApi.SystemApisystemVersionGET /endpoints/{endpointId}/docker/versionGet version
PortainerCeApi.TagsApitagCreatePOST /tagsCreate a new tag
PortainerCeApi.TagsApitagDeleteDELETE /tags/{id}Remove a tag
PortainerCeApi.TagsApitagListGET /tagsList tags
PortainerCeApi.TaskApitaskInspectGET /endpoints/{endpointId}/docker/tasks/{id}Inspect a task
PortainerCeApi.TaskApitaskListGET /endpoints/{endpointId}/docker/tasksList tasks
PortainerCeApi.TaskApitaskLogsGET /endpoints/{endpointId}/docker/tasks/{id}/logsGet task logs
PortainerCeApi.TeamMembershipsApiteamMembershipCreatePOST /team_membershipsCreate a new team membership
PortainerCeApi.TeamMembershipsApiteamMembershipDeleteDELETE /team_memberships/{id}Remove a team membership
PortainerCeApi.TeamMembershipsApiteamMembershipListGET /team_membershipsList team memberships
PortainerCeApi.TeamMembershipsApiteamMembershipUpdatePUT /team_memberships/{id}Update a team membership
PortainerCeApi.TeamMembershipsApiteamMembershipsGET /teams/{id}/membershipsList team memberships
PortainerCeApi.TeamsApiteamCreatePOST /teamCreate a new team
PortainerCeApi.TeamsApiteamDeleteDELETE /teams/{id}Remove a team
PortainerCeApi.TeamsApiteamInspectGET /teams/{id}Inspect a team
PortainerCeApi.TeamsApiteamListGET /teamsList teams
PortainerCeApi.TemplatesApitemplateFilePOST /templates/fileGet a template's file
PortainerCeApi.TemplatesApitemplateListGET /templatesList available templates
PortainerCeApi.UploadApiuploadTLSPOST /upload/tls/{certificate}Upload TLS files
PortainerCeApi.UsersApiuserAdminCheckGET /users/admin/checkCheck administrator account existence
PortainerCeApi.UsersApiuserCreatePOST /usersCreate a new user
PortainerCeApi.UsersApiuserDeleteDELETE /users/{id}Remove a user
PortainerCeApi.UsersApiuserInspectGET /users/{id}Inspect a user
PortainerCeApi.UsersApiuserListGET /usersList users
PortainerCeApi.UsersApiuserMembershipsInspectGET /users/{id}/membershipsInspect a user memberships
PortainerCeApi.UsersApiuserUpdatePUT /users/{id}Update a user
PortainerCeApi.UsersApiuserUpdatePasswordPUT /users/{id}/passwdUpdate password for a user
PortainerCeApi.VolumeApivolumeCreatePOST /endpoints/{endpointId}/docker/volumes/createCreate a volume
PortainerCeApi.VolumeApivolumeDeleteDELETE /endpoints/{endpointId}/docker/volumes/{name}Remove a volume
PortainerCeApi.VolumeApivolumeInspectGET /endpoints/{endpointId}/docker/volumes/{name}Inspect a volume
PortainerCeApi.VolumeApivolumeListGET /endpoints/{endpointId}/docker/volumesList volumes
PortainerCeApi.VolumeApivolumePrunePOST /endpoints/{endpointId}/docker/volumes/pruneDelete unused volumes
PortainerCeApi.WebhooksApiwebhooksGetGET /webhooksList webhooks
PortainerCeApi.WebhooksApiwebhooksIdDeleteDELETE /webhooks/{id}Delete a webhook
PortainerCeApi.WebhooksApiwebhooksPostPOST /webhooksCreate a webhook
PortainerCeApi.WebhooksApiwebhooksTokenPostPOST /webhooks/{token}Execute a webhook
PortainerCeApi.WebsocketApiwebsocketAttachGetGET /websocket/attachAttach a websocket
PortainerCeApi.WebsocketApiwebsocketExecGetGET /websocket/execExecute a websocket
PortainerCeApi.WebsocketApiwebsocketKubernetesShellGetGET /websocket/kubernetes-shellExecute a websocket on kubectl shell pod
PortainerCeApi.WebsocketApiwebsocketPodGetGET /websocket/podExecute a websocket on pod

Documentation for Models

2.9.3141

2 years ago