SecurityContext¶
- class oci.batch.models.SecurityContext(**kwargs)¶
Bases:
objectSecurity context for container runtime configuration.
See also docs.
Methods:
__init__(**kwargs)Initializes a new SecurityContext object with values from keyword arguments.
Attributes:
Gets the fs_group of this SecurityContext.
Gets the run_as_group of this SecurityContext.
Gets the run_as_user of this SecurityContext.
- __init__(**kwargs)¶
Initializes a new SecurityContext object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
run_as_user (int) – The value to assign to the run_as_user property of this SecurityContext.
run_as_group (int) – The value to assign to the run_as_group property of this SecurityContext.
fs_group (int) – The value to assign to the fs_group property of this SecurityContext.
- property fs_group¶
Gets the fs_group of this SecurityContext. A special supplemental group ID that applies to all containers in a pod.
- Returns
The fs_group of this SecurityContext.
- Return type
int
- property run_as_group¶
Gets the run_as_group of this SecurityContext. Group ID for running processes inside the container.
- Returns
The run_as_group of this SecurityContext.
- Return type
int
- property run_as_user¶
Gets the run_as_user of this SecurityContext. User ID for running processes inside the container.
- Returns
The run_as_user of this SecurityContext.
- Return type
int