CreateBastionDetails¶
-
class
oci.bastion.models.
CreateBastionDetails
(**kwargs)¶ Bases:
object
The configuration details for a new bastion. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet. A bastion resides in a public subnet and establishes the network infrastructure needed to connect a user to a target resource in a private subnet.
Attributes
DNS_PROXY_STATUS_DISABLED
A constant which can be used with the dns_proxy_status property of a CreateBastionDetails. DNS_PROXY_STATUS_ENABLED
A constant which can be used with the dns_proxy_status property of a CreateBastionDetails. bastion_type
[Required] Gets the bastion_type of this CreateBastionDetails. client_cidr_block_allow_list
Gets the client_cidr_block_allow_list of this CreateBastionDetails. compartment_id
[Required] Gets the compartment_id of this CreateBastionDetails. defined_tags
Gets the defined_tags of this CreateBastionDetails. dns_proxy_status
Gets the dns_proxy_status of this CreateBastionDetails. freeform_tags
Gets the freeform_tags of this CreateBastionDetails. max_session_ttl_in_seconds
Gets the max_session_ttl_in_seconds of this CreateBastionDetails. name
Gets the name of this CreateBastionDetails. phone_book_entry
Gets the phone_book_entry of this CreateBastionDetails. static_jump_host_ip_addresses
Gets the static_jump_host_ip_addresses of this CreateBastionDetails. target_subnet_id
[Required] Gets the target_subnet_id of this CreateBastionDetails. Methods
__init__
(**kwargs)Initializes a new CreateBastionDetails object with values from keyword arguments. -
DNS_PROXY_STATUS_DISABLED
= 'DISABLED'¶ A constant which can be used with the dns_proxy_status property of a CreateBastionDetails. This constant has a value of “DISABLED”
-
DNS_PROXY_STATUS_ENABLED
= 'ENABLED'¶ A constant which can be used with the dns_proxy_status property of a CreateBastionDetails. This constant has a value of “ENABLED”
-
__init__
(**kwargs)¶ Initializes a new CreateBastionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - bastion_type (str) – The value to assign to the bastion_type property of this CreateBastionDetails.
- name (str) – The value to assign to the name property of this CreateBastionDetails.
- compartment_id (str) – The value to assign to the compartment_id property of this CreateBastionDetails.
- target_subnet_id (str) – The value to assign to the target_subnet_id property of this CreateBastionDetails.
- phone_book_entry (str) – The value to assign to the phone_book_entry property of this CreateBastionDetails.
- static_jump_host_ip_addresses (list[str]) – The value to assign to the static_jump_host_ip_addresses property of this CreateBastionDetails.
- client_cidr_block_allow_list (list[str]) – The value to assign to the client_cidr_block_allow_list property of this CreateBastionDetails.
- max_session_ttl_in_seconds (int) – The value to assign to the max_session_ttl_in_seconds property of this CreateBastionDetails.
- dns_proxy_status (str) – The value to assign to the dns_proxy_status property of this CreateBastionDetails. Allowed values for this property are: “DISABLED”, “ENABLED”
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateBastionDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateBastionDetails.
-
bastion_type
¶ [Required] Gets the bastion_type of this CreateBastionDetails. The type of bastion. Use standard.
Returns: The bastion_type of this CreateBastionDetails. Return type: str
-
client_cidr_block_allow_list
¶ Gets the client_cidr_block_allow_list of this CreateBastionDetails. A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
Returns: The client_cidr_block_allow_list of this CreateBastionDetails. Return type: list[str]
-
compartment_id
¶ [Required] Gets the compartment_id of this CreateBastionDetails. The unique identifier (OCID) of the compartment where the bastion is located.
Returns: The compartment_id of this CreateBastionDetails. Return type: str
Gets the defined_tags of this CreateBastionDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this CreateBastionDetails. Return type: dict(str, dict(str, object))
-
dns_proxy_status
¶ Gets the dns_proxy_status of this CreateBastionDetails. The desired dns proxy status of the bastion.
Allowed values for this property are: “DISABLED”, “ENABLED”
Returns: The dns_proxy_status of this CreateBastionDetails. Return type: str
Gets the freeform_tags of this CreateBastionDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this CreateBastionDetails. Return type: dict(str, str)
-
max_session_ttl_in_seconds
¶ Gets the max_session_ttl_in_seconds of this CreateBastionDetails. The maximum amount of time that any session on the bastion can remain active.
Returns: The max_session_ttl_in_seconds of this CreateBastionDetails. Return type: int
-
name
¶ Gets the name of this CreateBastionDetails. The name of the bastion, which can’t be changed after creation.
Returns: The name of this CreateBastionDetails. Return type: str
-
phone_book_entry
¶ Gets the phone_book_entry of this CreateBastionDetails. The phonebook entry of the customer’s team, which can’t be changed after creation. Not applicable to standard bastions.
Returns: The phone_book_entry of this CreateBastionDetails. Return type: str
-
static_jump_host_ip_addresses
¶ Gets the static_jump_host_ip_addresses of this CreateBastionDetails. A list of IP addresses of the hosts that the bastion has access to. Not applicable to standard bastions.
Returns: The static_jump_host_ip_addresses of this CreateBastionDetails. Return type: list[str]
-
target_subnet_id
¶ [Required] Gets the target_subnet_id of this CreateBastionDetails. The unique identifier (OCID) of the subnet that the bastion connects to.
Returns: The target_subnet_id of this CreateBastionDetails. Return type: str
-