Class CreateBastionDetails
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.
Inherited Members
Namespace: Oci.BastionService.Models
Assembly: OCI.DotNetSDK.Bastion.dll
Syntax
public class CreateBastionDetails
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. Use |
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(StringEnumConverter))]
public BastionDnsProxyStatus? DnsProxyStatus { get; set; }
Property Value
Type | Description |
---|---|
BastionDnsProxyStatus? | The desired 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"} |
MaxSessionTtlInSeconds
Declaration
[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. |
Name
Declaration
[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. |
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 |
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 |
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