你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ISecurityContextDefinition Interface

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter))]
public interface ISecurityContextDefinition : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.SecurityContextDefinitionTypeConverter))>]
type ISecurityContextDefinition = interface
    interface IJsonSerializable
Public Interface ISecurityContextDefinition
Implements IJsonSerializable
Derived
Attributes
Implements

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

ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to