Actions190
- Auth Actions
- Backup Actions
- Custom Templates Actions
- Docker Actions
- Edge Groups Actions
- Edge Jobs Actions
- Edge Stacks Actions
- Endpoint Groups Actions
- Endpoints Actions
- Endpoint Delete Batch
- Endpoint List
- Endpoint Create
- Endpoint Delete
- Endpoint Inspect
- Endpoint Update
- Endpoint Association Delete
- Endpoint Dockerhub Status
- Endpoint Edge Status Inspect
- Endpoint Force Update Service
- Endpoint Registries List
- Endpoint Registry Access
- Endpoint Settings Update
- Endpoint Snapshot
- Endpoint Update Relations
- Gitops Actions
- Helm Actions
- Intel Actions
- Kubernetes Actions
- Get All Kubernetes Applications
- Get All Kubernetes Applications Count
- Delete Cluster Role Bindings
- Delete Cluster Roles
- Get All Kubernetes Cluster Role Bindings
- Get All Kubernetes Cluster Roles
- Get All Kubernetes Config Maps
- Get All Kubernetes Config Maps Count
- Get Kubernetes Cron Jobs
- Delete Cron Jobs
- Get Kubernetes Dashboard
- Get All Kubernetes Ingress Controllers
- Update Kubernetes Ingress Controllers
- Get All Kubernetes Cluster Ingresses
- Get All Kubernetes Cluster Ingresses Count
- Delete Kubernetes Ingresses
- Get Kubernetes Jobs
- Delete Jobs
- Get Kubernetes Max Resource Limits
- Get Applications Resources
- Get Kubernetes Metrics For All Nodes
- Get Kubernetes Metrics For Node
- Get Kubernetes Metrics For All Pods
- Get Kubernetes Metrics For Pod
- Delete Kubernetes Namespace
- Get Kubernetes Namespaces
- Create Kubernetes Namespace
- Update Kubernetes Namespace Deprecated
- Get Kubernetes Namespace
- Update Kubernetes Namespace
- Get Kubernetes Config Map
- Get Kubernetes Ingress Controllers By Namespace
- Update Kubernetes Ingress Controllers By Namespace
- Get All Kubernetes Ingresses
- Create Kubernetes Ingress
- Update Kubernetes Ingress
- Get Kubernetes Ingress
- Get Kubernetes Secret
- Get Kubernetes Services By Namespace
- Create Kubernetes Service
- Update Kubernetes Service
- Kubernetes Namespaces Toggle System
- Get Kubernetes Volumes In Namespace
- Get Kubernetes Namespaces Count
- Get Kubernetes Nodes Limits
- Get Kubernetes RBAC Status
- Delete Role Bindings
- Get Kubernetes Role Bindings
- Get Kubernetes Roles
- Delete Roles
- Get Kubernetes Secrets
- Get Kubernetes Secrets Count
- Delete Service Accounts
- Get Kubernetes Service Accounts
- Get Kubernetes Services
- Get All Kubernetes Services Count
- Delete Kubernetes Services
- Get All Kubernetes Volumes
- Get Kubernetes Volume
- Get All Kubernetes Volumes Count
- Get Kubernetes Config
- Ldap Actions
- Registries Actions
- Resource Controls Actions
- Settings Actions
- Ssl Actions
- Stacks Actions
- Stack List
- Stack Delete
- Stack Inspect
- Stack Update
- Stack Associate
- Stack File Inspect
- Stack Update Git
- Stack Git Redeploy
- Stack Migrate
- Stack Start
- Stack Stop
- Stack Create Kubernetes Git
- Stack Create Kubernetes File
- Stack Create Kubernetes Url
- Stack Create Docker Standalone File
- Stack Create Docker Standalone Repository
- Stack Create Docker Standalone String
- Stack Create Docker Swarm File
- Stack Create Docker Swarm Repository
- Stack Create Docker Swarm String
- Stack Delete Kubernetes By Name
- Webhook Invoke
- Tags Actions
- Team Memberships Actions
- Teams Actions
- Templates Actions
- Upload Actions
- Users Actions
Endpoints → Endpoint Create
AI-generatedOverview
This node allows you to create a new environment endpoint in Portainer, a container management platform. It is useful for automating the addition of different types of container environments such as local Docker, agent-managed, Azure, edge agents, or Kubernetes clusters into Portainer via API.
Typical use cases include:
- Automatically registering new Docker hosts or Kubernetes clusters when they become available.
- Managing multiple container environments centrally by scripting their creation.
- Integrating environment provisioning workflows with other automation tools.
For example, you could use this node to add a new local Docker environment named "my-environment" or register an Azure environment by providing the necessary Azure credentials and configuration.
Properties
| Name | Meaning |
|---|---|
| Name | Name used to identify the environment (endpoint), e.g., "my-environment". |
| Endpoint Creation Type | Type of environment to create. Options: 1 (Local Docker), 2 (Agent), 3 (Azure), 4 (Edge agent), 5 (Local Kubernetes). |
| Container Engine | Container engine used by the environment. Options: 'docker' or 'podman'. |
| URL | URL or IP address of the Docker host. Defaults to local socket if not specified. Required if type is Edge agent (4). |
| Public URL | URL or IP where exposed containers are reachable. Defaults to URL if not specified. |
| Group ID | Identifier for grouping environments. Defaults to 1 (unassigned) if not specified. |
| TLS | Whether to require TLS connection to the environment. Must be true if type is Agent (2). |
| TLS Skip Verify | Skip server verification when using TLS. Must be true if type is Agent (2). |
| TLS Skip Client Verify | Skip client verification when using TLS. Must be true if type is Agent (2). |
| TLS CA Cert File | TLS Certificate Authority certificate file for secure connections. |
| TLS Cert File | TLS client certificate file. |
| TLS Key File | TLS client key file. |
| Azure Application ID | Azure application ID. Required if type is Azure (3). |
| Azure Tenant ID | Azure tenant ID. Required if type is Azure (3). |
| Azure Authentication Key | Azure authentication key. Required if type is Azure (3). |
| Tag Ids | JSON array of tag identifiers associated with this environment. |
| Edge Checkin Interval | Check-in interval in seconds for edge agent environments. |
| Edge Tunnel Server Address | URL or IP address used to establish a reverse tunnel for edge agents. Required. |
| Gpus | JSON stringified array listing GPUs as objects with name and value properties. |
Output
The node outputs JSON data representing the newly created environment endpoint as returned by the Portainer API. This typically includes details such as the environment's ID, name, type, URLs, TLS settings, tags, and other configuration parameters.
If any binary data were involved (e.g., certificate files), it would be handled accordingly, but in this case, the output is purely JSON describing the created endpoint.
Dependencies
- Requires an API key credential for authenticating with the Portainer API.
- The node uses the base URL from the provided credentials to send requests to the Portainer server.
- No additional external dependencies beyond the Portainer API and its authentication.
Troubleshooting
- Missing required fields: Ensure all mandatory properties like
Name,Endpoint Creation Type, and for some types, Azure credentials or Edge Tunnel Server Address are provided. - Invalid Endpoint Creation Type: Use only the allowed numeric values (1 to 5).
- TLS errors: If TLS is enabled, verify that certificates and keys are correctly provided and valid.
- Connection failures: Check that the URL or IP address is reachable and correct, especially for remote or edge environments.
- JSON parsing errors: For properties like
TagIdsandGpus, ensure valid JSON strings are supplied. - API authentication issues: Confirm that the API key credential is valid and has sufficient permissions.
Links and References
- Portainer API Documentation
- Portainer Environment Management
- Docker Remote API (for understanding Docker host URLs)
- Azure Service Principal Documentation (for Azure credentials)