2021-02-23 03:21:39 +00:00
basePath : /api
2017-08-13 14:45:55 +00:00
definitions :
2021-02-23 03:21:39 +00:00
auth.authenticatePayload :
2018-06-15 07:18:25 +00:00
properties :
2021-02-23 03:21:39 +00:00
password :
description : Password
example : mypassword
type : string
username :
description : Username
example : admin
type : string
required :
2022-06-03 04:00:13 +00:00
- password
- username
2021-02-23 03:21:39 +00:00
type : object
auth.authenticateResponse :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
jwt :
description : JWT token used to authenticate against the API
example : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInJvbGUiOjEsImV4cCI6MTQ5OTM3NjE1NH0.NJ6vE8FY1WG6jsRQzfMqeatJ4vh2TWAeeYfDhP71YEE
type : string
type : object
auth.oauthPayload :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
code :
description : OAuth code returned from OAuth Provided
type : string
type : object
customtemplates.customTemplateFromFileContentPayload :
properties :
description :
description : Description of the template
example : High performance web server
type : string
fileContent :
description : Content of stack file
type : string
logo :
description : URL of the template's logo
example : https://cloudinovasi.id/assets/img/logos/nginx.png
type : string
note :
description : A note that will be displayed in the UI. Supports HTML content
example : This is my <b>custom</b> template
type : string
platform :
description : |-
Platform associated to the template.
Valid values are : 1 - 'linux' , 2 - 'windows'
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
title :
description : Title of the template
example : Nginx
type : string
type :
description : Type of created stack (1 - swarm, 2 - compose)
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
required :
2022-06-03 04:00:13 +00:00
- description
- fileContent
- platform
- title
- type
2021-02-23 03:21:39 +00:00
type : object
customtemplates.customTemplateFromGitRepositoryPayload :
2018-06-11 13:13:19 +00:00
properties :
2021-02-23 03:21:39 +00:00
composeFilePathInRepository :
default : docker-compose.yml
description : Path to the Stack file inside the Git repository
example : docker-compose.yml
type : string
description :
description : Description of the template
example : High performance web server
type : string
logo :
description : URL of the template's logo
example : https://cloudinovasi.id/assets/img/logos/nginx.png
type : string
note :
description : A note that will be displayed in the UI. Supports HTML content
example : This is my <b>custom</b> template
type : string
platform :
description : |-
Platform associated to the template.
Valid values are : 1 - 'linux' , 2 - 'windows'
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
repositoryAuthentication :
description : Use basic authentication to clone the Git repository
example : true
type : boolean
repositoryPassword :
description : Password used in basic authentication. Required when RepositoryAuthentication
is true.
example : myGitPassword
type : string
repositoryReferenceName :
description : Reference name of a Git repository hosting the Stack file
example : refs/heads/master
type : string
repositoryURL :
description : URL of a Git repository hosting the Stack file
example : https://github.com/openfaas/faas
type : string
repositoryUsername :
description : Username used in basic authentication. Required when RepositoryAuthentication
is true.
example : myGitUsername
type : string
title :
description : Title of the template
example : Nginx
type : string
type :
description : Type of created stack (1 - swarm, 2 - compose)
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
required :
2022-06-03 04:00:13 +00:00
- description
- platform
- repositoryURL
- title
- type
2021-02-23 03:21:39 +00:00
type : object
customtemplates.customTemplateUpdatePayload :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
description :
description : Description of the template
example : High performance web server
type : string
fileContent :
description : Content of stack file
type : string
logo :
description : URL of the template's logo
example : https://cloudinovasi.id/assets/img/logos/nginx.png
type : string
note :
description : A note that will be displayed in the UI. Supports HTML content
example : This is my <b>custom</b> template
type : string
platform :
description : |-
Platform associated to the template.
Valid values are : 1 - 'linux' , 2 - 'windows'
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
title :
description : Title of the template
example : Nginx
type : string
type :
description : Type of created stack (1 - swarm, 2 - compose)
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
required :
2022-06-03 04:00:13 +00:00
- description
- fileContent
- platform
- title
- type
2021-02-23 03:21:39 +00:00
type : object
customtemplates.fileResponse :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
fileContent :
type : string
type : object
dockerhub.dockerhubUpdatePayload :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
authentication :
description : Enable authentication against DockerHub
2017-10-02 16:21:42 +00:00
example : false
2021-02-23 03:21:39 +00:00
type : boolean
password :
description : Password used to authenticate against the DockerHub
example : hub_password
type : string
username :
description : Username used to authenticate against the DockerHub
example : hub_user
type : string
required :
2022-06-03 04:00:13 +00:00
- authentication
- password
- username
2021-02-23 03:21:39 +00:00
type : object
edgegroups.edgeGroupCreatePayload :
properties :
dynamic :
type : boolean
endpoints :
items :
type : integer
type : array
name :
type : string
partialMatch :
type : boolean
tagIDs :
items :
description : Tag identifier
example : 1
type : integer
type : array
type : object
edgegroups.edgeGroupUpdatePayload :
properties :
dynamic :
type : boolean
endpoints :
items :
type : integer
type : array
name :
type : string
partialMatch :
type : boolean
tagIDs :
items :
description : Tag identifier
example : 1
type : integer
type : array
type : object
edgejobs.edgeJobCreateFromFileContentPayload :
properties :
cronExpression :
type : string
endpoints :
items :
type : integer
type : array
fileContent :
type : string
name :
type : string
recurring :
type : boolean
type : object
edgejobs.edgeJobCreateFromFilePayload :
properties :
cronExpression :
type : string
endpoints :
items :
type : integer
type : array
file :
items :
type : integer
type : array
name :
type : string
recurring :
type : boolean
type : object
edgejobs.edgeJobFileResponse :
properties :
FileContent :
type : string
type : object
edgejobs.edgeJobUpdatePayload :
properties :
cronExpression :
type : string
endpoints :
items :
type : integer
type : array
fileContent :
type : string
name :
type : string
recurring :
type : boolean
type : object
edgejobs.fileResponse :
properties :
FileContent :
type : string
type : object
edgejobs.taskContainer :
properties :
EndpointId :
type : integer
Id :
type : string
LogsStatus :
type : integer
type : object
edgestacks.stackFileResponse :
properties :
StackFileContent :
type : string
type : object
edgestacks.swarmStackFromFileContentPayload :
properties :
edgeGroups :
items :
description : EdgeGroup Identifier
example : 1
type : integer
type : array
name :
type : string
stackFileContent :
type : string
type : object
edgestacks.swarmStackFromFileUploadPayload :
properties :
edgeGroups :
items :
description : EdgeGroup Identifier
example : 1
type : integer
type : array
name :
type : string
stackFileContent :
items :
type : integer
type : array
type : object
edgestacks.swarmStackFromGitRepositoryPayload :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
composeFilePathInRepository :
type : string
edgeGroups :
items :
description : EdgeGroup Identifier
example : 1
type : integer
type : array
name :
type : string
repositoryAuthentication :
type : boolean
repositoryPassword :
type : string
repositoryReferenceName :
type : string
repositoryURL :
type : string
repositoryUsername :
type : string
type : object
edgestacks.updateEdgeStackPayload :
2020-06-09 02:43:32 +00:00
properties :
2021-02-23 03:21:39 +00:00
edgeGroups :
items :
description : EdgeGroup Identifier
example : 1
type : integer
type : array
prune :
type : boolean
stackFileContent :
type : string
version :
type : integer
type : object
endpointedge.configResponse :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
name :
type : string
prune :
type : boolean
stackFileContent :
type : string
type : object
endpointgroups.endpointGroupCreatePayload :
2018-07-23 04:57:38 +00:00
properties :
2021-02-23 03:21:39 +00:00
associatedEndpoints :
description : List of endpoint identifiers that will be part of this group
example :
2022-06-03 04:00:13 +00:00
- 1
- 3
2021-02-23 03:21:39 +00:00
items :
type : integer
type : array
description :
description : Endpoint group description
example : description
type : string
name :
description : Endpoint group name
example : my-endpoint-group
type : string
tagIDs :
description : List of tag identifiers to which this endpoint group is associated
example :
2022-06-03 04:00:13 +00:00
- 1
- 2
2021-02-23 03:21:39 +00:00
items :
description : Tag identifier
example : 1
type : integer
type : array
required :
2022-06-03 04:00:13 +00:00
- name
2021-02-23 03:21:39 +00:00
type : object
endpointgroups.endpointGroupUpdatePayload :
2019-06-03 23:19:37 +00:00
properties :
2021-02-23 03:21:39 +00:00
description :
description : Endpoint group description
example : description
type : string
name :
description : Endpoint group name
example : my-endpoint-group
type : string
tagIDs :
description : List of tag identifiers associated to the endpoint group
example :
2022-06-03 04:00:13 +00:00
- 3
- 4
2021-02-23 03:21:39 +00:00
items :
description : Tag identifier
example : 1
type : integer
type : array
teamAccessPolicies :
$ref : '#/definitions/portainer.TeamAccessPolicies'
userAccessPolicies :
$ref : '#/definitions/portainer.UserAccessPolicies'
type : object
endpoints.edgeJobResponse :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
CollectLogs :
description : Whether to collect logs
2017-08-13 14:45:55 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
CronExpression :
description : A cron expression to schedule this job
example : '* * * * *'
type : string
Id :
description : EdgeJob Identifier
example : 2
type : integer
Script :
description : Script to run
example : echo hello
type : string
Version :
description : Version of this EdgeJob
example : 2
type : integer
type : object
2022-04-07 12:17:36 +00:00
endpoints.endpointEdgeStatusInspectResponse :
2021-02-23 03:21:39 +00:00
properties :
checkin :
description : The current value of CheckinInterval
example : 5
type : integer
credentials :
type : string
port :
description : The tunnel port
example : 8732
type : integer
schedules :
description : List of requests for jobs to run on the endpoint
2017-08-13 14:45:55 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/endpoints.edgeJobResponse'
type : array
stacks :
description : List of stacks to be deployed on the endpoints
2018-07-23 04:57:38 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/endpoints.stackStatusResponse'
type : array
status :
description : Status represents the endpoint status
example : REQUIRED
type : string
type : object
endpoints.endpointUpdatePayload :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
azureApplicationID :
description : Azure application ID
example : eag7cdo9-o09l-9i83-9dO9-f0b23oe78db4
type : string
azureAuthenticationKey :
description : Azure authentication key
example : cOrXoK/1D35w8YQ8nH1/8ZGwzz45JIYD5jxHKXEQknk=
type : string
azureTenantID :
description : Azure tenant ID
example : 34ddc78d-4fel-2358-8cc1-df84c8o839f5
type : string
edgeCheckinInterval :
description : The check in interval for edge agent (in seconds)
example : 5
type : integer
groupID :
description : Group identifier
example : 1
type : integer
kubernetes :
$ref : '#/definitions/portainer.KubernetesData'
description : Associated Kubernetes data
name :
description : Name that will be used to identify this endpoint
example : my-endpoint
type : string
publicURL :
description : |-
URL or IP address where exposed containers will be reachable.\
Defaults to URL if not specified
example : docker.mydomain.tld:2375
type : string
status :
description : The status of the endpoint (1 - up, 2 - down)
example : 1
type : integer
tagIDs :
description : List of tag identifiers to which this endpoint is associated
example :
2022-06-03 04:00:13 +00:00
- 1
- 2
2017-08-13 14:45:55 +00:00
items :
2021-02-23 03:21:39 +00:00
description : Tag identifier
example : 1
type : integer
type : array
teamAccessPolicies :
$ref : '#/definitions/portainer.TeamAccessPolicies'
tls :
description : Require TLS to connect against this endpoint
example : true
type : boolean
tlsskipClientVerify :
description : Skip client verification when using TLS
2017-08-13 14:45:55 +00:00
example : false
2021-02-23 03:21:39 +00:00
type : boolean
tlsskipVerify :
description : Skip server verification when using TLS
2017-10-02 16:21:42 +00:00
example : false
2021-02-23 03:21:39 +00:00
type : boolean
url :
description : URL or IP address of a Docker host
example : docker.mydomain.tld:2375
type : string
userAccessPolicies :
$ref : '#/definitions/portainer.UserAccessPolicies'
type : object
endpoints.stackStatusResponse :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
id :
description : EdgeStack Identifier
example : 1
type : integer
version :
description : Version of this stack
example : 3
type : integer
type : object
motd.motdResponse :
2018-06-11 13:13:19 +00:00
properties :
2021-02-23 03:21:39 +00:00
ContentLayout :
additionalProperties :
type : string
type : object
Hash :
items :
type : integer
type : array
Message :
type : string
Style :
type : string
Title :
type : string
type : object
portainer.AccessPolicy :
properties :
RoleId :
description : Role identifier. Reference the role that will be associated to
this access policy
example : 1
type : integer
type : object
portainer.Authorizations :
additionalProperties :
type : boolean
type : object
portainer.AzureCredentials :
properties :
ApplicationID :
description : Azure application ID
example : eag7cdo9-o09l-9i83-9dO9-f0b23oe78db4
type : string
AuthenticationKey :
description : Azure authentication key
example : cOrXoK/1D35w8YQ8nH1/8ZGwzz45JIYD5jxHKXEQknk=
type : string
TenantID :
description : Azure tenant ID
example : 34ddc78d-4fel-2358-8cc1-df84c8o839f5
type : string
type : object
portainer.CustomTemplate :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
CreatedByUserId :
description : User identifier who created this template
example : 3
type : integer
Description :
description : Description of the template
example : High performance web server
type : string
EntryPoint :
description : Path to the Stack file
example : docker-compose.yml
type : string
2017-08-13 14:45:55 +00:00
Id :
2021-02-23 03:21:39 +00:00
description : CustomTemplate Identifier
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
Logo :
description : URL of the template's logo
example : https://cloudinovasi.id/assets/img/logos/nginx.png
type : string
Note :
description : A note that will be displayed in the UI. Supports HTML content
example : This is my <b>custom</b> template
type : string
Platform :
description : |-
Platform associated to the template.
Valid values are : 1 - 'linux' , 2 - 'windows'
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2021-02-23 03:21:39 +00:00
example : 1
type : integer
ProjectPath :
description : Path on disk to the repository hosting the Stack file
example : /data/custom_template/3
type : string
ResourceControl :
$ref : '#/definitions/portainer.ResourceControl'
Title :
description : Title of the template
example : Nginx
type : string
Type :
description : Type of created stack (1 - swarm, 2 - compose)
example : 1
type : integer
type : object
portainer.DockerHub :
properties :
2017-08-13 14:45:55 +00:00
Authentication :
2021-02-23 03:21:39 +00:00
description : Is authentication against DockerHub enabled
2017-08-13 14:45:55 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
2017-08-13 14:45:55 +00:00
Password :
2021-02-23 03:21:39 +00:00
description : Password used to authenticate against the DockerHub
example : passwd
type : string
Username :
description : Username used to authenticate against the DockerHub
example : user
type : string
type : object
portainer.DockerSnapshot :
2018-06-11 13:13:19 +00:00
properties :
2021-02-23 03:21:39 +00:00
DockerSnapshotRaw :
$ref : '#/definitions/portainer.DockerSnapshotRaw'
DockerVersion :
type : string
2022-07-17 23:02:14 +00:00
GpuUseAll :
type : boolean
GpuUseList :
items :
type : string
type : array
2021-02-23 03:21:39 +00:00
HealthyContainerCount :
type : integer
ImageCount :
type : integer
RunningContainerCount :
type : integer
ServiceCount :
type : integer
StackCount :
type : integer
StoppedContainerCount :
type : integer
Swarm :
type : boolean
Time :
type : integer
TotalCPU :
type : integer
TotalMemory :
type : integer
UnhealthyContainerCount :
type : integer
VolumeCount :
type : integer
type : object
portainer.DockerSnapshotRaw :
properties :
Containers :
type : object
Images :
type : object
Info :
type : object
Networks :
type : object
Version :
type : object
Volumes :
type : object
type : object
portainer.EdgeGroup :
properties :
Dynamic :
type : boolean
Endpoints :
items :
type : integer
type : array
2018-06-11 13:13:19 +00:00
Id :
2021-02-23 03:21:39 +00:00
description : EdgeGroup Identifier
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
2018-06-11 13:13:19 +00:00
Name :
2021-02-23 03:21:39 +00:00
type : string
PartialMatch :
type : boolean
TagIds :
2018-06-11 13:13:19 +00:00
items :
2021-02-23 03:21:39 +00:00
description : Tag identifier
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
type : array
type : object
portainer.EdgeJob :
2018-06-11 13:13:19 +00:00
properties :
2021-02-23 03:21:39 +00:00
Created :
type : integer
CronExpression :
type : string
Endpoints :
additionalProperties :
$ref : '#/definitions/portainer.EdgeJobEndpointMeta'
type : object
2018-06-11 13:13:19 +00:00
Id :
2021-02-23 03:21:39 +00:00
description : EdgeJob Identifier
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
2018-06-11 13:13:19 +00:00
Name :
2021-02-23 03:21:39 +00:00
type : string
Recurring :
type : boolean
ScriptPath :
type : string
Version :
type : integer
type : object
portainer.EdgeJobEndpointMeta :
properties :
collectLogs :
type : boolean
logsStatus :
type : integer
type : object
portainer.EdgeStack :
properties :
CreationDate :
type : integer
EdgeGroups :
2018-06-11 13:13:19 +00:00
items :
2021-02-23 03:21:39 +00:00
description : EdgeGroup Identifier
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
type : array
EntryPoint :
type : string
Id :
description : EdgeStack Identifier
example : 1
type : integer
Name :
type : string
ProjectPath :
type : string
Prune :
type : boolean
Status :
additionalProperties :
$ref : '#/definitions/portainer.EdgeStackStatus'
type : object
Version :
type : integer
type : object
portainer.EdgeStackStatus :
properties :
EndpointID :
type : integer
Error :
type : string
Type :
type : integer
type : object
portainer.Endpoint :
properties :
2018-06-11 13:13:19 +00:00
AuthorizedTeams :
items :
2021-02-23 03:21:39 +00:00
type : integer
type : array
AuthorizedUsers :
description : Deprecated in DBVersion == 18
2018-06-11 13:13:19 +00:00
items :
2021-02-23 03:21:39 +00:00
description : User identifier who created this template
example : 3
type : integer
type : array
AzureCredentials :
$ref : '#/definitions/portainer.AzureCredentials'
EdgeCheckinInterval :
description : The check in interval for edge agent (in seconds)
example : 5
type : integer
EdgeID :
description : The identifier of the edge agent associated with this endpoint
type : string
EdgeKey :
description : The key which is used to map the agent to Portainer
type : string
2022-07-17 23:02:14 +00:00
Gpus :
description : Endpoint Gpus information
items :
$ref : '#/definitions/portainer.Pair'
type : array
2021-02-23 03:21:39 +00:00
GroupId :
description : Endpoint group identifier
example : 1
type : integer
2017-08-13 14:45:55 +00:00
Id :
2021-02-23 03:21:39 +00:00
description : Endpoint Identifier
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
Kubernetes :
$ref : '#/definitions/portainer.KubernetesData'
description : Associated Kubernetes data
2017-08-13 14:45:55 +00:00
Name :
2021-02-23 03:21:39 +00:00
description : Endpoint name
example : my-endpoint
type : string
2018-06-11 13:13:19 +00:00
PublicURL :
2021-02-23 03:21:39 +00:00
description : URL or IP address where exposed containers will be reachable
example : docker.mydomain.tld:2375
type : string
Snapshots :
description : List of snapshots
items :
$ref : '#/definitions/portainer.DockerSnapshot'
type : array
Status :
description : The status of the endpoint (1 - up, 2 - down)
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
TLS :
description : |-
Deprecated fields
Deprecated in DBVersion == 4
type : boolean
TLSCACert :
type : string
TLSCert :
type : string
TLSConfig :
$ref : '#/definitions/portainer.TLSConfiguration'
TLSKey :
type : string
TagIds :
description : List of tag identifiers to which this endpoint is associated
2018-06-11 13:13:19 +00:00
items :
2021-02-23 03:21:39 +00:00
description : Tag identifier
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
type : array
Tags :
description : Deprecated in DBVersion == 22
2018-06-11 13:13:19 +00:00
items :
2021-02-23 03:21:39 +00:00
type : string
type : array
TeamAccessPolicies :
$ref : '#/definitions/portainer.TeamAccessPolicies'
description : List of team identifiers authorized to connect to this endpoint
2018-06-11 13:13:19 +00:00
Type :
2021-02-23 03:21:39 +00:00
description : Endpoint environment type. 1 for a Docker environment, 2 for
an agent on Docker environment or 3 for an Azure environment.
2018-06-11 13:13:19 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
2017-08-13 14:45:55 +00:00
URL :
2021-02-23 03:21:39 +00:00
description : URL or IP address of the Docker host associated to this endpoint
example : docker.mydomain.tld:2375
type : string
UserAccessPolicies :
$ref : '#/definitions/portainer.UserAccessPolicies'
description : List of user identifiers authorized to connect to this endpoint
type : object
portainer.EndpointAuthorizations :
additionalProperties :
$ref : '#/definitions/portainer.Authorizations'
type : object
portainer.EndpointGroup :
properties :
AuthorizedTeams :
items :
type : integer
type : array
2017-08-13 14:45:55 +00:00
AuthorizedUsers :
2021-02-23 03:21:39 +00:00
description : Deprecated in DBVersion == 18
2017-08-13 14:45:55 +00:00
items :
2021-02-23 03:21:39 +00:00
description : User identifier who created this template
example : 3
type : integer
type : array
Description :
description : Description associated to the endpoint group
example : Endpoint group description
type : string
Id :
description : Endpoint group Identifier
example : 1
type : integer
Labels :
description : Deprecated fields
items :
$ref : '#/definitions/portainer.Pair'
type : array
Name :
description : Endpoint group name
example : my-endpoint-group
type : string
TagIds :
description : List of tags associated to this endpoint group
2017-08-13 14:45:55 +00:00
items :
2021-02-23 03:21:39 +00:00
description : Tag identifier
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
type : array
Tags :
description : Deprecated in DBVersion == 22
items :
type : string
type : array
TeamAccessPolicies :
$ref : '#/definitions/portainer.TeamAccessPolicies'
UserAccessPolicies :
$ref : '#/definitions/portainer.UserAccessPolicies'
type : object
portainer.GitlabRegistryData :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
InstanceURL :
type : string
ProjectId :
type : integer
ProjectPath :
type : string
type : object
portainer.KubernetesConfiguration :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
IngressClasses :
items :
$ref : '#/definitions/portainer.KubernetesIngressClassConfig'
type : array
StorageClasses :
items :
$ref : '#/definitions/portainer.KubernetesStorageClassConfig'
type : array
UseLoadBalancer :
type : boolean
UseServerMetrics :
type : boolean
2021-07-23 05:10:46 +00:00
RestrictDefaultNamespace :
type : boolean
2021-02-23 03:21:39 +00:00
type : object
portainer.KubernetesData :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
Configuration :
$ref : '#/definitions/portainer.KubernetesConfiguration'
Snapshots :
items :
$ref : '#/definitions/portainer.KubernetesSnapshot'
type : array
type : object
portainer.KubernetesIngressClassConfig :
2018-06-11 13:13:19 +00:00
properties :
2021-02-23 03:21:39 +00:00
Name :
type : string
Type :
type : string
type : object
portainer.KubernetesSnapshot :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
KubernetesVersion :
type : string
NodeCount :
type : integer
Time :
type : integer
TotalCPU :
type : integer
TotalMemory :
type : integer
type : object
portainer.KubernetesStorageClassConfig :
2018-06-11 13:13:19 +00:00
properties :
2021-02-23 03:21:39 +00:00
AccessModes :
2018-06-11 13:13:19 +00:00
items :
2021-02-23 03:21:39 +00:00
type : string
type : array
AllowVolumeExpansion :
type : boolean
Name :
type : string
Provisioner :
type : string
type : object
2022-06-03 04:00:13 +00:00
portainer.InternalAuthSettings :
properties :
RequiredPasswordLength :
description : The minimum character length a user can set their password
example : 12
type : integer
2021-02-23 03:21:39 +00:00
portainer.LDAPGroupSearchSettings :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
GroupAttribute :
description : LDAP attribute which denotes the group membership
example : member
type : string
GroupBaseDN :
description : The distinguished name of the element from which the LDAP server
will search for groups
example : dc=ldap,dc=domain,dc=tld
type : string
GroupFilter :
description : The LDAP search filter used to select group elements, optional
example : (objectClass=account
type : string
type : object
portainer.LDAPSearchSettings :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
BaseDN :
description : The distinguished name of the element from which the LDAP server
will search for users
example : dc=ldap,dc=domain,dc=tld
type : string
Filter :
description : Optional LDAP search filter used to select user elements
example : (objectClass=account)
type : string
UserNameAttribute :
description : LDAP attribute which denotes the username
example : uid
type : string
type : object
portainer.LDAPSettings :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
AnonymousMode :
description : Enable this option if the server is configured for Anonymous
access. When enabled, ReaderDN and Password will not be used
2017-08-13 14:45:55 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
AutoCreateUsers :
description : Automatically provision users and assign them to matching LDAP
group names
example : true
type : boolean
GroupSearchSettings :
items :
$ref : '#/definitions/portainer.LDAPGroupSearchSettings'
type : array
2017-08-13 14:45:55 +00:00
Password :
2021-02-23 03:21:39 +00:00
description : Password of the account that will be used to search users
example : readonly-password
type : string
ReaderDN :
description : Account that will be used to search for users
example : cn=readonly-account,dc=ldap,dc=domain,dc=tld
type : string
SearchSettings :
items :
$ref : '#/definitions/portainer.LDAPSearchSettings'
type : array
StartTLS :
description : Whether LDAP connection should use StartTLS
example : true
type : boolean
TLSConfig :
$ref : '#/definitions/portainer.TLSConfiguration'
2017-08-13 14:45:55 +00:00
URL :
2021-02-23 03:21:39 +00:00
description : URL or IP address of the LDAP server
example : myldap.domain.tld:389
type : string
type : object
portainer.OAuthSettings :
properties :
AccessTokenURI :
type : string
AuthorizationURI :
type : string
ClientID :
type : string
ClientSecret :
type : string
DefaultTeamID :
type : integer
OAuthAutoCreateUsers :
type : boolean
RedirectURI :
type : string
ResourceURI :
type : string
Scopes :
type : string
UserIdentifier :
type : string
type : object
portainer.Pair :
properties :
name :
example : name
type : string
value :
example : value
type : string
type : object
portainer.Registry :
properties :
2017-08-13 14:45:55 +00:00
Authentication :
2021-02-23 03:21:39 +00:00
description : Is authentication against this registry enabled
2017-08-13 14:45:55 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
AuthorizedTeams :
items :
type : integer
type : array
AuthorizedUsers :
description : |-
Deprecated fields
Deprecated in DBVersion == 18
items :
description : User identifier who created this template
example : 3
type : integer
type : array
Gitlab :
$ref : '#/definitions/portainer.GitlabRegistryData'
Id :
description : Registry Identifier
example : 1
type : integer
ManagementConfiguration :
$ref : '#/definitions/portainer.RegistryManagementConfiguration'
Name :
description : Registry Name
example : my-registry
type : string
2017-08-13 14:45:55 +00:00
Password :
2021-02-23 03:21:39 +00:00
description : Password used to authenticate against this registry
example : registry_password
type : string
2019-06-03 23:19:37 +00:00
TeamAccessPolicies :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.TeamAccessPolicies'
Type :
2021-07-01 02:57:15 +00:00
description : Registry Type (1 - Quay, 2 - Azure, 3 - Custom, 4 - Gitlab, 5 - ProGet)
2021-02-23 03:21:39 +00:00
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
- 3
- 4
- 5
2021-02-23 03:21:39 +00:00
type : integer
URL :
description : URL or IP address of the Docker registry
example : registry.mydomain.tld:2375
type : string
2021-07-01 02:57:15 +00:00
BaseURL :
description : Base URL or IP address of the ProGet registry
example : registry.mydomain.tld:2375
type : string
2021-02-23 03:21:39 +00:00
UserAccessPolicies :
$ref : '#/definitions/portainer.UserAccessPolicies'
Username :
description : Username used to authenticate against this registry
example : registry user
type : string
type : object
portainer.RegistryManagementConfiguration :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
Authentication :
type : boolean
Password :
type : string
TLSConfig :
$ref : '#/definitions/portainer.TLSConfiguration'
2017-08-13 14:45:55 +00:00
Type :
2021-02-23 03:21:39 +00:00
type : integer
Username :
type : string
type : object
portainer.ResourceControl :
properties :
AccessLevel :
type : integer
AdministratorsOnly :
description : Permit access to resource only to admins
example : true
type : boolean
Id :
description : ResourceControl Identifier
example : 1
type : integer
OwnerId :
description : |-
Deprecated fields
Deprecated in DBVersion == 2
type : integer
2018-08-19 05:57:28 +00:00
Public :
2021-02-23 03:21:39 +00:00
description : Permit access to the associated resource to any user
2017-08-13 14:45:55 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
ResourceId :
description : |-
Docker resource identifier on which access control will be applied.\
In the case of a resource control applied to a stack, use the stack name as identifier
example : 617c5f22bb9b023d6daab7cba43a57576f83492867bc767d1c59416b065e5f08
type : string
SubResourceIds :
description : List of Docker resources that will inherit this access control
example :
2022-06-03 04:00:13 +00:00
- 617c5f22bb9b023d6daab7cba43a57576f83492867bc767d1c59416b065e5f08
2017-08-13 14:45:55 +00:00
items :
2021-02-23 03:21:39 +00:00
type : string
type : array
System :
type : boolean
TeamAccesses :
2017-08-13 14:45:55 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.TeamResourceAccess'
type : array
Type :
description : |-
Type of Docker resource. Valid values are : 1 - container, 2 -service
3 - volume, 4 - secret, 5 - stack, 6 - config or 7 - custom template
example : 1
type : integer
UserAccesses :
2017-08-13 14:45:55 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.UserResourceAccess'
type : array
type : object
portainer.Role :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
Authorizations :
$ref : '#/definitions/portainer.Authorizations'
description : Authorizations associated to a role
Description :
description : Role description
example : Read-only access of all resources in an endpoint
type : string
Id :
description : Role Identifier
example : 1
type : integer
Name :
description : Role name
example : HelpDesk
type : string
Priority :
type : integer
type : object
portainer.Settings :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
AllowBindMountsForRegularUsers :
description : Whether non-administrator should be able to use bind mounts when
creating containers
example : false
type : boolean
AllowContainerCapabilitiesForRegularUsers :
description : Whether non-administrator should be able to use container capabilities
type : boolean
AllowDeviceMappingForRegularUsers :
description : Whether non-administrator should be able to use device mapping
type : boolean
AllowHostNamespaceForRegularUsers :
description : Whether non-administrator should be able to use the host pid
type : boolean
AllowPrivilegedModeForRegularUsers :
description : Whether non-administrator should be able to use privileged mode
when creating containers
2017-08-13 14:45:55 +00:00
example : false
2021-02-23 03:21:39 +00:00
type : boolean
AllowStackManagementForRegularUsers :
description : Whether non-administrator should be able to manage stacks
type : boolean
AllowVolumeBrowserForRegularUsers :
description : Whether non-administrator should be able to browse volumes
type : boolean
2017-08-13 14:45:55 +00:00
AuthenticationMethod :
2021-02-23 03:21:39 +00:00
description : 'Active authentication method for the Portainer instance. Valid
values are : 1 for internal, 2 for LDAP, or 3 for oauth'
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
BlackListedLabels :
description : A list of label name & value that will be used to hide containers
when querying containers
2018-06-11 13:13:19 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.Pair'
type : array
EdgeAgentCheckinInterval :
description : The default check in interval for edge agent (in seconds)
example : 5
type : integer
EnableEdgeComputeFeatures :
description : Whether edge compute features are enabled
type : boolean
EnableHostManagementFeatures :
description : Whether host management features are enabled
type : boolean
EnableTelemetry :
description : Whether telemetry is enabled
example : false
type : boolean
2022-06-03 04:00:13 +00:00
InternalAuthSettings :
$ref : '#/definitions/portainer.InternalAuthSettings'
2021-02-23 03:21:39 +00:00
LDAPSettings :
$ref : '#/definitions/portainer.LDAPSettings'
LogoURL :
description : URL to a logo that will be displayed on the login page as well
as on top of the sidebar. Will use default Portainer logo when value is
empty string
example : https://mycompany.mydomain.tld/logo.png
type : string
OAuthSettings :
$ref : '#/definitions/portainer.OAuthSettings'
SnapshotInterval :
description : The interval in which endpoint snapshots are created
example : 5m
type : string
TemplatesURL :
description : URL to the templates that will be displayed in the UI when navigating
to App Templates
example : https://raw.githubusercontent.com/portainer/templates/master/templates.json
type : string
UserSessionTimeout :
description : The duration of a user session
example : 5m
type : string
displayDonationHeader :
description : Deprecated fields
type : boolean
displayExternalContributors :
type : boolean
type : object
portainer.Stack :
2018-06-11 13:13:19 +00:00
properties :
2021-02-23 03:21:39 +00:00
EndpointId :
description : Endpoint identifier. Reference the endpoint that will be used
for deployment
example : 1
type : integer
EntryPoint :
description : Path to the Stack file
example : docker-compose.yml
type : string
Env :
description : A list of environment variables used during stack deployment
2018-06-11 13:13:19 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.Pair'
type : array
Id :
description : Stack Identifier
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
Name :
description : Stack name
example : myStack
type : string
ResourceControl :
$ref : '#/definitions/portainer.ResourceControl'
Status :
description : Stack status (1 - active, 2 - inactive)
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
SwarmId :
description : Cluster identifier of the Swarm cluster where the stack is deployed
example : jpofkc0i9uo9wtx1zesuk649w
type : string
Type :
description : Stack type. 1 for a Swarm stack, 2 for a Compose stack
example : 2
type : integer
createdBy :
description : The username which created this stack
example : admin
type : string
creationDate :
description : The date in unix time when stack was created
example : 1587399600
type : integer
projectPath :
description : Path on disk to the repository hosting the Stack file
example : /data/compose/myStack_jpofkc0i9uo9wtx1zesuk649w
type : string
updateDate :
description : The date in unix time when stack was last updated
example : 1587399600
type : integer
updatedBy :
description : The username which last updated this stack
example : bob
type : string
type : object
portainer.Status :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
Version :
description : Portainer API version
example : 2.0 .0
type : string
type : object
portainer.TLSConfiguration :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
TLS :
description : Use TLS
2017-08-13 14:45:55 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
TLSCACert :
description : Path to the TLS CA certificate file
example : /data/tls/ca.pem
type : string
TLSCert :
description : Path to the TLS client certificate file
example : /data/tls/cert.pem
type : string
TLSKey :
description : Path to the TLS client key file
example : /data/tls/key.pem
type : string
TLSSkipVerify :
description : Skip the verification of the server TLS certificate
example : false
type : boolean
type : object
portainer.Tag :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
EndpointGroups :
additionalProperties :
type : boolean
description : A set of endpoint group ids that have this tag
type : object
Endpoints :
additionalProperties :
type : boolean
description : A set of endpoint ids that have this tag
type : object
2017-08-13 14:45:55 +00:00
Name :
2021-02-23 03:21:39 +00:00
description : Tag name
example : org/acme
type : string
id :
description : Tag identifier
example : 1
type : integer
type : object
portainer.Team :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
Id :
description : Team Identifier
example : 1
type : integer
2017-08-13 14:45:55 +00:00
Name :
2021-02-23 03:21:39 +00:00
description : Team name
example : developers
type : string
type : object
portainer.TeamAccessPolicies :
additionalProperties :
$ref : '#/definitions/portainer.AccessPolicy'
type : object
portainer.TeamMembership :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
Id :
description : Membership Identifier
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
2017-08-13 14:45:55 +00:00
Role :
2021-02-23 03:21:39 +00:00
description : Team role (1 for team leader and 2 for team member)
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
2017-08-13 14:45:55 +00:00
TeamID :
2021-02-23 03:21:39 +00:00
description : Team identifier
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
UserID :
description : User identifier
2017-08-13 14:45:55 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
type : object
portainer.TeamResourceAccess :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
AccessLevel :
type : integer
TeamId :
type : integer
type : object
portainer.Template :
2018-07-03 18:31:02 +00:00
properties :
2021-02-23 03:21:39 +00:00
Id :
description : |-
Mandatory container/stack fields
Template Identifier
2018-07-03 18:31:02 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
2018-07-03 18:31:02 +00:00
administrator_only :
2021-02-23 03:21:39 +00:00
description : Whether the template should be available to administrators only
2018-07-03 18:31:02 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
categories :
description : A list of categories associated to the template
example :
2022-06-03 04:00:13 +00:00
- database
2021-02-23 03:21:39 +00:00
items :
type : string
type : array
command :
description : The command that will be executed in a container template
example : ls -lah
type : string
description :
description : Description of the template
example : High performance web server
type : string
2018-07-03 18:31:02 +00:00
env :
2021-02-23 03:21:39 +00:00
description : A list of environment variables used during the template deployment
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.TemplateEnv'
type : array
hostname :
description : Container hostname
example : mycontainer
type : string
image :
description : |-
Mandatory container fields
Image associated to a container template. Mandatory for a container template
example : nginx:latest
type : string
interactive :
description : |-
Whether the container should be started in
interactive mode (-i -t equivalent on the CLI)
example : true
type : boolean
labels :
description : Container labels
items :
$ref : '#/definitions/portainer.Pair'
type : array
logo :
description : URL of the template's logo
example : https://cloudinovasi.id/assets/img/logos/nginx.png
type : string
name :
description : |-
Optional stack/container fields
Default name for the stack/container to be used on deployment
example : mystackname
type : string
network :
description : Name of a network that will be used on container deployment if
it exists inside the environment
example : mynet
type : string
2018-07-03 18:31:02 +00:00
note :
2021-02-23 03:21:39 +00:00
description : A note that will be displayed in the UI. Supports HTML content
example : This is my <b>custom</b> template
type : string
2018-07-03 18:31:02 +00:00
platform :
2021-02-23 03:21:39 +00:00
description : |-
Platform associated to the template.
Valid values are : 'linux' , 'windows' or leave empty for multi-platform
example : linux
type : string
ports :
description : A list of ports exposed by the container
example :
2022-06-03 04:00:13 +00:00
- 8080 : 80 /tcp
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
type : string
type : array
privileged :
description : Whether the container should be started in privileged mode
example : true
type : boolean
2018-07-03 18:31:02 +00:00
registry :
2021-02-23 03:21:39 +00:00
description : |-
Optional container fields
The URL of a registry associated to the image for a container template
example : quay.io
type : string
repository :
$ref : '#/definitions/portainer.TemplateRepository'
description : Mandatory stack fields
restart_policy :
description : Container restart policy
example : on -failure
type : string
stackFile :
description : |-
Mandatory Edge stack fields
Stack file used for this template
type : string
title :
description : Title of the template
example : Nginx
type : string
type :
description: 'Template type. Valid values are : 1 (container), 2 (Swarm stack)
or 3 (Compose stack)'
example : 1
type : integer
2018-07-03 18:31:02 +00:00
volumes :
2021-02-23 03:21:39 +00:00
description : A list of volumes used during the container template deployment
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.TemplateVolume'
type : array
type : object
portainer.TemplateEnv :
properties :
default :
description : Default value that will be set for the variable
example : default_value
type : string
description :
description : Content of the tooltip that will be generated in the UI
example : MySQL root account password
type : string
label :
description : Text for the label that will be generated in the UI
example : Root password
type : string
name :
description : name of the environment variable
example : MYSQL_ROOT_PASSWORD
type : string
preset :
description : If set to true, will not generate any input for this variable
in the UI
example : false
type : boolean
select :
description : A list of name/value that will be used to generate a dropdown
in the UI
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.TemplateEnvSelect'
type : array
type : object
portainer.TemplateEnvSelect :
properties :
default :
description : Will set this choice as the default choice
example : false
type : boolean
text :
description : Some text that will displayed as a choice
example : text value
type : string
value :
description : A value that will be associated to the choice
example : value
type : string
type : object
portainer.TemplateRepository :
properties :
stackfile :
description : Path to the stack file inside the git repository
example : ./subfolder/docker-compose.yml
type : string
url :
description : URL of a git repository used to deploy a stack template. Mandatory
for a Swarm/Compose stack template
example : https://github.com/portainer/portainer-compose
type : string
type : object
portainer.TemplateVolume :
properties :
bind :
description : Path on the host
example : /tmp
type : string
container :
description : Path inside the container
example : /data
type : string
readonly :
description : Whether the volume used should be readonly
2018-07-03 18:31:02 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
type : object
portainer.User :
properties :
EndpointAuthorizations :
$ref : '#/definitions/portainer.EndpointAuthorizations'
Id :
description : User Identifier
example : 1
type : integer
Password :
example : passwd
type : string
PortainerAuthorizations :
$ref : '#/definitions/portainer.Authorizations'
description : |-
Deprecated fields
Deprecated in DBVersion == 25
Role :
description : User role (1 for administrator account and 2 for regular account)
example : 1
type : integer
Username :
example : bob
type : string
type : object
portainer.UserAccessPolicies :
additionalProperties :
$ref : '#/definitions/portainer.AccessPolicy'
type : object
portainer.UserResourceAccess :
properties :
AccessLevel :
type : integer
UserId :
type : integer
type : object
portainer.Webhook :
properties :
EndpointId :
type : integer
Id :
description : Webhook Identifier
example : 1
type : integer
ResourceId :
type : string
Token :
type : string
Type :
type : integer
type : object
registries.registryConfigurePayload :
properties :
authentication :
description : Is authentication against this registry enabled
example : false
type : boolean
password :
description : Password used to authenticate against this registry. required
when Authentication is true
example : registry_password
type : string
tls :
description : Use TLS
2018-07-03 18:31:02 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
tlscacertFile :
description : The TLS CA certificate file
items :
type : integer
type : array
tlscertFile :
description : The TLS client certificate file
items :
type : integer
type : array
tlskeyFile :
description : The TLS client key file
items :
type : integer
type : array
tlsskipVerify :
description : Skip the verification of the server TLS certificate
example : false
type : boolean
username :
description : Username used to authenticate against this registry. Required
when Authentication is true
example : registry_user
type : string
required :
2022-06-03 04:00:13 +00:00
- authentication
2021-02-23 03:21:39 +00:00
type : object
registries.registryCreatePayload :
2017-08-13 14:45:55 +00:00
properties :
2021-02-23 03:21:39 +00:00
authentication :
description : Is authentication against this registry enabled
example : false
type : boolean
gitlab :
$ref : '#/definitions/portainer.GitlabRegistryData'
description : Gitlab specific details, required when type = 4
name :
description : Name that will be used to identify this registry
example : my-registry
type : string
password :
description : Password used to authenticate against this registry. required
when Authentication is true
example : registry_password
type : string
2018-07-03 18:31:02 +00:00
type :
2021-02-23 03:21:39 +00:00
description: 'Registry Type. Valid values are : 1 (Quay.io), 2 (Azure container
2021-07-01 02:57:15 +00:00
registry), 3 (custom registry), 4 (Gitlab registry) or 5 (ProGet registry)'
2021-02-23 03:21:39 +00:00
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
- 3
- 4
- 5
2018-07-03 18:31:02 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
url :
description : URL or IP address of the Docker registry
example : registry.mydomain.tld:2375
type : string
2021-07-01 02:57:15 +00:00
baseUrl :
description : Base URL or IP address of the ProGet registry
example : registry.mydomain.tld:2375
type : string
2021-02-23 03:21:39 +00:00
username :
description : Username used to authenticate against this registry. Required
when Authentication is true
example : registry_user
type : string
required :
2022-06-03 04:00:13 +00:00
- authentication
- name
- type
- url
2021-02-23 03:21:39 +00:00
type : object
registries.registryUpdatePayload :
properties :
authentication :
description : Is authentication against this registry enabled
example : false
type : boolean
2018-07-03 18:31:02 +00:00
name :
2021-02-23 03:21:39 +00:00
description : Name that will be used to identify this registry
example : my-registry
type : string
password :
description : Password used to authenticate against this registry. required
when Authentication is true
example : registry_password
type : string
teamAccessPolicies :
$ref : '#/definitions/portainer.TeamAccessPolicies'
url :
description : URL or IP address of the Docker registry
example : registry.mydomain.tld:2375
type : string
2021-07-01 02:57:15 +00:00
baseUrl :
description : Base URL or IP address of the ProGet registry
example : registry.mydomain.tld:2375
type : string
2021-02-23 03:21:39 +00:00
userAccessPolicies :
$ref : '#/definitions/portainer.UserAccessPolicies'
username :
description : Username used to authenticate against this registry. Required
when Authentication is true
example : registry_user
type : string
required :
2022-06-03 04:00:13 +00:00
- authentication
- name
- url
2021-02-23 03:21:39 +00:00
type : object
resourcecontrols.resourceControlCreatePayload :
properties :
administratorsOnly :
description : Permit access to resource only to admins
example : true
type : boolean
public :
description : Permit access to the associated resource to any user
example : true
type : boolean
resourceID :
example : 617c5f22bb9b023d6daab7cba43a57576f83492867bc767d1c59416b065e5f08
type : string
subResourceIDs :
description : List of Docker resources that will inherit this access control
example :
2022-06-03 04:00:13 +00:00
- 617c5f22bb9b023d6daab7cba43a57576f83492867bc767d1c59416b065e5f08
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
type : string
type : array
teams :
description : List of team identifiers with access to the associated resource
example :
2022-06-03 04:00:13 +00:00
- 56
- 7
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
type : integer
type : array
type :
description : |-
Type of Docker resource. Valid values are : container, volume\
service, secret, config or stack
example : container
type : string
users :
description : List of user identifiers with access to the associated resource
example :
2022-06-03 04:00:13 +00:00
- 1
- 4
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
type : integer
type : array
required :
2022-06-03 04:00:13 +00:00
- resourceID
- type
2021-02-23 03:21:39 +00:00
type : object
resourcecontrols.resourceControlUpdatePayload :
properties :
administratorsOnly :
description : Permit access to resource only to admins
example : true
type : boolean
public :
description : Permit access to the associated resource to any user
example : true
type : boolean
teams :
description : List of team identifiers with access to the associated resource
example :
2022-06-03 04:00:13 +00:00
- 7
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
type : integer
type : array
users :
description : List of user identifiers with access to the associated resource
example :
2022-06-03 04:00:13 +00:00
- 4
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
type : integer
type : array
type : object
settings.publicSettingsResponse :
properties :
AllowBindMountsForRegularUsers :
description : Whether non-administrator should be able to use bind mounts when
creating containers
2018-07-03 18:31:02 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
AllowContainerCapabilitiesForRegularUsers :
description : Whether non-administrator should be able to use container capabilities
2018-07-03 18:31:02 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
AllowDeviceMappingForRegularUsers :
description : Whether non-administrator should be able to use device mapping
example : true
type : boolean
AllowHostNamespaceForRegularUsers :
description : Whether non-administrator should be able to use the host pid
example : true
type : boolean
AllowPrivilegedModeForRegularUsers :
description : Whether non-administrator should be able to use privileged mode
when creating containers
example : true
type : boolean
AllowStackManagementForRegularUsers :
description : Whether non-administrator should be able to manage stacks
example : true
type : boolean
AllowVolumeBrowserForRegularUsers :
description : Whether non-administrator should be able to browse volumes
example : true
type : boolean
AuthenticationMethod :
description : 'Active authentication method for the Portainer instance. Valid
values are : 1 for internal, 2 for LDAP, or 3 for oauth'
2018-07-03 18:31:02 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
EnableEdgeComputeFeatures :
description : Whether edge compute features are enabled
example : true
type : boolean
EnableHostManagementFeatures :
description : Whether host management features are enabled
example : true
type : boolean
EnableTelemetry :
description : Whether telemetry is enabled
example : true
type : boolean
LogoURL :
description : URL to a logo that will be displayed on the login page as well
as on top of the sidebar. Will use default Portainer logo when value is
empty string
example : https://mycompany.mydomain.tld/logo.png
type : string
OAuthLoginURI :
description : The URL used for oauth login
example : https://gitlab.com/oauth
type : string
type : object
settings.settingsLDAPCheckPayload :
properties :
ldapsettings :
$ref : '#/definitions/portainer.LDAPSettings'
type : object
settings.settingsUpdatePayload :
properties :
allowBindMountsForRegularUsers :
description : Whether non-administrator should be able to use bind mounts when
creating containers
example : false
type : boolean
allowContainerCapabilitiesForRegularUsers :
description : Whether non-administrator should be able to use container capabilities
example : true
type : boolean
allowDeviceMappingForRegularUsers :
description : Whether non-administrator should be able to use device mapping
example : true
type : boolean
allowHostNamespaceForRegularUsers :
description : Whether non-administrator should be able to use the host pid
example : true
type : boolean
allowPrivilegedModeForRegularUsers :
description : Whether non-administrator should be able to use privileged mode
when creating containers
example : false
type : boolean
allowStackManagementForRegularUsers :
description : Whether non-administrator should be able to manage stacks
example : true
type : boolean
allowVolumeBrowserForRegularUsers :
description : Whether non-administrator should be able to browse volumes
example : true
type : boolean
authenticationMethod :
description : 'Active authentication method for the Portainer instance. Valid
values are : 1 for internal, 2 for LDAP, or 3 for oauth'
2018-07-03 18:31:02 +00:00
example : 1
2021-02-23 03:21:39 +00:00
type : integer
blackListedLabels :
description : A list of label name & value that will be used to hide containers
when querying containers
items :
$ref : '#/definitions/portainer.Pair'
type : array
edgeAgentCheckinInterval :
description : The default check in interval for edge agent (in seconds)
example : 5
type : integer
enableEdgeComputeFeatures :
description : Whether edge compute features are enabled
2018-07-03 18:31:02 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
enableHostManagementFeatures :
description : Whether host management features are enabled
example : true
type : boolean
enableTelemetry :
description : Whether telemetry is enabled
example : false
type : boolean
2022-06-03 04:00:13 +00:00
internalAuthSettings :
$ref : '#/definitions/portainer.InternalAuthSettings'
2021-02-23 03:21:39 +00:00
ldapsettings :
$ref : '#/definitions/portainer.LDAPSettings'
logoURL :
description : URL to a logo that will be displayed on the login page as well
as on top of the sidebar. Will use default Portainer logo when value is
empty string
example : https://mycompany.mydomain.tld/logo.png
type : string
oauthSettings :
$ref : '#/definitions/portainer.OAuthSettings'
snapshotInterval :
description : The interval in which endpoint snapshots are created
example : 5m
type : string
templatesURL :
description : URL to the templates that will be displayed in the UI when navigating
to App Templates
example : https://raw.githubusercontent.com/portainer/templates/master/templates.json
type : string
userSessionTimeout :
description : The duration of a user session
example : 5m
type : string
type : object
stacks.composeStackFromFileContentPayload :
properties :
2018-07-03 18:31:02 +00:00
env :
2021-02-23 03:21:39 +00:00
description : A list of environment variables used during stack deployment
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.Pair'
type : array
name :
description : Name of the stack
example : myStack
type : string
stackFileContent :
description : Content of the Stack file
example : |-
version : 3
services :
web :
image:nginx
type : string
required :
2022-06-03 04:00:13 +00:00
- name
- stackFileContent
2021-02-23 03:21:39 +00:00
type : object
stacks.composeStackFromGitRepositoryPayload :
properties :
composeFilePathInRepository :
default : docker-compose.yml
description : Path to the Stack file inside the Git repository
example : docker-compose.yml
type : string
env :
description : A list of environment variables used during stack deployment
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.Pair'
type : array
name :
description : Name of the stack
example : myStack
type : string
repositoryAuthentication :
description : Use basic authentication to clone the Git repository
example : true
type : boolean
repositoryPassword :
description : Password used in basic authentication. Required when RepositoryAuthentication
is true.
example : myGitPassword
type : string
repositoryReferenceName :
description : Reference name of a Git repository hosting the Stack file
example : refs/heads/master
type : string
repositoryURL :
description : URL of a Git repository hosting the Stack file
example : https://github.com/openfaas/faas
type : string
repositoryUsername :
description : Username used in basic authentication. Required when RepositoryAuthentication
is true.
example : myGitUsername
type : string
required :
2022-06-03 04:00:13 +00:00
- name
- repositoryURL
2021-02-23 03:21:39 +00:00
type : object
stacks.stackFileResponse :
properties :
StackFileContent :
description : Content of the Stack file
example : |-
version : 3
services :
web :
image:nginx
type : string
type : object
stacks.stackMigratePayload :
properties :
endpointID :
description : Endpoint identifier of the target endpoint where the stack will
be relocated
example : 2
type : integer
name :
description : If provided will rename the migrated stack
example : new-stack
type : string
swarmID :
description : Swarm cluster identifier, must match the identifier of the cluster
where the stack will be relocated
example : jpofkc0i9uo9wtx1zesuk649w
type : string
required :
2022-06-03 04:00:13 +00:00
- endpointID
2021-02-23 03:21:39 +00:00
type : object
stacks.swarmStackFromFileContentPayload :
properties :
env :
description : A list of environment variables used during stack deployment
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.Pair'
type : array
name :
description : Name of the stack
example : myStack
type : string
stackFileContent :
description : Content of the Stack file
example : |-
version : 3
services :
web :
image:nginx
type : string
swarmID :
description : Swarm cluster identifier
example : jpofkc0i9uo9wtx1zesuk649w
type : string
required :
2022-06-03 04:00:13 +00:00
- name
- stackFileContent
- swarmID
2021-02-23 03:21:39 +00:00
type : object
stacks.swarmStackFromGitRepositoryPayload :
properties :
composeFilePathInRepository :
default : docker-compose.yml
description : Path to the Stack file inside the Git repository
example : docker-compose.yml
type : string
env :
description : A list of environment variables used during stack deployment
2018-07-03 18:31:02 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.Pair'
type : array
name :
description : Name of the stack
example : myStack
type : string
repositoryAuthentication :
description : Use basic authentication to clone the Git repository
2018-07-03 18:31:02 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
repositoryPassword :
description : Password used in basic authentication. Required when RepositoryAuthentication
is true.
example : myGitPassword
type : string
repositoryReferenceName :
description : Reference name of a Git repository hosting the Stack file
example : refs/heads/master
type : string
repositoryURL :
description : URL of a Git repository hosting the Stack file
example : https://github.com/openfaas/faas
type : string
repositoryUsername :
description : Username used in basic authentication. Required when RepositoryAuthentication
is true.
example : myGitUsername
type : string
swarmID :
description : Swarm cluster identifier
example : jpofkc0i9uo9wtx1zesuk649w
type : string
required :
2022-06-03 04:00:13 +00:00
- name
- repositoryURL
- swarmID
2021-02-23 03:21:39 +00:00
type : object
stacks.updateSwarmStackPayload :
2018-07-03 18:31:02 +00:00
properties :
2021-02-23 03:21:39 +00:00
env :
description : A list of environment variables used during stack deployment
items :
$ref : '#/definitions/portainer.Pair'
type : array
prune :
description : Prune services that are no longer referenced (only available
for Swarm stacks)
2018-07-03 18:31:02 +00:00
example : true
2021-02-23 03:21:39 +00:00
type : boolean
stackFileContent :
description : New content of the Stack file
example : |-
version : 3
services :
web :
image:nginx
type : string
type : object
status.inspectVersionResponse :
properties :
LatestVersion :
description : The latest version available
example : 2.0 .0
type : string
UpdateAvailable :
description : Whether portainer has an update available
example : false
type : boolean
type : object
tags.tagCreatePayload :
2018-07-03 18:31:02 +00:00
properties :
name :
2021-02-23 03:21:39 +00:00
description : Name
example : org/acme
type : string
required :
2022-06-03 04:00:13 +00:00
- name
2021-02-23 03:21:39 +00:00
type : object
teammemberships.teamMembershipCreatePayload :
2018-07-03 18:31:02 +00:00
properties :
2021-02-23 03:21:39 +00:00
role :
description : Role for the user inside the team (1 for leader and 2 for regular
member)
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2021-02-23 03:21:39 +00:00
example : 1
type : integer
teamID :
description : Team identifier
example : 1
type : integer
userID :
description : User identifier
example : 1
type : integer
2018-07-03 18:31:02 +00:00
required :
2022-06-03 04:00:13 +00:00
- role
- teamID
- userID
2021-02-23 03:21:39 +00:00
type : object
teammemberships.teamMembershipUpdatePayload :
2018-07-03 18:31:02 +00:00
properties :
2021-02-23 03:21:39 +00:00
role :
description : Role for the user inside the team (1 for leader and 2 for regular
member)
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2021-02-23 03:21:39 +00:00
example : 1
type : integer
teamID :
description : Team identifier
example : 1
type : integer
userID :
description : User identifier
example : 1
type : integer
2018-06-22 05:51:40 +00:00
required :
2022-06-03 04:00:13 +00:00
- role
- teamID
- userID
2021-02-23 03:21:39 +00:00
type : object
teams.teamCreatePayload :
2018-06-22 05:51:40 +00:00
properties :
2021-02-23 03:21:39 +00:00
name :
description : Name
example : developers
type : string
2018-10-22 22:59:43 +00:00
required :
2022-06-03 04:00:13 +00:00
- name
2021-02-23 03:21:39 +00:00
type : object
teams.teamUpdatePayload :
2018-10-22 22:59:43 +00:00
properties :
2021-02-23 03:21:39 +00:00
name :
description : Name
example : developers
type : string
type : object
templates.filePayload :
properties :
composeFilePathInRepository :
description : Path to the file inside the git repository
example : ./subfolder/docker-compose.yml
type : string
repositoryURL :
description : URL of a git repository where the file is stored
example : https://github.com/portainer/portainer-compose
type : string
2018-01-08 17:27:45 +00:00
required :
2022-06-03 04:00:13 +00:00
- composeFilePathInRepository
- repositoryURL
2021-02-23 03:21:39 +00:00
type : object
templates.fileResponse :
2018-01-08 17:27:45 +00:00
properties :
2021-02-23 03:21:39 +00:00
fileContent :
description : The requested file content
type : string
type : object
templates.listResponse :
properties :
templates :
2018-01-08 17:27:45 +00:00
items :
2021-02-23 03:21:39 +00:00
$ref : '#/definitions/portainer.Template'
type : array
version :
type : string
type : object
users.adminInitPayload :
2018-01-08 17:27:45 +00:00
properties :
2021-02-23 03:21:39 +00:00
password :
description : Password for the admin user
example : admin-password
type : string
username :
description : Username for the admin user
example : admin
type : string
required :
2022-06-03 04:00:13 +00:00
- password
- username
2021-02-23 03:21:39 +00:00
type : object
users.userCreatePayload :
2018-01-08 17:27:45 +00:00
properties :
2021-02-23 03:21:39 +00:00
password :
example : cg9Wgky3
type : string
role :
description : User role (1 for administrator account and 2 for regular account)
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2021-02-23 03:21:39 +00:00
example : 2
type : integer
username :
example : bob
type : string
required :
2022-06-03 04:00:13 +00:00
- password
- role
- username
2021-02-23 03:21:39 +00:00
type : object
users.userUpdatePasswordPayload :
properties :
newPassword :
description : New Password
example : new_passwd
type : string
password :
description : Current Password
example : passwd
type : string
required :
2022-06-03 04:00:13 +00:00
- newPassword
- password
2021-02-23 03:21:39 +00:00
type : object
users.userUpdatePayload :
properties :
password :
example : cg9Wgky3
type : string
role :
description : User role (1 for administrator account and 2 for regular account)
enum :
2022-06-03 04:00:13 +00:00
- 1
- 2
2021-02-23 03:21:39 +00:00
example : 2
type : integer
username :
example : bob
type : string
required :
2022-06-03 04:00:13 +00:00
- password
- role
- username
2021-02-23 03:21:39 +00:00
type : object
webhooks.webhookCreatePayload :
properties :
endpointID :
type : integer
resourceID :
type : string
webhookType :
type : integer
type : object
info :
contact :
email : info@portainer.io
description : |
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.
2021-09-12 21:00:49 +00:00
Examples are available at https://documentation.portainer.io/api/api-examples/
2021-02-23 03:21:39 +00:00
You can find out more about Portainer at [http://portainer.io](http://portainer.io) and get some support on [Slack](http://portainer.io/slack/).
# Authentication
Most of the API 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 endpoint has an associated access policy, it is documented in the description of each endpoint.
Different access policies are available :
- Public access
- Authenticated access
- Restricted access
- Administrator access
### Public access
No authentication is required to access the endpoints with this access policy.
### Authenticated access
Authentication is required to access the endpoints with this access policy.
### Restricted access
Authentication is required to access the 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 endpoints with this access policy.
# Execute Docker requests
Portainer **DO NOT** expose specific 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 endpoint (which is not documented below due to Swagger limitations). This endpoint has a restricted access policy so you still need to be authenticated to be able to query this endpoint. Any query on this endpoint will be proxied to the Docker API of the associated endpoint (requests and responses objects are the same as documented in the Docker API).
2021-09-12 21:00:49 +00:00
**NOTE**: You can find more information on how to query the Docker API in the [Docker official documentation](https://docs.docker.com/engine/api/v1.30/) as well as in [this Portainer example](https://documentation.portainer.io/api/api-examples/).
2021-02-23 03:21:39 +00:00
license : {}
title : PortainerCE API
version : 2.0 .0
paths :
/auth :
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : Use this endpoint to authenticate against Portainer using a username
and password.
operationId : AuthenticateUser
parameters :
2022-06-03 04:00:13 +00:00
- description : Credentials used for authentication
in : body
name : body
required : true
schema :
$ref : '#/definitions/auth.authenticatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/auth.authenticateResponse'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'422' :
2021-02-23 03:21:39 +00:00
description : Invalid Credentials
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
summary : Authenticate
tags :
2022-06-03 04:00:13 +00:00
- auth
2021-02-23 03:21:39 +00:00
/auth/logout :
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
operationId : logout
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
description : ''
2021-02-23 03:21:39 +00:00
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Logout
tags :
2022-06-03 04:00:13 +00:00
- auth
2021-02-23 03:21:39 +00:00
/auth/oauth/validate :
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
operationId : authenticate_oauth
parameters :
2022-06-03 04:00:13 +00:00
- description : OAuth Credentials used for authentication
in : body
name : body
required : true
schema :
$ref : '#/definitions/auth.oauthPayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/auth.authenticateResponse'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'422' :
2021-02-23 03:21:39 +00:00
description : Invalid Credentials
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
summary : Authenticate with OAuth
tags :
2022-06-03 04:00:13 +00:00
- auth
2021-02-23 03:21:39 +00:00
/custom_templates :
get :
description : |-
List available custom templates.
**Access policy** : authenticated
operationId : CustomTemplateList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.CustomTemplate'
type : array
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List available custom templates
tags :
2022-06-03 04:00:13 +00:00
- custom_templates
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
- ' multipart/form-data'
2021-02-23 03:21:39 +00:00
description : |-
Create a custom template.
**Access policy** : authenticated
operationId : CustomTemplateCreate
parameters :
2022-06-03 04:00:13 +00:00
- description : method for creating template
enum :
- string
- file
- repository
in : query
name : method
required : true
type : string
- description : Required when using method=string
in : body
name : body_string
schema :
$ref : '#/definitions/customtemplates.customTemplateFromFileContentPayload'
- description : Required when using method=repository
in : body
name : body_repository
schema :
$ref : '#/definitions/customtemplates.customTemplateFromGitRepositoryPayload'
- description : Title of the template. required when method is file
in : formData
name : Title
type : string
- description : Description of the template. required when method is file
in : formData
name : Description
type : string
- description : A note that will be displayed in the UI. Supports HTML content
in : formData
name : Note
type : string
- description : Platform associated to the template (1 - 'linux', 2 - 'windows').
required when method is file
enum :
- 1
- 2
in : formData
name : Platform
type : integer
- description : Type of created stack (1 - swarm, 2 - compose), required when
method is file
enum :
- 1
- 2
in : formData
name : Type
type : integer
- description : required when method is file
in : formData
name : file
type : file
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.CustomTemplate'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a custom template
tags :
2022-06-03 04:00:13 +00:00
- custom_templates
2021-02-23 03:21:39 +00:00
/custom_templates/{id}:
delete :
description : |-
Remove a template.
**Access policy** : authorized
operationId : CustomTemplateDelete
parameters :
2022-06-03 04:00:13 +00:00
- description : Template identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Access denied to resource
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Template not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove a template
tags :
2022-06-03 04:00:13 +00:00
- custom_templates
2021-02-23 03:21:39 +00:00
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Retrieve details about a template.
**Access policy** : authenticated
operationId : CustomTemplateInspect
parameters :
2022-06-03 04:00:13 +00:00
- description : Template identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.CustomTemplate'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Template not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect a custom template
tags :
2022-06-03 04:00:13 +00:00
- custom_templates
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update a template.
**Access policy** : authenticated
operationId : CustomTemplateUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : Template identifier
in : path
name : id
required : true
type : integer
- description : Template details
in : body
name : body
required : true
schema :
$ref : '#/definitions/customtemplates.customTemplateUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.CustomTemplate'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied to access template
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Template not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update a template
tags :
2022-06-03 04:00:13 +00:00
- custom_templates
2021-02-23 03:21:39 +00:00
/custom_templates/{id}/file:
get :
description : |-
Retrieve the content of the Stack file for the specified custom template
**Access policy** : authorized
operationId : CustomTemplateFile
parameters :
2022-06-03 04:00:13 +00:00
- description : Template identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/customtemplates.fileResponse'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Custom template not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Get Template stack file content.
tags :
2022-06-03 04:00:13 +00:00
- custom_templates
2021-02-23 03:21:39 +00:00
/dockerhub :
get :
description : |-
Use this endpoint to retrieve the information used to connect to the DockerHub
**Access policy** : authenticated
operationId : DockerHubInspect
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.DockerHub'
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Retrieve DockerHub information
tags :
2022-06-03 04:00:13 +00:00
- dockerhub
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Use this endpoint to update the information used to connect to the DockerHub
**Access policy** : administrator
operationId : DockerHubUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : DockerHub information
in : body
name : body
required : true
schema :
$ref : '#/definitions/dockerhub.dockerhubUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update DockerHub information
tags :
2022-06-03 04:00:13 +00:00
- dockerhub
2021-02-23 03:21:39 +00:00
/edge_groups :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : EdgeGroups
schema :
items :
allOf :
2022-06-03 04:00:13 +00:00
- $ref : '#/definitions/portainer.EdgeGroup'
- properties :
HasEdgeStack :
type : boolean
type : object
2021-02-23 03:21:39 +00:00
type : array
2022-06-03 04:00:13 +00:00
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : list EdgeGroups
tags :
2022-06-03 04:00:13 +00:00
- edge_groups
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeGroup data
in : body
name : body
required : true
schema :
$ref : '#/definitions/edgegroups.edgeGroupCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeGroup'
2022-06-03 04:00:13 +00:00
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create an EdgeGroup
tags :
2022-06-03 04:00:13 +00:00
- edge_groups
2021-02-23 03:21:39 +00:00
/edge_groups/{id}:
delete :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeGroup Id
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Deletes an EdgeGroup
tags :
2022-06-03 04:00:13 +00:00
- edge_groups
2021-02-23 03:21:39 +00:00
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeGroup Id
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeGroup'
2022-06-03 04:00:13 +00:00
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspects an EdgeGroup
tags :
2022-06-03 04:00:13 +00:00
- edge_groups
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeGroup Id
in : path
name : id
required : true
type : integer
- description : EdgeGroup data
in : body
name : body
required : true
schema :
$ref : '#/definitions/edgegroups.edgeGroupUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeGroup'
2022-06-03 04:00:13 +00:00
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Updates an EdgeGroup
tags :
2022-06-03 04:00:13 +00:00
- edge_groups
2021-02-23 03:21:39 +00:00
/edge_jobs :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
items :
$ref : '#/definitions/portainer.EdgeJob'
type : array
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Fetch EdgeJobs list
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : Creation Method
enum :
- file
- string
in : query
name : method
required : true
type : string
- description : EdgeGroup data when method is string
in : body
name : body
required : true
schema :
$ref : '#/definitions/edgejobs.edgeJobCreateFromFileContentPayload'
- description : EdgeGroup data when method is file
in : body
name : body
required : true
schema :
$ref : '#/definitions/edgejobs.edgeJobCreateFromFilePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeGroup'
2022-06-03 04:00:13 +00:00
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
/edge_jobs/{id}:
delete :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeJob Id
in : path
name : id
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
description : ''
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Delete an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeJob Id
in : path
name : id
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeJob'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeJob Id
in : path
name : id
required : true
type : string
- description : EdgeGroup data
in : body
name : body
required : true
schema :
$ref : '#/definitions/edgejobs.edgeJobUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeJob'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
/edge_jobs/{id}/file:
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeJob Id
in : path
name : id
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/edgejobs.edgeJobFileResponse'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Fetch a file of an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
/edge_jobs/{id}/tasks:
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeJob Id
in : path
name : id
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
items :
$ref : '#/definitions/edgejobs.taskContainer'
type : array
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Fetch the list of tasks on an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
/edge_jobs/{id}/tasks/{taskID}/logs:
delete :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeJob Id
in : path
name : id
required : true
type : string
- description : Task Id
in : path
name : taskID
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
description : ''
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Clear the log for a specifc task on an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeJob Id
in : path
name : id
required : true
type : string
- description : Task Id
in : path
name : taskID
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/edgejobs.fileResponse'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Fetch the log for a specifc task on an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeJob Id
in : path
name : id
required : true
type : string
- description : Task Id
in : path
name : taskID
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
description : ''
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Collect the log for a specifc task on an EdgeJob
tags :
2022-06-03 04:00:13 +00:00
- edge_jobs
2021-02-23 03:21:39 +00:00
/edge_stacks :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
items :
$ref : '#/definitions/portainer.EdgeStack'
type : array
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Fetches the list of EdgeStacks
tags :
2022-06-03 04:00:13 +00:00
- edge_stacks
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : Creation Method
enum :
- file
- string
- repository
in : query
name : method
required : true
type : string
- description : Required when using method=string
in : body
name : body_string
required : true
schema :
$ref : '#/definitions/edgestacks.swarmStackFromFileContentPayload'
- description : Required when using method=file
in : body
name : body_file
required : true
schema :
$ref : '#/definitions/edgestacks.swarmStackFromFileUploadPayload'
- description : Required when using method=repository
in : body
name : body_repository
required : true
schema :
$ref : '#/definitions/edgestacks.swarmStackFromGitRepositoryPayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeStack'
2022-06-03 04:00:13 +00:00
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create an EdgeStack
tags :
2022-06-03 04:00:13 +00:00
- edge_stacks
2021-02-23 03:21:39 +00:00
/edge_stacks/{id}:
delete :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeStack Id
in : path
name : id
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
description : ''
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Delete an EdgeStack
tags :
2022-06-03 04:00:13 +00:00
- edge_stacks
2021-02-23 03:21:39 +00:00
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeStack Id
in : path
name : id
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeStack'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect an EdgeStack
tags :
2022-06-03 04:00:13 +00:00
- edge_stacks
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeStack Id
in : path
name : id
required : true
type : string
- description : EdgeStack data
in : body
name : body
required : true
schema :
$ref : '#/definitions/edgestacks.updateEdgeStackPayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeStack'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update an EdgeStack
tags :
2022-06-03 04:00:13 +00:00
- edge_stacks
2021-02-23 03:21:39 +00:00
/edge_stacks/{id}/file:
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeStack Id
in : path
name : id
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/edgestacks.stackFileResponse'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
'503' :
2021-02-23 03:21:39 +00:00
description : Service Unavailable
schema :
type : Edge
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Fetches the stack file for an EdgeStack
tags :
2022-06-03 04:00:13 +00:00
- edge_stacks
2021-02-23 03:21:39 +00:00
/edge_stacks/{id}/status:
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : Authorized only if the request is done by an Edge Endpoint
parameters :
2022-06-03 04:00:13 +00:00
- description : EdgeStack Id
in : path
name : id
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.EdgeStack'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'403' :
description : ''
'404' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
summary : Update an EdgeStack status
tags :
2022-06-03 04:00:13 +00:00
- edge_stacks
2021-02-23 03:21:39 +00:00
/edge_templates :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
items :
$ref : '#/definitions/portainer.Template'
type : array
2022-06-03 04:00:13 +00:00
'500' :
description : ''
2021-02-23 03:21:39 +00:00
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Fetches the list of Edge Templates
tags :
2022-06-03 04:00:13 +00:00
- edge_templates
2021-02-23 03:21:39 +00:00
/endpoint_groups :
get :
description : |-
List all endpoint groups based on the current user authorizations. Will
return all endpoint groups if using an administrator account otherwise it will
only return authorized endpoint groups.
**Access policy** : restricted
operationId : EndpointGroupList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Endpoint group
schema :
items :
$ref : '#/definitions/portainer.EndpointGroup'
type : array
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List Endpoint groups
tags :
2022-06-03 04:00:13 +00:00
- endpoint_groups
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Create a new endpoint group.
**Access policy** : administrator
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint Group details
in : body
name : body
required : true
schema :
$ref : '#/definitions/endpointgroups.endpointGroupCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.EndpointGroup'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create an Endpoint Group
tags :
2022-06-03 04:00:13 +00:00
- endpoint_groups
2021-02-23 03:21:39 +00:00
/endpoint_groups/:id :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Retrieve details abont an endpoint group.
**Access policy** : administrator
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint group identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.EndpointGroup'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : EndpointGroup not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect an Endpoint group
tags :
2022-06-03 04:00:13 +00:00
- endpoint_groups
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update an endpoint group.
**Access policy** : administrator
operationId : EndpointGroupUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : EndpointGroup identifier
in : path
name : id
required : true
type : integer
- description : EndpointGroup details
in : body
name : body
required : true
schema :
$ref : '#/definitions/endpointgroups.endpointGroupUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.EndpointGroup'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : EndpointGroup not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update an endpoint group
tags :
2022-06-03 04:00:13 +00:00
- endpoint_groups
2021-02-23 03:21:39 +00:00
/endpoint_groups/{id}:
delete :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Remove an endpoint group.
**Access policy** : administrator
operationId : EndpointGroupDelete
parameters :
2022-06-03 04:00:13 +00:00
- description : EndpointGroup identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : EndpointGroup not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove an endpoint group
tags :
2022-06-03 04:00:13 +00:00
- endpoint_groups
2021-02-23 03:21:39 +00:00
/endpoint_groups/{id}/endpoints/{endpointId}:
delete :
description: '**Access policy** : administrator'
operationId : EndpointGroupDeleteEndpoint
parameters :
2022-06-03 04:00:13 +00:00
- description : EndpointGroup identifier
in : path
name : id
required : true
type : integer
- description : Endpoint identifier
in : path
name : endpointId
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : EndpointGroup not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Removes endpoint from an endpoint group
tags :
2022-06-03 04:00:13 +00:00
- endpoint_groups
2021-02-23 03:21:39 +00:00
put :
description : |-
Add an endpoint to an endpoint group
**Access policy** : administrator
operationId : EndpointGroupAddEndpoint
parameters :
2022-06-03 04:00:13 +00:00
- description : EndpointGroup identifier
in : path
name : id
required : true
type : integer
- description : Endpoint identifier
in : path
name : endpointId
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : EndpointGroup not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Add an endpoint to an endpoint group
tags :
2022-06-03 04:00:13 +00:00
- endpoint_groups
2021-02-23 03:21:39 +00:00
/endpoints :
get :
description : |-
List all endpoints based on the current user authorizations. Will
return all endpoints if using an administrator account otherwise it will
only return authorized endpoints.
**Access policy** : restricted
operationId : EndpointList
parameters :
2022-06-03 04:00:13 +00:00
- description : Start searching from
in : query
name : start
2021-02-23 03:21:39 +00:00
type : integer
2022-06-03 04:00:13 +00:00
- description : Search query
in : query
name : search
type : string
- description : List endpoints of this group
in : query
name : groupId
2021-02-23 03:21:39 +00:00
type : integer
2022-06-03 04:00:13 +00:00
- description : Limit results to this value
in : query
name : limit
type : integer
- description : List endpoints of this type
in : query
name : type
type : integer
- description : search endpoints with these tags (depends on tagsPartialMatch)
in : query
items :
type : integer
name : tagIds
type : array
- description : If true, will return endpoint which has one of tagIds, if false
(or missing) will return only endpoints that has all the tags
in : query
name : tagsPartialMatch
type : boolean
- description : will return only these endpoints
in : query
items :
type : integer
name : endpointIds
type : array
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Endpoints
schema :
items :
$ref : '#/definitions/portainer.Endpoint'
type : array
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Internal Server Error
schema :
type : Server
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List endpoints
tags :
2022-06-03 04:00:13 +00:00
- endpoints
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- multipart/form-data
2021-02-23 03:21:39 +00:00
description : |-
Create a new endpoint that will be used to manage an environment.
**Access policy** : administrator
operationId : EndpointCreate
parameters :
2022-06-03 04:00:13 +00:00
- description: 'Name that will be used to identify this endpoint (example : my-endpoint)'
in : formData
name : Name
required : true
type : string
- description: 'Environment type. Value must be one of : 1 (Local Docker environment),
2 (Agent environment), 3 (Azure environment), 4 (Edge agent environment)
or 5 (Local Kubernetes Environment'
in : formData
name : EndpointType
required : true
type : integer
- description: 'URL or IP address of a Docker host (example : docker.mydomain.tld:2375).
Defaults to local if not specified (Linux : /var/run/docker.sock, Windows :
//./pipe/docker_engine)'
in : formData
name : URL
type : string
- description : 'URL or IP address where exposed containers will be reachable.
Defaults to URL if not specified (example : docker.mydomain.tld:2375)'
in : formData
name : PublicURL
type : string
- description : Endpoint group identifier. If not specified will default to 1
(unassigned).
in : formData
name : GroupID
type : integer
- description : Require TLS to connect against this endpoint
in : formData
name : TLS
type : boolean
- description : Skip server verification when using TLS
in : formData
name : TLSSkipVerify
type : boolean
- description : Skip client verification when using TLS
in : formData
name : TLSSkipClientVerify
type : boolean
- description : TLS CA certificate file
in : formData
name : TLSCACertFile
type : file
- description : TLS client certificate file
in : formData
name : TLSCertFile
type : file
- description : TLS client key file
in : formData
name : TLSKeyFile
type : file
- description : Azure application ID. Required if endpoint type is set to 3
in : formData
name : AzureApplicationID
type : string
- description : Azure tenant ID. Required if endpoint type is set to 3
in : formData
name : AzureTenantID
type : string
- description : Azure authentication key. Required if endpoint type is set to
3
in : formData
name : AzureAuthenticationKey
type : string
- description : List of tag identifiers to which this endpoint is associated
in : formData
items :
type : integer
name : TagIDs
type : array
- description : The check in interval for edge agent (in seconds)
in : formData
name : EdgeCheckinInterval
2021-02-23 03:21:39 +00:00
type : integer
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Endpoint'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a new endpoint
tags :
2022-06-03 04:00:13 +00:00
- endpoints
2021-02-23 03:21:39 +00:00
/endpoints/{id}:
delete :
description : |-
Remove an endpoint.
**Access policy** : administrator
operationId : EndpointDelete
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Endpoint not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove an endpoint
tags :
2022-06-03 04:00:13 +00:00
- endpoints
2021-02-23 03:21:39 +00:00
get :
description : |-
Retrieve details about an endpoint.
**Access policy** : restricted
operationId : EndpointInspect
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Endpoint'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Endpoint not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect an endpoint
tags :
2022-06-03 04:00:13 +00:00
- endpoints
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update an endpoint.
**Access policy** : administrator
operationId : EndpointUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint identifier
in : path
name : id
required : true
type : integer
- description : Endpoint details
in : body
name : body
required : true
schema :
$ref : '#/definitions/endpoints.endpointUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Endpoint'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Endpoint not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update an endpoint
tags :
2022-06-03 04:00:13 +00:00
- endpoints
2021-02-23 03:21:39 +00:00
/endpoints/{id}/edge/jobs/{jobID}/logs:
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint Id
in : path
name : id
required : true
type : string
- description : Job Id
in : path
name : jobID
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
description : ''
'400' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
summary : Inspect an EdgeJob Log
tags :
2022-06-03 04:00:13 +00:00
- edge
- endpoints
2021-02-23 03:21:39 +00:00
/endpoints/{id}/edge/stacks/{stackId}:
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint Id
in : path
name : id
required : true
type : string
- description : EdgeStack Id
in : path
name : stackID
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/endpointedge.configResponse'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'404' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
summary : Inspect an Edge Stack for an Endpoint
tags :
2022-06-03 04:00:13 +00:00
- edge
- endpoints
- edge_stacks
2021-02-23 03:21:39 +00:00
/endpoints/{id}/snapshot:
post :
description : |-
Snapshots an endpoint
**Access policy** : restricted
operationId : EndpointSnapshot
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Endpoint not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Snapshots an endpoint
tags :
2022-06-03 04:00:13 +00:00
- endpoints
2022-04-07 12:17:36 +00:00
/endpoints/{id}/edge/status:
2021-02-23 03:21:39 +00:00
get :
description : |-
Endpoint for edge agent to check status of environment
**Access policy** : restricted only to Edge endpoints
2022-04-07 12:17:36 +00:00
operationId : EndpointEdgeStatusInspect
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : Endpoint identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
2022-04-07 12:17:36 +00:00
$ref : '#/definitions/endpoints.endpointEdgeStatusInspectResponse'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied to access endpoint
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Endpoint not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Get endpoint status
tags :
2022-06-03 04:00:13 +00:00
- endpoints
2021-02-23 03:21:39 +00:00
/endpoints/snapshot :
post :
description : |-
Snapshot all endpoints
**Access policy** : administrator
operationId : EndpointSnapshots
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server Error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Snapshot all endpoints
tags :
2022-06-03 04:00:13 +00:00
- endpoints
2021-02-23 03:21:39 +00:00
/motd :
get :
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/motd.motdResponse'
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : fetches the message of the day
tags :
2022-06-03 04:00:13 +00:00
- motd
2021-02-23 03:21:39 +00:00
/registries :
get :
description : |-
List all registries based on the current user authorizations.
Will return all registries if using an administrator account otherwise it
will only return authorized registries.
**Access policy** : restricted
operationId : RegistryList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.Registry'
type : array
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List Registries
tags :
2022-06-03 04:00:13 +00:00
- registries
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Create a new registry.
**Access policy** : administrator
operationId : RegistryCreate
parameters :
2022-06-03 04:00:13 +00:00
- description : Registry details
in : body
name : body
required : true
schema :
$ref : '#/definitions/registries.registryCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Registry'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a new registry
tags :
2022-06-03 04:00:13 +00:00
- registries
2021-02-23 03:21:39 +00:00
/registries/{id}:
delete :
description : |-
Remove a registry
**Access policy** : administrator
operationId : RegistryDelete
parameters :
2022-06-03 04:00:13 +00:00
- description : Registry identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Registry not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove a registry
tags :
2022-06-03 04:00:13 +00:00
- registries
2021-02-23 03:21:39 +00:00
get :
description : |-
Retrieve details about a registry.
**Access policy** : administrator
operationId : RegistryInspect
parameters :
2022-06-03 04:00:13 +00:00
- description : Registry identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Registry'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied to access registry
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Registry not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect a registry
tags :
2022-06-03 04:00:13 +00:00
- registries
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update a registry
**Access policy** : administrator
operationId : RegistryUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : Registry identifier
in : path
name : id
required : true
type : integer
- description : Registry details
in : body
name : body
required : true
schema :
$ref : '#/definitions/registries.registryUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Registry'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Registry not found
2022-06-03 04:00:13 +00:00
'409' :
2021-02-23 03:21:39 +00:00
description : Another registry with the same URL already exists
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update a registry
tags :
2022-06-03 04:00:13 +00:00
- registries
2021-02-23 03:21:39 +00:00
/registries/{id}/configure:
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Configures a registry.
**Access policy** : admin
operationId : RegistryConfigure
parameters :
2022-06-03 04:00:13 +00:00
- description : Registry identifier
in : path
name : id
required : true
type : integer
- description : Registry configuration
in : body
name : body
required : true
schema :
$ref : '#/definitions/registries.registryConfigurePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Registry not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Configures a registry
tags :
2022-06-03 04:00:13 +00:00
- registries
2021-02-23 03:21:39 +00:00
/resource_controls :
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Create a new resource control to restrict access to a Docker resource.
**Access policy** : administrator
operationId : ResourceControlCreate
parameters :
2022-06-03 04:00:13 +00:00
- description : Resource control details
in : body
name : body
required : true
schema :
$ref : '#/definitions/resourcecontrols.resourceControlCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.ResourceControl'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'409' :
2021-02-23 03:21:39 +00:00
description : Resource control already exists
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a new resource control
tags :
2022-06-03 04:00:13 +00:00
- resource_controls
2021-02-23 03:21:39 +00:00
/resource_controls/{id}:
delete :
description : |-
Remove a resource control.
**Access policy** : administrator
parameters :
2022-06-03 04:00:13 +00:00
- description : Resource control identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Resource control not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove a resource control
tags :
2022-06-03 04:00:13 +00:00
- resource_controls
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update a resource control
**Access policy** : restricted
operationId : ResourceControlUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : Resource control identifier
in : path
name : id
required : true
type : integer
- description : Resource control details
in : body
name : body
required : true
schema :
$ref : '#/definitions/resourcecontrols.resourceControlUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.ResourceControl'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Unauthorized
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Resource control not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update a resource control
tags :
2022-06-03 04:00:13 +00:00
- resource_controls
2021-02-23 03:21:39 +00:00
/roles :
get :
description : |-
List all roles available for use
**Access policy** : administrator
operationId : RoleList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.Role'
type : array
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List roles
tags :
2022-06-03 04:00:13 +00:00
- roles
2021-02-23 03:21:39 +00:00
/settings :
get :
description : |-
Retrieve Portainer settings.
**Access policy** : administrator
operationId : SettingsInspect
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Settings'
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Retrieve Portainer settings
tags :
2022-06-03 04:00:13 +00:00
- settings
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update Portainer settings.
**Access policy** : administrator
operationId : SettingsUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : New settings
in : body
name : body
required : true
schema :
$ref : '#/definitions/settings.settingsUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Settings'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update Portainer settings
tags :
2022-06-03 04:00:13 +00:00
- settings
2021-02-23 03:21:39 +00:00
/settings/ldap/check :
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Test LDAP connectivity using LDAP details
**Access policy** : administrator
operationId : SettingsLDAPCheck
parameters :
2022-06-03 04:00:13 +00:00
- description : details
in : body
name : body
required : true
schema :
$ref : '#/definitions/settings.settingsLDAPCheckPayload'
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Test LDAP connectivity
tags :
2022-06-03 04:00:13 +00:00
- settings
2021-02-23 03:21:39 +00:00
/settings/public :
get :
description : |-
Retrieve public settings. Returns a small set of settings that are not reserved to administrators only.
**Access policy** : public
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/settings.publicSettingsResponse'
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
summary : Retrieve Portainer public settings
tags :
2022-06-03 04:00:13 +00:00
- settings
2021-02-23 03:21:39 +00:00
/stacks :
get :
description : |-
List all stacks based on the current user authorizations.
Will return all stacks if using an administrator account otherwise it
will only return the list of stacks the user have access to.
**Access policy** : restricted
operationId : StackList
parameters :
2022-06-03 04:00:13 +00:00
- description : Filters to process on the stack list. Encoded as JSON (a map[string]string).
For example, {
in : query
name : filters
type : string
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.Stack'
type : array
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List stacks
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
- ' multipart/form-data'
2021-02-23 03:21:39 +00:00
description : |-
Deploy a new stack into a Docker environment specified via the endpoint identifier.
**Access policy** : restricted
operationId : StackCreate
parameters :
2022-06-03 04:00:13 +00:00
- description: 'Stack deployment type. Possible values : 1 (Swarm stack) or 2
(Compose stack).'
enum :
- 1
- 2
in : query
name : type
required : true
type : integer
- description: 'Stack deployment method. Possible values : file, string or repository.'
enum :
- string
- file
- repository
in : query
name : method
required : true
type : string
- description : Identifier of the endpoint that will be used to deploy the stack
in : query
name : endpointId
required : true
type : integer
- description : Required when using method=string and type=1
in : body
name : body_swarm_string
schema :
$ref : '#/definitions/stacks.swarmStackFromFileContentPayload'
- description : Required when using method=repository and type=1
in : body
name : body_swarm_repository
schema :
$ref : '#/definitions/stacks.swarmStackFromGitRepositoryPayload'
- description : Required when using method=string and type=2
in : body
name : body_compose_string
schema :
$ref : '#/definitions/stacks.composeStackFromFileContentPayload'
- description : Required when using method=repository and type=2
in : body
name : body_compose_repository
schema :
$ref : '#/definitions/stacks.composeStackFromGitRepositoryPayload'
- description : Name of the stack. required when method is file
in : formData
name : Name
type : string
- description : Swarm cluster identifier. Required when method equals file and
type equals 1. required when method is file
in : formData
name : SwarmID
type : string
- description : "Environment variables passed during deployment, represented
as a JSON array [{'name': 'name', 'value': 'value'}]. Optional,
used when method equals file and type equals 1."
in : formData
name : Env
type : string
- description : Stack file. required when method is file
in : formData
name : file
type : file
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.CustomTemplate'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Deploy a new stack
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
/stacks/{id}:
delete :
description : |-
Remove a stack.
**Access policy** : restricted
operationId : StackDelete
parameters :
2022-06-03 04:00:13 +00:00
- description : Stack identifier
in : path
name : id
required : true
type : integer
- description : Set to true to delete an external stack. Only external Swarm
stacks are supported
in : query
name : external
type : boolean
- description : Endpoint identifier used to remove an external stack (required
when external is set to true)
in : query
name : endpointId
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : ' not found'
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove a stack
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
get :
description : |-
Retrieve details about a stack.
**Access policy** : restricted
operationId : StackInspect
parameters :
2022-06-03 04:00:13 +00:00
- description : Stack identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Stack'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Stack not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect a stack
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update a stack.
**Access policy** : restricted
operationId : StackUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : Stack identifier
in : path
name : id
required : true
type : integer
- description : Stacks created before version 1.18.0 might not have an associated
endpoint identifier. Use this optional parameter to set the endpoint identifier
used by the stack.
in : query
name : endpointId
type : integer
- description : Stack details
in : body
name : body
required : true
schema :
$ref : '#/definitions/stacks.updateSwarmStackPayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Stack'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : ' not found'
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update a stack
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
/stacks/{id}/file:
get :
description : |-
Get Stack file content.
**Access policy** : restricted
operationId : StackFileInspect
parameters :
2022-06-03 04:00:13 +00:00
- description : Stack identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/stacks.stackFileResponse'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Stack not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Retrieve the content of the Stack file for the specified stack
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
/stacks/{id}/migrate:
post :
description : |-
Migrate a stack from an endpoint to another endpoint. It will re-create the stack inside the target endpoint before removing the original stack.
**Access policy** : restricted
operationId : StackMigrate
parameters :
2022-06-03 04:00:13 +00:00
- description : Stack identifier
in : path
name : id
required : true
type : integer
- description : Stacks created before version 1.18.0 might not have an associated
endpoint identifier. Use this optional parameter to set the endpoint identifier
used by the stack.
in : query
name : endpointId
type : integer
- description : Stack migration details
in : body
name : body
required : true
schema :
$ref : '#/definitions/stacks.stackMigratePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Stack'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Stack not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Migrate a stack to another endpoint
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
/stacks/{id}/start:
post :
description : |-
Starts a stopped Stack.
**Access policy** : restricted
operationId : StackStart
parameters :
2022-06-03 04:00:13 +00:00
- description : Stack identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Stack'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : ' not found'
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Starts a stopped Stack
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
/stacks/{id}/stop:
post :
description : |-
Stops a stopped Stack.
**Access policy** : restricted
operationId : StackStop
parameters :
2022-06-03 04:00:13 +00:00
- description : Stack identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Stack'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : ' not found'
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Stops a stopped Stack
tags :
2022-06-03 04:00:13 +00:00
- stacks
2021-02-23 03:21:39 +00:00
/status :
get :
description : |-
Retrieve Portainer status
**Access policy** : public
operationId : StatusInspect
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Status'
summary : Check Portainer status
tags :
2022-06-03 04:00:13 +00:00
- status
2021-02-23 03:21:39 +00:00
/status/version :
get :
description : |-
Check if portainer has an update available
**Access policy** : authenticated
operationId : StatusInspectVersion
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/status.inspectVersionResponse'
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Check for portainer updates
tags :
2022-06-03 04:00:13 +00:00
- status
2021-02-23 03:21:39 +00:00
/tags :
get :
description : |-
List tags.
**Access policy** : administrator
operationId : TagList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.Tag'
type : array
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List tags
tags :
2022-06-03 04:00:13 +00:00
- tags
2021-02-23 03:21:39 +00:00
post :
description : |-
Create a new tag.
**Access policy** : administrator
operationId : TagCreate
parameters :
2022-06-03 04:00:13 +00:00
- description : Tag details
in : body
name : body
required : true
schema :
$ref : '#/definitions/tags.tagCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Tag'
2022-06-03 04:00:13 +00:00
'409' :
2021-02-23 03:21:39 +00:00
description : Tag name exists
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a new tag
tags :
2022-06-03 04:00:13 +00:00
- tags
2021-02-23 03:21:39 +00:00
/tags/{id}:
delete :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Remove a tag.
**Access policy** : administrator
operationId : TagDelete
parameters :
2022-06-03 04:00:13 +00:00
- description : Tag identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Tag not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove a tag
tags :
2022-06-03 04:00:13 +00:00
- tags
2021-02-23 03:21:39 +00:00
/team :
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Create a new team.
**Access policy** : administrator
operationId : TeamCreate
parameters :
2022-06-03 04:00:13 +00:00
- description : details
in : body
name : body
required : true
schema :
$ref : '#/definitions/teams.teamCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Team'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'409' :
2021-02-23 03:21:39 +00:00
description : Team already exists
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a new team
tags :
2022-06-03 04:00:13 +00:00
- teams
2021-02-23 03:21:39 +00:00
/team/{id}:
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update a team.
**Access policy** : administrator
operationId : TeamUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : Team identifier
in : path
name : id
required : true
type : integer
- description : Team details
in : body
name : body
required : true
schema :
$ref : '#/definitions/teams.teamUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Team'
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Team not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update a team
tags :
2022-06-03 04:00:13 +00:00
- ''
2021-02-23 03:21:39 +00:00
/team_memberships :
get :
description : |-
List team memberships. Access is only available to administrators and team leaders.
**Access policy** : admin
operationId : TeamMembershipList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.TeamMembership'
type : array
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List team memberships
tags :
2022-06-03 04:00:13 +00:00
- team_memberships
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Create a new team memberships. Access is only available to administrators leaders of the associated team.
**Access policy** : admin
operationId : TeamMembershipCreate
parameters :
2022-06-03 04:00:13 +00:00
- description : Team membership details
in : body
name : body
required : true
schema :
$ref : '#/definitions/teammemberships.teamMembershipCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.TeamMembership'
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied to manage memberships
2022-06-03 04:00:13 +00:00
'409' :
2021-02-23 03:21:39 +00:00
description : Team membership already registered
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a new team membership
tags :
2022-06-03 04:00:13 +00:00
- team_memberships
2021-02-23 03:21:39 +00:00
/team_memberships/{id}:
delete :
description : |-
Remove a team membership. Access is only available to administrators leaders of the associated team.
**Access policy** : restricted
operationId : TeamMembershipDelete
parameters :
2022-06-03 04:00:13 +00:00
- description : TeamMembership identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : TeamMembership not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove a team membership
tags :
2022-06-03 04:00:13 +00:00
- team_memberships
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update a team membership. Access is only available to administrators leaders of the associated team.
**Access policy** : restricted
operationId : TeamMembershipUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : Team membership identifier
in : path
name : id
required : true
type : integer
- description : Team membership details
in : body
name : body
required : true
schema :
$ref : '#/definitions/teammemberships.teamMembershipUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.TeamMembership'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : TeamMembership not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update a team membership
tags :
2022-06-03 04:00:13 +00:00
- team_memberships
2021-02-23 03:21:39 +00:00
/teams :
get :
description : |-
List teams. For non-administrator users, will only list the teams they are member of.
**Access policy** : restricted
operationId : TeamList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.Team'
type : array
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List teams
tags :
2022-06-03 04:00:13 +00:00
- teams
2021-02-23 03:21:39 +00:00
/teams/{id}:
delete :
description : |-
Remove a team.
**Access policy** : administrator
operationId : TeamDelete
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Team not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove a team
tags :
2022-06-03 04:00:13 +00:00
- teams
2021-02-23 03:21:39 +00:00
get :
description : |-
Retrieve details about a team. Access is only available for administrator and leaders of that team.
**Access policy** : restricted
operationId : TeamInspect
parameters :
2022-06-03 04:00:13 +00:00
- description : Team identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.Team'
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : Team not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect a team
tags :
2022-06-03 04:00:13 +00:00
- teams
2021-02-23 03:21:39 +00:00
/teams/{id}/memberships:
get :
description : |-
List team memberships. Access is only available to administrators and team leaders.
**Access policy** : restricted
operationId : TeamMemberships
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.TeamMembership'
type : array
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List team memberships
tags :
2022-06-03 04:00:13 +00:00
- team_memberships
2021-02-23 03:21:39 +00:00
/templates :
get :
description : |-
List available templates.
**Access policy** : restricted
operationId : TemplateList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/templates.listResponse'
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List available templates
tags :
2022-06-03 04:00:13 +00:00
- templates
2021-02-23 03:21:39 +00:00
/templates/file :
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Get a template's file
**Access policy** : restricted
operationId : TemplateFile
parameters :
2022-06-03 04:00:13 +00:00
- description : File details
in : body
name : body
required : true
schema :
$ref : '#/definitions/templates.filePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/templates.fileResponse'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Get a template's file
tags :
2022-06-03 04:00:13 +00:00
- templates
2021-02-23 03:21:39 +00:00
/upload/tls/{certificate}:
post :
consumes :
2022-06-03 04:00:13 +00:00
- multipart/form-data
2021-02-23 03:21:39 +00:00
description : |-
Use this endpoint to upload TLS files.
**Access policy** : administrator
operationId : UploadTLS
parameters :
2022-06-03 04:00:13 +00:00
- description : TLS file type. Valid values are 'ca', 'cert' or 'key'.
enum :
- ca
- cert
- key
in : path
name : certificate
required : true
type : string
- description : Folder where the TLS file will be stored. Will be created if
not existing
in : formData
name : folder
required : true
type : string
- description : The file to upload
in : formData
name : file
required : true
type : file
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Upload TLS files
tags :
2022-06-03 04:00:13 +00:00
- upload
2021-02-23 03:21:39 +00:00
/users :
get :
description : |-
List Portainer users.
Non-administrator users will only be able to list other non-administrator user accounts.
**Access policy** : restricted
operationId : UserList
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
items :
$ref : '#/definitions/portainer.User'
type : array
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List users
tags :
2022-06-03 04:00:13 +00:00
- users
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Create a new Portainer user.
Only team leaders and administrators can create users.
Only administrators can create an administrator user account.
**Access policy** : restricted
operationId : UserCreate
parameters :
2022-06-03 04:00:13 +00:00
- description : User details
in : body
name : body
required : true
schema :
$ref : '#/definitions/users.userCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.User'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'409' :
2021-02-23 03:21:39 +00:00
description : User already exists
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a new user
tags :
2022-06-03 04:00:13 +00:00
- users
2021-02-23 03:21:39 +00:00
/users/{id}:
delete :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Remove a user.
**Access policy** : administrator
operationId : UserDelete
parameters :
2022-06-03 04:00:13 +00:00
- description : User identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : User not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Remove a user
tags :
2022-06-03 04:00:13 +00:00
- users
2021-02-23 03:21:39 +00:00
get :
description : |-
Retrieve details about a user.
**Access policy** : administrator
operationId : UserInspect
parameters :
2022-06-03 04:00:13 +00:00
- description : User identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.User'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : User not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect a user
tags :
2022-06-03 04:00:13 +00:00
- users
2021-02-23 03:21:39 +00:00
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update user details. A regular user account can only update his details.
**Access policy** : authenticated
operationId : UserUpdate
parameters :
2022-06-03 04:00:13 +00:00
- description : User identifier
in : path
name : id
required : true
type : integer
- description : User details
in : body
name : body
required : true
schema :
$ref : '#/definitions/users.userUpdatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.User'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : User not found
2022-06-03 04:00:13 +00:00
'409' :
2021-02-23 03:21:39 +00:00
description : Username already exist
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update a user
tags :
2022-06-03 04:00:13 +00:00
- users
2021-02-23 03:21:39 +00:00
/users/{id}/memberships:
get :
description : |-
Inspect a user memberships.
**Access policy** : authenticated
operationId : UserMembershipsInspect
parameters :
2022-06-03 04:00:13 +00:00
- description : User identifier
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.TeamMembership'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Inspect a user memberships
tags :
2022-06-03 04:00:13 +00:00
- users
2021-02-23 03:21:39 +00:00
/users/{id}/passwd:
put :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Update password for the specified user.
**Access policy** : authenticated
operationId : UserUpdatePassword
parameters :
2022-06-03 04:00:13 +00:00
- description : identifier
in : path
name : id
required : true
type : integer
- description : details
in : body
name : body
required : true
schema :
$ref : '#/definitions/users.userUpdatePasswordPayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'403' :
2021-02-23 03:21:39 +00:00
description : Permission denied
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : User not found
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Update password for a user
tags :
2022-06-03 04:00:13 +00:00
- users
2021-02-23 03:21:39 +00:00
/users/admin/check :
get :
description : |-
Check if an administrator account exists in the database.
**Access policy** : public
operationId : UserAdminCheck
responses :
2022-06-03 04:00:13 +00:00
'204' :
2021-02-23 03:21:39 +00:00
description : Success
2022-06-03 04:00:13 +00:00
'404' :
2021-02-23 03:21:39 +00:00
description : User not found
summary : Check administrator account existence
tags :
2022-06-03 04:00:13 +00:00
- users
2021-02-23 03:21:39 +00:00
/users/admin/init :
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
Initialize the 'admin' user account.
**Access policy** : public
operationId : UserAdminInit
parameters :
2022-06-03 04:00:13 +00:00
- description : User details
in : body
name : body
required : true
schema :
$ref : '#/definitions/users.adminInitPayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : Success
schema :
$ref : '#/definitions/portainer.User'
2022-06-03 04:00:13 +00:00
'400' :
2021-02-23 03:21:39 +00:00
description : Invalid request
2022-06-03 04:00:13 +00:00
'409' :
2021-02-23 03:21:39 +00:00
description : Admin user already initialized
2022-06-03 04:00:13 +00:00
'500' :
2021-02-23 03:21:39 +00:00
description : Server error
summary : Initialize administrator account
tags :
2022-06-03 04:00:13 +00:00
- ''
2021-02-23 03:21:39 +00:00
/webhooks :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : Webhook data
in : body
name : body
required : true
schema :
$ref : '#/definitions/webhooks.webhookCreatePayload'
- in : query
name : EndpointID
type : integer
- in : query
name : ResourceID
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
items :
$ref : '#/definitions/portainer.Webhook'
type : array
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : List webhooks
tags :
2022-06-03 04:00:13 +00:00
- webhooks
2021-02-23 03:21:39 +00:00
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : Webhook data
in : body
name : body
required : true
schema :
$ref : '#/definitions/webhooks.webhookCreatePayload'
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
2021-02-23 03:21:39 +00:00
description : OK
schema :
$ref : '#/definitions/portainer.Webhook'
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'409' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Create a webhook
tags :
2022-06-03 04:00:13 +00:00
- webhooks
2021-02-23 03:21:39 +00:00
/webhooks/{id}:
delete :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
parameters :
2022-06-03 04:00:13 +00:00
- description : Webhook id
in : path
name : id
required : true
type : integer
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'202' :
2021-02-23 03:21:39 +00:00
description : Webhook deleted
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Delete a webhook
tags :
2022-06-03 04:00:13 +00:00
- webhooks
2021-02-23 03:21:39 +00:00
/webhooks/{token}:
post :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : Acts on a passed in token UUID to restart the docker service
parameters :
2022-06-03 04:00:13 +00:00
- description : Webhook token
in : path
name : token
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'202' :
2021-02-23 03:21:39 +00:00
description : Webhook executed
2022-06-03 04:00:13 +00:00
'400' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
summary : Execute a webhook
tags :
2022-06-03 04:00:13 +00:00
- webhooks
2021-02-23 03:21:39 +00:00
/websocket/attach :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
If the nodeName query parameter is present, the request will be proxied to the underlying agent endpoint.
If the nodeName query parameter is not specified, the request will be upgraded to the websocket protocol and
an AttachStart operation HTTP request will be created and hijacked.
Authentication and access is controlled via the mandatory token query parameter.
parameters :
2022-06-03 04:00:13 +00:00
- description : endpoint ID of the endpoint where the resource is located
in : query
name : endpointId
required : true
type : integer
- description : node name
in : query
name : nodeName
type : string
- description : JWT token used for authentication against this endpoint
in : query
name : token
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
description : ''
'400' :
description : ''
'403' :
description : ''
'404' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Attach a websocket
tags :
2022-06-03 04:00:13 +00:00
- websocket
2021-02-23 03:21:39 +00:00
/websocket/exec :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
If the nodeName query parameter is present, the request will be proxied to the underlying agent endpoint.
If the nodeName query parameter is not specified, the request will be upgraded to the websocket protocol and
an ExecStart operation HTTP request will be created and hijacked.
Authentication and access is controlled via the mandatory token query parameter.
parameters :
2022-06-03 04:00:13 +00:00
- description : endpoint ID of the endpoint where the resource is located
in : query
name : endpointId
required : true
type : integer
- description : node name
in : query
name : nodeName
type : string
- description : JWT token used for authentication against this endpoint
in : query
name : token
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
description : ''
'400' :
description : ''
'409' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Execute a websocket
tags :
2022-06-03 04:00:13 +00:00
- websocket
2021-02-23 03:21:39 +00:00
/websocket/pod :
get :
consumes :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
description : |-
The request will be upgraded to the websocket protocol.
Authentication and access is controlled via the mandatory token query parameter.
parameters :
2022-06-03 04:00:13 +00:00
- description : endpoint ID of the endpoint where the resource is located
in : query
name : endpointId
required : true
type : integer
- description : namespace where the container is located
in : query
name : namespace
required : true
type : string
- description : name of the pod containing the container
in : query
name : podName
required : true
type : string
- description : name of the container
in : query
name : containerName
required : true
type : string
- description : command to execute in the container
in : query
name : command
required : true
type : string
- description : JWT token used for authentication against this endpoint
in : query
name : token
required : true
type : string
2021-02-23 03:21:39 +00:00
produces :
2022-06-03 04:00:13 +00:00
- application/json
2021-02-23 03:21:39 +00:00
responses :
2022-06-03 04:00:13 +00:00
'200' :
description : ''
'400' :
description : ''
'403' :
description : ''
'404' :
description : ''
'500' :
description : ''
2021-02-23 03:21:39 +00:00
security :
2022-06-03 04:00:13 +00:00
- jwt : [ ]
2021-02-23 03:21:39 +00:00
summary : Execute a websocket on pod
tags :
2022-06-03 04:00:13 +00:00
- websocket
2021-02-23 03:21:39 +00:00
schemes :
2022-06-03 04:00:13 +00:00
- http
- https
2021-02-23 03:21:39 +00:00
securityDefinitions :
jwt :
in : header
name : Authorization
type : apiKey
2022-06-03 04:00:13 +00:00
swagger : '2.0'
2021-02-23 03:21:39 +00:00
tags :
2022-06-03 04:00:13 +00:00
- description : Authenticate against Portainer HTTP API
name : auth
- description : Manage Custom Templates
name : custom_templates
- description : Manage how Portainer connects to the DockerHub
name : dockerhub
- description : Manage Edge Groups
name : edge_groups
- description : Manage Edge Jobs
name : edge_jobs
- description : Manage Edge Stacks
name : edge_stacks
- description : Manage Edge Templates
name : edge_templates
- description : Manage Edge related endpoint settings
name : edge
- description : Manage Docker environments
name : endpoints
- description : Manage endpoint groups
name : endpoint_groups
- description : Fetch the message of the day
name : motd
- description : Manage Docker registries
name : registries
- description : Manage access control on Docker resources
name : resource_controls
- description : Manage roles
name : roles
- description : Manage Portainer settings
name : settings
- description : Information about the Portainer instance
name : status
- description : Manage Docker stacks
name : stacks
- description : Manage users
name : users
- description : Manage tags
name : tags
- description : Manage teams
name : teams
- description : Manage team memberships
name : team_memberships
- description : Manage App Templates
name : templates
- description : Manage stacks
name : stacks
- description : Upload files
name : upload
- description : Manage webhooks
name : webhooks
- description : Create exec sessions using websockets
name : websocket