Show / Hide Table of Contents

Class SecurityContext

Cloud Run fully managed: not supported

Cloud Run for Anthos: supported

SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.

Inheritance
System.Object
SecurityContext
Implements
IDirectResponseSchema
Namespace: Google.Apis.CloudRun.v1.Data
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class SecurityContext : object, IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

RunAsUser

(Optional)

Cloud Run fully managed: not supported

Cloud Run for Anthos: supported

The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.

Declaration
public virtual Nullable<int> RunAsUser { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Implements

IDirectResponseSchema
Back to top