SecurityContextDefinition Class
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.
The security context for the container.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter))]
public class SecurityContextDefinition : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter))>]
type SecurityContextDefinition = class
interface ISecurityContextDefinition
interface IJsonSerializable
Public Class SecurityContextDefinition
Implements ISecurityContextDefinition
- Inheritance
-
SecurityContextDefinition
- Attributes
- Implements
Constructors
SecurityContextDefinition() |
Creates an new SecurityContextDefinition instance. |
Properties
AllowPrivilegeEscalation |
A boolean value indicating whether the init process can elevate its privileges |
CapabilityAdd |
The capabilities to add to the container. |
CapabilityDrop |
The capabilities to drop from the container. |
Privileged |
The flag to determine if the container permissions is elevated to Privileged. |
RunAsGroup |
Sets the User GID for the container. |
RunAsUser |
Sets the User UID for the container. |
SeccompProfile |
a base64 encoded string containing the contents of the JSON in the seccomp profile |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of SecurityContextDefinition. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of SecurityContextDefinition. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecurityContextDefinition. |
FromJsonString(String) |
Creates a new instance of SecurityContextDefinition, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of SecurityContextDefinition into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
ToString() |