ArmContainerInstanceModelFactory.ContainerSecurityContextDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition ContainerSecurityContextDefinition(bool? isPrivileged = default, bool? allowPrivilegeEscalation = default, Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextCapabilitiesDefinition capabilities = default, int? runAsGroup = default, int? runAsUser = default, string seccompProfile = default);
static member ContainerSecurityContextDefinition : Nullable<bool> * Nullable<bool> * Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextCapabilitiesDefinition * Nullable<int> * Nullable<int> * string -> Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition
Public Shared Function ContainerSecurityContextDefinition (Optional isPrivileged As Nullable(Of Boolean) = Nothing, Optional allowPrivilegeEscalation As Nullable(Of Boolean) = Nothing, Optional capabilities As ContainerSecurityContextCapabilitiesDefinition = Nothing, Optional runAsGroup As Nullable(Of Integer) = Nothing, Optional runAsUser As Nullable(Of Integer) = Nothing, Optional seccompProfile As String = Nothing) As ContainerSecurityContextDefinition
Parameters
The flag to determine if the container permissions is elevated to Privileged.
A boolean value indicating whether the init process can elevate its privileges.
- capabilities
- ContainerSecurityContextCapabilitiesDefinition
The capabilities to add or drop from a container.
- seccompProfile
- String
a base64 encoded string containing the contents of the JSON in the seccomp profile.
Returns
A new ContainerSecurityContextDefinition instance for mocking.