Class Bastion
A bastion resource. 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.
Inherited Members
Namespace: Oci.BastionService.Models
Assembly: OCI.DotNetSDK.Bastion.dll
Syntax
public class Bastion
Properties
BastionType
Declaration
[Required(ErrorMessage = "BastionType is required.")]
[JsonProperty(PropertyName = "bastionType")]
public string BastionType { get; set; }
Property Value
Type | Description |
---|---|
string | The type of bastion. |
Remarks
Required
ClientCidrBlockAllowList
Declaration
[JsonProperty(PropertyName = "clientCidrBlockAllowList")]
public List<string> ClientCidrBlockAllowList { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion. |
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique identifier (OCID) of the compartment where the bastion is located. |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
DnsProxyStatus
Declaration
[JsonProperty(PropertyName = "dnsProxyStatus")]
[JsonConverter(typeof(ResponseEnumConverter))]
public BastionDnsProxyStatus? DnsProxyStatus { get; set; }
Property Value
Type | Description |
---|---|
BastionDnsProxyStatus? | The current dns proxy status of the bastion. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"} |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The unique identifier (OCID) of the bastion, which can't be changed after creation. |
Remarks
Required
LifecycleDetails
Declaration
[JsonProperty(PropertyName = "lifecycleDetails")]
public string LifecycleDetails { get; set; }
Property Value
Type | Description |
---|---|
string | A message describing the current state in more detail. |
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public BastionLifecycleState? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
BastionLifecycleState? | The current state of the bastion. |
Remarks
Required
MaxSessionTtlInSeconds
Declaration
[Required(ErrorMessage = "MaxSessionTtlInSeconds is required.")]
[JsonProperty(PropertyName = "maxSessionTtlInSeconds")]
public int? MaxSessionTtlInSeconds { get; set; }
Property Value
Type | Description |
---|---|
int? | The maximum amount of time that any session on the bastion can remain active. |
Remarks
Required
MaxSessionsAllowed
Declaration
[JsonProperty(PropertyName = "maxSessionsAllowed")]
public int? MaxSessionsAllowed { get; set; }
Property Value
Type | Description |
---|---|
int? | The maximum number of active sessions allowed on the bastion. |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the bastion, which can't be changed after creation. |
Remarks
Required
PhoneBookEntry
Declaration
[JsonProperty(PropertyName = "phoneBookEntry")]
public string PhoneBookEntry { get; set; }
Property Value
Type | Description |
---|---|
string | The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to |
PrivateEndpointIpAddress
Declaration
[JsonProperty(PropertyName = "privateEndpointIpAddress")]
public string PrivateEndpointIpAddress { get; set; }
Property Value
Type | Description |
---|---|
string | The private IP address of the created private endpoint. |
StaticJumpHostIpAddresses
Declaration
[JsonProperty(PropertyName = "staticJumpHostIpAddresses")]
public List<string> StaticJumpHostIpAddresses { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of IP addresses of the hosts that the bastion has access to. Not applicable to |
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}} |
TargetSubnetId
Declaration
[Required(ErrorMessage = "TargetSubnetId is required.")]
[JsonProperty(PropertyName = "targetSubnetId")]
public string TargetSubnetId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique identifier (OCID) of the subnet that the bastion connects to. |
Remarks
Required
TargetVcnId
Declaration
[Required(ErrorMessage = "TargetVcnId is required.")]
[JsonProperty(PropertyName = "targetVcnId")]
public string TargetVcnId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to. |
Remarks
Required
TimeCreated
Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The time the bastion was created. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z |
Remarks
Required
TimeUpdated
Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The time the bastion was updated. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z |