ManagedSshSessionTargetResourceDetails¶
- class oci.bastion.models.ManagedSshSessionTargetResourceDetails(**kwargs)¶
Bases:
TargetResourceDetailsDetails about a managed SSH session for a target resource.
Attributes:
A constant which can be used with the session_type property of a TargetResourceDetails.
A constant which can be used with the session_type property of a TargetResourceDetails.
A constant which can be used with the session_type property of a TargetResourceDetails.
[Required] Gets the session_type of this TargetResourceDetails.
[Required] Gets the target_resource_display_name of this ManagedSshSessionTargetResourceDetails.
[Required] Gets the target_resource_id of this ManagedSshSessionTargetResourceDetails.
[Required] Gets the target_resource_operating_system_user_name of this ManagedSshSessionTargetResourceDetails.
Gets the target_resource_port of this ManagedSshSessionTargetResourceDetails.
Gets the target_resource_private_ip_address of this ManagedSshSessionTargetResourceDetails.
Methods:
__init__(**kwargs)Initializes a new ManagedSshSessionTargetResourceDetails 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.
- SESSION_TYPE_DYNAMIC_PORT_FORWARDING = 'DYNAMIC_PORT_FORWARDING'¶
A constant which can be used with the session_type property of a TargetResourceDetails. This constant has a value of “DYNAMIC_PORT_FORWARDING”
- SESSION_TYPE_MANAGED_SSH = 'MANAGED_SSH'¶
A constant which can be used with the session_type property of a TargetResourceDetails. This constant has a value of “MANAGED_SSH”
- SESSION_TYPE_PORT_FORWARDING = 'PORT_FORWARDING'¶
A constant which can be used with the session_type property of a TargetResourceDetails. This constant has a value of “PORT_FORWARDING”
- __init__(**kwargs)¶
Initializes a new ManagedSshSessionTargetResourceDetails object with values from keyword arguments. The default value of the
session_typeattribute of this class isMANAGED_SSHand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
session_type (str) – The value to assign to the session_type property of this ManagedSshSessionTargetResourceDetails. Allowed values for this property are: “MANAGED_SSH”, “PORT_FORWARDING”, “DYNAMIC_PORT_FORWARDING”
target_resource_operating_system_user_name (str) – The value to assign to the target_resource_operating_system_user_name property of this ManagedSshSessionTargetResourceDetails.
target_resource_id (str) – The value to assign to the target_resource_id property of this ManagedSshSessionTargetResourceDetails.
target_resource_private_ip_address (str) – The value to assign to the target_resource_private_ip_address property of this ManagedSshSessionTargetResourceDetails.
target_resource_display_name (str) – The value to assign to the target_resource_display_name property of this ManagedSshSessionTargetResourceDetails.
target_resource_port (int) – The value to assign to the target_resource_port property of this ManagedSshSessionTargetResourceDetails.
- 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.
- property session_type¶
[Required] Gets the session_type of this TargetResourceDetails. The Bastion service recognizes three types of sessions, managed SSH sessions, SSH port forwarding sessions, and Dynamic SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running.
Allowed values for this property are: “MANAGED_SSH”, “PORT_FORWARDING”, “DYNAMIC_PORT_FORWARDING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The session_type of this TargetResourceDetails.
- Return type
str
- property target_resource_display_name¶
[Required] Gets the target_resource_display_name of this ManagedSshSessionTargetResourceDetails. The display name of the target Compute instance that the session connects to.
- Returns
The target_resource_display_name of this ManagedSshSessionTargetResourceDetails.
- Return type
str
- property target_resource_id¶
[Required] Gets the target_resource_id of this ManagedSshSessionTargetResourceDetails. The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
- Returns
The target_resource_id of this ManagedSshSessionTargetResourceDetails.
- Return type
str
- property target_resource_operating_system_user_name¶
[Required] Gets the target_resource_operating_system_user_name of this ManagedSshSessionTargetResourceDetails. The name of the user on the target resource operating system that the session uses for the connection.
- Returns
The target_resource_operating_system_user_name of this ManagedSshSessionTargetResourceDetails.
- Return type
str
- property target_resource_port¶
Gets the target_resource_port of this ManagedSshSessionTargetResourceDetails. The port number to connect to on the target resource.
- Returns
The target_resource_port of this ManagedSshSessionTargetResourceDetails.
- Return type
int
- property target_resource_private_ip_address¶
Gets the target_resource_private_ip_address of this ManagedSshSessionTargetResourceDetails. The private IP address of the target resource that the session connects to.
- Returns
The target_resource_private_ip_address of this ManagedSshSessionTargetResourceDetails.
- Return type
str