ptctools 0.1.0__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ptctools/__init__.py +7 -1
- ptctools/_portainer.py +450 -226
- ptctools/cli.py +5 -8
- ptctools/config.py +111 -149
- ptctools/db.py +203 -142
- ptctools/docker.py +29 -0
- ptctools/portainer_client/.openapi-generator/FILES +818 -0
- ptctools/portainer_client/.openapi-generator/VERSION +1 -0
- ptctools/portainer_client/.openapi-generator-ignore +23 -0
- ptctools/portainer_client/openapi_client/__init__.py +855 -0
- ptctools/portainer_client/openapi_client/api/__init__.py +36 -0
- ptctools/portainer_client/openapi_client/api/auth_api.py +848 -0
- ptctools/portainer_client/openapi_client/api/backup_api.py +587 -0
- ptctools/portainer_client/openapi_client/api/custom_templates_api.py +2659 -0
- ptctools/portainer_client/openapi_client/api/docker_api.py +878 -0
- ptctools/portainer_client/openapi_client/api/edge_api.py +597 -0
- ptctools/portainer_client/openapi_client/api/edge_groups_api.py +1405 -0
- ptctools/portainer_client/openapi_client/api/edge_jobs_api.py +3146 -0
- ptctools/portainer_client/openapi_client/api/edge_stacks_api.py +2990 -0
- ptctools/portainer_client/openapi_client/api/endpoint_groups_api.py +1965 -0
- ptctools/portainer_client/openapi_client/api/endpoints_api.py +6607 -0
- ptctools/portainer_client/openapi_client/api/gitops_api.py +308 -0
- ptctools/portainer_client/openapi_client/api/helm_api.py +3529 -0
- ptctools/portainer_client/openapi_client/api/intel_api.py +1718 -0
- ptctools/portainer_client/openapi_client/api/kubernetes_api.py +18877 -0
- ptctools/portainer_client/openapi_client/api/ldap_api.py +313 -0
- ptctools/portainer_client/openapi_client/api/motd_api.py +284 -0
- ptctools/portainer_client/openapi_client/api/registries_api.py +1712 -0
- ptctools/portainer_client/openapi_client/api/resource_controls_api.py +891 -0
- ptctools/portainer_client/openapi_client/api/roles_api.py +288 -0
- ptctools/portainer_client/openapi_client/api/settings_api.py +820 -0
- ptctools/portainer_client/openapi_client/api/ssl_api.py +573 -0
- ptctools/portainer_client/openapi_client/api/stacks_api.py +6640 -0
- ptctools/portainer_client/openapi_client/api/status_api.py +285 -0
- ptctools/portainer_client/openapi_client/api/system_api.py +1277 -0
- ptctools/portainer_client/openapi_client/api/tags_api.py +839 -0
- ptctools/portainer_client/openapi_client/api/team_memberships_api.py +1425 -0
- ptctools/portainer_client/openapi_client/api/teams_api.py +1453 -0
- ptctools/portainer_client/openapi_client/api/templates_api.py +558 -0
- ptctools/portainer_client/openapi_client/api/upload_api.py +343 -0
- ptctools/portainer_client/openapi_client/api/users_api.py +3659 -0
- ptctools/portainer_client/openapi_client/api/webhooks_api.py +1415 -0
- ptctools/portainer_client/openapi_client/api/websocket_api.py +1279 -0
- ptctools/portainer_client/openapi_client/api_client.py +805 -0
- ptctools/portainer_client/openapi_client/api_response.py +21 -0
- ptctools/portainer_client/openapi_client/configuration.py +619 -0
- ptctools/portainer_client/openapi_client/docs/AuthApi.md +236 -0
- ptctools/portainer_client/openapi_client/docs/AuthAuthenticatePayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/AuthAuthenticateResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/AuthOauthPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/BackupApi.md +166 -0
- ptctools/portainer_client/openapi_client/docs/BackupBackupPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/BackupRestorePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/BuildBuildInfo.md +35 -0
- ptctools/portainer_client/openapi_client/docs/BuildDependenciesInfo.md +32 -0
- ptctools/portainer_client/openapi_client/docs/BuildRuntimeInfo.md +29 -0
- ptctools/portainer_client/openapi_client/docs/ContainersContainerGpusResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/CustomTemplatesApi.md +842 -0
- ptctools/portainer_client/openapi_client/docs/CustomtemplatesCustomTemplateFromFileContentPayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/CustomtemplatesCustomTemplateFromGitRepositoryPayload.md +44 -0
- ptctools/portainer_client/openapi_client/docs/CustomtemplatesCustomTemplateUpdatePayload.md +47 -0
- ptctools/portainer_client/openapi_client/docs/CustomtemplatesFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/DockerApi.md +259 -0
- ptctools/portainer_client/openapi_client/docs/DockerContainerStats.md +33 -0
- ptctools/portainer_client/openapi_client/docs/DockerDashboardResponse.md +34 -0
- ptctools/portainer_client/openapi_client/docs/DockerImagesCounters.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EdgeApi.md +152 -0
- ptctools/portainer_client/openapi_client/docs/EdgeDeployerOptionsPayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EdgeGroupsApi.md +451 -0
- ptctools/portainer_client/openapi_client/docs/EdgeJobsApi.md +1003 -0
- ptctools/portainer_client/openapi_client/docs/EdgeRegistryCredentials.md +31 -0
- ptctools/portainer_client/openapi_client/docs/EdgeStackPayload.md +48 -0
- ptctools/portainer_client/openapi_client/docs/EdgeStacksApi.md +900 -0
- ptctools/portainer_client/openapi_client/docs/EdgegroupsDecoratedEdgeGroup.md +39 -0
- ptctools/portainer_client/openapi_client/docs/EdgegroupsEdgeGroupCreatePayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EdgegroupsEdgeGroupUpdatePayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsEdgeJobCreateFromFileContentPayload.md +34 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsEdgeJobFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsEdgeJobUpdatePayload.md +34 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EdgejobsTaskContainer.md +32 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksEdgeStackFromGitRepositoryPayload.md +41 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksEdgeStackFromStringPayload.md +34 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksStackFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksUpdateEdgeStackPayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EdgestacksUpdateStatusPayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EndpointGroupsApi.md +638 -0
- ptctools/portainer_client/openapi_client/docs/EndpointedgeEdgeJobResponse.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EndpointedgeEndpointEdgeStatusInspectResponse.md +34 -0
- ptctools/portainer_client/openapi_client/docs/EndpointedgeStackStatusResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointgroupsEndpointGroupCreatePayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/EndpointgroupsEndpointGroupUpdatePayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsApi.md +1930 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsDockerhubStatusResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointCreateGlobalKeyResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointDeleteBatchPartialResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointDeleteBatchPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointDeleteRequest.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointSettingsUpdatePayload.md +39 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointUpdatePayload.md +45 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointUpdateRelationsPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsEndpointUpdateRelationsPayloadRelationsValue.md +31 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsForceUpdateServicePayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/EndpointsRegistryAccessPayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/FilesystemDirEntry.md +32 -0
- ptctools/portainer_client/openapi_client/docs/GithubComPortainerPortainerPkgLibhelmReleaseHook.md +36 -0
- ptctools/portainer_client/openapi_client/docs/GithubComPortainerPortainerPkgLibhelmReleaseHookExecution.md +31 -0
- ptctools/portainer_client/openapi_client/docs/GithubComPortainerPortainerPkgLibhelmReleaseInfo.md +35 -0
- ptctools/portainer_client/openapi_client/docs/GithubComPortainerPortainerPkgLibhelmReleaseRelease.md +39 -0
- ptctools/portainer_client/openapi_client/docs/GitopsApi.md +99 -0
- ptctools/portainer_client/openapi_client/docs/GitopsFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/GitopsRepositoryFilePreviewPayload.md +35 -0
- ptctools/portainer_client/openapi_client/docs/GittypesGitAuthentication.md +32 -0
- ptctools/portainer_client/openapi_client/docs/GittypesGitCredentialAuthType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/GittypesRepoConfig.md +34 -0
- ptctools/portainer_client/openapi_client/docs/HelmApi.md +1062 -0
- ptctools/portainer_client/openapi_client/docs/HelmInstallChartPayload.md +35 -0
- ptctools/portainer_client/openapi_client/docs/ImagesImageResponse.md +34 -0
- ptctools/portainer_client/openapi_client/docs/IntelApi.md +505 -0
- ptctools/portainer_client/openapi_client/docs/IntstrIntOrString.md +31 -0
- ptctools/portainer_client/openapi_client/docs/IntstrType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/K8sIoApiCoreV1ConditionStatus.md +14 -0
- ptctools/portainer_client/openapi_client/docs/K8sIoApiRbacV1Subject.md +32 -0
- ptctools/portainer_client/openapi_client/docs/K8sIoApimachineryPkgApisMetaV1ConditionStatus.md +14 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesApi.md +6017 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesConfiguration.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesCustomResourceMetadata.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesDescribeResourceResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesIngressRule.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sApplication.md +60 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sApplicationResource.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sClusterRole.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sClusterRoleBinding.md +35 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sConfigMap.md +39 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sConfigurationOwnerResource.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sCronJob.md +37 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sDashboard.md +35 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sEvent.md +40 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sEventInvolvedObject.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sIngressController.md +34 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sIngressInfo.md +39 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sIngressPath.md +35 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sIngressTLS.md +30 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sJob.md +42 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sNamespaceDetails.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sPersistentVolume.md +37 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sPersistentVolumeClaim.md +41 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sResourceQuota.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sRole.md +33 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sRoleBinding.md +35 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sSecret.md +40 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sServiceAccount.md +33 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sServiceInfo.md +43 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sServiceIngress.md +30 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sServicePort.md +33 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sStorageClass.md +32 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesK8sVolumeInfo.md +31 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesMetadata.md +30 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesNamespacesToggleSystemPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesPod.md +38 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesPublishedPort.md +30 -0
- ptctools/portainer_client/openapi_client/docs/KubernetesTLSInfo.md +29 -0
- ptctools/portainer_client/openapi_client/docs/LdapApi.md +96 -0
- ptctools/portainer_client/openapi_client/docs/LdapCheckPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/MotdApi.md +91 -0
- ptctools/portainer_client/openapi_client/docs/MotdMotdResponse.md +33 -0
- ptctools/portainer_client/openapi_client/docs/Oauth2AuthStyle.md +14 -0
- ptctools/portainer_client/openapi_client/docs/OpenamtDeviceActionPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/OpenamtDeviceFeaturesPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/OpenamtOpenAMTConfigurePayload.md +36 -0
- ptctools/portainer_client/openapi_client/docs/OsFileMode.md +38 -0
- ptctools/portainer_client/openapi_client/docs/PlatformContainerPlatform.md +18 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAPIKey.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAccessPolicy.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAuthenticationMethod.md +16 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAutoUpdateSettings.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerAzureCredentials.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerCustomTemplate.md +43 -0
- ptctools/portainer_client/openapi_client/docs/PortainerCustomTemplatePlatform.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerCustomTemplateVariableDefinition.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerDiagnosticsData.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerDockerSnapshot.md +49 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEcrData.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdge.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeGroup.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeJob.md +38 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeJobEndpointMeta.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeJobLogsStatus.md +16 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStack.md +40 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackDeploymentStatus.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackDeploymentType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackStatus.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackStatusDetails.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEdgeStackStatusType.md +36 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpoint.md +66 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointAgent.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointGroup.md +38 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointPostInitMigrations.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointSecuritySettings.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointStatus.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEndpointType.md +24 -0
- ptctools/portainer_client/openapi_client/docs/PortainerEnvironmentEdgeSettings.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerGithubRegistryData.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerGitlabRegistryData.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerGlobalDeploymentOptions.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerHelmUserRepository.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerInternalAuthSettings.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerK8sNamespaceInfo.md +38 -0
- ptctools/portainer_client/openapi_client/docs/PortainerK8sNodeLimits.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesConfiguration.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesData.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesFlags.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesIngressClassConfig.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesSnapshot.md +35 -0
- ptctools/portainer_client/openapi_client/docs/PortainerKubernetesStorageClassConfig.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerLDAPGroupSearchSettings.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerLDAPSearchSettings.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerLDAPSettings.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerMembershipRole.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerOAuthSettings.md +42 -0
- ptctools/portainer_client/openapi_client/docs/PortainerOpenAMTConfiguration.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerOpenAMTDeviceEnabledFeatures.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerPair.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerPerformanceMetrics.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerQuayRegistryData.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRegistry.md +48 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRegistryAccessPolicies.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRegistryManagementConfiguration.md +36 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRegistryType.md +26 -0
- ptctools/portainer_client/openapi_client/docs/PortainerResourceAccessLevel.md +12 -0
- ptctools/portainer_client/openapi_client/docs/PortainerResourceControl.md +39 -0
- ptctools/portainer_client/openapi_client/docs/PortainerResourceControlType.md +28 -0
- ptctools/portainer_client/openapi_client/docs/PortainerRole.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerSSLSettings.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerSettings.md +62 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStack.md +48 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStackDeploymentInfo.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStackOption.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStackStatus.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerStackType.md +16 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTLSConfiguration.md +33 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTag.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTeam.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTeamMembership.md +32 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTeamResourceAccess.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplate.md +52 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateEnv.md +34 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateEnvSelect.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateRepository.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateType.md +16 -0
- ptctools/portainer_client/openapi_client/docs/PortainerTemplateVolume.md +31 -0
- ptctools/portainer_client/openapi_client/docs/PortainerUser.md +37 -0
- ptctools/portainer_client/openapi_client/docs/PortainerUserResourceAccess.md +30 -0
- ptctools/portainer_client/openapi_client/docs/PortainerUserRole.md +14 -0
- ptctools/portainer_client/openapi_client/docs/PortainerUserThemeSettings.md +29 -0
- ptctools/portainer_client/openapi_client/docs/PortainerWebhook.md +34 -0
- ptctools/portainer_client/openapi_client/docs/PortainerWebhookType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/RegistriesApi.md +554 -0
- ptctools/portainer_client/openapi_client/docs/RegistriesRegistryConfigurePayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/RegistriesRegistryCreatePayload.md +38 -0
- ptctools/portainer_client/openapi_client/docs/RegistriesRegistryUpdatePayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseChart.md +34 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseChartReference.md +31 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseDependency.md +36 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseFile.md +30 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseLock.md +31 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseMaintainer.md +31 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseMetadata.md +45 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseReleaseElement.md +35 -0
- ptctools/portainer_client/openapi_client/docs/ReleaseValues.md +30 -0
- ptctools/portainer_client/openapi_client/docs/ResourceControlsApi.md +283 -0
- ptctools/portainer_client/openapi_client/docs/ResourceQuantity.md +29 -0
- ptctools/portainer_client/openapi_client/docs/ResourcecontrolsResourceControlCreatePayload.md +35 -0
- ptctools/portainer_client/openapi_client/docs/ResourcecontrolsResourceControlUpdatePayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/RolesApi.md +93 -0
- ptctools/portainer_client/openapi_client/docs/SettingsApi.md +251 -0
- ptctools/portainer_client/openapi_client/docs/SettingsPublicSettingsResponse.md +42 -0
- ptctools/portainer_client/openapi_client/docs/SettingsPublicSettingsResponseEdge.md +32 -0
- ptctools/portainer_client/openapi_client/docs/SettingsSettingsUpdatePayload.md +47 -0
- ptctools/portainer_client/openapi_client/docs/SslApi.md +184 -0
- ptctools/portainer_client/openapi_client/docs/SslSslUpdatePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/StacksApi.md +2064 -0
- ptctools/portainer_client/openapi_client/docs/StacksComposeStackFromFileContentPayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/StacksComposeStackFromGitRepositoryPayload.md +40 -0
- ptctools/portainer_client/openapi_client/docs/StacksKubernetesGitDeploymentPayload.md +40 -0
- ptctools/portainer_client/openapi_client/docs/StacksKubernetesManifestURLDeploymentPayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/StacksKubernetesStringDeploymentPayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/StacksStackFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/StacksStackGitRedployPayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/StacksStackGitUpdatePayload.md +37 -0
- ptctools/portainer_client/openapi_client/docs/StacksStackMigratePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/StacksSwarmStackFromFileContentPayload.md +33 -0
- ptctools/portainer_client/openapi_client/docs/StacksSwarmStackFromGitRepositoryPayload.md +41 -0
- ptctools/portainer_client/openapi_client/docs/StacksUpdateSwarmStackPayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/StatusApi.md +75 -0
- ptctools/portainer_client/openapi_client/docs/SwarmServiceUpdateResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/SystemApi.md +392 -0
- ptctools/portainer_client/openapi_client/docs/SystemNodesCountResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/SystemStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/SystemSystemInfoResponse.md +31 -0
- ptctools/portainer_client/openapi_client/docs/SystemVersionResponse.md +37 -0
- ptctools/portainer_client/openapi_client/docs/TagsApi.md +273 -0
- ptctools/portainer_client/openapi_client/docs/TagsTagCreatePayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/TeamMembershipsApi.md +463 -0
- ptctools/portainer_client/openapi_client/docs/TeammembershipsTeamMembershipCreatePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/TeammembershipsTeamMembershipUpdatePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/TeamsApi.md +467 -0
- ptctools/portainer_client/openapi_client/docs/TeamsTeamCreatePayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/TeamsTeamUpdatePayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/TemplatesApi.md +183 -0
- ptctools/portainer_client/openapi_client/docs/TemplatesFileResponse.md +29 -0
- ptctools/portainer_client/openapi_client/docs/TemplatesListResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UnstructuredUnstructured.md +29 -0
- ptctools/portainer_client/openapi_client/docs/UploadApi.md +99 -0
- ptctools/portainer_client/openapi_client/docs/UsersAccessTokenResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersAddHelmRepoUrlPayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/UsersAdminInitPayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersApi.md +1159 -0
- ptctools/portainer_client/openapi_client/docs/UsersHelmUserRepositoryResponse.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersThemePayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/UsersUserAccessTokenCreatePayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersUserCreatePayload.md +31 -0
- ptctools/portainer_client/openapi_client/docs/UsersUserUpdatePasswordPayload.md +30 -0
- ptctools/portainer_client/openapi_client/docs/UsersUserUpdatePayload.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1AppArmorProfile.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1AppArmorProfileType.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1CSIPersistentVolumeSource.md +38 -0
- ptctools/portainer_client/openapi_client/docs/V1Capabilities.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ClientIPConfig.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1Condition.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1ConfigMapEnvSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ConfigMapKeySelector.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1Container.md +52 -0
- ptctools/portainer_client/openapi_client/docs/V1ContainerPort.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1ContainerResizePolicy.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ContainerRestartPolicy.md +10 -0
- ptctools/portainer_client/openapi_client/docs/V1Duration.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1EnvFromSource.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1EnvVar.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1EnvVarSource.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1ExecAction.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1GRPCAction.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1HTTPGetAction.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1HTTPHeader.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1IPFamily.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1IPFamilyPolicy.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1LabelSelector.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1LabelSelectorOperator.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1LabelSelectorRequirement.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1Lifecycle.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1LifecycleHandler.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1ListMeta.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1LoadBalancerIPMode.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1LoadBalancerIngress.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1LoadBalancerStatus.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1ManagedFieldsEntry.md +35 -0
- ptctools/portainer_client/openapi_client/docs/V1ManagedFieldsOperationType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1MountPropagationMode.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1NamespaceCondition.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1NamespaceConditionType.md +18 -0
- ptctools/portainer_client/openapi_client/docs/V1NamespacePhase.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1NamespaceStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ObjectFieldSelector.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ObjectMeta.md +43 -0
- ptctools/portainer_client/openapi_client/docs/V1ObjectReference.md +35 -0
- ptctools/portainer_client/openapi_client/docs/V1OwnerReference.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1PersistentVolumeAccessMode.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1PersistentVolumeClaimPhase.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1PersistentVolumeMode.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1PersistentVolumeReclaimPolicy.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1PortStatus.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1Probe.md +38 -0
- ptctools/portainer_client/openapi_client/docs/V1ProcMountType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1Protocol.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1PullPolicy.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1RecursiveReadOnlyMode.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceClaim.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceFieldSelector.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceName.md +48 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceQuota.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceQuotaScope.md +22 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceQuotaSpec.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceQuotaStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceRequirements.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1ResourceResizeRestartPolicy.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1RoleRef.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1SELinuxOptions.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1ScopeSelector.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1ScopeSelectorOperator.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1ScopedResourceSelectorRequirement.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1SeccompProfile.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1SeccompProfileType.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V1SecretEnvSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1SecretKeySelector.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V1SecretReference.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1SecurityContext.md +40 -0
- ptctools/portainer_client/openapi_client/docs/V1Service.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceAffinity.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceExternalTrafficPolicy.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceInternalTrafficPolicy.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1ServicePort.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceSpec.md +48 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1ServiceType.md +16 -0
- ptctools/portainer_client/openapi_client/docs/V1SessionAffinityConfig.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1Signal.md +138 -0
- ptctools/portainer_client/openapi_client/docs/V1SleepAction.md +29 -0
- ptctools/portainer_client/openapi_client/docs/V1TCPSocketAction.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1TerminationMessagePolicy.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1URIScheme.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V1VolumeDevice.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1VolumeMount.md +35 -0
- ptctools/portainer_client/openapi_client/docs/V1WindowsSecurityContextOptions.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1ContainerMetrics.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1NodeMetrics.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1NodeMetricsList.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1PodMetrics.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V1beta1PodMetricsList.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V2ContainerResourceMetricSource.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2ContainerResourceMetricStatus.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2CrossVersionObjectReference.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2ExternalMetricSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2ExternalMetricStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2HPAScalingPolicy.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2HPAScalingPolicyType.md +12 -0
- ptctools/portainer_client/openapi_client/docs/V2HPAScalingRules.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscaler.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerBehavior.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerCondition.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerConditionType.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerSpec.md +33 -0
- ptctools/portainer_client/openapi_client/docs/V2HorizontalPodAutoscalerStatus.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricIdentifier.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricSourceType.md +18 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricSpec.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricStatus.md +34 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricTarget.md +32 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricTargetType.md +14 -0
- ptctools/portainer_client/openapi_client/docs/V2MetricValueStatus.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2ObjectMetricSource.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2ObjectMetricStatus.md +31 -0
- ptctools/portainer_client/openapi_client/docs/V2PodsMetricSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2PodsMetricStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2ResourceMetricSource.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2ResourceMetricStatus.md +30 -0
- ptctools/portainer_client/openapi_client/docs/V2ScalingPolicySelect.md +14 -0
- ptctools/portainer_client/openapi_client/docs/WebhooksApi.md +436 -0
- ptctools/portainer_client/openapi_client/docs/WebhooksWebhookCreatePayload.md +32 -0
- ptctools/portainer_client/openapi_client/docs/WebhooksWebhookUpdatePayload.md +29 -0
- ptctools/portainer_client/openapi_client/docs/WebsocketApi.md +385 -0
- ptctools/portainer_client/openapi_client/exceptions.py +220 -0
- ptctools/portainer_client/openapi_client/models/__init__.py +389 -0
- ptctools/portainer_client/openapi_client/models/auth_authenticate_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/auth_authenticate_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/auth_oauth_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/backup_backup_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/backup_restore_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/build_build_info.py +100 -0
- ptctools/portainer_client/openapi_client/models/build_dependencies_info.py +94 -0
- ptctools/portainer_client/openapi_client/models/build_runtime_info.py +88 -0
- ptctools/portainer_client/openapi_client/models/containers_container_gpus_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/customtemplates_custom_template_from_file_content_payload.py +114 -0
- ptctools/portainer_client/openapi_client/models/customtemplates_custom_template_from_git_repository_payload.py +128 -0
- ptctools/portainer_client/openapi_client/models/customtemplates_custom_template_update_payload.py +135 -0
- ptctools/portainer_client/openapi_client/models/customtemplates_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/docker_container_stats.py +96 -0
- ptctools/portainer_client/openapi_client/models/docker_dashboard_response.py +106 -0
- ptctools/portainer_client/openapi_client/models/docker_images_counters.py +90 -0
- ptctools/portainer_client/openapi_client/models/edge_deployer_options_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/edge_registry_credentials.py +92 -0
- ptctools/portainer_client/openapi_client/models/edge_stack_payload.py +154 -0
- ptctools/portainer_client/openapi_client/models/edgegroups_decorated_edge_group.py +109 -0
- ptctools/portainer_client/openapi_client/models/edgegroups_edge_group_create_payload.py +96 -0
- ptctools/portainer_client/openapi_client/models/edgegroups_edge_group_update_payload.py +96 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_edge_job_create_from_file_content_payload.py +98 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_edge_job_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_edge_job_update_payload.py +98 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/edgejobs_task_container.py +95 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_edge_stack_from_git_repository_payload.py +114 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_edge_stack_from_string_payload.py +99 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_stack_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_update_edge_stack_payload.py +97 -0
- ptctools/portainer_client/openapi_client/models/edgestacks_update_status_payload.py +97 -0
- ptctools/portainer_client/openapi_client/models/endpointedge_edge_job_response.py +96 -0
- ptctools/portainer_client/openapi_client/models/endpointedge_endpoint_edge_status_inspect_response.py +114 -0
- ptctools/portainer_client/openapi_client/models/endpointedge_stack_status_response.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpointgroups_endpoint_group_create_payload.py +94 -0
- ptctools/portainer_client/openapi_client/models/endpointgroups_endpoint_group_update_payload.py +121 -0
- ptctools/portainer_client/openapi_client/models/endpoints_dockerhub_status_response.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_create_global_key_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_delete_batch_partial_response.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_delete_batch_payload.py +96 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_delete_request.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_settings_update_payload.py +116 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_update_payload.py +157 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_update_relations_payload.py +101 -0
- ptctools/portainer_client/openapi_client/models/endpoints_endpoint_update_relations_payload_relations_value.py +92 -0
- ptctools/portainer_client/openapi_client/models/endpoints_force_update_service_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/endpoints_registry_access_payload.py +117 -0
- ptctools/portainer_client/openapi_client/models/filesystem_dir_entry.py +95 -0
- ptctools/portainer_client/openapi_client/models/github_com_portainer_portainer_pkg_libhelm_release_hook.py +106 -0
- ptctools/portainer_client/openapi_client/models/github_com_portainer_portainer_pkg_libhelm_release_hook_execution.py +92 -0
- ptctools/portainer_client/openapi_client/models/github_com_portainer_portainer_pkg_libhelm_release_info.py +108 -0
- ptctools/portainer_client/openapi_client/models/github_com_portainer_portainer_pkg_libhelm_release_release.py +132 -0
- ptctools/portainer_client/openapi_client/models/gitops_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/gitops_repository_file_preview_payload.py +101 -0
- ptctools/portainer_client/openapi_client/models/gittypes_git_authentication.py +95 -0
- ptctools/portainer_client/openapi_client/models/gittypes_git_credential_auth_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/gittypes_repo_config.py +102 -0
- ptctools/portainer_client/openapi_client/models/helm_install_chart_payload.py +100 -0
- ptctools/portainer_client/openapi_client/models/images_image_response.py +98 -0
- ptctools/portainer_client/openapi_client/models/intstr_int_or_string.py +93 -0
- ptctools/portainer_client/openapi_client/models/intstr_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/k8s_io_api_core_v1_condition_status.py +39 -0
- ptctools/portainer_client/openapi_client/models/k8s_io_api_rbac_v1_subject.py +94 -0
- ptctools/portainer_client/openapi_client/models/k8s_io_apimachinery_pkg_apis_meta_v1_condition_status.py +39 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_configuration.py +92 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_custom_resource_metadata.py +92 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_describe_resource_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_ingress_rule.py +102 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_application.py +198 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_application_resource.py +94 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_cluster_role.py +94 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_cluster_role_binding.py +112 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_config_map.py +116 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_configuration_owner_resource.py +92 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_cron_job.py +112 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_dashboard.py +100 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_event.py +114 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_event_involved_object.py +94 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_ingress_controller.py +98 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_ingress_info.py +124 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_ingress_path.py +100 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_ingress_tls.py +90 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_job.py +118 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_namespace_details.py +98 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_persistent_volume.py +128 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_persistent_volume_claim.py +136 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_resource_quota.py +92 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_role.py +96 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_role_binding.py +112 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_secret.py +118 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_service_account.py +96 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_service_info.py +140 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_service_ingress.py +90 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_service_port.py +96 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_storage_class.py +95 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_k8s_volume_info.py +104 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_metadata.py +90 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_namespaces_toggle_system_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_pod.py +110 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_published_port.py +98 -0
- ptctools/portainer_client/openapi_client/models/kubernetes_tls_info.py +88 -0
- ptctools/portainer_client/openapi_client/models/ldap_check_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/motd_motd_response.py +96 -0
- ptctools/portainer_client/openapi_client/models/oauth2_auth_style.py +39 -0
- ptctools/portainer_client/openapi_client/models/openamt_device_action_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/openamt_device_features_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/openamt_open_amt_configure_payload.py +102 -0
- ptctools/portainer_client/openapi_client/models/os_file_mode.py +51 -0
- ptctools/portainer_client/openapi_client/models/platform_container_platform.py +41 -0
- ptctools/portainer_client/openapi_client/models/portainer_access_policy.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_api_key.py +100 -0
- ptctools/portainer_client/openapi_client/models/portainer_authentication_method.py +40 -0
- ptctools/portainer_client/openapi_client/models/portainer_auto_update_settings.py +96 -0
- ptctools/portainer_client/openapi_client/models/portainer_azure_credentials.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_custom_template.py +134 -0
- ptctools/portainer_client/openapi_client/models/portainer_custom_template_platform.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_custom_template_variable_definition.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_diagnostics_data.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_docker_snapshot.py +136 -0
- ptctools/portainer_client/openapi_client/models/portainer_ecr_data.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_group.py +100 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_job.py +131 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_job_endpoint_meta.py +91 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_job_logs_status.py +40 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack.py +124 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_deployment_status.py +97 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_deployment_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_status.py +117 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_status_details.py +100 -0
- ptctools/portainer_client/openapi_client/models/portainer_edge_stack_status_type.py +50 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint.py +233 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_agent.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_group.py +139 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_post_init_migrations.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_security_settings.py +104 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_status.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_endpoint_type.py +44 -0
- ptctools/portainer_client/openapi_client/models/portainer_environment_edge_settings.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_github_registry_data.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_gitlab_registry_data.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_global_deployment_options.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_helm_user_repository.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_internal_auth_settings.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_k8s_namespace_info.py +114 -0
- ptctools/portainer_client/openapi_client/models/portainer_k8s_node_limits.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_configuration.py +120 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_data.py +108 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_flags.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_ingress_class_config.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_snapshot.py +108 -0
- ptctools/portainer_client/openapi_client/models/portainer_kubernetes_storage_class_config.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_ldap_group_search_settings.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_ldap_search_settings.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_ldap_settings.py +124 -0
- ptctools/portainer_client/openapi_client/models/portainer_membership_role.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_o_auth_settings.py +115 -0
- ptctools/portainer_client/openapi_client/models/portainer_open_amt_configuration.py +104 -0
- ptctools/portainer_client/openapi_client/models/portainer_open_amt_device_enabled_features.py +96 -0
- ptctools/portainer_client/openapi_client/models/portainer_pair.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_performance_metrics.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_quay_registry_data.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_registry.py +185 -0
- ptctools/portainer_client/openapi_client/models/portainer_registry_access_policies.py +117 -0
- ptctools/portainer_client/openapi_client/models/portainer_registry_management_configuration.py +111 -0
- ptctools/portainer_client/openapi_client/models/portainer_registry_type.py +45 -0
- ptctools/portainer_client/openapi_client/models/portainer_resource_access_level.py +38 -0
- ptctools/portainer_client/openapi_client/models/portainer_resource_control.py +126 -0
- ptctools/portainer_client/openapi_client/models/portainer_resource_control_type.py +46 -0
- ptctools/portainer_client/openapi_client/models/portainer_role.py +96 -0
- ptctools/portainer_client/openapi_client/models/portainer_settings.py +187 -0
- ptctools/portainer_client/openapi_client/models/portainer_ssl_settings.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack.py +152 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack_deployment_info.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack_option.py +88 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack_status.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_stack_type.py +40 -0
- ptctools/portainer_client/openapi_client/models/portainer_tag.py +94 -0
- ptctools/portainer_client/openapi_client/models/portainer_team.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_team_membership.py +95 -0
- ptctools/portainer_client/openapi_client/models/portainer_team_resource_access.py +91 -0
- ptctools/portainer_client/openapi_client/models/portainer_template.py +163 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_env.py +106 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_env_select.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_repository.py +90 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_type.py +40 -0
- ptctools/portainer_client/openapi_client/models/portainer_template_volume.py +92 -0
- ptctools/portainer_client/openapi_client/models/portainer_tls_configuration.py +96 -0
- ptctools/portainer_client/openapi_client/models/portainer_user.py +109 -0
- ptctools/portainer_client/openapi_client/models/portainer_user_resource_access.py +91 -0
- ptctools/portainer_client/openapi_client/models/portainer_user_role.py +39 -0
- ptctools/portainer_client/openapi_client/models/portainer_user_theme_settings.py +98 -0
- ptctools/portainer_client/openapi_client/models/portainer_webhook.py +99 -0
- ptctools/portainer_client/openapi_client/models/portainer_webhook_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/registries_registry_configure_payload.py +104 -0
- ptctools/portainer_client/openapi_client/models/registries_registry_create_payload.py +119 -0
- ptctools/portainer_client/openapi_client/models/registries_registry_update_payload.py +125 -0
- ptctools/portainer_client/openapi_client/models/release_chart.py +121 -0
- ptctools/portainer_client/openapi_client/models/release_chart_reference.py +92 -0
- ptctools/portainer_client/openapi_client/models/release_dependency.py +102 -0
- ptctools/portainer_client/openapi_client/models/release_file.py +90 -0
- ptctools/portainer_client/openapi_client/models/release_lock.py +100 -0
- ptctools/portainer_client/openapi_client/models/release_maintainer.py +92 -0
- ptctools/portainer_client/openapi_client/models/release_metadata.py +136 -0
- ptctools/portainer_client/openapi_client/models/release_release_element.py +100 -0
- ptctools/portainer_client/openapi_client/models/release_values.py +90 -0
- ptctools/portainer_client/openapi_client/models/resource_quantity.py +98 -0
- ptctools/portainer_client/openapi_client/models/resourcecontrols_resource_control_create_payload.py +101 -0
- ptctools/portainer_client/openapi_client/models/resourcecontrols_resource_control_update_payload.py +94 -0
- ptctools/portainer_client/openapi_client/models/settings_public_settings_response.py +123 -0
- ptctools/portainer_client/openapi_client/models/settings_public_settings_response_edge.py +94 -0
- ptctools/portainer_client/openapi_client/models/settings_settings_update_payload.py +148 -0
- ptctools/portainer_client/openapi_client/models/ssl_ssl_update_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/stacks_compose_stack_from_file_content_payload.py +102 -0
- ptctools/portainer_client/openapi_client/models/stacks_compose_stack_from_git_repository_payload.py +122 -0
- ptctools/portainer_client/openapi_client/models/stacks_kubernetes_git_deployment_payload.py +114 -0
- ptctools/portainer_client/openapi_client/models/stacks_kubernetes_manifest_url_deployment_payload.py +94 -0
- ptctools/portainer_client/openapi_client/models/stacks_kubernetes_string_deployment_payload.py +96 -0
- ptctools/portainer_client/openapi_client/models/stacks_stack_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/stacks_stack_git_redploy_payload.py +113 -0
- ptctools/portainer_client/openapi_client/models/stacks_stack_git_update_payload.py +117 -0
- ptctools/portainer_client/openapi_client/models/stacks_stack_migrate_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/stacks_swarm_stack_from_file_content_payload.py +104 -0
- ptctools/portainer_client/openapi_client/models/stacks_swarm_stack_from_git_repository_payload.py +124 -0
- ptctools/portainer_client/openapi_client/models/stacks_update_swarm_stack_payload.py +102 -0
- ptctools/portainer_client/openapi_client/models/swarm_service_update_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/system_nodes_count_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/system_status.py +90 -0
- ptctools/portainer_client/openapi_client/models/system_system_info_response.py +93 -0
- ptctools/portainer_client/openapi_client/models/system_version_response.py +116 -0
- ptctools/portainer_client/openapi_client/models/tags_tag_create_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/teammemberships_team_membership_create_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/teammemberships_team_membership_update_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/teams_team_create_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/teams_team_update_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/templates_file_response.py +88 -0
- ptctools/portainer_client/openapi_client/models/templates_list_response.py +98 -0
- ptctools/portainer_client/openapi_client/models/unstructured_unstructured.py +88 -0
- ptctools/portainer_client/openapi_client/models/users_access_token_response.py +94 -0
- ptctools/portainer_client/openapi_client/models/users_add_helm_repo_url_payload.py +88 -0
- ptctools/portainer_client/openapi_client/models/users_admin_init_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/users_helm_user_repository_response.py +98 -0
- ptctools/portainer_client/openapi_client/models/users_theme_payload.py +98 -0
- ptctools/portainer_client/openapi_client/models/users_user_access_token_create_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/users_user_create_payload.py +92 -0
- ptctools/portainer_client/openapi_client/models/users_user_update_password_payload.py +90 -0
- ptctools/portainer_client/openapi_client/models/users_user_update_payload.py +102 -0
- ptctools/portainer_client/openapi_client/models/v1_app_armor_profile.py +91 -0
- ptctools/portainer_client/openapi_client/models/v1_app_armor_profile_type.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_capabilities.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_client_ip_config.py +88 -0
- ptctools/portainer_client/openapi_client/models/v1_condition.py +99 -0
- ptctools/portainer_client/openapi_client/models/v1_config_map_env_source.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_config_map_key_selector.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_container.py +207 -0
- ptctools/portainer_client/openapi_client/models/v1_container_port.py +97 -0
- ptctools/portainer_client/openapi_client/models/v1_container_resize_policy.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_container_restart_policy.py +37 -0
- ptctools/portainer_client/openapi_client/models/v1_csi_persistent_volume_source.py +122 -0
- ptctools/portainer_client/openapi_client/models/v1_duration.py +88 -0
- ptctools/portainer_client/openapi_client/models/v1_env_from_source.py +100 -0
- ptctools/portainer_client/openapi_client/models/v1_env_var.py +96 -0
- ptctools/portainer_client/openapi_client/models/v1_env_var_source.py +110 -0
- ptctools/portainer_client/openapi_client/models/v1_exec_action.py +88 -0
- ptctools/portainer_client/openapi_client/models/v1_grpc_action.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_http_get_action.py +109 -0
- ptctools/portainer_client/openapi_client/models/v1_http_header.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_ip_family.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_ip_family_policy.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_label_selector.py +98 -0
- ptctools/portainer_client/openapi_client/models/v1_label_selector_operator.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_label_selector_requirement.py +93 -0
- ptctools/portainer_client/openapi_client/models/v1_lifecycle.py +100 -0
- ptctools/portainer_client/openapi_client/models/v1_lifecycle_handler.py +110 -0
- ptctools/portainer_client/openapi_client/models/v1_list_meta.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1_load_balancer_ingress.py +103 -0
- ptctools/portainer_client/openapi_client/models/v1_load_balancer_ip_mode.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_load_balancer_status.py +96 -0
- ptctools/portainer_client/openapi_client/models/v1_managed_fields_entry.py +101 -0
- ptctools/portainer_client/openapi_client/models/v1_managed_fields_operation_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_mount_propagation_mode.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_namespace_condition.py +98 -0
- ptctools/portainer_client/openapi_client/models/v1_namespace_condition_type.py +41 -0
- ptctools/portainer_client/openapi_client/models/v1_namespace_phase.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_namespace_status.py +99 -0
- ptctools/portainer_client/openapi_client/models/v1_object_field_selector.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_object_meta.py +132 -0
- ptctools/portainer_client/openapi_client/models/v1_object_reference.py +100 -0
- ptctools/portainer_client/openapi_client/models/v1_owner_reference.py +98 -0
- ptctools/portainer_client/openapi_client/models/v1_persistent_volume_access_mode.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_persistent_volume_claim_phase.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_persistent_volume_mode.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_persistent_volume_reclaim_policy.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_port_status.py +93 -0
- ptctools/portainer_client/openapi_client/models/v1_probe.py +122 -0
- ptctools/portainer_client/openapi_client/models/v1_proc_mount_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_protocol.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_pull_policy.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_recursive_read_only_mode.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_claim.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_field_selector.py +96 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_name.py +56 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_quota.py +108 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_quota_scope.py +43 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_quota_spec.py +110 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_quota_status.py +115 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_requirements.py +125 -0
- ptctools/portainer_client/openapi_client/models/v1_resource_resize_restart_policy.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_role_ref.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_scope_selector.py +96 -0
- ptctools/portainer_client/openapi_client/models/v1_scope_selector_operator.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_scoped_resource_selector_requirement.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1_se_linux_options.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1_seccomp_profile.py +91 -0
- ptctools/portainer_client/openapi_client/models/v1_seccomp_profile_type.py +39 -0
- ptctools/portainer_client/openapi_client/models/v1_secret_env_source.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_secret_key_selector.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_secret_reference.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_security_context.py +131 -0
- ptctools/portainer_client/openapi_client/models/v1_service.py +108 -0
- ptctools/portainer_client/openapi_client/models/v1_service_affinity.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_service_external_traffic_policy.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_service_internal_traffic_policy.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_service_port.py +103 -0
- ptctools/portainer_client/openapi_client/models/v1_service_spec.py +144 -0
- ptctools/portainer_client/openapi_client/models/v1_service_status.py +102 -0
- ptctools/portainer_client/openapi_client/models/v1_service_type.py +40 -0
- ptctools/portainer_client/openapi_client/models/v1_session_affinity_config.py +92 -0
- ptctools/portainer_client/openapi_client/models/v1_signal.py +101 -0
- ptctools/portainer_client/openapi_client/models/v1_sleep_action.py +88 -0
- ptctools/portainer_client/openapi_client/models/v1_tcp_socket_action.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1_termination_message_policy.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_uri_scheme.py +38 -0
- ptctools/portainer_client/openapi_client/models/v1_volume_device.py +90 -0
- ptctools/portainer_client/openapi_client/models/v1_volume_mount.py +102 -0
- ptctools/portainer_client/openapi_client/models/v1_windows_security_context_options.py +94 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_container_metrics.py +103 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_node_metrics.py +119 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_node_metrics_list.py +106 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_pod_metrics.py +114 -0
- ptctools/portainer_client/openapi_client/models/v1beta1_pod_metrics_list.py +106 -0
- ptctools/portainer_client/openapi_client/models/v2_container_resource_metric_source.py +97 -0
- ptctools/portainer_client/openapi_client/models/v2_container_resource_metric_status.py +97 -0
- ptctools/portainer_client/openapi_client/models/v2_cross_version_object_reference.py +92 -0
- ptctools/portainer_client/openapi_client/models/v2_external_metric_source.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_external_metric_status.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler.py +108 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_behavior.py +97 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_condition.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_condition_type.py +39 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_spec.py +112 -0
- ptctools/portainer_client/openapi_client/models/v2_horizontal_pod_autoscaler_status.py +114 -0
- ptctools/portainer_client/openapi_client/models/v2_hpa_scaling_policy.py +93 -0
- ptctools/portainer_client/openapi_client/models/v2_hpa_scaling_policy_type.py +38 -0
- ptctools/portainer_client/openapi_client/models/v2_hpa_scaling_rules.py +107 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_identifier.py +94 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_source_type.py +41 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_spec.py +119 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_status.py +119 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_target.py +102 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_target_type.py +39 -0
- ptctools/portainer_client/openapi_client/models/v2_metric_value_status.py +99 -0
- ptctools/portainer_client/openapi_client/models/v2_object_metric_source.py +104 -0
- ptctools/portainer_client/openapi_client/models/v2_object_metric_status.py +104 -0
- ptctools/portainer_client/openapi_client/models/v2_pods_metric_source.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_pods_metric_status.py +98 -0
- ptctools/portainer_client/openapi_client/models/v2_resource_metric_source.py +95 -0
- ptctools/portainer_client/openapi_client/models/v2_resource_metric_status.py +95 -0
- ptctools/portainer_client/openapi_client/models/v2_scaling_policy_select.py +39 -0
- ptctools/portainer_client/openapi_client/models/webhooks_webhook_create_payload.py +95 -0
- ptctools/portainer_client/openapi_client/models/webhooks_webhook_update_payload.py +88 -0
- ptctools/portainer_client/openapi_client/rest.py +264 -0
- ptctools/portainer_client/openapi_client/test/__init__.py +0 -0
- ptctools/portainer_client/openapi_client/test/test_auth_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_auth_authenticate_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_auth_authenticate_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_auth_oauth_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_backup_api.py +46 -0
- ptctools/portainer_client/openapi_client/test/test_backup_backup_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_backup_restore_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_build_build_info.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_build_dependencies_info.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_build_runtime_info.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_containers_container_gpus_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_custom_templates_api.py +95 -0
- ptctools/portainer_client/openapi_client/test/test_customtemplates_custom_template_from_file_content_payload.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_customtemplates_custom_template_from_git_repository_payload.py +77 -0
- ptctools/portainer_client/openapi_client/test/test_customtemplates_custom_template_update_payload.py +81 -0
- ptctools/portainer_client/openapi_client/test/test_customtemplates_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_docker_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_docker_container_stats.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_docker_dashboard_response.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_docker_images_counters.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_edge_api.py +46 -0
- ptctools/portainer_client/openapi_client/test/test_edge_deployer_options_payload.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_edge_groups_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_edge_jobs_api.py +109 -0
- ptctools/portainer_client/openapi_client/test/test_edge_registry_credentials.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_edge_stack_payload.py +88 -0
- ptctools/portainer_client/openapi_client/test/test_edge_stacks_api.py +102 -0
- ptctools/portainer_client/openapi_client/test/test_edgegroups_decorated_edge_group.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_edgegroups_edge_group_create_payload.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_edgegroups_edge_group_update_payload.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_edge_job_create_from_file_content_payload.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_edge_job_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_edge_job_update_payload.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_edgejobs_task_container.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_edge_stack_from_git_repository_payload.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_edge_stack_from_string_payload.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_stack_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_update_edge_stack_payload.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_edgestacks_update_status_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_endpoint_groups_api.py +81 -0
- ptctools/portainer_client/openapi_client/test/test_endpointedge_edge_job_response.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_endpointedge_endpoint_edge_status_inspect_response.py +68 -0
- ptctools/portainer_client/openapi_client/test/test_endpointedge_stack_status_response.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_endpointgroups_endpoint_group_create_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_endpointgroups_endpoint_group_update_payload.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_api.py +179 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_dockerhub_status_response.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_create_global_key_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_delete_batch_partial_response.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_delete_batch_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_delete_request.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_settings_update_payload.py +66 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_update_payload.py +131 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_update_relations_payload.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_endpoint_update_relations_payload_relations_value.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_force_update_service_payload.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_endpoints_registry_access_payload.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_filesystem_dir_entry.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_github_com_portainer_portainer_pkg_libhelm_release_hook.py +66 -0
- ptctools/portainer_client/openapi_client/test/test_github_com_portainer_portainer_pkg_libhelm_release_hook_execution.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_github_com_portainer_portainer_pkg_libhelm_release_info.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_github_com_portainer_portainer_pkg_libhelm_release_release.py +112 -0
- ptctools/portainer_client/openapi_client/test/test_gitops_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_gitops_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_gitops_repository_file_preview_payload.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_gittypes_git_authentication.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_gittypes_git_credential_auth_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_gittypes_repo_config.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_helm_api.py +109 -0
- ptctools/portainer_client/openapi_client/test/test_helm_install_chart_payload.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_images_image_response.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_intel_api.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_intstr_int_or_string.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_intstr_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_k8s_io_api_core_v1_condition_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_k8s_io_api_rbac_v1_subject.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_condition_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_api.py +480 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_configuration.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_custom_resource_metadata.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_describe_resource_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_ingress_rule.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_application.py +152 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_application_resource.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_cluster_role.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_cluster_role_binding.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_config_map.py +73 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_configuration_owner_resource.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_cron_job.py +138 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_dashboard.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_event.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_event_involved_object.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_ingress_controller.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_ingress_info.py +83 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_ingress_path.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_ingress_tls.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_job.py +127 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_namespace_details.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_persistent_volume.py +86 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_persistent_volume_claim.py +174 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_resource_quota.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_role.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_role_binding.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_secret.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_service_account.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_service_info.py +190 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_service_ingress.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_service_port.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_storage_class.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_k8s_volume_info.py +213 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_metadata.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_namespaces_toggle_system_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_pod.py +65 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_published_port.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_kubernetes_tls_info.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_ldap_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_ldap_check_payload.py +76 -0
- ptctools/portainer_client/openapi_client/test/test_motd_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_motd_motd_response.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_oauth2_auth_style.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_openamt_device_action_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_openamt_device_features_payload.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_openamt_open_amt_configure_payload.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_os_file_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_platform_container_platform.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_access_policy.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_api_key.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_authentication_method.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_auto_update_settings.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_azure_credentials.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_custom_template.py +95 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_custom_template_platform.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_custom_template_variable_definition.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_diagnostics_data.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_docker_snapshot.py +87 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ecr_data.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_group.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_job.py +71 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_job_endpoint_meta.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_job_logs_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack.py +81 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_deployment_status.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_deployment_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_status.py +75 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_status_details.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_edge_stack_status_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint.py +222 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_agent.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_group.py +79 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_post_init_migrations.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_security_settings.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_endpoint_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_environment_edge_settings.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_github_registry_data.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_gitlab_registry_data.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_global_deployment_options.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_helm_user_repository.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_internal_auth_settings.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_k8s_namespace_info.py +77 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_k8s_node_limits.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_configuration.py +76 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_data.py +104 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_flags.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_ingress_class_config.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_snapshot.py +71 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_kubernetes_storage_class_config.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ldap_group_search_settings.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ldap_search_settings.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ldap_settings.py +75 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_membership_role.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_o_auth_settings.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_open_amt_configuration.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_open_amt_device_enabled_features.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_pair.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_performance_metrics.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_quay_registry_data.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_registry.py +116 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_registry_access_policies.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_registry_management_configuration.py +65 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_registry_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_resource_access_level.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_resource_control.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_resource_control_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_role.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_settings.py +146 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_ssl_settings.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack.py +106 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack_deployment_info.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack_option.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack_status.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_stack_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_tag.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_team.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_team_membership.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_team_resource_access.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template.py +99 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_env.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_env_select.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_repository.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_template_volume.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_tls_configuration.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_user.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_user_resource_access.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_user_role.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_user_theme_settings.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_webhook.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_portainer_webhook_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_registries_api.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_registries_registry_configure_payload.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_registries_registry_create_payload.py +71 -0
- ptctools/portainer_client/openapi_client/test/test_registries_registry_update_payload.py +79 -0
- ptctools/portainer_client/openapi_client/test/test_release_chart.py +132 -0
- ptctools/portainer_client/openapi_client/test/test_release_chart_reference.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_release_dependency.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_release_file.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_release_lock.py +68 -0
- ptctools/portainer_client/openapi_client/test/test_release_maintainer.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_release_metadata.py +93 -0
- ptctools/portainer_client/openapi_client/test/test_release_release_element.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_release_values.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_resource_controls_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_resource_quantity.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_resourcecontrols_resource_control_create_payload.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_resourcecontrols_resource_control_update_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_roles_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_settings_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_settings_public_settings_response.py +72 -0
- ptctools/portainer_client/openapi_client/test/test_settings_public_settings_response_edge.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_settings_settings_update_payload.py +116 -0
- ptctools/portainer_client/openapi_client/test/test_ssl_api.py +46 -0
- ptctools/portainer_client/openapi_client/test/test_ssl_ssl_update_payload.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_api.py +186 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_compose_stack_from_file_content_payload.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_compose_stack_from_git_repository_payload.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_kubernetes_git_deployment_payload.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_kubernetes_manifest_url_deployment_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_kubernetes_string_deployment_payload.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_stack_file_response.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_stack_git_redploy_payload.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_stack_git_update_payload.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_stack_migrate_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_swarm_stack_from_file_content_payload.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_swarm_stack_from_git_repository_payload.py +76 -0
- ptctools/portainer_client/openapi_client/test/test_stacks_update_swarm_stack_payload.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_status_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_swarm_service_update_response.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_system_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_system_nodes_count_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_system_status.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_system_system_info_response.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_system_version_response.py +74 -0
- ptctools/portainer_client/openapi_client/test/test_tags_api.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_tags_tag_create_payload.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_team_memberships_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_teammemberships_team_membership_create_payload.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_teammemberships_team_membership_update_payload.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_teams_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_teams_team_create_payload.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_teams_team_update_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_templates_api.py +46 -0
- ptctools/portainer_client/openapi_client/test/test_templates_file_response.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_templates_list_response.py +101 -0
- ptctools/portainer_client/openapi_client/test/test_unstructured_unstructured.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_upload_api.py +39 -0
- ptctools/portainer_client/openapi_client/test/test_users_access_token_response.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_users_add_helm_repo_url_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_users_admin_init_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_users_api.py +123 -0
- ptctools/portainer_client/openapi_client/test/test_users_helm_user_repository_response.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_users_theme_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_users_user_access_token_create_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_users_user_create_payload.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_users_user_update_password_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_users_user_update_payload.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_v1_app_armor_profile.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_app_armor_profile_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_capabilities.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v1_client_ip_config.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_v1_condition.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v1_config_map_env_source.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_config_map_key_selector.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_container.py +165 -0
- ptctools/portainer_client/openapi_client/test/test_v1_container_port.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_container_resize_policy.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_container_restart_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_csi_persistent_volume_source.py +73 -0
- ptctools/portainer_client/openapi_client/test/test_v1_duration.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_v1_env_from_source.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_env_var.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_env_var_source.py +66 -0
- ptctools/portainer_client/openapi_client/test/test_v1_exec_action.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_grpc_action.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_http_get_action.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_v1_http_header.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_ip_family.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_ip_family_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_label_selector.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_v1_label_selector_operator.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_label_selector_requirement.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_lifecycle.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_v1_lifecycle_handler.py +70 -0
- ptctools/portainer_client/openapi_client/test/test_v1_list_meta.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_v1_load_balancer_ingress.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_v1_load_balancer_ip_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_load_balancer_status.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_v1_managed_fields_entry.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_managed_fields_operation_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_mount_propagation_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_namespace_condition.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_namespace_condition_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_namespace_phase.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_namespace_status.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_v1_object_field_selector.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_object_meta.py +89 -0
- ptctools/portainer_client/openapi_client/test/test_v1_object_reference.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_owner_reference.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v1_persistent_volume_access_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_persistent_volume_claim_phase.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_persistent_volume_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_persistent_volume_reclaim_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_port_status.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_probe.py +77 -0
- ptctools/portainer_client/openapi_client/test/test_v1_proc_mount_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_protocol.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_pull_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_recursive_read_only_mode.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_claim.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_field_selector.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_name.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_quota.py +101 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_quota_scope.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_quota_spec.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_quota_status.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_requirements.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_v1_resource_resize_restart_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_role_ref.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_scope_selector.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_v1_scope_selector_operator.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_scoped_resource_selector_requirement.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_se_linux_options.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_v1_seccomp_profile.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_seccomp_profile_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_secret_env_source.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_secret_key_selector.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v1_secret_reference.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_security_context.py +81 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service.py +142 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_affinity.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_external_traffic_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_internal_traffic_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_port.py +60 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_spec.py +90 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_status.py +73 -0
- ptctools/portainer_client/openapi_client/test/test_v1_service_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_session_affinity_config.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_signal.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_sleep_action.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_v1_tcp_socket_action.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1_termination_message_policy.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_uri_scheme.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v1_volume_device.py +53 -0
- ptctools/portainer_client/openapi_client/test/test_v1_volume_mount.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v1_windows_security_context_options.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_container_metrics.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_node_metrics.py +99 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_node_metrics_list.py +68 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_pod_metrics.py +100 -0
- ptctools/portainer_client/openapi_client/test/test_v1beta1_pod_metrics_list.py +72 -0
- ptctools/portainer_client/openapi_client/test/test_v2_container_resource_metric_source.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v2_container_resource_metric_status.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v2_cross_version_object_reference.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v2_external_metric_source.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_v2_external_metric_status.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler.py +128 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_behavior.py +71 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_condition.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_condition_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_spec.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_v2_horizontal_pod_autoscaler_status.py +72 -0
- ptctools/portainer_client/openapi_client/test/test_v2_hpa_scaling_policy.py +54 -0
- ptctools/portainer_client/openapi_client/test/test_v2_hpa_scaling_policy_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v2_hpa_scaling_rules.py +61 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_identifier.py +64 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_source_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_spec.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_status.py +69 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_target.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_target_type.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_v2_metric_value_status.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v2_object_metric_source.py +63 -0
- ptctools/portainer_client/openapi_client/test/test_v2_object_metric_status.py +62 -0
- ptctools/portainer_client/openapi_client/test/test_v2_pods_metric_source.py +59 -0
- ptctools/portainer_client/openapi_client/test/test_v2_pods_metric_status.py +58 -0
- ptctools/portainer_client/openapi_client/test/test_v2_resource_metric_source.py +57 -0
- ptctools/portainer_client/openapi_client/test/test_v2_resource_metric_status.py +56 -0
- ptctools/portainer_client/openapi_client/test/test_v2_scaling_policy_select.py +34 -0
- ptctools/portainer_client/openapi_client/test/test_webhooks_api.py +67 -0
- ptctools/portainer_client/openapi_client/test/test_webhooks_webhook_create_payload.py +55 -0
- ptctools/portainer_client/openapi_client/test/test_webhooks_webhook_update_payload.py +52 -0
- ptctools/portainer_client/openapi_client/test/test_websocket_api.py +60 -0
- ptctools/portainer_client/openapi_client_README.md +707 -0
- ptctools/secret.py +146 -0
- ptctools/stack.py +216 -261
- ptctools/utils.py +8 -0
- ptctools/volume.py +668 -89
- ptctools-0.2.0.dist-info/METADATA +162 -0
- ptctools-0.2.0.dist-info/RECORD +1241 -0
- ptctools-0.1.0.dist-info/METADATA +0 -99
- ptctools-0.1.0.dist-info/RECORD +0 -14
- {ptctools-0.1.0.dist-info → ptctools-0.2.0.dist-info}/WHEEL +0 -0
- {ptctools-0.1.0.dist-info → ptctools-0.2.0.dist-info}/entry_points.txt +0 -0
- {ptctools-0.1.0.dist-info → ptctools-0.2.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,2064 @@
|
|
|
1
|
+
# openapi_client.StacksApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to */api*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**stack_associate**](StacksApi.md#stack_associate) | **PUT** /stacks/{id}/associate | Associate an orphaned stack to a new environment(endpoint)
|
|
8
|
+
[**stack_create_docker_standalone_file**](StacksApi.md#stack_create_docker_standalone_file) | **POST** /stacks/create/standalone/file | Deploy a new compose stack from a file
|
|
9
|
+
[**stack_create_docker_standalone_repository**](StacksApi.md#stack_create_docker_standalone_repository) | **POST** /stacks/create/standalone/repository | Deploy a new compose stack from repository
|
|
10
|
+
[**stack_create_docker_standalone_string**](StacksApi.md#stack_create_docker_standalone_string) | **POST** /stacks/create/standalone/string | Deploy a new compose stack from a text
|
|
11
|
+
[**stack_create_docker_swarm_file**](StacksApi.md#stack_create_docker_swarm_file) | **POST** /stacks/create/swarm/file | Deploy a new swarm stack from a file
|
|
12
|
+
[**stack_create_docker_swarm_repository**](StacksApi.md#stack_create_docker_swarm_repository) | **POST** /stacks/create/swarm/repository | Deploy a new swarm stack from a git repository
|
|
13
|
+
[**stack_create_docker_swarm_string**](StacksApi.md#stack_create_docker_swarm_string) | **POST** /stacks/create/swarm/string | Deploy a new swarm stack from a text
|
|
14
|
+
[**stack_create_kubernetes_file**](StacksApi.md#stack_create_kubernetes_file) | **POST** /stacks/create/kubernetes/string | Deploy a new kubernetes stack from a file
|
|
15
|
+
[**stack_create_kubernetes_git**](StacksApi.md#stack_create_kubernetes_git) | **POST** /stacks/create/kubernetes/repository | Deploy a new kubernetes stack from a git repository
|
|
16
|
+
[**stack_create_kubernetes_url**](StacksApi.md#stack_create_kubernetes_url) | **POST** /stacks/create/kubernetes/url | Deploy a new kubernetes stack from a url
|
|
17
|
+
[**stack_delete**](StacksApi.md#stack_delete) | **DELETE** /stacks/{id} | Remove a stack
|
|
18
|
+
[**stack_delete_kubernetes_by_name**](StacksApi.md#stack_delete_kubernetes_by_name) | **DELETE** /stacks/name/{name} | Remove Kubernetes stacks by name
|
|
19
|
+
[**stack_file_inspect**](StacksApi.md#stack_file_inspect) | **GET** /stacks/{id}/file | Retrieve the content of the Stack file for the specified stack
|
|
20
|
+
[**stack_git_redeploy**](StacksApi.md#stack_git_redeploy) | **PUT** /stacks/{id}/git/redeploy | Redeploy a stack
|
|
21
|
+
[**stack_inspect**](StacksApi.md#stack_inspect) | **GET** /stacks/{id} | Inspect a stack
|
|
22
|
+
[**stack_list**](StacksApi.md#stack_list) | **GET** /stacks | List stacks
|
|
23
|
+
[**stack_migrate**](StacksApi.md#stack_migrate) | **POST** /stacks/{id}/migrate | Migrate a stack to another environment(endpoint)
|
|
24
|
+
[**stack_start**](StacksApi.md#stack_start) | **POST** /stacks/{id}/start | Starts a stopped Stack
|
|
25
|
+
[**stack_stop**](StacksApi.md#stack_stop) | **POST** /stacks/{id}/stop | Stops a stopped Stack
|
|
26
|
+
[**stack_update**](StacksApi.md#stack_update) | **PUT** /stacks/{id} | Update a stack
|
|
27
|
+
[**stack_update_git**](StacksApi.md#stack_update_git) | **POST** /stacks/{id}/git | Update a stack's Git configs
|
|
28
|
+
[**webhook_invoke**](StacksApi.md#webhook_invoke) | **POST** /stacks/webhooks/{webhookID} | Webhook for triggering stack updates from git
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# **stack_associate**
|
|
32
|
+
> PortainerStack stack_associate(id, endpoint_id, swarm_id, orphaned_running)
|
|
33
|
+
|
|
34
|
+
Associate an orphaned stack to a new environment(endpoint)
|
|
35
|
+
|
|
36
|
+
**Access policy**: administrator
|
|
37
|
+
|
|
38
|
+
### Example
|
|
39
|
+
|
|
40
|
+
* Api Key Authentication (jwt):
|
|
41
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
import openapi_client
|
|
45
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
46
|
+
from openapi_client.rest import ApiException
|
|
47
|
+
from pprint import pprint
|
|
48
|
+
|
|
49
|
+
# Defining the host is optional and defaults to /api
|
|
50
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
51
|
+
configuration = openapi_client.Configuration(
|
|
52
|
+
host = "/api"
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
# The client must configure the authentication and authorization parameters
|
|
56
|
+
# in accordance with the API server security policy.
|
|
57
|
+
# Examples for each auth method are provided below, use the example that
|
|
58
|
+
# satisfies your auth use case.
|
|
59
|
+
|
|
60
|
+
# Configure API key authorization: jwt
|
|
61
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
62
|
+
|
|
63
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
64
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
65
|
+
|
|
66
|
+
# Configure API key authorization: ApiKeyAuth
|
|
67
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
68
|
+
|
|
69
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
70
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
71
|
+
|
|
72
|
+
# Enter a context with an instance of the API client
|
|
73
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
74
|
+
# Create an instance of the API class
|
|
75
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
76
|
+
id = 56 # int | Stack identifier
|
|
77
|
+
endpoint_id = 56 # int | Environment identifier
|
|
78
|
+
swarm_id = 56 # int | Swarm identifier
|
|
79
|
+
orphaned_running = True # bool | Indicates whether the stack is orphaned
|
|
80
|
+
|
|
81
|
+
try:
|
|
82
|
+
# Associate an orphaned stack to a new environment(endpoint)
|
|
83
|
+
api_response = api_instance.stack_associate(id, endpoint_id, swarm_id, orphaned_running)
|
|
84
|
+
print("The response of StacksApi->stack_associate:\n")
|
|
85
|
+
pprint(api_response)
|
|
86
|
+
except Exception as e:
|
|
87
|
+
print("Exception when calling StacksApi->stack_associate: %s\n" % e)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
Name | Type | Description | Notes
|
|
96
|
+
------------- | ------------- | ------------- | -------------
|
|
97
|
+
**id** | **int**| Stack identifier |
|
|
98
|
+
**endpoint_id** | **int**| Environment identifier |
|
|
99
|
+
**swarm_id** | **int**| Swarm identifier |
|
|
100
|
+
**orphaned_running** | **bool**| Indicates whether the stack is orphaned |
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
[**PortainerStack**](PortainerStack.md)
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
### HTTP response details
|
|
116
|
+
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
**200** | Success | - |
|
|
120
|
+
**400** | Invalid request | - |
|
|
121
|
+
**403** | Permission denied | - |
|
|
122
|
+
**404** | Stack not found | - |
|
|
123
|
+
**500** | Server error | - |
|
|
124
|
+
|
|
125
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
126
|
+
|
|
127
|
+
# **stack_create_docker_standalone_file**
|
|
128
|
+
> PortainerStack stack_create_docker_standalone_file(endpoint_id, name, env=env, file=file)
|
|
129
|
+
|
|
130
|
+
Deploy a new compose stack from a file
|
|
131
|
+
|
|
132
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
133
|
+
**Access policy**: authenticated
|
|
134
|
+
|
|
135
|
+
### Example
|
|
136
|
+
|
|
137
|
+
* Api Key Authentication (jwt):
|
|
138
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
import openapi_client
|
|
142
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
143
|
+
from openapi_client.rest import ApiException
|
|
144
|
+
from pprint import pprint
|
|
145
|
+
|
|
146
|
+
# Defining the host is optional and defaults to /api
|
|
147
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
148
|
+
configuration = openapi_client.Configuration(
|
|
149
|
+
host = "/api"
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
# The client must configure the authentication and authorization parameters
|
|
153
|
+
# in accordance with the API server security policy.
|
|
154
|
+
# Examples for each auth method are provided below, use the example that
|
|
155
|
+
# satisfies your auth use case.
|
|
156
|
+
|
|
157
|
+
# Configure API key authorization: jwt
|
|
158
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
159
|
+
|
|
160
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
161
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
162
|
+
|
|
163
|
+
# Configure API key authorization: ApiKeyAuth
|
|
164
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
165
|
+
|
|
166
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
167
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
168
|
+
|
|
169
|
+
# Enter a context with an instance of the API client
|
|
170
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
171
|
+
# Create an instance of the API class
|
|
172
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
173
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
174
|
+
name = 'name_example' # str | Name of the stack
|
|
175
|
+
env = 'env_example' # str | Environment variables passed during deployment, represented as a JSON array [{'name': 'name', 'value': 'value'}]. (optional)
|
|
176
|
+
file = None # bytearray | Stack file (optional)
|
|
177
|
+
|
|
178
|
+
try:
|
|
179
|
+
# Deploy a new compose stack from a file
|
|
180
|
+
api_response = api_instance.stack_create_docker_standalone_file(endpoint_id, name, env=env, file=file)
|
|
181
|
+
print("The response of StacksApi->stack_create_docker_standalone_file:\n")
|
|
182
|
+
pprint(api_response)
|
|
183
|
+
except Exception as e:
|
|
184
|
+
print("Exception when calling StacksApi->stack_create_docker_standalone_file: %s\n" % e)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Parameters
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
Name | Type | Description | Notes
|
|
193
|
+
------------- | ------------- | ------------- | -------------
|
|
194
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
195
|
+
**name** | **str**| Name of the stack |
|
|
196
|
+
**env** | **str**| Environment variables passed during deployment, represented as a JSON array [{'name': 'name', 'value': 'value'}]. | [optional]
|
|
197
|
+
**file** | **bytearray**| Stack file | [optional]
|
|
198
|
+
|
|
199
|
+
### Return type
|
|
200
|
+
|
|
201
|
+
[**PortainerStack**](PortainerStack.md)
|
|
202
|
+
|
|
203
|
+
### Authorization
|
|
204
|
+
|
|
205
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
206
|
+
|
|
207
|
+
### HTTP request headers
|
|
208
|
+
|
|
209
|
+
- **Content-Type**: multipart/form-data
|
|
210
|
+
- **Accept**: application/json
|
|
211
|
+
|
|
212
|
+
### HTTP response details
|
|
213
|
+
|
|
214
|
+
| Status code | Description | Response headers |
|
|
215
|
+
|-------------|-------------|------------------|
|
|
216
|
+
**200** | OK | - |
|
|
217
|
+
**400** | Invalid request | - |
|
|
218
|
+
**500** | Server error | - |
|
|
219
|
+
|
|
220
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
221
|
+
|
|
222
|
+
# **stack_create_docker_standalone_repository**
|
|
223
|
+
> PortainerStack stack_create_docker_standalone_repository(endpoint_id, body)
|
|
224
|
+
|
|
225
|
+
Deploy a new compose stack from repository
|
|
226
|
+
|
|
227
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
228
|
+
**Access policy**: authenticated
|
|
229
|
+
|
|
230
|
+
### Example
|
|
231
|
+
|
|
232
|
+
* Api Key Authentication (jwt):
|
|
233
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
234
|
+
|
|
235
|
+
```python
|
|
236
|
+
import openapi_client
|
|
237
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
238
|
+
from openapi_client.models.stacks_compose_stack_from_git_repository_payload import StacksComposeStackFromGitRepositoryPayload
|
|
239
|
+
from openapi_client.rest import ApiException
|
|
240
|
+
from pprint import pprint
|
|
241
|
+
|
|
242
|
+
# Defining the host is optional and defaults to /api
|
|
243
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
244
|
+
configuration = openapi_client.Configuration(
|
|
245
|
+
host = "/api"
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
# The client must configure the authentication and authorization parameters
|
|
249
|
+
# in accordance with the API server security policy.
|
|
250
|
+
# Examples for each auth method are provided below, use the example that
|
|
251
|
+
# satisfies your auth use case.
|
|
252
|
+
|
|
253
|
+
# Configure API key authorization: jwt
|
|
254
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
255
|
+
|
|
256
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
257
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
258
|
+
|
|
259
|
+
# Configure API key authorization: ApiKeyAuth
|
|
260
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
261
|
+
|
|
262
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
263
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
264
|
+
|
|
265
|
+
# Enter a context with an instance of the API client
|
|
266
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
267
|
+
# Create an instance of the API class
|
|
268
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
269
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
270
|
+
body = openapi_client.StacksComposeStackFromGitRepositoryPayload() # StacksComposeStackFromGitRepositoryPayload | stack config
|
|
271
|
+
|
|
272
|
+
try:
|
|
273
|
+
# Deploy a new compose stack from repository
|
|
274
|
+
api_response = api_instance.stack_create_docker_standalone_repository(endpoint_id, body)
|
|
275
|
+
print("The response of StacksApi->stack_create_docker_standalone_repository:\n")
|
|
276
|
+
pprint(api_response)
|
|
277
|
+
except Exception as e:
|
|
278
|
+
print("Exception when calling StacksApi->stack_create_docker_standalone_repository: %s\n" % e)
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
### Parameters
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
Name | Type | Description | Notes
|
|
287
|
+
------------- | ------------- | ------------- | -------------
|
|
288
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
289
|
+
**body** | [**StacksComposeStackFromGitRepositoryPayload**](StacksComposeStackFromGitRepositoryPayload.md)| stack config |
|
|
290
|
+
|
|
291
|
+
### Return type
|
|
292
|
+
|
|
293
|
+
[**PortainerStack**](PortainerStack.md)
|
|
294
|
+
|
|
295
|
+
### Authorization
|
|
296
|
+
|
|
297
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
298
|
+
|
|
299
|
+
### HTTP request headers
|
|
300
|
+
|
|
301
|
+
- **Content-Type**: application/json
|
|
302
|
+
- **Accept**: application/json
|
|
303
|
+
|
|
304
|
+
### HTTP response details
|
|
305
|
+
|
|
306
|
+
| Status code | Description | Response headers |
|
|
307
|
+
|-------------|-------------|------------------|
|
|
308
|
+
**200** | OK | - |
|
|
309
|
+
**400** | Invalid request | - |
|
|
310
|
+
**409** | Stack name or webhook ID already exists | - |
|
|
311
|
+
**500** | Server error | - |
|
|
312
|
+
|
|
313
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
314
|
+
|
|
315
|
+
# **stack_create_docker_standalone_string**
|
|
316
|
+
> PortainerStack stack_create_docker_standalone_string(endpoint_id, body)
|
|
317
|
+
|
|
318
|
+
Deploy a new compose stack from a text
|
|
319
|
+
|
|
320
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
321
|
+
**Access policy**: authenticated
|
|
322
|
+
|
|
323
|
+
### Example
|
|
324
|
+
|
|
325
|
+
* Api Key Authentication (jwt):
|
|
326
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
327
|
+
|
|
328
|
+
```python
|
|
329
|
+
import openapi_client
|
|
330
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
331
|
+
from openapi_client.models.stacks_compose_stack_from_file_content_payload import StacksComposeStackFromFileContentPayload
|
|
332
|
+
from openapi_client.rest import ApiException
|
|
333
|
+
from pprint import pprint
|
|
334
|
+
|
|
335
|
+
# Defining the host is optional and defaults to /api
|
|
336
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
337
|
+
configuration = openapi_client.Configuration(
|
|
338
|
+
host = "/api"
|
|
339
|
+
)
|
|
340
|
+
|
|
341
|
+
# The client must configure the authentication and authorization parameters
|
|
342
|
+
# in accordance with the API server security policy.
|
|
343
|
+
# Examples for each auth method are provided below, use the example that
|
|
344
|
+
# satisfies your auth use case.
|
|
345
|
+
|
|
346
|
+
# Configure API key authorization: jwt
|
|
347
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
348
|
+
|
|
349
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
350
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
351
|
+
|
|
352
|
+
# Configure API key authorization: ApiKeyAuth
|
|
353
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
354
|
+
|
|
355
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
356
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
357
|
+
|
|
358
|
+
# Enter a context with an instance of the API client
|
|
359
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
360
|
+
# Create an instance of the API class
|
|
361
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
362
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
363
|
+
body = openapi_client.StacksComposeStackFromFileContentPayload() # StacksComposeStackFromFileContentPayload | stack config
|
|
364
|
+
|
|
365
|
+
try:
|
|
366
|
+
# Deploy a new compose stack from a text
|
|
367
|
+
api_response = api_instance.stack_create_docker_standalone_string(endpoint_id, body)
|
|
368
|
+
print("The response of StacksApi->stack_create_docker_standalone_string:\n")
|
|
369
|
+
pprint(api_response)
|
|
370
|
+
except Exception as e:
|
|
371
|
+
print("Exception when calling StacksApi->stack_create_docker_standalone_string: %s\n" % e)
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
### Parameters
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
Name | Type | Description | Notes
|
|
380
|
+
------------- | ------------- | ------------- | -------------
|
|
381
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
382
|
+
**body** | [**StacksComposeStackFromFileContentPayload**](StacksComposeStackFromFileContentPayload.md)| stack config |
|
|
383
|
+
|
|
384
|
+
### Return type
|
|
385
|
+
|
|
386
|
+
[**PortainerStack**](PortainerStack.md)
|
|
387
|
+
|
|
388
|
+
### Authorization
|
|
389
|
+
|
|
390
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
391
|
+
|
|
392
|
+
### HTTP request headers
|
|
393
|
+
|
|
394
|
+
- **Content-Type**: application/json
|
|
395
|
+
- **Accept**: application/json
|
|
396
|
+
|
|
397
|
+
### HTTP response details
|
|
398
|
+
|
|
399
|
+
| Status code | Description | Response headers |
|
|
400
|
+
|-------------|-------------|------------------|
|
|
401
|
+
**200** | OK | - |
|
|
402
|
+
**400** | Invalid request | - |
|
|
403
|
+
**500** | Server error | - |
|
|
404
|
+
|
|
405
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
406
|
+
|
|
407
|
+
# **stack_create_docker_swarm_file**
|
|
408
|
+
> PortainerStack stack_create_docker_swarm_file(endpoint_id, name=name, swarm_id=swarm_id, env=env, file=file)
|
|
409
|
+
|
|
410
|
+
Deploy a new swarm stack from a file
|
|
411
|
+
|
|
412
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
413
|
+
**Access policy**: authenticated
|
|
414
|
+
|
|
415
|
+
### Example
|
|
416
|
+
|
|
417
|
+
* Api Key Authentication (jwt):
|
|
418
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
419
|
+
|
|
420
|
+
```python
|
|
421
|
+
import openapi_client
|
|
422
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
423
|
+
from openapi_client.rest import ApiException
|
|
424
|
+
from pprint import pprint
|
|
425
|
+
|
|
426
|
+
# Defining the host is optional and defaults to /api
|
|
427
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
428
|
+
configuration = openapi_client.Configuration(
|
|
429
|
+
host = "/api"
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
# The client must configure the authentication and authorization parameters
|
|
433
|
+
# in accordance with the API server security policy.
|
|
434
|
+
# Examples for each auth method are provided below, use the example that
|
|
435
|
+
# satisfies your auth use case.
|
|
436
|
+
|
|
437
|
+
# Configure API key authorization: jwt
|
|
438
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
439
|
+
|
|
440
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
441
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
442
|
+
|
|
443
|
+
# Configure API key authorization: ApiKeyAuth
|
|
444
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
445
|
+
|
|
446
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
447
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
448
|
+
|
|
449
|
+
# Enter a context with an instance of the API client
|
|
450
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
451
|
+
# Create an instance of the API class
|
|
452
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
453
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
454
|
+
name = 'name_example' # str | Name of the stack (optional)
|
|
455
|
+
swarm_id = 'swarm_id_example' # str | Swarm cluster identifier. (optional)
|
|
456
|
+
env = 'env_example' # str | Environment variables passed during deployment, represented as a JSON array [{'name': 'name', 'value': 'value'}]. Optional (optional)
|
|
457
|
+
file = None # bytearray | Stack file (optional)
|
|
458
|
+
|
|
459
|
+
try:
|
|
460
|
+
# Deploy a new swarm stack from a file
|
|
461
|
+
api_response = api_instance.stack_create_docker_swarm_file(endpoint_id, name=name, swarm_id=swarm_id, env=env, file=file)
|
|
462
|
+
print("The response of StacksApi->stack_create_docker_swarm_file:\n")
|
|
463
|
+
pprint(api_response)
|
|
464
|
+
except Exception as e:
|
|
465
|
+
print("Exception when calling StacksApi->stack_create_docker_swarm_file: %s\n" % e)
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
### Parameters
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
Name | Type | Description | Notes
|
|
474
|
+
------------- | ------------- | ------------- | -------------
|
|
475
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
476
|
+
**name** | **str**| Name of the stack | [optional]
|
|
477
|
+
**swarm_id** | **str**| Swarm cluster identifier. | [optional]
|
|
478
|
+
**env** | **str**| Environment variables passed during deployment, represented as a JSON array [{'name': 'name', 'value': 'value'}]. Optional | [optional]
|
|
479
|
+
**file** | **bytearray**| Stack file | [optional]
|
|
480
|
+
|
|
481
|
+
### Return type
|
|
482
|
+
|
|
483
|
+
[**PortainerStack**](PortainerStack.md)
|
|
484
|
+
|
|
485
|
+
### Authorization
|
|
486
|
+
|
|
487
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
488
|
+
|
|
489
|
+
### HTTP request headers
|
|
490
|
+
|
|
491
|
+
- **Content-Type**: multipart/form-data
|
|
492
|
+
- **Accept**: application/json
|
|
493
|
+
|
|
494
|
+
### HTTP response details
|
|
495
|
+
|
|
496
|
+
| Status code | Description | Response headers |
|
|
497
|
+
|-------------|-------------|------------------|
|
|
498
|
+
**200** | OK | - |
|
|
499
|
+
**400** | Invalid request | - |
|
|
500
|
+
**500** | Server error | - |
|
|
501
|
+
|
|
502
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
503
|
+
|
|
504
|
+
# **stack_create_docker_swarm_repository**
|
|
505
|
+
> PortainerStack stack_create_docker_swarm_repository(endpoint_id, body)
|
|
506
|
+
|
|
507
|
+
Deploy a new swarm stack from a git repository
|
|
508
|
+
|
|
509
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
510
|
+
**Access policy**: authenticated
|
|
511
|
+
|
|
512
|
+
### Example
|
|
513
|
+
|
|
514
|
+
* Api Key Authentication (jwt):
|
|
515
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
516
|
+
|
|
517
|
+
```python
|
|
518
|
+
import openapi_client
|
|
519
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
520
|
+
from openapi_client.models.stacks_swarm_stack_from_git_repository_payload import StacksSwarmStackFromGitRepositoryPayload
|
|
521
|
+
from openapi_client.rest import ApiException
|
|
522
|
+
from pprint import pprint
|
|
523
|
+
|
|
524
|
+
# Defining the host is optional and defaults to /api
|
|
525
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
526
|
+
configuration = openapi_client.Configuration(
|
|
527
|
+
host = "/api"
|
|
528
|
+
)
|
|
529
|
+
|
|
530
|
+
# The client must configure the authentication and authorization parameters
|
|
531
|
+
# in accordance with the API server security policy.
|
|
532
|
+
# Examples for each auth method are provided below, use the example that
|
|
533
|
+
# satisfies your auth use case.
|
|
534
|
+
|
|
535
|
+
# Configure API key authorization: jwt
|
|
536
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
537
|
+
|
|
538
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
539
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
540
|
+
|
|
541
|
+
# Configure API key authorization: ApiKeyAuth
|
|
542
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
543
|
+
|
|
544
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
545
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
546
|
+
|
|
547
|
+
# Enter a context with an instance of the API client
|
|
548
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
549
|
+
# Create an instance of the API class
|
|
550
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
551
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
552
|
+
body = openapi_client.StacksSwarmStackFromGitRepositoryPayload() # StacksSwarmStackFromGitRepositoryPayload | stack config
|
|
553
|
+
|
|
554
|
+
try:
|
|
555
|
+
# Deploy a new swarm stack from a git repository
|
|
556
|
+
api_response = api_instance.stack_create_docker_swarm_repository(endpoint_id, body)
|
|
557
|
+
print("The response of StacksApi->stack_create_docker_swarm_repository:\n")
|
|
558
|
+
pprint(api_response)
|
|
559
|
+
except Exception as e:
|
|
560
|
+
print("Exception when calling StacksApi->stack_create_docker_swarm_repository: %s\n" % e)
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
### Parameters
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
Name | Type | Description | Notes
|
|
569
|
+
------------- | ------------- | ------------- | -------------
|
|
570
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
571
|
+
**body** | [**StacksSwarmStackFromGitRepositoryPayload**](StacksSwarmStackFromGitRepositoryPayload.md)| stack config |
|
|
572
|
+
|
|
573
|
+
### Return type
|
|
574
|
+
|
|
575
|
+
[**PortainerStack**](PortainerStack.md)
|
|
576
|
+
|
|
577
|
+
### Authorization
|
|
578
|
+
|
|
579
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
580
|
+
|
|
581
|
+
### HTTP request headers
|
|
582
|
+
|
|
583
|
+
- **Content-Type**: application/json
|
|
584
|
+
- **Accept**: application/json
|
|
585
|
+
|
|
586
|
+
### HTTP response details
|
|
587
|
+
|
|
588
|
+
| Status code | Description | Response headers |
|
|
589
|
+
|-------------|-------------|------------------|
|
|
590
|
+
**200** | OK | - |
|
|
591
|
+
**400** | Invalid request | - |
|
|
592
|
+
**409** | Stack name or webhook ID already exists | - |
|
|
593
|
+
**500** | Server error | - |
|
|
594
|
+
|
|
595
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
596
|
+
|
|
597
|
+
# **stack_create_docker_swarm_string**
|
|
598
|
+
> PortainerStack stack_create_docker_swarm_string(endpoint_id, body)
|
|
599
|
+
|
|
600
|
+
Deploy a new swarm stack from a text
|
|
601
|
+
|
|
602
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
603
|
+
**Access policy**: authenticated
|
|
604
|
+
|
|
605
|
+
### Example
|
|
606
|
+
|
|
607
|
+
* Api Key Authentication (jwt):
|
|
608
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
609
|
+
|
|
610
|
+
```python
|
|
611
|
+
import openapi_client
|
|
612
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
613
|
+
from openapi_client.models.stacks_swarm_stack_from_file_content_payload import StacksSwarmStackFromFileContentPayload
|
|
614
|
+
from openapi_client.rest import ApiException
|
|
615
|
+
from pprint import pprint
|
|
616
|
+
|
|
617
|
+
# Defining the host is optional and defaults to /api
|
|
618
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
619
|
+
configuration = openapi_client.Configuration(
|
|
620
|
+
host = "/api"
|
|
621
|
+
)
|
|
622
|
+
|
|
623
|
+
# The client must configure the authentication and authorization parameters
|
|
624
|
+
# in accordance with the API server security policy.
|
|
625
|
+
# Examples for each auth method are provided below, use the example that
|
|
626
|
+
# satisfies your auth use case.
|
|
627
|
+
|
|
628
|
+
# Configure API key authorization: jwt
|
|
629
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
630
|
+
|
|
631
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
632
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
633
|
+
|
|
634
|
+
# Configure API key authorization: ApiKeyAuth
|
|
635
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
636
|
+
|
|
637
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
638
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
639
|
+
|
|
640
|
+
# Enter a context with an instance of the API client
|
|
641
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
642
|
+
# Create an instance of the API class
|
|
643
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
644
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
645
|
+
body = openapi_client.StacksSwarmStackFromFileContentPayload() # StacksSwarmStackFromFileContentPayload | stack config
|
|
646
|
+
|
|
647
|
+
try:
|
|
648
|
+
# Deploy a new swarm stack from a text
|
|
649
|
+
api_response = api_instance.stack_create_docker_swarm_string(endpoint_id, body)
|
|
650
|
+
print("The response of StacksApi->stack_create_docker_swarm_string:\n")
|
|
651
|
+
pprint(api_response)
|
|
652
|
+
except Exception as e:
|
|
653
|
+
print("Exception when calling StacksApi->stack_create_docker_swarm_string: %s\n" % e)
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
### Parameters
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
Name | Type | Description | Notes
|
|
662
|
+
------------- | ------------- | ------------- | -------------
|
|
663
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
664
|
+
**body** | [**StacksSwarmStackFromFileContentPayload**](StacksSwarmStackFromFileContentPayload.md)| stack config |
|
|
665
|
+
|
|
666
|
+
### Return type
|
|
667
|
+
|
|
668
|
+
[**PortainerStack**](PortainerStack.md)
|
|
669
|
+
|
|
670
|
+
### Authorization
|
|
671
|
+
|
|
672
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
673
|
+
|
|
674
|
+
### HTTP request headers
|
|
675
|
+
|
|
676
|
+
- **Content-Type**: application/json
|
|
677
|
+
- **Accept**: application/json
|
|
678
|
+
|
|
679
|
+
### HTTP response details
|
|
680
|
+
|
|
681
|
+
| Status code | Description | Response headers |
|
|
682
|
+
|-------------|-------------|------------------|
|
|
683
|
+
**200** | OK | - |
|
|
684
|
+
**400** | Invalid request | - |
|
|
685
|
+
**500** | Server error | - |
|
|
686
|
+
|
|
687
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
688
|
+
|
|
689
|
+
# **stack_create_kubernetes_file**
|
|
690
|
+
> PortainerStack stack_create_kubernetes_file(endpoint_id, body)
|
|
691
|
+
|
|
692
|
+
Deploy a new kubernetes stack from a file
|
|
693
|
+
|
|
694
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
695
|
+
**Access policy**: authenticated
|
|
696
|
+
|
|
697
|
+
### Example
|
|
698
|
+
|
|
699
|
+
* Api Key Authentication (jwt):
|
|
700
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
701
|
+
|
|
702
|
+
```python
|
|
703
|
+
import openapi_client
|
|
704
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
705
|
+
from openapi_client.models.stacks_kubernetes_string_deployment_payload import StacksKubernetesStringDeploymentPayload
|
|
706
|
+
from openapi_client.rest import ApiException
|
|
707
|
+
from pprint import pprint
|
|
708
|
+
|
|
709
|
+
# Defining the host is optional and defaults to /api
|
|
710
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
711
|
+
configuration = openapi_client.Configuration(
|
|
712
|
+
host = "/api"
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
# The client must configure the authentication and authorization parameters
|
|
716
|
+
# in accordance with the API server security policy.
|
|
717
|
+
# Examples for each auth method are provided below, use the example that
|
|
718
|
+
# satisfies your auth use case.
|
|
719
|
+
|
|
720
|
+
# Configure API key authorization: jwt
|
|
721
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
722
|
+
|
|
723
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
724
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
725
|
+
|
|
726
|
+
# Configure API key authorization: ApiKeyAuth
|
|
727
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
728
|
+
|
|
729
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
730
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
731
|
+
|
|
732
|
+
# Enter a context with an instance of the API client
|
|
733
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
734
|
+
# Create an instance of the API class
|
|
735
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
736
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
737
|
+
body = openapi_client.StacksKubernetesStringDeploymentPayload() # StacksKubernetesStringDeploymentPayload | stack config
|
|
738
|
+
|
|
739
|
+
try:
|
|
740
|
+
# Deploy a new kubernetes stack from a file
|
|
741
|
+
api_response = api_instance.stack_create_kubernetes_file(endpoint_id, body)
|
|
742
|
+
print("The response of StacksApi->stack_create_kubernetes_file:\n")
|
|
743
|
+
pprint(api_response)
|
|
744
|
+
except Exception as e:
|
|
745
|
+
print("Exception when calling StacksApi->stack_create_kubernetes_file: %s\n" % e)
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
### Parameters
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
Name | Type | Description | Notes
|
|
754
|
+
------------- | ------------- | ------------- | -------------
|
|
755
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
756
|
+
**body** | [**StacksKubernetesStringDeploymentPayload**](StacksKubernetesStringDeploymentPayload.md)| stack config |
|
|
757
|
+
|
|
758
|
+
### Return type
|
|
759
|
+
|
|
760
|
+
[**PortainerStack**](PortainerStack.md)
|
|
761
|
+
|
|
762
|
+
### Authorization
|
|
763
|
+
|
|
764
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
765
|
+
|
|
766
|
+
### HTTP request headers
|
|
767
|
+
|
|
768
|
+
- **Content-Type**: Not defined
|
|
769
|
+
- **Accept**: application/json
|
|
770
|
+
|
|
771
|
+
### HTTP response details
|
|
772
|
+
|
|
773
|
+
| Status code | Description | Response headers |
|
|
774
|
+
|-------------|-------------|------------------|
|
|
775
|
+
**200** | OK | - |
|
|
776
|
+
**400** | Invalid request | - |
|
|
777
|
+
**500** | Server error | - |
|
|
778
|
+
|
|
779
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
780
|
+
|
|
781
|
+
# **stack_create_kubernetes_git**
|
|
782
|
+
> PortainerStack stack_create_kubernetes_git(endpoint_id, body)
|
|
783
|
+
|
|
784
|
+
Deploy a new kubernetes stack from a git repository
|
|
785
|
+
|
|
786
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
787
|
+
**Access policy**: authenticated
|
|
788
|
+
|
|
789
|
+
### Example
|
|
790
|
+
|
|
791
|
+
* Api Key Authentication (jwt):
|
|
792
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
793
|
+
|
|
794
|
+
```python
|
|
795
|
+
import openapi_client
|
|
796
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
797
|
+
from openapi_client.models.stacks_kubernetes_git_deployment_payload import StacksKubernetesGitDeploymentPayload
|
|
798
|
+
from openapi_client.rest import ApiException
|
|
799
|
+
from pprint import pprint
|
|
800
|
+
|
|
801
|
+
# Defining the host is optional and defaults to /api
|
|
802
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
803
|
+
configuration = openapi_client.Configuration(
|
|
804
|
+
host = "/api"
|
|
805
|
+
)
|
|
806
|
+
|
|
807
|
+
# The client must configure the authentication and authorization parameters
|
|
808
|
+
# in accordance with the API server security policy.
|
|
809
|
+
# Examples for each auth method are provided below, use the example that
|
|
810
|
+
# satisfies your auth use case.
|
|
811
|
+
|
|
812
|
+
# Configure API key authorization: jwt
|
|
813
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
814
|
+
|
|
815
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
816
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
817
|
+
|
|
818
|
+
# Configure API key authorization: ApiKeyAuth
|
|
819
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
820
|
+
|
|
821
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
822
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
823
|
+
|
|
824
|
+
# Enter a context with an instance of the API client
|
|
825
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
826
|
+
# Create an instance of the API class
|
|
827
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
828
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
829
|
+
body = openapi_client.StacksKubernetesGitDeploymentPayload() # StacksKubernetesGitDeploymentPayload | stack config
|
|
830
|
+
|
|
831
|
+
try:
|
|
832
|
+
# Deploy a new kubernetes stack from a git repository
|
|
833
|
+
api_response = api_instance.stack_create_kubernetes_git(endpoint_id, body)
|
|
834
|
+
print("The response of StacksApi->stack_create_kubernetes_git:\n")
|
|
835
|
+
pprint(api_response)
|
|
836
|
+
except Exception as e:
|
|
837
|
+
print("Exception when calling StacksApi->stack_create_kubernetes_git: %s\n" % e)
|
|
838
|
+
```
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
### Parameters
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
Name | Type | Description | Notes
|
|
846
|
+
------------- | ------------- | ------------- | -------------
|
|
847
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
848
|
+
**body** | [**StacksKubernetesGitDeploymentPayload**](StacksKubernetesGitDeploymentPayload.md)| stack config |
|
|
849
|
+
|
|
850
|
+
### Return type
|
|
851
|
+
|
|
852
|
+
[**PortainerStack**](PortainerStack.md)
|
|
853
|
+
|
|
854
|
+
### Authorization
|
|
855
|
+
|
|
856
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
857
|
+
|
|
858
|
+
### HTTP request headers
|
|
859
|
+
|
|
860
|
+
- **Content-Type**: Not defined
|
|
861
|
+
- **Accept**: application/json
|
|
862
|
+
|
|
863
|
+
### HTTP response details
|
|
864
|
+
|
|
865
|
+
| Status code | Description | Response headers |
|
|
866
|
+
|-------------|-------------|------------------|
|
|
867
|
+
**200** | OK | - |
|
|
868
|
+
**400** | Invalid request | - |
|
|
869
|
+
**409** | Stack name or webhook ID already exists | - |
|
|
870
|
+
**500** | Server error | - |
|
|
871
|
+
|
|
872
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
873
|
+
|
|
874
|
+
# **stack_create_kubernetes_url**
|
|
875
|
+
> PortainerStack stack_create_kubernetes_url(endpoint_id, body)
|
|
876
|
+
|
|
877
|
+
Deploy a new kubernetes stack from a url
|
|
878
|
+
|
|
879
|
+
Deploy a new stack into a Docker environment specified via the environment identifier.
|
|
880
|
+
**Access policy**: authenticated
|
|
881
|
+
|
|
882
|
+
### Example
|
|
883
|
+
|
|
884
|
+
* Api Key Authentication (jwt):
|
|
885
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
886
|
+
|
|
887
|
+
```python
|
|
888
|
+
import openapi_client
|
|
889
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
890
|
+
from openapi_client.models.stacks_kubernetes_manifest_url_deployment_payload import StacksKubernetesManifestURLDeploymentPayload
|
|
891
|
+
from openapi_client.rest import ApiException
|
|
892
|
+
from pprint import pprint
|
|
893
|
+
|
|
894
|
+
# Defining the host is optional and defaults to /api
|
|
895
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
896
|
+
configuration = openapi_client.Configuration(
|
|
897
|
+
host = "/api"
|
|
898
|
+
)
|
|
899
|
+
|
|
900
|
+
# The client must configure the authentication and authorization parameters
|
|
901
|
+
# in accordance with the API server security policy.
|
|
902
|
+
# Examples for each auth method are provided below, use the example that
|
|
903
|
+
# satisfies your auth use case.
|
|
904
|
+
|
|
905
|
+
# Configure API key authorization: jwt
|
|
906
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
907
|
+
|
|
908
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
909
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
910
|
+
|
|
911
|
+
# Configure API key authorization: ApiKeyAuth
|
|
912
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
913
|
+
|
|
914
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
915
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
916
|
+
|
|
917
|
+
# Enter a context with an instance of the API client
|
|
918
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
919
|
+
# Create an instance of the API class
|
|
920
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
921
|
+
endpoint_id = 56 # int | Identifier of the environment that will be used to deploy the stack
|
|
922
|
+
body = openapi_client.StacksKubernetesManifestURLDeploymentPayload() # StacksKubernetesManifestURLDeploymentPayload | stack config
|
|
923
|
+
|
|
924
|
+
try:
|
|
925
|
+
# Deploy a new kubernetes stack from a url
|
|
926
|
+
api_response = api_instance.stack_create_kubernetes_url(endpoint_id, body)
|
|
927
|
+
print("The response of StacksApi->stack_create_kubernetes_url:\n")
|
|
928
|
+
pprint(api_response)
|
|
929
|
+
except Exception as e:
|
|
930
|
+
print("Exception when calling StacksApi->stack_create_kubernetes_url: %s\n" % e)
|
|
931
|
+
```
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
### Parameters
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
Name | Type | Description | Notes
|
|
939
|
+
------------- | ------------- | ------------- | -------------
|
|
940
|
+
**endpoint_id** | **int**| Identifier of the environment that will be used to deploy the stack |
|
|
941
|
+
**body** | [**StacksKubernetesManifestURLDeploymentPayload**](StacksKubernetesManifestURLDeploymentPayload.md)| stack config |
|
|
942
|
+
|
|
943
|
+
### Return type
|
|
944
|
+
|
|
945
|
+
[**PortainerStack**](PortainerStack.md)
|
|
946
|
+
|
|
947
|
+
### Authorization
|
|
948
|
+
|
|
949
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
950
|
+
|
|
951
|
+
### HTTP request headers
|
|
952
|
+
|
|
953
|
+
- **Content-Type**: Not defined
|
|
954
|
+
- **Accept**: application/json
|
|
955
|
+
|
|
956
|
+
### HTTP response details
|
|
957
|
+
|
|
958
|
+
| Status code | Description | Response headers |
|
|
959
|
+
|-------------|-------------|------------------|
|
|
960
|
+
**200** | OK | - |
|
|
961
|
+
**400** | Invalid request | - |
|
|
962
|
+
**500** | Server error | - |
|
|
963
|
+
|
|
964
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
965
|
+
|
|
966
|
+
# **stack_delete**
|
|
967
|
+
> stack_delete(id, endpoint_id, external=external)
|
|
968
|
+
|
|
969
|
+
Remove a stack
|
|
970
|
+
|
|
971
|
+
Remove a stack.
|
|
972
|
+
**Access policy**: restricted
|
|
973
|
+
|
|
974
|
+
### Example
|
|
975
|
+
|
|
976
|
+
* Api Key Authentication (jwt):
|
|
977
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
978
|
+
|
|
979
|
+
```python
|
|
980
|
+
import openapi_client
|
|
981
|
+
from openapi_client.rest import ApiException
|
|
982
|
+
from pprint import pprint
|
|
983
|
+
|
|
984
|
+
# Defining the host is optional and defaults to /api
|
|
985
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
986
|
+
configuration = openapi_client.Configuration(
|
|
987
|
+
host = "/api"
|
|
988
|
+
)
|
|
989
|
+
|
|
990
|
+
# The client must configure the authentication and authorization parameters
|
|
991
|
+
# in accordance with the API server security policy.
|
|
992
|
+
# Examples for each auth method are provided below, use the example that
|
|
993
|
+
# satisfies your auth use case.
|
|
994
|
+
|
|
995
|
+
# Configure API key authorization: jwt
|
|
996
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
997
|
+
|
|
998
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
999
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1000
|
+
|
|
1001
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1002
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1003
|
+
|
|
1004
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1005
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1006
|
+
|
|
1007
|
+
# Enter a context with an instance of the API client
|
|
1008
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1009
|
+
# Create an instance of the API class
|
|
1010
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1011
|
+
id = 56 # int | Stack identifier
|
|
1012
|
+
endpoint_id = 56 # int | Environment identifier
|
|
1013
|
+
external = True # bool | Set to true to delete an external stack. Only external Swarm stacks are supported (optional)
|
|
1014
|
+
|
|
1015
|
+
try:
|
|
1016
|
+
# Remove a stack
|
|
1017
|
+
api_instance.stack_delete(id, endpoint_id, external=external)
|
|
1018
|
+
except Exception as e:
|
|
1019
|
+
print("Exception when calling StacksApi->stack_delete: %s\n" % e)
|
|
1020
|
+
```
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
### Parameters
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
Name | Type | Description | Notes
|
|
1028
|
+
------------- | ------------- | ------------- | -------------
|
|
1029
|
+
**id** | **int**| Stack identifier |
|
|
1030
|
+
**endpoint_id** | **int**| Environment identifier |
|
|
1031
|
+
**external** | **bool**| Set to true to delete an external stack. Only external Swarm stacks are supported | [optional]
|
|
1032
|
+
|
|
1033
|
+
### Return type
|
|
1034
|
+
|
|
1035
|
+
void (empty response body)
|
|
1036
|
+
|
|
1037
|
+
### Authorization
|
|
1038
|
+
|
|
1039
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1040
|
+
|
|
1041
|
+
### HTTP request headers
|
|
1042
|
+
|
|
1043
|
+
- **Content-Type**: Not defined
|
|
1044
|
+
- **Accept**: Not defined
|
|
1045
|
+
|
|
1046
|
+
### HTTP response details
|
|
1047
|
+
|
|
1048
|
+
| Status code | Description | Response headers |
|
|
1049
|
+
|-------------|-------------|------------------|
|
|
1050
|
+
**204** | Success | - |
|
|
1051
|
+
**400** | Invalid request | - |
|
|
1052
|
+
**403** | Permission denied | - |
|
|
1053
|
+
**404** | Not found | - |
|
|
1054
|
+
**500** | Server error | - |
|
|
1055
|
+
|
|
1056
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1057
|
+
|
|
1058
|
+
# **stack_delete_kubernetes_by_name**
|
|
1059
|
+
> stack_delete_kubernetes_by_name(name, endpoint_id, external=external)
|
|
1060
|
+
|
|
1061
|
+
Remove Kubernetes stacks by name
|
|
1062
|
+
|
|
1063
|
+
Remove a stack.
|
|
1064
|
+
**Access policy**: restricted
|
|
1065
|
+
|
|
1066
|
+
### Example
|
|
1067
|
+
|
|
1068
|
+
* Api Key Authentication (jwt):
|
|
1069
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1070
|
+
|
|
1071
|
+
```python
|
|
1072
|
+
import openapi_client
|
|
1073
|
+
from openapi_client.rest import ApiException
|
|
1074
|
+
from pprint import pprint
|
|
1075
|
+
|
|
1076
|
+
# Defining the host is optional and defaults to /api
|
|
1077
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1078
|
+
configuration = openapi_client.Configuration(
|
|
1079
|
+
host = "/api"
|
|
1080
|
+
)
|
|
1081
|
+
|
|
1082
|
+
# The client must configure the authentication and authorization parameters
|
|
1083
|
+
# in accordance with the API server security policy.
|
|
1084
|
+
# Examples for each auth method are provided below, use the example that
|
|
1085
|
+
# satisfies your auth use case.
|
|
1086
|
+
|
|
1087
|
+
# Configure API key authorization: jwt
|
|
1088
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1089
|
+
|
|
1090
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1091
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1092
|
+
|
|
1093
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1094
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1095
|
+
|
|
1096
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1097
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1098
|
+
|
|
1099
|
+
# Enter a context with an instance of the API client
|
|
1100
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1101
|
+
# Create an instance of the API class
|
|
1102
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1103
|
+
name = 'name_example' # str | Stack name
|
|
1104
|
+
endpoint_id = 56 # int | Environment identifier
|
|
1105
|
+
external = True # bool | Set to true to delete an external stack. Only external Swarm stacks are supported (optional)
|
|
1106
|
+
|
|
1107
|
+
try:
|
|
1108
|
+
# Remove Kubernetes stacks by name
|
|
1109
|
+
api_instance.stack_delete_kubernetes_by_name(name, endpoint_id, external=external)
|
|
1110
|
+
except Exception as e:
|
|
1111
|
+
print("Exception when calling StacksApi->stack_delete_kubernetes_by_name: %s\n" % e)
|
|
1112
|
+
```
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
### Parameters
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
Name | Type | Description | Notes
|
|
1120
|
+
------------- | ------------- | ------------- | -------------
|
|
1121
|
+
**name** | **str**| Stack name |
|
|
1122
|
+
**endpoint_id** | **int**| Environment identifier |
|
|
1123
|
+
**external** | **bool**| Set to true to delete an external stack. Only external Swarm stacks are supported | [optional]
|
|
1124
|
+
|
|
1125
|
+
### Return type
|
|
1126
|
+
|
|
1127
|
+
void (empty response body)
|
|
1128
|
+
|
|
1129
|
+
### Authorization
|
|
1130
|
+
|
|
1131
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1132
|
+
|
|
1133
|
+
### HTTP request headers
|
|
1134
|
+
|
|
1135
|
+
- **Content-Type**: Not defined
|
|
1136
|
+
- **Accept**: Not defined
|
|
1137
|
+
|
|
1138
|
+
### HTTP response details
|
|
1139
|
+
|
|
1140
|
+
| Status code | Description | Response headers |
|
|
1141
|
+
|-------------|-------------|------------------|
|
|
1142
|
+
**204** | Success | - |
|
|
1143
|
+
**400** | Invalid request | - |
|
|
1144
|
+
**403** | Permission denied | - |
|
|
1145
|
+
**404** | Not found | - |
|
|
1146
|
+
**500** | Server error | - |
|
|
1147
|
+
|
|
1148
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1149
|
+
|
|
1150
|
+
# **stack_file_inspect**
|
|
1151
|
+
> StacksStackFileResponse stack_file_inspect(id)
|
|
1152
|
+
|
|
1153
|
+
Retrieve the content of the Stack file for the specified stack
|
|
1154
|
+
|
|
1155
|
+
Get Stack file content.
|
|
1156
|
+
**Access policy**: restricted
|
|
1157
|
+
|
|
1158
|
+
### Example
|
|
1159
|
+
|
|
1160
|
+
* Api Key Authentication (jwt):
|
|
1161
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1162
|
+
|
|
1163
|
+
```python
|
|
1164
|
+
import openapi_client
|
|
1165
|
+
from openapi_client.models.stacks_stack_file_response import StacksStackFileResponse
|
|
1166
|
+
from openapi_client.rest import ApiException
|
|
1167
|
+
from pprint import pprint
|
|
1168
|
+
|
|
1169
|
+
# Defining the host is optional and defaults to /api
|
|
1170
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1171
|
+
configuration = openapi_client.Configuration(
|
|
1172
|
+
host = "/api"
|
|
1173
|
+
)
|
|
1174
|
+
|
|
1175
|
+
# The client must configure the authentication and authorization parameters
|
|
1176
|
+
# in accordance with the API server security policy.
|
|
1177
|
+
# Examples for each auth method are provided below, use the example that
|
|
1178
|
+
# satisfies your auth use case.
|
|
1179
|
+
|
|
1180
|
+
# Configure API key authorization: jwt
|
|
1181
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1182
|
+
|
|
1183
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1184
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1185
|
+
|
|
1186
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1187
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1188
|
+
|
|
1189
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1190
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1191
|
+
|
|
1192
|
+
# Enter a context with an instance of the API client
|
|
1193
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1194
|
+
# Create an instance of the API class
|
|
1195
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1196
|
+
id = 56 # int | Stack identifier
|
|
1197
|
+
|
|
1198
|
+
try:
|
|
1199
|
+
# Retrieve the content of the Stack file for the specified stack
|
|
1200
|
+
api_response = api_instance.stack_file_inspect(id)
|
|
1201
|
+
print("The response of StacksApi->stack_file_inspect:\n")
|
|
1202
|
+
pprint(api_response)
|
|
1203
|
+
except Exception as e:
|
|
1204
|
+
print("Exception when calling StacksApi->stack_file_inspect: %s\n" % e)
|
|
1205
|
+
```
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
### Parameters
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
Name | Type | Description | Notes
|
|
1213
|
+
------------- | ------------- | ------------- | -------------
|
|
1214
|
+
**id** | **int**| Stack identifier |
|
|
1215
|
+
|
|
1216
|
+
### Return type
|
|
1217
|
+
|
|
1218
|
+
[**StacksStackFileResponse**](StacksStackFileResponse.md)
|
|
1219
|
+
|
|
1220
|
+
### Authorization
|
|
1221
|
+
|
|
1222
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1223
|
+
|
|
1224
|
+
### HTTP request headers
|
|
1225
|
+
|
|
1226
|
+
- **Content-Type**: Not defined
|
|
1227
|
+
- **Accept**: application/json
|
|
1228
|
+
|
|
1229
|
+
### HTTP response details
|
|
1230
|
+
|
|
1231
|
+
| Status code | Description | Response headers |
|
|
1232
|
+
|-------------|-------------|------------------|
|
|
1233
|
+
**200** | Success | - |
|
|
1234
|
+
**400** | Invalid request | - |
|
|
1235
|
+
**403** | Permission denied | - |
|
|
1236
|
+
**404** | Stack not found | - |
|
|
1237
|
+
**500** | Server error | - |
|
|
1238
|
+
|
|
1239
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1240
|
+
|
|
1241
|
+
# **stack_git_redeploy**
|
|
1242
|
+
> PortainerStack stack_git_redeploy(id, body, endpoint_id=endpoint_id)
|
|
1243
|
+
|
|
1244
|
+
Redeploy a stack
|
|
1245
|
+
|
|
1246
|
+
Pull and redeploy a stack via Git
|
|
1247
|
+
**Access policy**: authenticated
|
|
1248
|
+
|
|
1249
|
+
### Example
|
|
1250
|
+
|
|
1251
|
+
* Api Key Authentication (jwt):
|
|
1252
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1253
|
+
|
|
1254
|
+
```python
|
|
1255
|
+
import openapi_client
|
|
1256
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
1257
|
+
from openapi_client.models.stacks_stack_git_redploy_payload import StacksStackGitRedployPayload
|
|
1258
|
+
from openapi_client.rest import ApiException
|
|
1259
|
+
from pprint import pprint
|
|
1260
|
+
|
|
1261
|
+
# Defining the host is optional and defaults to /api
|
|
1262
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1263
|
+
configuration = openapi_client.Configuration(
|
|
1264
|
+
host = "/api"
|
|
1265
|
+
)
|
|
1266
|
+
|
|
1267
|
+
# The client must configure the authentication and authorization parameters
|
|
1268
|
+
# in accordance with the API server security policy.
|
|
1269
|
+
# Examples for each auth method are provided below, use the example that
|
|
1270
|
+
# satisfies your auth use case.
|
|
1271
|
+
|
|
1272
|
+
# Configure API key authorization: jwt
|
|
1273
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1274
|
+
|
|
1275
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1276
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1277
|
+
|
|
1278
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1279
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1280
|
+
|
|
1281
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1282
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1283
|
+
|
|
1284
|
+
# Enter a context with an instance of the API client
|
|
1285
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1286
|
+
# Create an instance of the API class
|
|
1287
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1288
|
+
id = 56 # int | Stack identifier
|
|
1289
|
+
body = openapi_client.StacksStackGitRedployPayload() # StacksStackGitRedployPayload | Git configs for pull and redeploy of a stack. **StackName** may only be populated for Kuberenetes stacks, and if specified with a blank string, it will be set to blank
|
|
1290
|
+
endpoint_id = 56 # int | Stacks created before version 1.18.0 might not have an associated environment(endpoint) identifier. Use this optional parameter to set the environment(endpoint) identifier used by the stack. (optional)
|
|
1291
|
+
|
|
1292
|
+
try:
|
|
1293
|
+
# Redeploy a stack
|
|
1294
|
+
api_response = api_instance.stack_git_redeploy(id, body, endpoint_id=endpoint_id)
|
|
1295
|
+
print("The response of StacksApi->stack_git_redeploy:\n")
|
|
1296
|
+
pprint(api_response)
|
|
1297
|
+
except Exception as e:
|
|
1298
|
+
print("Exception when calling StacksApi->stack_git_redeploy: %s\n" % e)
|
|
1299
|
+
```
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
### Parameters
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
Name | Type | Description | Notes
|
|
1307
|
+
------------- | ------------- | ------------- | -------------
|
|
1308
|
+
**id** | **int**| Stack identifier |
|
|
1309
|
+
**body** | [**StacksStackGitRedployPayload**](StacksStackGitRedployPayload.md)| Git configs for pull and redeploy of a stack. **StackName** may only be populated for Kuberenetes stacks, and if specified with a blank string, it will be set to blank |
|
|
1310
|
+
**endpoint_id** | **int**| Stacks created before version 1.18.0 might not have an associated environment(endpoint) identifier. Use this optional parameter to set the environment(endpoint) identifier used by the stack. | [optional]
|
|
1311
|
+
|
|
1312
|
+
### Return type
|
|
1313
|
+
|
|
1314
|
+
[**PortainerStack**](PortainerStack.md)
|
|
1315
|
+
|
|
1316
|
+
### Authorization
|
|
1317
|
+
|
|
1318
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1319
|
+
|
|
1320
|
+
### HTTP request headers
|
|
1321
|
+
|
|
1322
|
+
- **Content-Type**: application/json
|
|
1323
|
+
- **Accept**: application/json
|
|
1324
|
+
|
|
1325
|
+
### HTTP response details
|
|
1326
|
+
|
|
1327
|
+
| Status code | Description | Response headers |
|
|
1328
|
+
|-------------|-------------|------------------|
|
|
1329
|
+
**200** | Success | - |
|
|
1330
|
+
**400** | Invalid request | - |
|
|
1331
|
+
**403** | Permission denied | - |
|
|
1332
|
+
**404** | Not found | - |
|
|
1333
|
+
**500** | Server error | - |
|
|
1334
|
+
|
|
1335
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1336
|
+
|
|
1337
|
+
# **stack_inspect**
|
|
1338
|
+
> PortainerStack stack_inspect(id)
|
|
1339
|
+
|
|
1340
|
+
Inspect a stack
|
|
1341
|
+
|
|
1342
|
+
Retrieve details about a stack.
|
|
1343
|
+
**Access policy**: restricted
|
|
1344
|
+
|
|
1345
|
+
### Example
|
|
1346
|
+
|
|
1347
|
+
* Api Key Authentication (jwt):
|
|
1348
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1349
|
+
|
|
1350
|
+
```python
|
|
1351
|
+
import openapi_client
|
|
1352
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
1353
|
+
from openapi_client.rest import ApiException
|
|
1354
|
+
from pprint import pprint
|
|
1355
|
+
|
|
1356
|
+
# Defining the host is optional and defaults to /api
|
|
1357
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1358
|
+
configuration = openapi_client.Configuration(
|
|
1359
|
+
host = "/api"
|
|
1360
|
+
)
|
|
1361
|
+
|
|
1362
|
+
# The client must configure the authentication and authorization parameters
|
|
1363
|
+
# in accordance with the API server security policy.
|
|
1364
|
+
# Examples for each auth method are provided below, use the example that
|
|
1365
|
+
# satisfies your auth use case.
|
|
1366
|
+
|
|
1367
|
+
# Configure API key authorization: jwt
|
|
1368
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1369
|
+
|
|
1370
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1371
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1372
|
+
|
|
1373
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1374
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1375
|
+
|
|
1376
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1377
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1378
|
+
|
|
1379
|
+
# Enter a context with an instance of the API client
|
|
1380
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1381
|
+
# Create an instance of the API class
|
|
1382
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1383
|
+
id = 56 # int | Stack identifier
|
|
1384
|
+
|
|
1385
|
+
try:
|
|
1386
|
+
# Inspect a stack
|
|
1387
|
+
api_response = api_instance.stack_inspect(id)
|
|
1388
|
+
print("The response of StacksApi->stack_inspect:\n")
|
|
1389
|
+
pprint(api_response)
|
|
1390
|
+
except Exception as e:
|
|
1391
|
+
print("Exception when calling StacksApi->stack_inspect: %s\n" % e)
|
|
1392
|
+
```
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
### Parameters
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
Name | Type | Description | Notes
|
|
1400
|
+
------------- | ------------- | ------------- | -------------
|
|
1401
|
+
**id** | **int**| Stack identifier |
|
|
1402
|
+
|
|
1403
|
+
### Return type
|
|
1404
|
+
|
|
1405
|
+
[**PortainerStack**](PortainerStack.md)
|
|
1406
|
+
|
|
1407
|
+
### Authorization
|
|
1408
|
+
|
|
1409
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1410
|
+
|
|
1411
|
+
### HTTP request headers
|
|
1412
|
+
|
|
1413
|
+
- **Content-Type**: Not defined
|
|
1414
|
+
- **Accept**: application/json
|
|
1415
|
+
|
|
1416
|
+
### HTTP response details
|
|
1417
|
+
|
|
1418
|
+
| Status code | Description | Response headers |
|
|
1419
|
+
|-------------|-------------|------------------|
|
|
1420
|
+
**200** | Success | - |
|
|
1421
|
+
**400** | Invalid request | - |
|
|
1422
|
+
**403** | Permission denied | - |
|
|
1423
|
+
**404** | Stack not found | - |
|
|
1424
|
+
**500** | Server error | - |
|
|
1425
|
+
|
|
1426
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1427
|
+
|
|
1428
|
+
# **stack_list**
|
|
1429
|
+
> List[PortainerStack] stack_list(filters=filters)
|
|
1430
|
+
|
|
1431
|
+
List stacks
|
|
1432
|
+
|
|
1433
|
+
List all stacks based on the current user authorizations.
|
|
1434
|
+
Will return all stacks if using an administrator account otherwise it
|
|
1435
|
+
will only return the list of stacks the user have access to.
|
|
1436
|
+
Limited stacks will not be returned by this endpoint.
|
|
1437
|
+
**Access policy**: authenticated
|
|
1438
|
+
|
|
1439
|
+
### Example
|
|
1440
|
+
|
|
1441
|
+
* Api Key Authentication (jwt):
|
|
1442
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1443
|
+
|
|
1444
|
+
```python
|
|
1445
|
+
import openapi_client
|
|
1446
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
1447
|
+
from openapi_client.rest import ApiException
|
|
1448
|
+
from pprint import pprint
|
|
1449
|
+
|
|
1450
|
+
# Defining the host is optional and defaults to /api
|
|
1451
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1452
|
+
configuration = openapi_client.Configuration(
|
|
1453
|
+
host = "/api"
|
|
1454
|
+
)
|
|
1455
|
+
|
|
1456
|
+
# The client must configure the authentication and authorization parameters
|
|
1457
|
+
# in accordance with the API server security policy.
|
|
1458
|
+
# Examples for each auth method are provided below, use the example that
|
|
1459
|
+
# satisfies your auth use case.
|
|
1460
|
+
|
|
1461
|
+
# Configure API key authorization: jwt
|
|
1462
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1463
|
+
|
|
1464
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1465
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1466
|
+
|
|
1467
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1468
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1469
|
+
|
|
1470
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1471
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1472
|
+
|
|
1473
|
+
# Enter a context with an instance of the API client
|
|
1474
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1475
|
+
# Create an instance of the API class
|
|
1476
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1477
|
+
filters = 'filters_example' # str | Filters to process on the stack list. Encoded as JSON (a map[string]string). For example, {'SwarmID': 'jpofkc0i9uo9wtx1zesuk649w'} will only return stacks that are part of the specified Swarm cluster. Available filters: EndpointID, SwarmID. (optional)
|
|
1478
|
+
|
|
1479
|
+
try:
|
|
1480
|
+
# List stacks
|
|
1481
|
+
api_response = api_instance.stack_list(filters=filters)
|
|
1482
|
+
print("The response of StacksApi->stack_list:\n")
|
|
1483
|
+
pprint(api_response)
|
|
1484
|
+
except Exception as e:
|
|
1485
|
+
print("Exception when calling StacksApi->stack_list: %s\n" % e)
|
|
1486
|
+
```
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
### Parameters
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
Name | Type | Description | Notes
|
|
1494
|
+
------------- | ------------- | ------------- | -------------
|
|
1495
|
+
**filters** | **str**| Filters to process on the stack list. Encoded as JSON (a map[string]string). For example, {'SwarmID': 'jpofkc0i9uo9wtx1zesuk649w'} will only return stacks that are part of the specified Swarm cluster. Available filters: EndpointID, SwarmID. | [optional]
|
|
1496
|
+
|
|
1497
|
+
### Return type
|
|
1498
|
+
|
|
1499
|
+
[**List[PortainerStack]**](PortainerStack.md)
|
|
1500
|
+
|
|
1501
|
+
### Authorization
|
|
1502
|
+
|
|
1503
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1504
|
+
|
|
1505
|
+
### HTTP request headers
|
|
1506
|
+
|
|
1507
|
+
- **Content-Type**: Not defined
|
|
1508
|
+
- **Accept**: */*
|
|
1509
|
+
|
|
1510
|
+
### HTTP response details
|
|
1511
|
+
|
|
1512
|
+
| Status code | Description | Response headers |
|
|
1513
|
+
|-------------|-------------|------------------|
|
|
1514
|
+
**200** | Success | - |
|
|
1515
|
+
**204** | Success | - |
|
|
1516
|
+
**400** | Invalid request | - |
|
|
1517
|
+
**500** | Server error | - |
|
|
1518
|
+
|
|
1519
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1520
|
+
|
|
1521
|
+
# **stack_migrate**
|
|
1522
|
+
> PortainerStack stack_migrate(id, body, endpoint_id=endpoint_id)
|
|
1523
|
+
|
|
1524
|
+
Migrate a stack to another environment(endpoint)
|
|
1525
|
+
|
|
1526
|
+
Migrate a stack from an environment(endpoint) to another environment(endpoint). It will re-create the stack inside the target environment(endpoint) before removing the original stack.
|
|
1527
|
+
**Access policy**: authenticated
|
|
1528
|
+
|
|
1529
|
+
### Example
|
|
1530
|
+
|
|
1531
|
+
* Api Key Authentication (jwt):
|
|
1532
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1533
|
+
|
|
1534
|
+
```python
|
|
1535
|
+
import openapi_client
|
|
1536
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
1537
|
+
from openapi_client.models.stacks_stack_migrate_payload import StacksStackMigratePayload
|
|
1538
|
+
from openapi_client.rest import ApiException
|
|
1539
|
+
from pprint import pprint
|
|
1540
|
+
|
|
1541
|
+
# Defining the host is optional and defaults to /api
|
|
1542
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1543
|
+
configuration = openapi_client.Configuration(
|
|
1544
|
+
host = "/api"
|
|
1545
|
+
)
|
|
1546
|
+
|
|
1547
|
+
# The client must configure the authentication and authorization parameters
|
|
1548
|
+
# in accordance with the API server security policy.
|
|
1549
|
+
# Examples for each auth method are provided below, use the example that
|
|
1550
|
+
# satisfies your auth use case.
|
|
1551
|
+
|
|
1552
|
+
# Configure API key authorization: jwt
|
|
1553
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1554
|
+
|
|
1555
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1556
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1557
|
+
|
|
1558
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1559
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1560
|
+
|
|
1561
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1562
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1563
|
+
|
|
1564
|
+
# Enter a context with an instance of the API client
|
|
1565
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1566
|
+
# Create an instance of the API class
|
|
1567
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1568
|
+
id = 56 # int | Stack identifier
|
|
1569
|
+
body = openapi_client.StacksStackMigratePayload() # StacksStackMigratePayload | Stack migration details
|
|
1570
|
+
endpoint_id = 56 # int | Stacks created before version 1.18.0 might not have an associated environment(endpoint) identifier. Use this optional parameter to set the environment(endpoint) identifier used by the stack. (optional)
|
|
1571
|
+
|
|
1572
|
+
try:
|
|
1573
|
+
# Migrate a stack to another environment(endpoint)
|
|
1574
|
+
api_response = api_instance.stack_migrate(id, body, endpoint_id=endpoint_id)
|
|
1575
|
+
print("The response of StacksApi->stack_migrate:\n")
|
|
1576
|
+
pprint(api_response)
|
|
1577
|
+
except Exception as e:
|
|
1578
|
+
print("Exception when calling StacksApi->stack_migrate: %s\n" % e)
|
|
1579
|
+
```
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
### Parameters
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
Name | Type | Description | Notes
|
|
1587
|
+
------------- | ------------- | ------------- | -------------
|
|
1588
|
+
**id** | **int**| Stack identifier |
|
|
1589
|
+
**body** | [**StacksStackMigratePayload**](StacksStackMigratePayload.md)| Stack migration details |
|
|
1590
|
+
**endpoint_id** | **int**| Stacks created before version 1.18.0 might not have an associated environment(endpoint) identifier. Use this optional parameter to set the environment(endpoint) identifier used by the stack. | [optional]
|
|
1591
|
+
|
|
1592
|
+
### Return type
|
|
1593
|
+
|
|
1594
|
+
[**PortainerStack**](PortainerStack.md)
|
|
1595
|
+
|
|
1596
|
+
### Authorization
|
|
1597
|
+
|
|
1598
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1599
|
+
|
|
1600
|
+
### HTTP request headers
|
|
1601
|
+
|
|
1602
|
+
- **Content-Type**: Not defined
|
|
1603
|
+
- **Accept**: application/json
|
|
1604
|
+
|
|
1605
|
+
### HTTP response details
|
|
1606
|
+
|
|
1607
|
+
| Status code | Description | Response headers |
|
|
1608
|
+
|-------------|-------------|------------------|
|
|
1609
|
+
**200** | Success | - |
|
|
1610
|
+
**400** | Invalid request | - |
|
|
1611
|
+
**403** | Permission denied | - |
|
|
1612
|
+
**404** | Stack not found | - |
|
|
1613
|
+
**409** | A stack with the same name is already running on the target environment(endpoint) | - |
|
|
1614
|
+
**500** | Server error | - |
|
|
1615
|
+
|
|
1616
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1617
|
+
|
|
1618
|
+
# **stack_start**
|
|
1619
|
+
> PortainerStack stack_start(id, endpoint_id)
|
|
1620
|
+
|
|
1621
|
+
Starts a stopped Stack
|
|
1622
|
+
|
|
1623
|
+
Starts a stopped Stack.
|
|
1624
|
+
**Access policy**: authenticated
|
|
1625
|
+
|
|
1626
|
+
### Example
|
|
1627
|
+
|
|
1628
|
+
* Api Key Authentication (jwt):
|
|
1629
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1630
|
+
|
|
1631
|
+
```python
|
|
1632
|
+
import openapi_client
|
|
1633
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
1634
|
+
from openapi_client.rest import ApiException
|
|
1635
|
+
from pprint import pprint
|
|
1636
|
+
|
|
1637
|
+
# Defining the host is optional and defaults to /api
|
|
1638
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1639
|
+
configuration = openapi_client.Configuration(
|
|
1640
|
+
host = "/api"
|
|
1641
|
+
)
|
|
1642
|
+
|
|
1643
|
+
# The client must configure the authentication and authorization parameters
|
|
1644
|
+
# in accordance with the API server security policy.
|
|
1645
|
+
# Examples for each auth method are provided below, use the example that
|
|
1646
|
+
# satisfies your auth use case.
|
|
1647
|
+
|
|
1648
|
+
# Configure API key authorization: jwt
|
|
1649
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1650
|
+
|
|
1651
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1652
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1653
|
+
|
|
1654
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1655
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1656
|
+
|
|
1657
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1658
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1659
|
+
|
|
1660
|
+
# Enter a context with an instance of the API client
|
|
1661
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1662
|
+
# Create an instance of the API class
|
|
1663
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1664
|
+
id = 56 # int | Stack identifier
|
|
1665
|
+
endpoint_id = 56 # int | Environment identifier
|
|
1666
|
+
|
|
1667
|
+
try:
|
|
1668
|
+
# Starts a stopped Stack
|
|
1669
|
+
api_response = api_instance.stack_start(id, endpoint_id)
|
|
1670
|
+
print("The response of StacksApi->stack_start:\n")
|
|
1671
|
+
pprint(api_response)
|
|
1672
|
+
except Exception as e:
|
|
1673
|
+
print("Exception when calling StacksApi->stack_start: %s\n" % e)
|
|
1674
|
+
```
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
### Parameters
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
Name | Type | Description | Notes
|
|
1682
|
+
------------- | ------------- | ------------- | -------------
|
|
1683
|
+
**id** | **int**| Stack identifier |
|
|
1684
|
+
**endpoint_id** | **int**| Environment identifier |
|
|
1685
|
+
|
|
1686
|
+
### Return type
|
|
1687
|
+
|
|
1688
|
+
[**PortainerStack**](PortainerStack.md)
|
|
1689
|
+
|
|
1690
|
+
### Authorization
|
|
1691
|
+
|
|
1692
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1693
|
+
|
|
1694
|
+
### HTTP request headers
|
|
1695
|
+
|
|
1696
|
+
- **Content-Type**: Not defined
|
|
1697
|
+
- **Accept**: */*
|
|
1698
|
+
|
|
1699
|
+
### HTTP response details
|
|
1700
|
+
|
|
1701
|
+
| Status code | Description | Response headers |
|
|
1702
|
+
|-------------|-------------|------------------|
|
|
1703
|
+
**200** | Success | - |
|
|
1704
|
+
**400** | Invalid request | - |
|
|
1705
|
+
**403** | Permission denied | - |
|
|
1706
|
+
**404** | Not found | - |
|
|
1707
|
+
**409** | Stack name is not unique | - |
|
|
1708
|
+
**500** | Server error | - |
|
|
1709
|
+
|
|
1710
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1711
|
+
|
|
1712
|
+
# **stack_stop**
|
|
1713
|
+
> PortainerStack stack_stop(id, endpoint_id)
|
|
1714
|
+
|
|
1715
|
+
Stops a stopped Stack
|
|
1716
|
+
|
|
1717
|
+
Stops a stopped Stack.
|
|
1718
|
+
**Access policy**: authenticated
|
|
1719
|
+
|
|
1720
|
+
### Example
|
|
1721
|
+
|
|
1722
|
+
* Api Key Authentication (jwt):
|
|
1723
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1724
|
+
|
|
1725
|
+
```python
|
|
1726
|
+
import openapi_client
|
|
1727
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
1728
|
+
from openapi_client.rest import ApiException
|
|
1729
|
+
from pprint import pprint
|
|
1730
|
+
|
|
1731
|
+
# Defining the host is optional and defaults to /api
|
|
1732
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1733
|
+
configuration = openapi_client.Configuration(
|
|
1734
|
+
host = "/api"
|
|
1735
|
+
)
|
|
1736
|
+
|
|
1737
|
+
# The client must configure the authentication and authorization parameters
|
|
1738
|
+
# in accordance with the API server security policy.
|
|
1739
|
+
# Examples for each auth method are provided below, use the example that
|
|
1740
|
+
# satisfies your auth use case.
|
|
1741
|
+
|
|
1742
|
+
# Configure API key authorization: jwt
|
|
1743
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1744
|
+
|
|
1745
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1746
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1747
|
+
|
|
1748
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1749
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1750
|
+
|
|
1751
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1752
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1753
|
+
|
|
1754
|
+
# Enter a context with an instance of the API client
|
|
1755
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1756
|
+
# Create an instance of the API class
|
|
1757
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1758
|
+
id = 56 # int | Stack identifier
|
|
1759
|
+
endpoint_id = 56 # int | Environment identifier
|
|
1760
|
+
|
|
1761
|
+
try:
|
|
1762
|
+
# Stops a stopped Stack
|
|
1763
|
+
api_response = api_instance.stack_stop(id, endpoint_id)
|
|
1764
|
+
print("The response of StacksApi->stack_stop:\n")
|
|
1765
|
+
pprint(api_response)
|
|
1766
|
+
except Exception as e:
|
|
1767
|
+
print("Exception when calling StacksApi->stack_stop: %s\n" % e)
|
|
1768
|
+
```
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
### Parameters
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
Name | Type | Description | Notes
|
|
1776
|
+
------------- | ------------- | ------------- | -------------
|
|
1777
|
+
**id** | **int**| Stack identifier |
|
|
1778
|
+
**endpoint_id** | **int**| Environment identifier |
|
|
1779
|
+
|
|
1780
|
+
### Return type
|
|
1781
|
+
|
|
1782
|
+
[**PortainerStack**](PortainerStack.md)
|
|
1783
|
+
|
|
1784
|
+
### Authorization
|
|
1785
|
+
|
|
1786
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1787
|
+
|
|
1788
|
+
### HTTP request headers
|
|
1789
|
+
|
|
1790
|
+
- **Content-Type**: Not defined
|
|
1791
|
+
- **Accept**: */*
|
|
1792
|
+
|
|
1793
|
+
### HTTP response details
|
|
1794
|
+
|
|
1795
|
+
| Status code | Description | Response headers |
|
|
1796
|
+
|-------------|-------------|------------------|
|
|
1797
|
+
**200** | Success | - |
|
|
1798
|
+
**400** | Invalid request | - |
|
|
1799
|
+
**403** | Permission denied | - |
|
|
1800
|
+
**404** | Not found | - |
|
|
1801
|
+
**500** | Server error | - |
|
|
1802
|
+
|
|
1803
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1804
|
+
|
|
1805
|
+
# **stack_update**
|
|
1806
|
+
> PortainerStack stack_update(id, endpoint_id, body)
|
|
1807
|
+
|
|
1808
|
+
Update a stack
|
|
1809
|
+
|
|
1810
|
+
Update a stack, only for file based stacks.
|
|
1811
|
+
**Access policy**: authenticated
|
|
1812
|
+
|
|
1813
|
+
### Example
|
|
1814
|
+
|
|
1815
|
+
* Api Key Authentication (jwt):
|
|
1816
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1817
|
+
|
|
1818
|
+
```python
|
|
1819
|
+
import openapi_client
|
|
1820
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
1821
|
+
from openapi_client.models.stacks_update_swarm_stack_payload import StacksUpdateSwarmStackPayload
|
|
1822
|
+
from openapi_client.rest import ApiException
|
|
1823
|
+
from pprint import pprint
|
|
1824
|
+
|
|
1825
|
+
# Defining the host is optional and defaults to /api
|
|
1826
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1827
|
+
configuration = openapi_client.Configuration(
|
|
1828
|
+
host = "/api"
|
|
1829
|
+
)
|
|
1830
|
+
|
|
1831
|
+
# The client must configure the authentication and authorization parameters
|
|
1832
|
+
# in accordance with the API server security policy.
|
|
1833
|
+
# Examples for each auth method are provided below, use the example that
|
|
1834
|
+
# satisfies your auth use case.
|
|
1835
|
+
|
|
1836
|
+
# Configure API key authorization: jwt
|
|
1837
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1838
|
+
|
|
1839
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1840
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1841
|
+
|
|
1842
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1843
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1844
|
+
|
|
1845
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1846
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1847
|
+
|
|
1848
|
+
# Enter a context with an instance of the API client
|
|
1849
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1850
|
+
# Create an instance of the API class
|
|
1851
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1852
|
+
id = 56 # int | Stack identifier
|
|
1853
|
+
endpoint_id = 56 # int | Environment identifier
|
|
1854
|
+
body = openapi_client.StacksUpdateSwarmStackPayload() # StacksUpdateSwarmStackPayload | Stack details
|
|
1855
|
+
|
|
1856
|
+
try:
|
|
1857
|
+
# Update a stack
|
|
1858
|
+
api_response = api_instance.stack_update(id, endpoint_id, body)
|
|
1859
|
+
print("The response of StacksApi->stack_update:\n")
|
|
1860
|
+
pprint(api_response)
|
|
1861
|
+
except Exception as e:
|
|
1862
|
+
print("Exception when calling StacksApi->stack_update: %s\n" % e)
|
|
1863
|
+
```
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
### Parameters
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
Name | Type | Description | Notes
|
|
1871
|
+
------------- | ------------- | ------------- | -------------
|
|
1872
|
+
**id** | **int**| Stack identifier |
|
|
1873
|
+
**endpoint_id** | **int**| Environment identifier |
|
|
1874
|
+
**body** | [**StacksUpdateSwarmStackPayload**](StacksUpdateSwarmStackPayload.md)| Stack details |
|
|
1875
|
+
|
|
1876
|
+
### Return type
|
|
1877
|
+
|
|
1878
|
+
[**PortainerStack**](PortainerStack.md)
|
|
1879
|
+
|
|
1880
|
+
### Authorization
|
|
1881
|
+
|
|
1882
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1883
|
+
|
|
1884
|
+
### HTTP request headers
|
|
1885
|
+
|
|
1886
|
+
- **Content-Type**: application/json
|
|
1887
|
+
- **Accept**: application/json
|
|
1888
|
+
|
|
1889
|
+
### HTTP response details
|
|
1890
|
+
|
|
1891
|
+
| Status code | Description | Response headers |
|
|
1892
|
+
|-------------|-------------|------------------|
|
|
1893
|
+
**200** | Success | - |
|
|
1894
|
+
**400** | Invalid request | - |
|
|
1895
|
+
**403** | Permission denied | - |
|
|
1896
|
+
**404** | Not found | - |
|
|
1897
|
+
**500** | Server error | - |
|
|
1898
|
+
|
|
1899
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1900
|
+
|
|
1901
|
+
# **stack_update_git**
|
|
1902
|
+
> PortainerStack stack_update_git(id, body, endpoint_id=endpoint_id)
|
|
1903
|
+
|
|
1904
|
+
Update a stack's Git configs
|
|
1905
|
+
|
|
1906
|
+
Update the Git settings in a stack, e.g., RepositoryReferenceName and AutoUpdate
|
|
1907
|
+
**Access policy**: authenticated
|
|
1908
|
+
|
|
1909
|
+
### Example
|
|
1910
|
+
|
|
1911
|
+
* Api Key Authentication (jwt):
|
|
1912
|
+
* Api Key Authentication (ApiKeyAuth):
|
|
1913
|
+
|
|
1914
|
+
```python
|
|
1915
|
+
import openapi_client
|
|
1916
|
+
from openapi_client.models.portainer_stack import PortainerStack
|
|
1917
|
+
from openapi_client.models.stacks_stack_git_update_payload import StacksStackGitUpdatePayload
|
|
1918
|
+
from openapi_client.rest import ApiException
|
|
1919
|
+
from pprint import pprint
|
|
1920
|
+
|
|
1921
|
+
# Defining the host is optional and defaults to /api
|
|
1922
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
1923
|
+
configuration = openapi_client.Configuration(
|
|
1924
|
+
host = "/api"
|
|
1925
|
+
)
|
|
1926
|
+
|
|
1927
|
+
# The client must configure the authentication and authorization parameters
|
|
1928
|
+
# in accordance with the API server security policy.
|
|
1929
|
+
# Examples for each auth method are provided below, use the example that
|
|
1930
|
+
# satisfies your auth use case.
|
|
1931
|
+
|
|
1932
|
+
# Configure API key authorization: jwt
|
|
1933
|
+
configuration.api_key['jwt'] = os.environ["API_KEY"]
|
|
1934
|
+
|
|
1935
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1936
|
+
# configuration.api_key_prefix['jwt'] = 'Bearer'
|
|
1937
|
+
|
|
1938
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1939
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
1940
|
+
|
|
1941
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
1942
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
1943
|
+
|
|
1944
|
+
# Enter a context with an instance of the API client
|
|
1945
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
1946
|
+
# Create an instance of the API class
|
|
1947
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
1948
|
+
id = 56 # int | Stack identifier
|
|
1949
|
+
body = openapi_client.StacksStackGitUpdatePayload() # StacksStackGitUpdatePayload | Git configs for pull and redeploy a stack
|
|
1950
|
+
endpoint_id = 56 # int | Stacks created before version 1.18.0 might not have an associated environment(endpoint) identifier. Use this optional parameter to set the environment(endpoint) identifier used by the stack. (optional)
|
|
1951
|
+
|
|
1952
|
+
try:
|
|
1953
|
+
# Update a stack's Git configs
|
|
1954
|
+
api_response = api_instance.stack_update_git(id, body, endpoint_id=endpoint_id)
|
|
1955
|
+
print("The response of StacksApi->stack_update_git:\n")
|
|
1956
|
+
pprint(api_response)
|
|
1957
|
+
except Exception as e:
|
|
1958
|
+
print("Exception when calling StacksApi->stack_update_git: %s\n" % e)
|
|
1959
|
+
```
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
### Parameters
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
Name | Type | Description | Notes
|
|
1967
|
+
------------- | ------------- | ------------- | -------------
|
|
1968
|
+
**id** | **int**| Stack identifier |
|
|
1969
|
+
**body** | [**StacksStackGitUpdatePayload**](StacksStackGitUpdatePayload.md)| Git configs for pull and redeploy a stack |
|
|
1970
|
+
**endpoint_id** | **int**| Stacks created before version 1.18.0 might not have an associated environment(endpoint) identifier. Use this optional parameter to set the environment(endpoint) identifier used by the stack. | [optional]
|
|
1971
|
+
|
|
1972
|
+
### Return type
|
|
1973
|
+
|
|
1974
|
+
[**PortainerStack**](PortainerStack.md)
|
|
1975
|
+
|
|
1976
|
+
### Authorization
|
|
1977
|
+
|
|
1978
|
+
[jwt](../README.md#jwt), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1979
|
+
|
|
1980
|
+
### HTTP request headers
|
|
1981
|
+
|
|
1982
|
+
- **Content-Type**: application/json
|
|
1983
|
+
- **Accept**: application/json
|
|
1984
|
+
|
|
1985
|
+
### HTTP response details
|
|
1986
|
+
|
|
1987
|
+
| Status code | Description | Response headers |
|
|
1988
|
+
|-------------|-------------|------------------|
|
|
1989
|
+
**200** | Success | - |
|
|
1990
|
+
**400** | Invalid request | - |
|
|
1991
|
+
**403** | Permission denied | - |
|
|
1992
|
+
**404** | Not found | - |
|
|
1993
|
+
**500** | Server error | - |
|
|
1994
|
+
|
|
1995
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1996
|
+
|
|
1997
|
+
# **webhook_invoke**
|
|
1998
|
+
> webhook_invoke(webhook_id)
|
|
1999
|
+
|
|
2000
|
+
Webhook for triggering stack updates from git
|
|
2001
|
+
|
|
2002
|
+
**Access policy**: public
|
|
2003
|
+
|
|
2004
|
+
### Example
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
```python
|
|
2008
|
+
import openapi_client
|
|
2009
|
+
from openapi_client.rest import ApiException
|
|
2010
|
+
from pprint import pprint
|
|
2011
|
+
|
|
2012
|
+
# Defining the host is optional and defaults to /api
|
|
2013
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
2014
|
+
configuration = openapi_client.Configuration(
|
|
2015
|
+
host = "/api"
|
|
2016
|
+
)
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
# Enter a context with an instance of the API client
|
|
2020
|
+
with openapi_client.ApiClient(configuration) as api_client:
|
|
2021
|
+
# Create an instance of the API class
|
|
2022
|
+
api_instance = openapi_client.StacksApi(api_client)
|
|
2023
|
+
webhook_id = 'webhook_id_example' # str | Stack identifier
|
|
2024
|
+
|
|
2025
|
+
try:
|
|
2026
|
+
# Webhook for triggering stack updates from git
|
|
2027
|
+
api_instance.webhook_invoke(webhook_id)
|
|
2028
|
+
except Exception as e:
|
|
2029
|
+
print("Exception when calling StacksApi->webhook_invoke: %s\n" % e)
|
|
2030
|
+
```
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
### Parameters
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
Name | Type | Description | Notes
|
|
2038
|
+
------------- | ------------- | ------------- | -------------
|
|
2039
|
+
**webhook_id** | **str**| Stack identifier |
|
|
2040
|
+
|
|
2041
|
+
### Return type
|
|
2042
|
+
|
|
2043
|
+
void (empty response body)
|
|
2044
|
+
|
|
2045
|
+
### Authorization
|
|
2046
|
+
|
|
2047
|
+
No authorization required
|
|
2048
|
+
|
|
2049
|
+
### HTTP request headers
|
|
2050
|
+
|
|
2051
|
+
- **Content-Type**: Not defined
|
|
2052
|
+
- **Accept**: Not defined
|
|
2053
|
+
|
|
2054
|
+
### HTTP response details
|
|
2055
|
+
|
|
2056
|
+
| Status code | Description | Response headers |
|
|
2057
|
+
|-------------|-------------|------------------|
|
|
2058
|
+
**200** | Success | - |
|
|
2059
|
+
**400** | Invalid request | - |
|
|
2060
|
+
**409** | Autoupdate for the stack isn't available | - |
|
|
2061
|
+
**500** | Server error | - |
|
|
2062
|
+
|
|
2063
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
2064
|
+
|