CreateLinuxContainerInstanceSecurityContextDetails¶
-
class
oci.container_instances.models.CreateLinuxContainerInstanceSecurityContextDetails(**kwargs)¶ Bases:
oci.container_instances.models.create_container_instance_security_context_details.CreateContainerInstanceSecurityContextDetailsSecurity context for all containers in a Linux container instance.
Attributes
FS_GROUP_CHANGE_POLICY_ALWAYSA constant which can be used with the fs_group_change_policy property of a CreateLinuxContainerInstanceSecurityContextDetails. FS_GROUP_CHANGE_POLICY_ON_ROOT_MISMATCHA constant which can be used with the fs_group_change_policy property of a CreateLinuxContainerInstanceSecurityContextDetails. fs_groupGets the fs_group of this CreateLinuxContainerInstanceSecurityContextDetails. fs_group_change_policyGets the fs_group_change_policy of this CreateLinuxContainerInstanceSecurityContextDetails. security_context_typeGets the security_context_type of this CreateContainerInstanceSecurityContextDetails. Methods
__init__(**kwargs)Initializes a new CreateLinuxContainerInstanceSecurityContextDetails object with values from keyword arguments. get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
FS_GROUP_CHANGE_POLICY_ALWAYS= 'ALWAYS'¶ A constant which can be used with the fs_group_change_policy property of a CreateLinuxContainerInstanceSecurityContextDetails. This constant has a value of “ALWAYS”
-
FS_GROUP_CHANGE_POLICY_ON_ROOT_MISMATCH= 'ON_ROOT_MISMATCH'¶ A constant which can be used with the fs_group_change_policy property of a CreateLinuxContainerInstanceSecurityContextDetails. This constant has a value of “ON_ROOT_MISMATCH”
-
__init__(**kwargs)¶ Initializes a new CreateLinuxContainerInstanceSecurityContextDetails object with values from keyword arguments. The default value of the
security_context_typeattribute of this class isLINUXand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - security_context_type (str) – The value to assign to the security_context_type property of this CreateLinuxContainerInstanceSecurityContextDetails.
- fs_group (int) – The value to assign to the fs_group property of this CreateLinuxContainerInstanceSecurityContextDetails.
- fs_group_change_policy (str) – The value to assign to the fs_group_change_policy property of this CreateLinuxContainerInstanceSecurityContextDetails. Allowed values for this property are: “ALWAYS”, “ON_ROOT_MISMATCH”
-
fs_group¶ Gets the fs_group of this CreateLinuxContainerInstanceSecurityContextDetails. A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR’d with rw-rw—-. If unset, the container instance will not modify the ownership and permissions of volumes.
Returns: The fs_group of this CreateLinuxContainerInstanceSecurityContextDetails. Return type: int
-
fs_group_change_policy¶ Gets the fs_group_change_policy of this CreateLinuxContainerInstanceSecurityContextDetails. Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used.
Allowed values for this property are: “ALWAYS”, “ON_ROOT_MISMATCH”
Returns: The fs_group_change_policy of this CreateLinuxContainerInstanceSecurityContextDetails. Return type: str
-
static
get_subtype(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
security_context_type¶ Gets the security_context_type of this CreateContainerInstanceSecurityContextDetails. The type of security context
Returns: The security_context_type of this CreateContainerInstanceSecurityContextDetails. Return type: str
-