Skip to main content

Policy

Resource Policy in pulumi-portainer.
2 min read

Resource Policy in pulumi-portainer.

Pulumi type: portainer:index/policy:Policy.

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
allowOverridebooleannoWhether to allow environments to override this policy.
datastringnoPolicy data as a JSON string. Structure depends on policy_type.
environmentGroupsnumber[]noList of environment group IDs to which the policy applies.
environmentTypestringyesEnvironment type for the policy (kubernetes, docker, podman, swarm).
namestringnoName of the policy.
policyIdstringno
policyTypestringyesPolicy type (e.g. rbac-k8s, security-docker).

Outputs#

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

PropertyTypeComputedDescription
allowOverridebooleannoWhether to allow environments to override this policy.
createdAtstringyesTimestamp when the policy was created.
datastringnoPolicy data as a JSON string. Structure depends on policy_type.
environmentGroupsnumber[]noList of environment group IDs to which the policy applies.
environmentTypestringnoEnvironment type for the policy (kubernetes, docker, podman, swarm).
namestringnoName of the policy.
policyIdstringno
policyTypestringnoPolicy type (e.g. rbac-k8s, security-docker).
updatedAtstringyesTimestamp when the policy was last updated.