SecurityContextDefinition Class
The security context for the container.
- Inheritance
-
azure.mgmt.containerinstance._serialization.ModelSecurityContextDefinition
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
|
Sets the User GID for the container. |
run_as_user
|
Sets the User UID for the container. |
seccomp_profile
|
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
|
Sets the User GID for the container. |
run_as_user
|
Sets the User UID for the container. |
seccomp_profile
|
a base64 encoded string containing the contents of the JSON in the seccomp profile. |
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for