Skip to main content

Environment

Resource Environment in pulumi-portainer.
4 min read

Resource Environment in pulumi-portainer.

Pulumi type: portainer:index/environment:Environment.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
environmentAddressstringyesConnection URL of the environment (e.g. tcp://host:port for Docker, https://host for Kubernetes/Agent). Used as the endpoint URL Portainer connects to.
environmentIdstringno
groupIdnumbernoID of the Portainer endpoint group. Default is 1 (Unassigned).
namestringnoName of the Portainer environment (endpoint) as displayed in the UI.
publicIpstringnoPublic IP/URL used by Portainer for Published Ports (maps to PublicURL).
tagIdsnumber[]noList of tag IDs to assign to the environment.
teamAccessPolicies{ [key: string]: number }noMap of team IDs to role IDs (e.g. teamID > roleID)
tlsCaCertstringnoPEM-encoded TLS CA certificate used to verify the environment's server certificate. Stored in state as a sensitive value.
tlsCertstringnoPEM-encoded TLS client certificate presented by Portainer when connecting to the environment. Stored in state as a sensitive value.
tlsEnabledbooleannoWhether TLS is enabled for the connection to the environment.
tlsKeystringnoPEM-encoded TLS client private key paired with tls_cert. Stored in state as a sensitive value.
tlsSkipClientVerifybooleannoWhether to skip client TLS certificate verification when Portainer connects to the environment.
tlsSkipVerifybooleannoWhether to skip server TLS certificate verification when connecting to the environment.
typenumberyesEnvironment type: 1 = Docker, 2 = Agent, 3 = Azure, 4 = Edge Agent, 5 = Kubernetes, 6 = Kubernetes via agent, 7 = Kubernetes Edge Agent
userAccessPolicies{ [key: string]: number }noMap of user IDs to role IDs (e.g. userID > roleID)

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
edgeIdstringyesEdge identifier (UUID) for type 4/7 (Edge Agent) environments, to pass to the Edge Agent as PORTAINER_EDGE_ID. Returned by Portainer when the EnforceEdgeID setting is enabled, otherwise generated by the provider at create time. Empty for all other environment types.
edgeKeystringyesEdge key generated by Portainer for type 4/7 (Edge Agent) environments. Used by the Edge Agent to register with Portainer.
environmentAddressstringnoConnection URL of the environment (e.g. tcp://host:port for Docker, https://host for Kubernetes/Agent). Used as the endpoint URL Portainer connects to.
environmentIdstringno
groupIdnumbernoID of the Portainer endpoint group. Default is 1 (Unassigned).
namestringnoName of the Portainer environment (endpoint) as displayed in the UI.
publicIpstringnoPublic IP/URL used by Portainer for Published Ports (maps to PublicURL).
tagIdsnumber[]noList of tag IDs to assign to the environment.
teamAccessPolicies{ [key: string]: number }noMap of team IDs to role IDs (e.g. teamID > roleID)
tlsCaCertstringnoPEM-encoded TLS CA certificate used to verify the environment's server certificate. Stored in state as a sensitive value.
tlsCertstringnoPEM-encoded TLS client certificate presented by Portainer when connecting to the environment. Stored in state as a sensitive value.
tlsEnabledbooleannoWhether TLS is enabled for the connection to the environment.
tlsKeystringnoPEM-encoded TLS client private key paired with tls_cert. Stored in state as a sensitive value.
tlsSkipClientVerifybooleannoWhether to skip client TLS certificate verification when Portainer connects to the environment.
tlsSkipVerifybooleannoWhether to skip server TLS certificate verification when connecting to the environment.
typenumbernoEnvironment type: 1 = Docker, 2 = Agent, 3 = Azure, 4 = Edge Agent, 5 = Kubernetes, 6 = Kubernetes via agent, 7 = Kubernetes Edge Agent
userAccessPolicies{ [key: string]: number }noMap of user IDs to role IDs (e.g. userID > roleID)