Share via


ContainerSecurityContextDefinition Class

Definition

The security context for the container.

public class ContainerSecurityContextDefinition : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition>
public class ContainerSecurityContextDefinition
type ContainerSecurityContextDefinition = class
    interface IJsonModel<ContainerSecurityContextDefinition>
    interface IPersistableModel<ContainerSecurityContextDefinition>
type ContainerSecurityContextDefinition = class
Public Class ContainerSecurityContextDefinition
Implements IJsonModel(Of ContainerSecurityContextDefinition), IPersistableModel(Of ContainerSecurityContextDefinition)
Public Class ContainerSecurityContextDefinition
Inheritance
ContainerSecurityContextDefinition
Implements

Constructors

ContainerSecurityContextDefinition()

Initializes a new instance of ContainerSecurityContextDefinition.

Properties

AllowPrivilegeEscalation

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

Capabilities

The capabilities to add or drop from a container.

IsPrivileged

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.

Explicit Interface Implementations

IJsonModel<ContainerSecurityContextDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ContainerSecurityContextDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ContainerSecurityContextDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ContainerSecurityContextDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ContainerSecurityContextDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to