import * as pulumi from "@pulumi/pulumi"; export declare class Environment extends pulumi.CustomResource { /** * Get an existing Environment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: EnvironmentState, opts?: pulumi.CustomResourceOptions): Environment; /** * Returns true if the given object is an instance of Environment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Environment; /** * Edge identifier assigned by Portainer for type 4/7 (Edge Agent) environments. */ readonly edgeId: pulumi.Output; /** * Edge key generated by Portainer for type 4/7 (Edge Agent) environments. Used by the Edge Agent to register with Portainer. */ readonly edgeKey: pulumi.Output; /** * Connection URL of the environment (e.g. tcp://host:port for Docker, https://host for Kubernetes/Agent). Used as the endpoint URL Portainer connects to. */ readonly environmentAddress: pulumi.Output; readonly environmentId: pulumi.Output; /** * ID of the Portainer endpoint group. Default is 1 (Unassigned). */ readonly groupId: pulumi.Output; /** * Name of the Portainer environment (endpoint) as displayed in the UI. */ readonly name: pulumi.Output; /** * Public IP/URL used by Portainer for Published Ports (maps to PublicURL). */ readonly publicIp: pulumi.Output; /** * List of tag IDs to assign to the environment. */ readonly tagIds: pulumi.Output; /** * Map of team IDs to role IDs (e.g. teamID > roleID) */ readonly teamAccessPolicies: pulumi.Output<{ [key: string]: number; } | undefined>; /** * PEM-encoded TLS CA certificate used to verify the environment's server certificate. Stored in state as a sensitive value. */ readonly tlsCaCert: pulumi.Output; /** * PEM-encoded TLS client certificate presented by Portainer when connecting to the environment. Stored in state as a sensitive value. */ readonly tlsCert: pulumi.Output; /** * Whether TLS is enabled for the connection to the environment. */ readonly tlsEnabled: pulumi.Output; /** * PEM-encoded TLS client private key paired with tls_cert. Stored in state as a sensitive value. */ readonly tlsKey: pulumi.Output; /** * Whether to skip client TLS certificate verification when Portainer connects to the environment. */ readonly tlsSkipClientVerify: pulumi.Output; /** * Whether to skip server TLS certificate verification when connecting to the environment. */ readonly tlsSkipVerify: pulumi.Output; /** * Environment type: 1 = Docker, 2 = Agent, 3 = Azure, 4 = Edge Agent, 5 = Kubernetes, 6 = Kubernetes via agent, 7 = Kubernetes Edge Agent */ readonly type: pulumi.Output; /** * Map of user IDs to role IDs (e.g. userID > roleID) */ readonly userAccessPolicies: pulumi.Output<{ [key: string]: number; } | undefined>; /** * Create a Environment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Environment resources. */ export interface EnvironmentState { /** * Edge identifier assigned by Portainer for type 4/7 (Edge Agent) environments. */ edgeId?: pulumi.Input; /** * Edge key generated by Portainer for type 4/7 (Edge Agent) environments. Used by the Edge Agent to register with Portainer. */ edgeKey?: pulumi.Input; /** * Connection URL of the environment (e.g. tcp://host:port for Docker, https://host for Kubernetes/Agent). Used as the endpoint URL Portainer connects to. */ environmentAddress?: pulumi.Input; environmentId?: pulumi.Input; /** * ID of the Portainer endpoint group. Default is 1 (Unassigned). */ groupId?: pulumi.Input; /** * Name of the Portainer environment (endpoint) as displayed in the UI. */ name?: pulumi.Input; /** * Public IP/URL used by Portainer for Published Ports (maps to PublicURL). */ publicIp?: pulumi.Input; /** * List of tag IDs to assign to the environment. */ tagIds?: pulumi.Input[] | undefined>; /** * Map of team IDs to role IDs (e.g. teamID > roleID) */ teamAccessPolicies?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * PEM-encoded TLS CA certificate used to verify the environment's server certificate. Stored in state as a sensitive value. */ tlsCaCert?: pulumi.Input; /** * PEM-encoded TLS client certificate presented by Portainer when connecting to the environment. Stored in state as a sensitive value. */ tlsCert?: pulumi.Input; /** * Whether TLS is enabled for the connection to the environment. */ tlsEnabled?: pulumi.Input; /** * PEM-encoded TLS client private key paired with tls_cert. Stored in state as a sensitive value. */ tlsKey?: pulumi.Input; /** * Whether to skip client TLS certificate verification when Portainer connects to the environment. */ tlsSkipClientVerify?: pulumi.Input; /** * Whether to skip server TLS certificate verification when connecting to the environment. */ tlsSkipVerify?: pulumi.Input; /** * Environment type: 1 = Docker, 2 = Agent, 3 = Azure, 4 = Edge Agent, 5 = Kubernetes, 6 = Kubernetes via agent, 7 = Kubernetes Edge Agent */ type?: pulumi.Input; /** * Map of user IDs to role IDs (e.g. userID > roleID) */ userAccessPolicies?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } /** * The set of arguments for constructing a Environment resource. */ export interface EnvironmentArgs { /** * Connection URL of the environment (e.g. tcp://host:port for Docker, https://host for Kubernetes/Agent). Used as the endpoint URL Portainer connects to. */ environmentAddress: pulumi.Input; environmentId?: pulumi.Input; /** * ID of the Portainer endpoint group. Default is 1 (Unassigned). */ groupId?: pulumi.Input; /** * Name of the Portainer environment (endpoint) as displayed in the UI. */ name?: pulumi.Input; /** * Public IP/URL used by Portainer for Published Ports (maps to PublicURL). */ publicIp?: pulumi.Input; /** * List of tag IDs to assign to the environment. */ tagIds?: pulumi.Input[] | undefined>; /** * Map of team IDs to role IDs (e.g. teamID > roleID) */ teamAccessPolicies?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * PEM-encoded TLS CA certificate used to verify the environment's server certificate. Stored in state as a sensitive value. */ tlsCaCert?: pulumi.Input; /** * PEM-encoded TLS client certificate presented by Portainer when connecting to the environment. Stored in state as a sensitive value. */ tlsCert?: pulumi.Input; /** * Whether TLS is enabled for the connection to the environment. */ tlsEnabled?: pulumi.Input; /** * PEM-encoded TLS client private key paired with tls_cert. Stored in state as a sensitive value. */ tlsKey?: pulumi.Input; /** * Whether to skip client TLS certificate verification when Portainer connects to the environment. */ tlsSkipClientVerify?: pulumi.Input; /** * Whether to skip server TLS certificate verification when connecting to the environment. */ tlsSkipVerify?: pulumi.Input; /** * Environment type: 1 = Docker, 2 = Agent, 3 = Azure, 4 = Edge Agent, 5 = Kubernetes, 6 = Kubernetes via agent, 7 = Kubernetes Edge Agent */ type: pulumi.Input; /** * Map of user IDs to role IDs (e.g. userID > roleID) */ userAccessPolicies?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=environment.d.ts.map