SecurityContextDefinition Class

The security context for the container.

Inheritance
azure.mgmt.containerinstance._serialization.Model
SecurityContextDefinition

Constructor

SecurityContextDefinition(*, privileged: bool | None = None, allow_privilege_escalation: bool | None = None, capabilities: _models.SecurityContextCapabilitiesDefinition | None = None, run_as_group: int | None = None, run_as_user: int | None = None, seccomp_profile: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
privileged

The flag to determine if the container permissions is elevated to Privileged.

allow_privilege_escalation

A boolean value indicating whether the init process can elevate its privileges.

capabilities

The capabilities to add or drop from a container.

run_as_group
int

Sets the User GID for the container.

run_as_user
int

Sets the User UID for the container.

seccomp_profile
str

a base64 encoded string containing the contents of the JSON in the seccomp profile.

Variables

Name Description
privileged

The flag to determine if the container permissions is elevated to Privileged.

allow_privilege_escalation

A boolean value indicating whether the init process can elevate its privileges.

capabilities

The capabilities to add or drop from a container.

run_as_group
int

Sets the User GID for the container.

run_as_user
int

Sets the User UID for the container.

seccomp_profile
str

a base64 encoded string containing the contents of the JSON in the seccomp profile.