Class CreateSessionDetails
The configuration details for a new bastion session. A session lets authorized users connect to a target resource for a predetermined amount of time. The Bastion service recognizes two types of sessions, managed SSH sessions and SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running.
Inherited Members
Namespace: Oci.BastionService.Models
Assembly: OCI.DotNetSDK.Bastion.dll
Syntax
public class CreateSessionDetails
Properties
BastionId
Declaration
[Required(ErrorMessage = "BastionId is required.")]
[JsonProperty(PropertyName = "bastionId")]
public string BastionId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique identifier (OCID) of the bastion on which to create this session. |
Remarks
Required
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the session. |
KeyDetails
Declaration
[Required(ErrorMessage = "KeyDetails is required.")]
[JsonProperty(PropertyName = "keyDetails")]
public PublicKeyDetails KeyDetails { get; set; }
Property Value
Type | Description |
---|---|
PublicKeyDetails |
Remarks
Required
KeyType
Declaration
[JsonProperty(PropertyName = "keyType")]
[JsonConverter(typeof(StringEnumConverter))]
public CreateSessionDetails.KeyTypeEnum? KeyType { get; set; }
Property Value
Type | Description |
---|---|
CreateSessionDetails.KeyTypeEnum? | The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format. |
SessionTtlInSeconds
Declaration
[JsonProperty(PropertyName = "sessionTtlInSeconds")]
public int? SessionTtlInSeconds { get; set; }
Property Value
Type | Description |
---|---|
int? | The amount of time the session can remain active. |
TargetResourceDetails
Declaration
[Required(ErrorMessage = "TargetResourceDetails is required.")]
[JsonProperty(PropertyName = "targetResourceDetails")]
public CreateSessionTargetResourceDetails TargetResourceDetails { get; set; }
Property Value
Type | Description |
---|---|
CreateSessionTargetResourceDetails |
Remarks
Required