bastion

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bastion

type Bastion struct {
	pulumi.CustomResourceState

	// The type of bastion. Use `standard`.
	BastionType pulumi.StringOutput `pulumi:"bastionType"`
	// (Updatable) A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
	ClientCidrBlockAllowLists pulumi.StringArrayOutput `pulumi:"clientCidrBlockAllowLists"`
	// (Updatable) The unique identifier (OCID) of the compartment where the bastion is located.
	CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
	DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
	// Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`
	DnsProxyStatus pulumi.StringOutput `pulumi:"dnsProxyStatus"`
	// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
	FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
	// A message describing the current state in more detail.
	LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"`
	// (Updatable) The maximum amount of time that any session on the bastion can remain active.
	MaxSessionTtlInSeconds pulumi.IntOutput `pulumi:"maxSessionTtlInSeconds"`
	// The maximum number of active sessions allowed on the bastion.
	MaxSessionsAllowed pulumi.IntOutput `pulumi:"maxSessionsAllowed"`
	// The name of the bastion, which can't be changed after creation.
	Name pulumi.StringOutput `pulumi:"name"`
	// The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.
	PhoneBookEntry pulumi.StringOutput `pulumi:"phoneBookEntry"`
	// The private IP address of the created private endpoint.
	PrivateEndpointIpAddress pulumi.StringOutput `pulumi:"privateEndpointIpAddress"`
	// The current state of the bastion.
	State pulumi.StringOutput `pulumi:"state"`
	// (Updatable) A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
	StaticJumpHostIpAddresses pulumi.StringArrayOutput `pulumi:"staticJumpHostIpAddresses"`
	// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags pulumi.MapOutput `pulumi:"systemTags"`
	// The unique identifier (OCID) of the subnet that the bastion connects to.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	TargetSubnetId pulumi.StringOutput `pulumi:"targetSubnetId"`
	// The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
	TargetVcnId pulumi.StringOutput `pulumi:"targetVcnId"`
	// The time the bastion was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// The time the bastion was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
}

This resource provides the Bastion resource in Oracle Cloud Infrastructure Bastion service.

Creates 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.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Bastion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Bastion.NewBastion(ctx, "test_bastion", &Bastion.BastionArgs{
			BastionType:               pulumi.Any(bastionBastionType),
			CompartmentId:             pulumi.Any(compartmentId),
			TargetSubnetId:            pulumi.Any(testSubnet.Id),
			ClientCidrBlockAllowLists: pulumi.Any(bastionClientCidrBlockAllowList),
			DefinedTags: pulumi.Map{
				"foo-namespace.bar-key": pulumi.Any("value"),
			},
			DnsProxyStatus: pulumi.Any(bastionDnsProxyStatus),
			FreeformTags: pulumi.Map{
				"bar-key": pulumi.Any("value"),
			},
			MaxSessionTtlInSeconds:    pulumi.Any(bastionMaxSessionTtlInSeconds),
			Name:                      pulumi.Any(bastionName),
			PhoneBookEntry:            pulumi.Any(bastionPhoneBookEntry),
			StaticJumpHostIpAddresses: pulumi.Any(bastionStaticJumpHostIpAddresses),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Bastions can be imported using the `id`, e.g.

```sh $ pulumi import oci:Bastion/bastion:Bastion test_bastion "id" ```

func GetBastion

func GetBastion(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BastionState, opts ...pulumi.ResourceOption) (*Bastion, error)

GetBastion gets an existing Bastion resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewBastion

func NewBastion(ctx *pulumi.Context,
	name string, args *BastionArgs, opts ...pulumi.ResourceOption) (*Bastion, error)

NewBastion registers a new resource with the given unique name, arguments, and options.

func (*Bastion) ElementType

func (*Bastion) ElementType() reflect.Type

func (*Bastion) ToBastionOutput

func (i *Bastion) ToBastionOutput() BastionOutput

func (*Bastion) ToBastionOutputWithContext

func (i *Bastion) ToBastionOutputWithContext(ctx context.Context) BastionOutput

type BastionArgs

type BastionArgs struct {
	// The type of bastion. Use `standard`.
	BastionType pulumi.StringInput
	// (Updatable) A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
	ClientCidrBlockAllowLists pulumi.StringArrayInput
	// (Updatable) The unique identifier (OCID) of the compartment where the bastion is located.
	CompartmentId pulumi.StringInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
	DefinedTags pulumi.MapInput
	// Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`
	DnsProxyStatus pulumi.StringPtrInput
	// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
	FreeformTags pulumi.MapInput
	// (Updatable) The maximum amount of time that any session on the bastion can remain active.
	MaxSessionTtlInSeconds pulumi.IntPtrInput
	// The name of the bastion, which can't be changed after creation.
	Name pulumi.StringPtrInput
	// The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.
	PhoneBookEntry pulumi.StringPtrInput
	// (Updatable) A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
	StaticJumpHostIpAddresses pulumi.StringArrayInput
	// The unique identifier (OCID) of the subnet that the bastion connects to.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	TargetSubnetId pulumi.StringInput
}

The set of arguments for constructing a Bastion resource.

func (BastionArgs) ElementType

func (BastionArgs) ElementType() reflect.Type

type BastionArray

type BastionArray []BastionInput

func (BastionArray) ElementType

func (BastionArray) ElementType() reflect.Type

func (BastionArray) ToBastionArrayOutput

func (i BastionArray) ToBastionArrayOutput() BastionArrayOutput

func (BastionArray) ToBastionArrayOutputWithContext

func (i BastionArray) ToBastionArrayOutputWithContext(ctx context.Context) BastionArrayOutput

type BastionArrayInput

type BastionArrayInput interface {
	pulumi.Input

	ToBastionArrayOutput() BastionArrayOutput
	ToBastionArrayOutputWithContext(context.Context) BastionArrayOutput
}

BastionArrayInput is an input type that accepts BastionArray and BastionArrayOutput values. You can construct a concrete instance of `BastionArrayInput` via:

BastionArray{ BastionArgs{...} }

type BastionArrayOutput

type BastionArrayOutput struct{ *pulumi.OutputState }

func (BastionArrayOutput) ElementType

func (BastionArrayOutput) ElementType() reflect.Type

func (BastionArrayOutput) Index

func (BastionArrayOutput) ToBastionArrayOutput

func (o BastionArrayOutput) ToBastionArrayOutput() BastionArrayOutput

func (BastionArrayOutput) ToBastionArrayOutputWithContext

func (o BastionArrayOutput) ToBastionArrayOutputWithContext(ctx context.Context) BastionArrayOutput

type BastionInput

type BastionInput interface {
	pulumi.Input

	ToBastionOutput() BastionOutput
	ToBastionOutputWithContext(ctx context.Context) BastionOutput
}

type BastionMap

type BastionMap map[string]BastionInput

func (BastionMap) ElementType

func (BastionMap) ElementType() reflect.Type

func (BastionMap) ToBastionMapOutput

func (i BastionMap) ToBastionMapOutput() BastionMapOutput

func (BastionMap) ToBastionMapOutputWithContext

func (i BastionMap) ToBastionMapOutputWithContext(ctx context.Context) BastionMapOutput

type BastionMapInput

type BastionMapInput interface {
	pulumi.Input

	ToBastionMapOutput() BastionMapOutput
	ToBastionMapOutputWithContext(context.Context) BastionMapOutput
}

BastionMapInput is an input type that accepts BastionMap and BastionMapOutput values. You can construct a concrete instance of `BastionMapInput` via:

BastionMap{ "key": BastionArgs{...} }

type BastionMapOutput

type BastionMapOutput struct{ *pulumi.OutputState }

func (BastionMapOutput) ElementType

func (BastionMapOutput) ElementType() reflect.Type

func (BastionMapOutput) MapIndex

func (BastionMapOutput) ToBastionMapOutput

func (o BastionMapOutput) ToBastionMapOutput() BastionMapOutput

func (BastionMapOutput) ToBastionMapOutputWithContext

func (o BastionMapOutput) ToBastionMapOutputWithContext(ctx context.Context) BastionMapOutput

type BastionOutput

type BastionOutput struct{ *pulumi.OutputState }

func (BastionOutput) BastionType added in v0.4.0

func (o BastionOutput) BastionType() pulumi.StringOutput

The type of bastion. Use `standard`.

func (BastionOutput) ClientCidrBlockAllowLists added in v0.4.0

func (o BastionOutput) ClientCidrBlockAllowLists() pulumi.StringArrayOutput

(Updatable) A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.

func (BastionOutput) CompartmentId added in v0.4.0

func (o BastionOutput) CompartmentId() pulumi.StringOutput

(Updatable) The unique identifier (OCID) of the compartment where the bastion is located.

func (BastionOutput) DefinedTags added in v0.4.0

func (o BastionOutput) DefinedTags() pulumi.MapOutput

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`

func (BastionOutput) DnsProxyStatus added in v0.6.0

func (o BastionOutput) DnsProxyStatus() pulumi.StringOutput

Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`

func (BastionOutput) ElementType

func (BastionOutput) ElementType() reflect.Type

func (BastionOutput) FreeformTags added in v0.4.0

func (o BastionOutput) FreeformTags() pulumi.MapOutput

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`

func (BastionOutput) LifecycleDetails added in v0.4.0

func (o BastionOutput) LifecycleDetails() pulumi.StringOutput

A message describing the current state in more detail.

func (BastionOutput) MaxSessionTtlInSeconds added in v0.4.0

func (o BastionOutput) MaxSessionTtlInSeconds() pulumi.IntOutput

(Updatable) The maximum amount of time that any session on the bastion can remain active.

func (BastionOutput) MaxSessionsAllowed added in v0.4.0

func (o BastionOutput) MaxSessionsAllowed() pulumi.IntOutput

The maximum number of active sessions allowed on the bastion.

func (BastionOutput) Name added in v0.4.0

The name of the bastion, which can't be changed after creation.

func (BastionOutput) PhoneBookEntry added in v0.4.0

func (o BastionOutput) PhoneBookEntry() pulumi.StringOutput

The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.

func (BastionOutput) PrivateEndpointIpAddress added in v0.4.0

func (o BastionOutput) PrivateEndpointIpAddress() pulumi.StringOutput

The private IP address of the created private endpoint.

func (BastionOutput) State added in v0.4.0

func (o BastionOutput) State() pulumi.StringOutput

The current state of the bastion.

func (BastionOutput) StaticJumpHostIpAddresses added in v0.4.0

func (o BastionOutput) StaticJumpHostIpAddresses() pulumi.StringArrayOutput

(Updatable) A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.

func (BastionOutput) SystemTags added in v0.4.0

func (o BastionOutput) SystemTags() pulumi.MapOutput

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`

func (BastionOutput) TargetSubnetId added in v0.4.0

func (o BastionOutput) TargetSubnetId() pulumi.StringOutput

The unique identifier (OCID) of the subnet that the bastion connects to.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (BastionOutput) TargetVcnId added in v0.4.0

func (o BastionOutput) TargetVcnId() pulumi.StringOutput

The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.

func (BastionOutput) TimeCreated added in v0.4.0

func (o BastionOutput) TimeCreated() pulumi.StringOutput

The time the bastion was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (BastionOutput) TimeUpdated added in v0.4.0

func (o BastionOutput) TimeUpdated() pulumi.StringOutput

The time the bastion was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (BastionOutput) ToBastionOutput

func (o BastionOutput) ToBastionOutput() BastionOutput

func (BastionOutput) ToBastionOutputWithContext

func (o BastionOutput) ToBastionOutputWithContext(ctx context.Context) BastionOutput

type BastionState

type BastionState struct {
	// The type of bastion. Use `standard`.
	BastionType pulumi.StringPtrInput
	// (Updatable) A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
	ClientCidrBlockAllowLists pulumi.StringArrayInput
	// (Updatable) The unique identifier (OCID) of the compartment where the bastion is located.
	CompartmentId pulumi.StringPtrInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
	DefinedTags pulumi.MapInput
	// Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`
	DnsProxyStatus pulumi.StringPtrInput
	// (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
	FreeformTags pulumi.MapInput
	// A message describing the current state in more detail.
	LifecycleDetails pulumi.StringPtrInput
	// (Updatable) The maximum amount of time that any session on the bastion can remain active.
	MaxSessionTtlInSeconds pulumi.IntPtrInput
	// The maximum number of active sessions allowed on the bastion.
	MaxSessionsAllowed pulumi.IntPtrInput
	// The name of the bastion, which can't be changed after creation.
	Name pulumi.StringPtrInput
	// The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.
	PhoneBookEntry pulumi.StringPtrInput
	// The private IP address of the created private endpoint.
	PrivateEndpointIpAddress pulumi.StringPtrInput
	// The current state of the bastion.
	State pulumi.StringPtrInput
	// (Updatable) A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
	StaticJumpHostIpAddresses pulumi.StringArrayInput
	// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags pulumi.MapInput
	// The unique identifier (OCID) of the subnet that the bastion connects to.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	TargetSubnetId pulumi.StringPtrInput
	// The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
	TargetVcnId pulumi.StringPtrInput
	// The time the bastion was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated pulumi.StringPtrInput
	// The time the bastion was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated pulumi.StringPtrInput
}

func (BastionState) ElementType

func (BastionState) ElementType() reflect.Type

type GetBastionsArgs

type GetBastionsArgs struct {
	// The unique identifier (OCID) of the bastion in which to list resources.
	BastionId *string `pulumi:"bastionId"`
	// A filter to return only resources their lifecycleState matches the given lifecycleState.
	BastionLifecycleState *string `pulumi:"bastionLifecycleState"`
	// The unique identifier (OCID) of the compartment in which to list resources.
	CompartmentId string              `pulumi:"compartmentId"`
	Filters       []GetBastionsFilter `pulumi:"filters"`
	// A filter to return only resources that match the entire name given.
	Name *string `pulumi:"name"`
}

A collection of arguments for invoking getBastions.

type GetBastionsBastion

type GetBastionsBastion struct {
	// The type of bastion.
	BastionType string `pulumi:"bastionType"`
	// A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
	ClientCidrBlockAllowLists []string `pulumi:"clientCidrBlockAllowLists"`
	// The unique identifier (OCID) of the compartment in which to list resources.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`
	DnsProxyStatus string `pulumi:"dnsProxyStatus"`
	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The unique identifier (OCID) of the bastion, which can't be changed after creation.
	Id string `pulumi:"id"`
	// A message describing the current state in more detail.
	LifecycleDetails string `pulumi:"lifecycleDetails"`
	// The maximum amount of time that any session on the bastion can remain active.
	MaxSessionTtlInSeconds int `pulumi:"maxSessionTtlInSeconds"`
	// The maximum number of active sessions allowed on the bastion.
	MaxSessionsAllowed int `pulumi:"maxSessionsAllowed"`
	// A filter to return only resources that match the entire name given.
	Name string `pulumi:"name"`
	// The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.
	PhoneBookEntry string `pulumi:"phoneBookEntry"`
	// The private IP address of the created private endpoint.
	PrivateEndpointIpAddress string `pulumi:"privateEndpointIpAddress"`
	// The current state of the bastion.
	State string `pulumi:"state"`
	// A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
	StaticJumpHostIpAddresses []string `pulumi:"staticJumpHostIpAddresses"`
	// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags map[string]interface{} `pulumi:"systemTags"`
	// The unique identifier (OCID) of the subnet that the bastion connects to.
	TargetSubnetId string `pulumi:"targetSubnetId"`
	// The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
	TargetVcnId string `pulumi:"targetVcnId"`
	// The time the bastion was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated string `pulumi:"timeCreated"`
	// The time the bastion was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated string `pulumi:"timeUpdated"`
}

type GetBastionsBastionArgs

type GetBastionsBastionArgs struct {
	// The type of bastion.
	BastionType pulumi.StringInput `pulumi:"bastionType"`
	// A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
	ClientCidrBlockAllowLists pulumi.StringArrayInput `pulumi:"clientCidrBlockAllowLists"`
	// The unique identifier (OCID) of the compartment in which to list resources.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
	DefinedTags pulumi.MapInput `pulumi:"definedTags"`
	// Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`
	DnsProxyStatus pulumi.StringInput `pulumi:"dnsProxyStatus"`
	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
	FreeformTags pulumi.MapInput `pulumi:"freeformTags"`
	// The unique identifier (OCID) of the bastion, which can't be changed after creation.
	Id pulumi.StringInput `pulumi:"id"`
	// A message describing the current state in more detail.
	LifecycleDetails pulumi.StringInput `pulumi:"lifecycleDetails"`
	// The maximum amount of time that any session on the bastion can remain active.
	MaxSessionTtlInSeconds pulumi.IntInput `pulumi:"maxSessionTtlInSeconds"`
	// The maximum number of active sessions allowed on the bastion.
	MaxSessionsAllowed pulumi.IntInput `pulumi:"maxSessionsAllowed"`
	// A filter to return only resources that match the entire name given.
	Name pulumi.StringInput `pulumi:"name"`
	// The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.
	PhoneBookEntry pulumi.StringInput `pulumi:"phoneBookEntry"`
	// The private IP address of the created private endpoint.
	PrivateEndpointIpAddress pulumi.StringInput `pulumi:"privateEndpointIpAddress"`
	// The current state of the bastion.
	State pulumi.StringInput `pulumi:"state"`
	// A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
	StaticJumpHostIpAddresses pulumi.StringArrayInput `pulumi:"staticJumpHostIpAddresses"`
	// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags pulumi.MapInput `pulumi:"systemTags"`
	// The unique identifier (OCID) of the subnet that the bastion connects to.
	TargetSubnetId pulumi.StringInput `pulumi:"targetSubnetId"`
	// The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
	TargetVcnId pulumi.StringInput `pulumi:"targetVcnId"`
	// The time the bastion was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated pulumi.StringInput `pulumi:"timeCreated"`
	// The time the bastion was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated pulumi.StringInput `pulumi:"timeUpdated"`
}

func (GetBastionsBastionArgs) ElementType

func (GetBastionsBastionArgs) ElementType() reflect.Type

func (GetBastionsBastionArgs) ToGetBastionsBastionOutput

func (i GetBastionsBastionArgs) ToGetBastionsBastionOutput() GetBastionsBastionOutput

func (GetBastionsBastionArgs) ToGetBastionsBastionOutputWithContext

func (i GetBastionsBastionArgs) ToGetBastionsBastionOutputWithContext(ctx context.Context) GetBastionsBastionOutput

type GetBastionsBastionArray

type GetBastionsBastionArray []GetBastionsBastionInput

func (GetBastionsBastionArray) ElementType

func (GetBastionsBastionArray) ElementType() reflect.Type

func (GetBastionsBastionArray) ToGetBastionsBastionArrayOutput

func (i GetBastionsBastionArray) ToGetBastionsBastionArrayOutput() GetBastionsBastionArrayOutput

func (GetBastionsBastionArray) ToGetBastionsBastionArrayOutputWithContext

func (i GetBastionsBastionArray) ToGetBastionsBastionArrayOutputWithContext(ctx context.Context) GetBastionsBastionArrayOutput

type GetBastionsBastionArrayInput

type GetBastionsBastionArrayInput interface {
	pulumi.Input

	ToGetBastionsBastionArrayOutput() GetBastionsBastionArrayOutput
	ToGetBastionsBastionArrayOutputWithContext(context.Context) GetBastionsBastionArrayOutput
}

GetBastionsBastionArrayInput is an input type that accepts GetBastionsBastionArray and GetBastionsBastionArrayOutput values. You can construct a concrete instance of `GetBastionsBastionArrayInput` via:

GetBastionsBastionArray{ GetBastionsBastionArgs{...} }

type GetBastionsBastionArrayOutput

type GetBastionsBastionArrayOutput struct{ *pulumi.OutputState }

func (GetBastionsBastionArrayOutput) ElementType

func (GetBastionsBastionArrayOutput) Index

func (GetBastionsBastionArrayOutput) ToGetBastionsBastionArrayOutput

func (o GetBastionsBastionArrayOutput) ToGetBastionsBastionArrayOutput() GetBastionsBastionArrayOutput

func (GetBastionsBastionArrayOutput) ToGetBastionsBastionArrayOutputWithContext

func (o GetBastionsBastionArrayOutput) ToGetBastionsBastionArrayOutputWithContext(ctx context.Context) GetBastionsBastionArrayOutput

type GetBastionsBastionInput

type GetBastionsBastionInput interface {
	pulumi.Input

	ToGetBastionsBastionOutput() GetBastionsBastionOutput
	ToGetBastionsBastionOutputWithContext(context.Context) GetBastionsBastionOutput
}

GetBastionsBastionInput is an input type that accepts GetBastionsBastionArgs and GetBastionsBastionOutput values. You can construct a concrete instance of `GetBastionsBastionInput` via:

GetBastionsBastionArgs{...}

type GetBastionsBastionOutput

type GetBastionsBastionOutput struct{ *pulumi.OutputState }

func (GetBastionsBastionOutput) BastionType

The type of bastion.

func (GetBastionsBastionOutput) ClientCidrBlockAllowLists

func (o GetBastionsBastionOutput) ClientCidrBlockAllowLists() pulumi.StringArrayOutput

A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.

func (GetBastionsBastionOutput) CompartmentId

func (o GetBastionsBastionOutput) CompartmentId() pulumi.StringOutput

The unique identifier (OCID) of the compartment in which to list resources.

func (GetBastionsBastionOutput) DefinedTags

func (o GetBastionsBastionOutput) DefinedTags() pulumi.MapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`

func (GetBastionsBastionOutput) DnsProxyStatus added in v0.6.0

func (o GetBastionsBastionOutput) DnsProxyStatus() pulumi.StringOutput

Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`

func (GetBastionsBastionOutput) ElementType

func (GetBastionsBastionOutput) ElementType() reflect.Type

func (GetBastionsBastionOutput) FreeformTags

func (o GetBastionsBastionOutput) FreeformTags() pulumi.MapOutput

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`

func (GetBastionsBastionOutput) Id

The unique identifier (OCID) of the bastion, which can't be changed after creation.

func (GetBastionsBastionOutput) LifecycleDetails

func (o GetBastionsBastionOutput) LifecycleDetails() pulumi.StringOutput

A message describing the current state in more detail.

func (GetBastionsBastionOutput) MaxSessionTtlInSeconds

func (o GetBastionsBastionOutput) MaxSessionTtlInSeconds() pulumi.IntOutput

The maximum amount of time that any session on the bastion can remain active.

func (GetBastionsBastionOutput) MaxSessionsAllowed

func (o GetBastionsBastionOutput) MaxSessionsAllowed() pulumi.IntOutput

The maximum number of active sessions allowed on the bastion.

func (GetBastionsBastionOutput) Name

A filter to return only resources that match the entire name given.

func (GetBastionsBastionOutput) PhoneBookEntry

func (o GetBastionsBastionOutput) PhoneBookEntry() pulumi.StringOutput

The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.

func (GetBastionsBastionOutput) PrivateEndpointIpAddress

func (o GetBastionsBastionOutput) PrivateEndpointIpAddress() pulumi.StringOutput

The private IP address of the created private endpoint.

func (GetBastionsBastionOutput) State

The current state of the bastion.

func (GetBastionsBastionOutput) StaticJumpHostIpAddresses

func (o GetBastionsBastionOutput) StaticJumpHostIpAddresses() pulumi.StringArrayOutput

A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.

func (GetBastionsBastionOutput) SystemTags

func (o GetBastionsBastionOutput) SystemTags() pulumi.MapOutput

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`

func (GetBastionsBastionOutput) TargetSubnetId

func (o GetBastionsBastionOutput) TargetSubnetId() pulumi.StringOutput

The unique identifier (OCID) of the subnet that the bastion connects to.

func (GetBastionsBastionOutput) TargetVcnId

The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.

func (GetBastionsBastionOutput) TimeCreated

The time the bastion was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (GetBastionsBastionOutput) TimeUpdated

The time the bastion was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (GetBastionsBastionOutput) ToGetBastionsBastionOutput

func (o GetBastionsBastionOutput) ToGetBastionsBastionOutput() GetBastionsBastionOutput

func (GetBastionsBastionOutput) ToGetBastionsBastionOutputWithContext

func (o GetBastionsBastionOutput) ToGetBastionsBastionOutputWithContext(ctx context.Context) GetBastionsBastionOutput

type GetBastionsFilter

type GetBastionsFilter struct {
	// A filter to return only resources that match the entire name given.
	Name   string   `pulumi:"name"`
	Regex  *bool    `pulumi:"regex"`
	Values []string `pulumi:"values"`
}

type GetBastionsFilterArgs

type GetBastionsFilterArgs struct {
	// A filter to return only resources that match the entire name given.
	Name   pulumi.StringInput      `pulumi:"name"`
	Regex  pulumi.BoolPtrInput     `pulumi:"regex"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetBastionsFilterArgs) ElementType

func (GetBastionsFilterArgs) ElementType() reflect.Type

func (GetBastionsFilterArgs) ToGetBastionsFilterOutput

func (i GetBastionsFilterArgs) ToGetBastionsFilterOutput() GetBastionsFilterOutput

func (GetBastionsFilterArgs) ToGetBastionsFilterOutputWithContext

func (i GetBastionsFilterArgs) ToGetBastionsFilterOutputWithContext(ctx context.Context) GetBastionsFilterOutput

type GetBastionsFilterArray

type GetBastionsFilterArray []GetBastionsFilterInput

func (GetBastionsFilterArray) ElementType

func (GetBastionsFilterArray) ElementType() reflect.Type

func (GetBastionsFilterArray) ToGetBastionsFilterArrayOutput

func (i GetBastionsFilterArray) ToGetBastionsFilterArrayOutput() GetBastionsFilterArrayOutput

func (GetBastionsFilterArray) ToGetBastionsFilterArrayOutputWithContext

func (i GetBastionsFilterArray) ToGetBastionsFilterArrayOutputWithContext(ctx context.Context) GetBastionsFilterArrayOutput

type GetBastionsFilterArrayInput

type GetBastionsFilterArrayInput interface {
	pulumi.Input

	ToGetBastionsFilterArrayOutput() GetBastionsFilterArrayOutput
	ToGetBastionsFilterArrayOutputWithContext(context.Context) GetBastionsFilterArrayOutput
}

GetBastionsFilterArrayInput is an input type that accepts GetBastionsFilterArray and GetBastionsFilterArrayOutput values. You can construct a concrete instance of `GetBastionsFilterArrayInput` via:

GetBastionsFilterArray{ GetBastionsFilterArgs{...} }

type GetBastionsFilterArrayOutput

type GetBastionsFilterArrayOutput struct{ *pulumi.OutputState }

func (GetBastionsFilterArrayOutput) ElementType

func (GetBastionsFilterArrayOutput) Index

func (GetBastionsFilterArrayOutput) ToGetBastionsFilterArrayOutput

func (o GetBastionsFilterArrayOutput) ToGetBastionsFilterArrayOutput() GetBastionsFilterArrayOutput

func (GetBastionsFilterArrayOutput) ToGetBastionsFilterArrayOutputWithContext

func (o GetBastionsFilterArrayOutput) ToGetBastionsFilterArrayOutputWithContext(ctx context.Context) GetBastionsFilterArrayOutput

type GetBastionsFilterInput

type GetBastionsFilterInput interface {
	pulumi.Input

	ToGetBastionsFilterOutput() GetBastionsFilterOutput
	ToGetBastionsFilterOutputWithContext(context.Context) GetBastionsFilterOutput
}

GetBastionsFilterInput is an input type that accepts GetBastionsFilterArgs and GetBastionsFilterOutput values. You can construct a concrete instance of `GetBastionsFilterInput` via:

GetBastionsFilterArgs{...}

type GetBastionsFilterOutput

type GetBastionsFilterOutput struct{ *pulumi.OutputState }

func (GetBastionsFilterOutput) ElementType

func (GetBastionsFilterOutput) ElementType() reflect.Type

func (GetBastionsFilterOutput) Name

A filter to return only resources that match the entire name given.

func (GetBastionsFilterOutput) Regex

func (GetBastionsFilterOutput) ToGetBastionsFilterOutput

func (o GetBastionsFilterOutput) ToGetBastionsFilterOutput() GetBastionsFilterOutput

func (GetBastionsFilterOutput) ToGetBastionsFilterOutputWithContext

func (o GetBastionsFilterOutput) ToGetBastionsFilterOutputWithContext(ctx context.Context) GetBastionsFilterOutput

func (GetBastionsFilterOutput) Values

type GetBastionsOutputArgs

type GetBastionsOutputArgs struct {
	// The unique identifier (OCID) of the bastion in which to list resources.
	BastionId pulumi.StringPtrInput `pulumi:"bastionId"`
	// A filter to return only resources their lifecycleState matches the given lifecycleState.
	BastionLifecycleState pulumi.StringPtrInput `pulumi:"bastionLifecycleState"`
	// The unique identifier (OCID) of the compartment in which to list resources.
	CompartmentId pulumi.StringInput          `pulumi:"compartmentId"`
	Filters       GetBastionsFilterArrayInput `pulumi:"filters"`
	// A filter to return only resources that match the entire name given.
	Name pulumi.StringPtrInput `pulumi:"name"`
}

A collection of arguments for invoking getBastions.

func (GetBastionsOutputArgs) ElementType

func (GetBastionsOutputArgs) ElementType() reflect.Type

type GetBastionsResult

type GetBastionsResult struct {
	BastionId             *string `pulumi:"bastionId"`
	BastionLifecycleState *string `pulumi:"bastionLifecycleState"`
	// The list of bastions.
	Bastions []GetBastionsBastion `pulumi:"bastions"`
	// The unique identifier (OCID) of the compartment where the bastion is located.
	CompartmentId string              `pulumi:"compartmentId"`
	Filters       []GetBastionsFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the bastion, which can't be changed after creation.
	Name *string `pulumi:"name"`
}

A collection of values returned by getBastions.

func GetBastions

func GetBastions(ctx *pulumi.Context, args *GetBastionsArgs, opts ...pulumi.InvokeOption) (*GetBastionsResult, error)

This data source provides the list of Bastions in Oracle Cloud Infrastructure Bastion service.

Retrieves a list of BastionSummary objects in a compartment. Bastions provide secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Bastion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Bastion.GetBastions(ctx, &bastion.GetBastionsArgs{
			CompartmentId:         compartmentId,
			BastionId:             pulumi.StringRef(testBastion.Id),
			BastionLifecycleState: pulumi.StringRef(bastionBastionLifecycleState),
			Name:                  pulumi.StringRef(bastionName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetBastionsResultOutput

type GetBastionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBastions.

func (GetBastionsResultOutput) BastionId

func (GetBastionsResultOutput) BastionLifecycleState

func (o GetBastionsResultOutput) BastionLifecycleState() pulumi.StringPtrOutput

func (GetBastionsResultOutput) Bastions

The list of bastions.

func (GetBastionsResultOutput) CompartmentId

func (o GetBastionsResultOutput) CompartmentId() pulumi.StringOutput

The unique identifier (OCID) of the compartment where the bastion is located.

func (GetBastionsResultOutput) ElementType

func (GetBastionsResultOutput) ElementType() reflect.Type

func (GetBastionsResultOutput) Filters

func (GetBastionsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetBastionsResultOutput) Name

The name of the bastion, which can't be changed after creation.

func (GetBastionsResultOutput) ToGetBastionsResultOutput

func (o GetBastionsResultOutput) ToGetBastionsResultOutput() GetBastionsResultOutput

func (GetBastionsResultOutput) ToGetBastionsResultOutputWithContext

func (o GetBastionsResultOutput) ToGetBastionsResultOutputWithContext(ctx context.Context) GetBastionsResultOutput

type GetSessionKeyDetail

type GetSessionKeyDetail struct {
	// The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.
	PublicKeyContent string `pulumi:"publicKeyContent"`
}

type GetSessionKeyDetailArgs

type GetSessionKeyDetailArgs struct {
	// The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.
	PublicKeyContent pulumi.StringInput `pulumi:"publicKeyContent"`
}

func (GetSessionKeyDetailArgs) ElementType

func (GetSessionKeyDetailArgs) ElementType() reflect.Type

func (GetSessionKeyDetailArgs) ToGetSessionKeyDetailOutput

func (i GetSessionKeyDetailArgs) ToGetSessionKeyDetailOutput() GetSessionKeyDetailOutput

func (GetSessionKeyDetailArgs) ToGetSessionKeyDetailOutputWithContext

func (i GetSessionKeyDetailArgs) ToGetSessionKeyDetailOutputWithContext(ctx context.Context) GetSessionKeyDetailOutput

type GetSessionKeyDetailArray

type GetSessionKeyDetailArray []GetSessionKeyDetailInput

func (GetSessionKeyDetailArray) ElementType

func (GetSessionKeyDetailArray) ElementType() reflect.Type

func (GetSessionKeyDetailArray) ToGetSessionKeyDetailArrayOutput

func (i GetSessionKeyDetailArray) ToGetSessionKeyDetailArrayOutput() GetSessionKeyDetailArrayOutput

func (GetSessionKeyDetailArray) ToGetSessionKeyDetailArrayOutputWithContext

func (i GetSessionKeyDetailArray) ToGetSessionKeyDetailArrayOutputWithContext(ctx context.Context) GetSessionKeyDetailArrayOutput

type GetSessionKeyDetailArrayInput

type GetSessionKeyDetailArrayInput interface {
	pulumi.Input

	ToGetSessionKeyDetailArrayOutput() GetSessionKeyDetailArrayOutput
	ToGetSessionKeyDetailArrayOutputWithContext(context.Context) GetSessionKeyDetailArrayOutput
}

GetSessionKeyDetailArrayInput is an input type that accepts GetSessionKeyDetailArray and GetSessionKeyDetailArrayOutput values. You can construct a concrete instance of `GetSessionKeyDetailArrayInput` via:

GetSessionKeyDetailArray{ GetSessionKeyDetailArgs{...} }

type GetSessionKeyDetailArrayOutput

type GetSessionKeyDetailArrayOutput struct{ *pulumi.OutputState }

func (GetSessionKeyDetailArrayOutput) ElementType

func (GetSessionKeyDetailArrayOutput) Index

func (GetSessionKeyDetailArrayOutput) ToGetSessionKeyDetailArrayOutput

func (o GetSessionKeyDetailArrayOutput) ToGetSessionKeyDetailArrayOutput() GetSessionKeyDetailArrayOutput

func (GetSessionKeyDetailArrayOutput) ToGetSessionKeyDetailArrayOutputWithContext

func (o GetSessionKeyDetailArrayOutput) ToGetSessionKeyDetailArrayOutputWithContext(ctx context.Context) GetSessionKeyDetailArrayOutput

type GetSessionKeyDetailInput

type GetSessionKeyDetailInput interface {
	pulumi.Input

	ToGetSessionKeyDetailOutput() GetSessionKeyDetailOutput
	ToGetSessionKeyDetailOutputWithContext(context.Context) GetSessionKeyDetailOutput
}

GetSessionKeyDetailInput is an input type that accepts GetSessionKeyDetailArgs and GetSessionKeyDetailOutput values. You can construct a concrete instance of `GetSessionKeyDetailInput` via:

GetSessionKeyDetailArgs{...}

type GetSessionKeyDetailOutput

type GetSessionKeyDetailOutput struct{ *pulumi.OutputState }

func (GetSessionKeyDetailOutput) ElementType

func (GetSessionKeyDetailOutput) ElementType() reflect.Type

func (GetSessionKeyDetailOutput) PublicKeyContent

func (o GetSessionKeyDetailOutput) PublicKeyContent() pulumi.StringOutput

The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.

func (GetSessionKeyDetailOutput) ToGetSessionKeyDetailOutput

func (o GetSessionKeyDetailOutput) ToGetSessionKeyDetailOutput() GetSessionKeyDetailOutput

func (GetSessionKeyDetailOutput) ToGetSessionKeyDetailOutputWithContext

func (o GetSessionKeyDetailOutput) ToGetSessionKeyDetailOutputWithContext(ctx context.Context) GetSessionKeyDetailOutput

type GetSessionTargetResourceDetail

type GetSessionTargetResourceDetail struct {
	// 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.
	SessionType string `pulumi:"sessionType"`
	// The display name of the target Compute instance that the session connects to.
	TargetResourceDisplayName string `pulumi:"targetResourceDisplayName"`
	// The Fully Qualified Domain Name of the target resource that the session connects to.
	TargetResourceFqdn string `pulumi:"targetResourceFqdn"`
	// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
	TargetResourceId string `pulumi:"targetResourceId"`
	// The name of the user on the target resource operating system that the session uses for the connection.
	TargetResourceOperatingSystemUserName string `pulumi:"targetResourceOperatingSystemUserName"`
	// The port number to connect to on the target resource.
	TargetResourcePort int `pulumi:"targetResourcePort"`
	// The private IP address of the target resource that the session connects to.
	TargetResourcePrivateIpAddress string `pulumi:"targetResourcePrivateIpAddress"`
}

type GetSessionTargetResourceDetailArgs

type GetSessionTargetResourceDetailArgs struct {
	// 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.
	SessionType pulumi.StringInput `pulumi:"sessionType"`
	// The display name of the target Compute instance that the session connects to.
	TargetResourceDisplayName pulumi.StringInput `pulumi:"targetResourceDisplayName"`
	// The Fully Qualified Domain Name of the target resource that the session connects to.
	TargetResourceFqdn pulumi.StringInput `pulumi:"targetResourceFqdn"`
	// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
	TargetResourceId pulumi.StringInput `pulumi:"targetResourceId"`
	// The name of the user on the target resource operating system that the session uses for the connection.
	TargetResourceOperatingSystemUserName pulumi.StringInput `pulumi:"targetResourceOperatingSystemUserName"`
	// The port number to connect to on the target resource.
	TargetResourcePort pulumi.IntInput `pulumi:"targetResourcePort"`
	// The private IP address of the target resource that the session connects to.
	TargetResourcePrivateIpAddress pulumi.StringInput `pulumi:"targetResourcePrivateIpAddress"`
}

func (GetSessionTargetResourceDetailArgs) ElementType

func (GetSessionTargetResourceDetailArgs) ToGetSessionTargetResourceDetailOutput

func (i GetSessionTargetResourceDetailArgs) ToGetSessionTargetResourceDetailOutput() GetSessionTargetResourceDetailOutput

func (GetSessionTargetResourceDetailArgs) ToGetSessionTargetResourceDetailOutputWithContext

func (i GetSessionTargetResourceDetailArgs) ToGetSessionTargetResourceDetailOutputWithContext(ctx context.Context) GetSessionTargetResourceDetailOutput

type GetSessionTargetResourceDetailArray

type GetSessionTargetResourceDetailArray []GetSessionTargetResourceDetailInput

func (GetSessionTargetResourceDetailArray) ElementType

func (GetSessionTargetResourceDetailArray) ToGetSessionTargetResourceDetailArrayOutput

func (i GetSessionTargetResourceDetailArray) ToGetSessionTargetResourceDetailArrayOutput() GetSessionTargetResourceDetailArrayOutput

func (GetSessionTargetResourceDetailArray) ToGetSessionTargetResourceDetailArrayOutputWithContext

func (i GetSessionTargetResourceDetailArray) ToGetSessionTargetResourceDetailArrayOutputWithContext(ctx context.Context) GetSessionTargetResourceDetailArrayOutput

type GetSessionTargetResourceDetailArrayInput

type GetSessionTargetResourceDetailArrayInput interface {
	pulumi.Input

	ToGetSessionTargetResourceDetailArrayOutput() GetSessionTargetResourceDetailArrayOutput
	ToGetSessionTargetResourceDetailArrayOutputWithContext(context.Context) GetSessionTargetResourceDetailArrayOutput
}

GetSessionTargetResourceDetailArrayInput is an input type that accepts GetSessionTargetResourceDetailArray and GetSessionTargetResourceDetailArrayOutput values. You can construct a concrete instance of `GetSessionTargetResourceDetailArrayInput` via:

GetSessionTargetResourceDetailArray{ GetSessionTargetResourceDetailArgs{...} }

type GetSessionTargetResourceDetailArrayOutput

type GetSessionTargetResourceDetailArrayOutput struct{ *pulumi.OutputState }

func (GetSessionTargetResourceDetailArrayOutput) ElementType

func (GetSessionTargetResourceDetailArrayOutput) Index

func (GetSessionTargetResourceDetailArrayOutput) ToGetSessionTargetResourceDetailArrayOutput

func (o GetSessionTargetResourceDetailArrayOutput) ToGetSessionTargetResourceDetailArrayOutput() GetSessionTargetResourceDetailArrayOutput

func (GetSessionTargetResourceDetailArrayOutput) ToGetSessionTargetResourceDetailArrayOutputWithContext

func (o GetSessionTargetResourceDetailArrayOutput) ToGetSessionTargetResourceDetailArrayOutputWithContext(ctx context.Context) GetSessionTargetResourceDetailArrayOutput

type GetSessionTargetResourceDetailInput

type GetSessionTargetResourceDetailInput interface {
	pulumi.Input

	ToGetSessionTargetResourceDetailOutput() GetSessionTargetResourceDetailOutput
	ToGetSessionTargetResourceDetailOutputWithContext(context.Context) GetSessionTargetResourceDetailOutput
}

GetSessionTargetResourceDetailInput is an input type that accepts GetSessionTargetResourceDetailArgs and GetSessionTargetResourceDetailOutput values. You can construct a concrete instance of `GetSessionTargetResourceDetailInput` via:

GetSessionTargetResourceDetailArgs{...}

type GetSessionTargetResourceDetailOutput

type GetSessionTargetResourceDetailOutput struct{ *pulumi.OutputState }

func (GetSessionTargetResourceDetailOutput) ElementType

func (GetSessionTargetResourceDetailOutput) SessionType

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.

func (GetSessionTargetResourceDetailOutput) TargetResourceDisplayName

func (o GetSessionTargetResourceDetailOutput) TargetResourceDisplayName() pulumi.StringOutput

The display name of the target Compute instance that the session connects to.

func (GetSessionTargetResourceDetailOutput) TargetResourceFqdn added in v0.6.0

The Fully Qualified Domain Name of the target resource that the session connects to.

func (GetSessionTargetResourceDetailOutput) TargetResourceId

The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.

func (GetSessionTargetResourceDetailOutput) TargetResourceOperatingSystemUserName

func (o GetSessionTargetResourceDetailOutput) TargetResourceOperatingSystemUserName() pulumi.StringOutput

The name of the user on the target resource operating system that the session uses for the connection.

func (GetSessionTargetResourceDetailOutput) TargetResourcePort

func (o GetSessionTargetResourceDetailOutput) TargetResourcePort() pulumi.IntOutput

The port number to connect to on the target resource.

func (GetSessionTargetResourceDetailOutput) TargetResourcePrivateIpAddress

func (o GetSessionTargetResourceDetailOutput) TargetResourcePrivateIpAddress() pulumi.StringOutput

The private IP address of the target resource that the session connects to.

func (GetSessionTargetResourceDetailOutput) ToGetSessionTargetResourceDetailOutput

func (o GetSessionTargetResourceDetailOutput) ToGetSessionTargetResourceDetailOutput() GetSessionTargetResourceDetailOutput

func (GetSessionTargetResourceDetailOutput) ToGetSessionTargetResourceDetailOutputWithContext

func (o GetSessionTargetResourceDetailOutput) ToGetSessionTargetResourceDetailOutputWithContext(ctx context.Context) GetSessionTargetResourceDetailOutput

type GetSessionsArgs

type GetSessionsArgs struct {
	// The unique identifier (OCID) of the bastion in which to list sessions.
	BastionId string `pulumi:"bastionId"`
	// A filter to return only resources that match the entire display name given.
	DisplayName *string             `pulumi:"displayName"`
	Filters     []GetSessionsFilter `pulumi:"filters"`
	// The unique identifier (OCID) of the session in which to list resources.
	SessionId *string `pulumi:"sessionId"`
	// A filter to return only resources their lifecycleState matches the given lifecycleState.
	SessionLifecycleState *string `pulumi:"sessionLifecycleState"`
}

A collection of arguments for invoking getSessions.

type GetSessionsFilter

type GetSessionsFilter struct {
	Name   string   `pulumi:"name"`
	Regex  *bool    `pulumi:"regex"`
	Values []string `pulumi:"values"`
}

type GetSessionsFilterArgs

type GetSessionsFilterArgs struct {
	Name   pulumi.StringInput      `pulumi:"name"`
	Regex  pulumi.BoolPtrInput     `pulumi:"regex"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetSessionsFilterArgs) ElementType

func (GetSessionsFilterArgs) ElementType() reflect.Type

func (GetSessionsFilterArgs) ToGetSessionsFilterOutput

func (i GetSessionsFilterArgs) ToGetSessionsFilterOutput() GetSessionsFilterOutput

func (GetSessionsFilterArgs) ToGetSessionsFilterOutputWithContext

func (i GetSessionsFilterArgs) ToGetSessionsFilterOutputWithContext(ctx context.Context) GetSessionsFilterOutput

type GetSessionsFilterArray

type GetSessionsFilterArray []GetSessionsFilterInput

func (GetSessionsFilterArray) ElementType

func (GetSessionsFilterArray) ElementType() reflect.Type

func (GetSessionsFilterArray) ToGetSessionsFilterArrayOutput

func (i GetSessionsFilterArray) ToGetSessionsFilterArrayOutput() GetSessionsFilterArrayOutput

func (GetSessionsFilterArray) ToGetSessionsFilterArrayOutputWithContext

func (i GetSessionsFilterArray) ToGetSessionsFilterArrayOutputWithContext(ctx context.Context) GetSessionsFilterArrayOutput

type GetSessionsFilterArrayInput

type GetSessionsFilterArrayInput interface {
	pulumi.Input

	ToGetSessionsFilterArrayOutput() GetSessionsFilterArrayOutput
	ToGetSessionsFilterArrayOutputWithContext(context.Context) GetSessionsFilterArrayOutput
}

GetSessionsFilterArrayInput is an input type that accepts GetSessionsFilterArray and GetSessionsFilterArrayOutput values. You can construct a concrete instance of `GetSessionsFilterArrayInput` via:

GetSessionsFilterArray{ GetSessionsFilterArgs{...} }

type GetSessionsFilterArrayOutput

type GetSessionsFilterArrayOutput struct{ *pulumi.OutputState }

func (GetSessionsFilterArrayOutput) ElementType

func (GetSessionsFilterArrayOutput) Index

func (GetSessionsFilterArrayOutput) ToGetSessionsFilterArrayOutput

func (o GetSessionsFilterArrayOutput) ToGetSessionsFilterArrayOutput() GetSessionsFilterArrayOutput

func (GetSessionsFilterArrayOutput) ToGetSessionsFilterArrayOutputWithContext

func (o GetSessionsFilterArrayOutput) ToGetSessionsFilterArrayOutputWithContext(ctx context.Context) GetSessionsFilterArrayOutput

type GetSessionsFilterInput

type GetSessionsFilterInput interface {
	pulumi.Input

	ToGetSessionsFilterOutput() GetSessionsFilterOutput
	ToGetSessionsFilterOutputWithContext(context.Context) GetSessionsFilterOutput
}

GetSessionsFilterInput is an input type that accepts GetSessionsFilterArgs and GetSessionsFilterOutput values. You can construct a concrete instance of `GetSessionsFilterInput` via:

GetSessionsFilterArgs{...}

type GetSessionsFilterOutput

type GetSessionsFilterOutput struct{ *pulumi.OutputState }

func (GetSessionsFilterOutput) ElementType

func (GetSessionsFilterOutput) ElementType() reflect.Type

func (GetSessionsFilterOutput) Name

func (GetSessionsFilterOutput) Regex

func (GetSessionsFilterOutput) ToGetSessionsFilterOutput

func (o GetSessionsFilterOutput) ToGetSessionsFilterOutput() GetSessionsFilterOutput

func (GetSessionsFilterOutput) ToGetSessionsFilterOutputWithContext

func (o GetSessionsFilterOutput) ToGetSessionsFilterOutputWithContext(ctx context.Context) GetSessionsFilterOutput

func (GetSessionsFilterOutput) Values

type GetSessionsOutputArgs

type GetSessionsOutputArgs struct {
	// The unique identifier (OCID) of the bastion in which to list sessions.
	BastionId pulumi.StringInput `pulumi:"bastionId"`
	// A filter to return only resources that match the entire display name given.
	DisplayName pulumi.StringPtrInput       `pulumi:"displayName"`
	Filters     GetSessionsFilterArrayInput `pulumi:"filters"`
	// The unique identifier (OCID) of the session in which to list resources.
	SessionId pulumi.StringPtrInput `pulumi:"sessionId"`
	// A filter to return only resources their lifecycleState matches the given lifecycleState.
	SessionLifecycleState pulumi.StringPtrInput `pulumi:"sessionLifecycleState"`
}

A collection of arguments for invoking getSessions.

func (GetSessionsOutputArgs) ElementType

func (GetSessionsOutputArgs) ElementType() reflect.Type

type GetSessionsResult

type GetSessionsResult struct {
	// The unique identifier (OCID) of the bastion that is hosting this session.
	BastionId string `pulumi:"bastionId"`
	// The name of the session.
	DisplayName *string             `pulumi:"displayName"`
	Filters     []GetSessionsFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id                    string  `pulumi:"id"`
	SessionId             *string `pulumi:"sessionId"`
	SessionLifecycleState *string `pulumi:"sessionLifecycleState"`
	// The list of sessions.
	Sessions []GetSessionsSession `pulumi:"sessions"`
}

A collection of values returned by getSessions.

func GetSessions

func GetSessions(ctx *pulumi.Context, args *GetSessionsArgs, opts ...pulumi.InvokeOption) (*GetSessionsResult, error)

This data source provides the list of Sessions in Oracle Cloud Infrastructure Bastion service.

Retrieves a list of SessionSummary objects for an existing bastion. Bastion sessions let authorized users connect to a target resource for a predetermined amount of time.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Bastion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Bastion.GetSessions(ctx, &bastion.GetSessionsArgs{
			BastionId:             testBastion.Id,
			DisplayName:           pulumi.StringRef(sessionDisplayName),
			SessionId:             pulumi.StringRef(testSession.Id),
			SessionLifecycleState: pulumi.StringRef(sessionSessionLifecycleState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSessionsResultOutput

type GetSessionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSessions.

func (GetSessionsResultOutput) BastionId

The unique identifier (OCID) of the bastion that is hosting this session.

func (GetSessionsResultOutput) DisplayName

The name of the session.

func (GetSessionsResultOutput) ElementType

func (GetSessionsResultOutput) ElementType() reflect.Type

func (GetSessionsResultOutput) Filters

func (GetSessionsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetSessionsResultOutput) SessionId

func (GetSessionsResultOutput) SessionLifecycleState

func (o GetSessionsResultOutput) SessionLifecycleState() pulumi.StringPtrOutput

func (GetSessionsResultOutput) Sessions

The list of sessions.

func (GetSessionsResultOutput) ToGetSessionsResultOutput

func (o GetSessionsResultOutput) ToGetSessionsResultOutput() GetSessionsResultOutput

func (GetSessionsResultOutput) ToGetSessionsResultOutputWithContext

func (o GetSessionsResultOutput) ToGetSessionsResultOutputWithContext(ctx context.Context) GetSessionsResultOutput

type GetSessionsSession

type GetSessionsSession struct {
	// The unique identifier (OCID) of the bastion in which to list sessions.
	BastionId string `pulumi:"bastionId"`
	// The name of the bastion that is hosting this session.
	BastionName string `pulumi:"bastionName"`
	// The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.
	BastionPublicHostKeyInfo string `pulumi:"bastionPublicHostKeyInfo"`
	// The username that the session uses to connect to the target resource.
	BastionUserName string `pulumi:"bastionUserName"`
	// A filter to return only resources that match the entire display name given.
	DisplayName string `pulumi:"displayName"`
	// The unique identifier (OCID) of the session, which can't be changed after creation.
	Id string `pulumi:"id"`
	// Public key details for a bastion session.
	KeyDetails []GetSessionsSessionKeyDetail `pulumi:"keyDetails"`
	// The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
	KeyType string `pulumi:"keyType"`
	// A message describing the current session state in more detail.
	LifecycleDetails string `pulumi:"lifecycleDetails"`
	// The amount of time the session can remain active.
	SessionTtlInSeconds int `pulumi:"sessionTtlInSeconds"`
	// The connection message for the session.
	SshMetadata map[string]interface{} `pulumi:"sshMetadata"`
	// The current state of the session.
	State string `pulumi:"state"`
	// Details about a bastion session's target resource.
	TargetResourceDetails []GetSessionsSessionTargetResourceDetail `pulumi:"targetResourceDetails"`
	// The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated string `pulumi:"timeCreated"`
	// The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated string `pulumi:"timeUpdated"`
}

type GetSessionsSessionArgs

type GetSessionsSessionArgs struct {
	// The unique identifier (OCID) of the bastion in which to list sessions.
	BastionId pulumi.StringInput `pulumi:"bastionId"`
	// The name of the bastion that is hosting this session.
	BastionName pulumi.StringInput `pulumi:"bastionName"`
	// The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.
	BastionPublicHostKeyInfo pulumi.StringInput `pulumi:"bastionPublicHostKeyInfo"`
	// The username that the session uses to connect to the target resource.
	BastionUserName pulumi.StringInput `pulumi:"bastionUserName"`
	// A filter to return only resources that match the entire display name given.
	DisplayName pulumi.StringInput `pulumi:"displayName"`
	// The unique identifier (OCID) of the session, which can't be changed after creation.
	Id pulumi.StringInput `pulumi:"id"`
	// Public key details for a bastion session.
	KeyDetails GetSessionsSessionKeyDetailArrayInput `pulumi:"keyDetails"`
	// The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
	KeyType pulumi.StringInput `pulumi:"keyType"`
	// A message describing the current session state in more detail.
	LifecycleDetails pulumi.StringInput `pulumi:"lifecycleDetails"`
	// The amount of time the session can remain active.
	SessionTtlInSeconds pulumi.IntInput `pulumi:"sessionTtlInSeconds"`
	// The connection message for the session.
	SshMetadata pulumi.MapInput `pulumi:"sshMetadata"`
	// The current state of the session.
	State pulumi.StringInput `pulumi:"state"`
	// Details about a bastion session's target resource.
	TargetResourceDetails GetSessionsSessionTargetResourceDetailArrayInput `pulumi:"targetResourceDetails"`
	// The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated pulumi.StringInput `pulumi:"timeCreated"`
	// The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated pulumi.StringInput `pulumi:"timeUpdated"`
}

func (GetSessionsSessionArgs) ElementType

func (GetSessionsSessionArgs) ElementType() reflect.Type

func (GetSessionsSessionArgs) ToGetSessionsSessionOutput

func (i GetSessionsSessionArgs) ToGetSessionsSessionOutput() GetSessionsSessionOutput

func (GetSessionsSessionArgs) ToGetSessionsSessionOutputWithContext

func (i GetSessionsSessionArgs) ToGetSessionsSessionOutputWithContext(ctx context.Context) GetSessionsSessionOutput

type GetSessionsSessionArray

type GetSessionsSessionArray []GetSessionsSessionInput

func (GetSessionsSessionArray) ElementType

func (GetSessionsSessionArray) ElementType() reflect.Type

func (GetSessionsSessionArray) ToGetSessionsSessionArrayOutput

func (i GetSessionsSessionArray) ToGetSessionsSessionArrayOutput() GetSessionsSessionArrayOutput

func (GetSessionsSessionArray) ToGetSessionsSessionArrayOutputWithContext

func (i GetSessionsSessionArray) ToGetSessionsSessionArrayOutputWithContext(ctx context.Context) GetSessionsSessionArrayOutput

type GetSessionsSessionArrayInput

type GetSessionsSessionArrayInput interface {
	pulumi.Input

	ToGetSessionsSessionArrayOutput() GetSessionsSessionArrayOutput
	ToGetSessionsSessionArrayOutputWithContext(context.Context) GetSessionsSessionArrayOutput
}

GetSessionsSessionArrayInput is an input type that accepts GetSessionsSessionArray and GetSessionsSessionArrayOutput values. You can construct a concrete instance of `GetSessionsSessionArrayInput` via:

GetSessionsSessionArray{ GetSessionsSessionArgs{...} }

type GetSessionsSessionArrayOutput

type GetSessionsSessionArrayOutput struct{ *pulumi.OutputState }

func (GetSessionsSessionArrayOutput) ElementType

func (GetSessionsSessionArrayOutput) Index

func (GetSessionsSessionArrayOutput) ToGetSessionsSessionArrayOutput

func (o GetSessionsSessionArrayOutput) ToGetSessionsSessionArrayOutput() GetSessionsSessionArrayOutput

func (GetSessionsSessionArrayOutput) ToGetSessionsSessionArrayOutputWithContext

func (o GetSessionsSessionArrayOutput) ToGetSessionsSessionArrayOutputWithContext(ctx context.Context) GetSessionsSessionArrayOutput

type GetSessionsSessionInput

type GetSessionsSessionInput interface {
	pulumi.Input

	ToGetSessionsSessionOutput() GetSessionsSessionOutput
	ToGetSessionsSessionOutputWithContext(context.Context) GetSessionsSessionOutput
}

GetSessionsSessionInput is an input type that accepts GetSessionsSessionArgs and GetSessionsSessionOutput values. You can construct a concrete instance of `GetSessionsSessionInput` via:

GetSessionsSessionArgs{...}

type GetSessionsSessionKeyDetail

type GetSessionsSessionKeyDetail struct {
	// The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.
	PublicKeyContent string `pulumi:"publicKeyContent"`
}

type GetSessionsSessionKeyDetailArgs

type GetSessionsSessionKeyDetailArgs struct {
	// The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.
	PublicKeyContent pulumi.StringInput `pulumi:"publicKeyContent"`
}

func (GetSessionsSessionKeyDetailArgs) ElementType

func (GetSessionsSessionKeyDetailArgs) ToGetSessionsSessionKeyDetailOutput

func (i GetSessionsSessionKeyDetailArgs) ToGetSessionsSessionKeyDetailOutput() GetSessionsSessionKeyDetailOutput

func (GetSessionsSessionKeyDetailArgs) ToGetSessionsSessionKeyDetailOutputWithContext

func (i GetSessionsSessionKeyDetailArgs) ToGetSessionsSessionKeyDetailOutputWithContext(ctx context.Context) GetSessionsSessionKeyDetailOutput

type GetSessionsSessionKeyDetailArray

type GetSessionsSessionKeyDetailArray []GetSessionsSessionKeyDetailInput

func (GetSessionsSessionKeyDetailArray) ElementType

func (GetSessionsSessionKeyDetailArray) ToGetSessionsSessionKeyDetailArrayOutput

func (i GetSessionsSessionKeyDetailArray) ToGetSessionsSessionKeyDetailArrayOutput() GetSessionsSessionKeyDetailArrayOutput

func (GetSessionsSessionKeyDetailArray) ToGetSessionsSessionKeyDetailArrayOutputWithContext

func (i GetSessionsSessionKeyDetailArray) ToGetSessionsSessionKeyDetailArrayOutputWithContext(ctx context.Context) GetSessionsSessionKeyDetailArrayOutput

type GetSessionsSessionKeyDetailArrayInput

type GetSessionsSessionKeyDetailArrayInput interface {
	pulumi.Input

	ToGetSessionsSessionKeyDetailArrayOutput() GetSessionsSessionKeyDetailArrayOutput
	ToGetSessionsSessionKeyDetailArrayOutputWithContext(context.Context) GetSessionsSessionKeyDetailArrayOutput
}

GetSessionsSessionKeyDetailArrayInput is an input type that accepts GetSessionsSessionKeyDetailArray and GetSessionsSessionKeyDetailArrayOutput values. You can construct a concrete instance of `GetSessionsSessionKeyDetailArrayInput` via:

GetSessionsSessionKeyDetailArray{ GetSessionsSessionKeyDetailArgs{...} }

type GetSessionsSessionKeyDetailArrayOutput

type GetSessionsSessionKeyDetailArrayOutput struct{ *pulumi.OutputState }

func (GetSessionsSessionKeyDetailArrayOutput) ElementType

func (GetSessionsSessionKeyDetailArrayOutput) Index

func (GetSessionsSessionKeyDetailArrayOutput) ToGetSessionsSessionKeyDetailArrayOutput

func (o GetSessionsSessionKeyDetailArrayOutput) ToGetSessionsSessionKeyDetailArrayOutput() GetSessionsSessionKeyDetailArrayOutput

func (GetSessionsSessionKeyDetailArrayOutput) ToGetSessionsSessionKeyDetailArrayOutputWithContext

func (o GetSessionsSessionKeyDetailArrayOutput) ToGetSessionsSessionKeyDetailArrayOutputWithContext(ctx context.Context) GetSessionsSessionKeyDetailArrayOutput

type GetSessionsSessionKeyDetailInput

type GetSessionsSessionKeyDetailInput interface {
	pulumi.Input

	ToGetSessionsSessionKeyDetailOutput() GetSessionsSessionKeyDetailOutput
	ToGetSessionsSessionKeyDetailOutputWithContext(context.Context) GetSessionsSessionKeyDetailOutput
}

GetSessionsSessionKeyDetailInput is an input type that accepts GetSessionsSessionKeyDetailArgs and GetSessionsSessionKeyDetailOutput values. You can construct a concrete instance of `GetSessionsSessionKeyDetailInput` via:

GetSessionsSessionKeyDetailArgs{...}

type GetSessionsSessionKeyDetailOutput

type GetSessionsSessionKeyDetailOutput struct{ *pulumi.OutputState }

func (GetSessionsSessionKeyDetailOutput) ElementType

func (GetSessionsSessionKeyDetailOutput) PublicKeyContent

The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.

func (GetSessionsSessionKeyDetailOutput) ToGetSessionsSessionKeyDetailOutput

func (o GetSessionsSessionKeyDetailOutput) ToGetSessionsSessionKeyDetailOutput() GetSessionsSessionKeyDetailOutput

func (GetSessionsSessionKeyDetailOutput) ToGetSessionsSessionKeyDetailOutputWithContext

func (o GetSessionsSessionKeyDetailOutput) ToGetSessionsSessionKeyDetailOutputWithContext(ctx context.Context) GetSessionsSessionKeyDetailOutput

type GetSessionsSessionOutput

type GetSessionsSessionOutput struct{ *pulumi.OutputState }

func (GetSessionsSessionOutput) BastionId

The unique identifier (OCID) of the bastion in which to list sessions.

func (GetSessionsSessionOutput) BastionName

The name of the bastion that is hosting this session.

func (GetSessionsSessionOutput) BastionPublicHostKeyInfo

func (o GetSessionsSessionOutput) BastionPublicHostKeyInfo() pulumi.StringOutput

The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.

func (GetSessionsSessionOutput) BastionUserName

func (o GetSessionsSessionOutput) BastionUserName() pulumi.StringOutput

The username that the session uses to connect to the target resource.

func (GetSessionsSessionOutput) DisplayName

A filter to return only resources that match the entire display name given.

func (GetSessionsSessionOutput) ElementType

func (GetSessionsSessionOutput) ElementType() reflect.Type

func (GetSessionsSessionOutput) Id

The unique identifier (OCID) of the session, which can't be changed after creation.

func (GetSessionsSessionOutput) KeyDetails

Public key details for a bastion session.

func (GetSessionsSessionOutput) KeyType

The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.

func (GetSessionsSessionOutput) LifecycleDetails

func (o GetSessionsSessionOutput) LifecycleDetails() pulumi.StringOutput

A message describing the current session state in more detail.

func (GetSessionsSessionOutput) SessionTtlInSeconds

func (o GetSessionsSessionOutput) SessionTtlInSeconds() pulumi.IntOutput

The amount of time the session can remain active.

func (GetSessionsSessionOutput) SshMetadata

func (o GetSessionsSessionOutput) SshMetadata() pulumi.MapOutput

The connection message for the session.

func (GetSessionsSessionOutput) State

The current state of the session.

func (GetSessionsSessionOutput) TargetResourceDetails

Details about a bastion session's target resource.

func (GetSessionsSessionOutput) TimeCreated

The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (GetSessionsSessionOutput) TimeUpdated

The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (GetSessionsSessionOutput) ToGetSessionsSessionOutput

func (o GetSessionsSessionOutput) ToGetSessionsSessionOutput() GetSessionsSessionOutput

func (GetSessionsSessionOutput) ToGetSessionsSessionOutputWithContext

func (o GetSessionsSessionOutput) ToGetSessionsSessionOutputWithContext(ctx context.Context) GetSessionsSessionOutput

type GetSessionsSessionTargetResourceDetail

type GetSessionsSessionTargetResourceDetail struct {
	// 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.
	SessionType string `pulumi:"sessionType"`
	// The display name of the target Compute instance that the session connects to.
	TargetResourceDisplayName string `pulumi:"targetResourceDisplayName"`
	// The Fully Qualified Domain Name of the target resource that the session connects to.
	TargetResourceFqdn string `pulumi:"targetResourceFqdn"`
	// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
	TargetResourceId string `pulumi:"targetResourceId"`
	// The name of the user on the target resource operating system that the session uses for the connection.
	TargetResourceOperatingSystemUserName string `pulumi:"targetResourceOperatingSystemUserName"`
	// The port number to connect to on the target resource.
	TargetResourcePort int `pulumi:"targetResourcePort"`
	// The private IP address of the target resource that the session connects to.
	TargetResourcePrivateIpAddress string `pulumi:"targetResourcePrivateIpAddress"`
}

type GetSessionsSessionTargetResourceDetailArgs

type GetSessionsSessionTargetResourceDetailArgs struct {
	// 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.
	SessionType pulumi.StringInput `pulumi:"sessionType"`
	// The display name of the target Compute instance that the session connects to.
	TargetResourceDisplayName pulumi.StringInput `pulumi:"targetResourceDisplayName"`
	// The Fully Qualified Domain Name of the target resource that the session connects to.
	TargetResourceFqdn pulumi.StringInput `pulumi:"targetResourceFqdn"`
	// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
	TargetResourceId pulumi.StringInput `pulumi:"targetResourceId"`
	// The name of the user on the target resource operating system that the session uses for the connection.
	TargetResourceOperatingSystemUserName pulumi.StringInput `pulumi:"targetResourceOperatingSystemUserName"`
	// The port number to connect to on the target resource.
	TargetResourcePort pulumi.IntInput `pulumi:"targetResourcePort"`
	// The private IP address of the target resource that the session connects to.
	TargetResourcePrivateIpAddress pulumi.StringInput `pulumi:"targetResourcePrivateIpAddress"`
}

func (GetSessionsSessionTargetResourceDetailArgs) ElementType

func (GetSessionsSessionTargetResourceDetailArgs) ToGetSessionsSessionTargetResourceDetailOutput

func (i GetSessionsSessionTargetResourceDetailArgs) ToGetSessionsSessionTargetResourceDetailOutput() GetSessionsSessionTargetResourceDetailOutput

func (GetSessionsSessionTargetResourceDetailArgs) ToGetSessionsSessionTargetResourceDetailOutputWithContext

func (i GetSessionsSessionTargetResourceDetailArgs) ToGetSessionsSessionTargetResourceDetailOutputWithContext(ctx context.Context) GetSessionsSessionTargetResourceDetailOutput

type GetSessionsSessionTargetResourceDetailArray

type GetSessionsSessionTargetResourceDetailArray []GetSessionsSessionTargetResourceDetailInput

func (GetSessionsSessionTargetResourceDetailArray) ElementType

func (GetSessionsSessionTargetResourceDetailArray) ToGetSessionsSessionTargetResourceDetailArrayOutput

func (i GetSessionsSessionTargetResourceDetailArray) ToGetSessionsSessionTargetResourceDetailArrayOutput() GetSessionsSessionTargetResourceDetailArrayOutput

func (GetSessionsSessionTargetResourceDetailArray) ToGetSessionsSessionTargetResourceDetailArrayOutputWithContext

func (i GetSessionsSessionTargetResourceDetailArray) ToGetSessionsSessionTargetResourceDetailArrayOutputWithContext(ctx context.Context) GetSessionsSessionTargetResourceDetailArrayOutput

type GetSessionsSessionTargetResourceDetailArrayInput

type GetSessionsSessionTargetResourceDetailArrayInput interface {
	pulumi.Input

	ToGetSessionsSessionTargetResourceDetailArrayOutput() GetSessionsSessionTargetResourceDetailArrayOutput
	ToGetSessionsSessionTargetResourceDetailArrayOutputWithContext(context.Context) GetSessionsSessionTargetResourceDetailArrayOutput
}

GetSessionsSessionTargetResourceDetailArrayInput is an input type that accepts GetSessionsSessionTargetResourceDetailArray and GetSessionsSessionTargetResourceDetailArrayOutput values. You can construct a concrete instance of `GetSessionsSessionTargetResourceDetailArrayInput` via:

GetSessionsSessionTargetResourceDetailArray{ GetSessionsSessionTargetResourceDetailArgs{...} }

type GetSessionsSessionTargetResourceDetailArrayOutput

type GetSessionsSessionTargetResourceDetailArrayOutput struct{ *pulumi.OutputState }

func (GetSessionsSessionTargetResourceDetailArrayOutput) ElementType

func (GetSessionsSessionTargetResourceDetailArrayOutput) Index

func (GetSessionsSessionTargetResourceDetailArrayOutput) ToGetSessionsSessionTargetResourceDetailArrayOutput

func (o GetSessionsSessionTargetResourceDetailArrayOutput) ToGetSessionsSessionTargetResourceDetailArrayOutput() GetSessionsSessionTargetResourceDetailArrayOutput

func (GetSessionsSessionTargetResourceDetailArrayOutput) ToGetSessionsSessionTargetResourceDetailArrayOutputWithContext

func (o GetSessionsSessionTargetResourceDetailArrayOutput) ToGetSessionsSessionTargetResourceDetailArrayOutputWithContext(ctx context.Context) GetSessionsSessionTargetResourceDetailArrayOutput

type GetSessionsSessionTargetResourceDetailInput

type GetSessionsSessionTargetResourceDetailInput interface {
	pulumi.Input

	ToGetSessionsSessionTargetResourceDetailOutput() GetSessionsSessionTargetResourceDetailOutput
	ToGetSessionsSessionTargetResourceDetailOutputWithContext(context.Context) GetSessionsSessionTargetResourceDetailOutput
}

GetSessionsSessionTargetResourceDetailInput is an input type that accepts GetSessionsSessionTargetResourceDetailArgs and GetSessionsSessionTargetResourceDetailOutput values. You can construct a concrete instance of `GetSessionsSessionTargetResourceDetailInput` via:

GetSessionsSessionTargetResourceDetailArgs{...}

type GetSessionsSessionTargetResourceDetailOutput

type GetSessionsSessionTargetResourceDetailOutput struct{ *pulumi.OutputState }

func (GetSessionsSessionTargetResourceDetailOutput) ElementType

func (GetSessionsSessionTargetResourceDetailOutput) SessionType

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.

func (GetSessionsSessionTargetResourceDetailOutput) TargetResourceDisplayName

The display name of the target Compute instance that the session connects to.

func (GetSessionsSessionTargetResourceDetailOutput) TargetResourceFqdn added in v0.6.0

The Fully Qualified Domain Name of the target resource that the session connects to.

func (GetSessionsSessionTargetResourceDetailOutput) TargetResourceId

The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.

func (GetSessionsSessionTargetResourceDetailOutput) TargetResourceOperatingSystemUserName

func (o GetSessionsSessionTargetResourceDetailOutput) TargetResourceOperatingSystemUserName() pulumi.StringOutput

The name of the user on the target resource operating system that the session uses for the connection.

func (GetSessionsSessionTargetResourceDetailOutput) TargetResourcePort

The port number to connect to on the target resource.

func (GetSessionsSessionTargetResourceDetailOutput) TargetResourcePrivateIpAddress

func (o GetSessionsSessionTargetResourceDetailOutput) TargetResourcePrivateIpAddress() pulumi.StringOutput

The private IP address of the target resource that the session connects to.

func (GetSessionsSessionTargetResourceDetailOutput) ToGetSessionsSessionTargetResourceDetailOutput

func (o GetSessionsSessionTargetResourceDetailOutput) ToGetSessionsSessionTargetResourceDetailOutput() GetSessionsSessionTargetResourceDetailOutput

func (GetSessionsSessionTargetResourceDetailOutput) ToGetSessionsSessionTargetResourceDetailOutputWithContext

func (o GetSessionsSessionTargetResourceDetailOutput) ToGetSessionsSessionTargetResourceDetailOutputWithContext(ctx context.Context) GetSessionsSessionTargetResourceDetailOutput

type LookupBastionArgs

type LookupBastionArgs struct {
	// The unique identifier (OCID) of the bastion.
	BastionId string `pulumi:"bastionId"`
}

A collection of arguments for invoking getBastion.

type LookupBastionOutputArgs

type LookupBastionOutputArgs struct {
	// The unique identifier (OCID) of the bastion.
	BastionId pulumi.StringInput `pulumi:"bastionId"`
}

A collection of arguments for invoking getBastion.

func (LookupBastionOutputArgs) ElementType

func (LookupBastionOutputArgs) ElementType() reflect.Type

type LookupBastionResult

type LookupBastionResult struct {
	BastionId string `pulumi:"bastionId"`
	// The type of bastion.
	BastionType string `pulumi:"bastionType"`
	// A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
	ClientCidrBlockAllowLists []string `pulumi:"clientCidrBlockAllowLists"`
	// The unique identifier (OCID) of the compartment where the bastion is located.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`
	DnsProxyStatus string `pulumi:"dnsProxyStatus"`
	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The unique identifier (OCID) of the bastion, which can't be changed after creation.
	Id string `pulumi:"id"`
	// A message describing the current state in more detail.
	LifecycleDetails string `pulumi:"lifecycleDetails"`
	// The maximum amount of time that any session on the bastion can remain active.
	MaxSessionTtlInSeconds int `pulumi:"maxSessionTtlInSeconds"`
	// The maximum number of active sessions allowed on the bastion.
	MaxSessionsAllowed int `pulumi:"maxSessionsAllowed"`
	// The name of the bastion, which can't be changed after creation.
	Name string `pulumi:"name"`
	// The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.
	PhoneBookEntry string `pulumi:"phoneBookEntry"`
	// The private IP address of the created private endpoint.
	PrivateEndpointIpAddress string `pulumi:"privateEndpointIpAddress"`
	// The current state of the bastion.
	State string `pulumi:"state"`
	// A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.
	StaticJumpHostIpAddresses []string `pulumi:"staticJumpHostIpAddresses"`
	// Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags map[string]interface{} `pulumi:"systemTags"`
	// The unique identifier (OCID) of the subnet that the bastion connects to.
	TargetSubnetId string `pulumi:"targetSubnetId"`
	// The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
	TargetVcnId string `pulumi:"targetVcnId"`
	// The time the bastion was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated string `pulumi:"timeCreated"`
	// The time the bastion was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated string `pulumi:"timeUpdated"`
}

A collection of values returned by getBastion.

func LookupBastion

func LookupBastion(ctx *pulumi.Context, args *LookupBastionArgs, opts ...pulumi.InvokeOption) (*LookupBastionResult, error)

This data source provides details about a specific Bastion resource in Oracle Cloud Infrastructure Bastion service.

Retrieves a bastion identified by the bastion ID. A bastion provides secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Bastion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Bastion.GetBastion(ctx, &bastion.GetBastionArgs{
			BastionId: testBastionOciBastionBastion.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupBastionResultOutput

type LookupBastionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBastion.

func (LookupBastionResultOutput) BastionId

func (LookupBastionResultOutput) BastionType

The type of bastion.

func (LookupBastionResultOutput) ClientCidrBlockAllowLists

func (o LookupBastionResultOutput) ClientCidrBlockAllowLists() pulumi.StringArrayOutput

A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.

func (LookupBastionResultOutput) CompartmentId

func (o LookupBastionResultOutput) CompartmentId() pulumi.StringOutput

The unique identifier (OCID) of the compartment where the bastion is located.

func (LookupBastionResultOutput) DefinedTags

func (o LookupBastionResultOutput) DefinedTags() pulumi.MapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`

func (LookupBastionResultOutput) DnsProxyStatus added in v0.6.0

func (o LookupBastionResultOutput) DnsProxyStatus() pulumi.StringOutput

Flag to enable FQDN and SOCKS5 Proxy Support. Example: `ENABLED`, `DISABLED`

func (LookupBastionResultOutput) ElementType

func (LookupBastionResultOutput) ElementType() reflect.Type

func (LookupBastionResultOutput) FreeformTags

func (o LookupBastionResultOutput) FreeformTags() pulumi.MapOutput

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`

func (LookupBastionResultOutput) Id

The unique identifier (OCID) of the bastion, which can't be changed after creation.

func (LookupBastionResultOutput) LifecycleDetails

func (o LookupBastionResultOutput) LifecycleDetails() pulumi.StringOutput

A message describing the current state in more detail.

func (LookupBastionResultOutput) MaxSessionTtlInSeconds

func (o LookupBastionResultOutput) MaxSessionTtlInSeconds() pulumi.IntOutput

The maximum amount of time that any session on the bastion can remain active.

func (LookupBastionResultOutput) MaxSessionsAllowed

func (o LookupBastionResultOutput) MaxSessionsAllowed() pulumi.IntOutput

The maximum number of active sessions allowed on the bastion.

func (LookupBastionResultOutput) Name

The name of the bastion, which can't be changed after creation.

func (LookupBastionResultOutput) PhoneBookEntry

func (o LookupBastionResultOutput) PhoneBookEntry() pulumi.StringOutput

The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to `standard` bastions.

func (LookupBastionResultOutput) PrivateEndpointIpAddress

func (o LookupBastionResultOutput) PrivateEndpointIpAddress() pulumi.StringOutput

The private IP address of the created private endpoint.

func (LookupBastionResultOutput) State

The current state of the bastion.

func (LookupBastionResultOutput) StaticJumpHostIpAddresses

func (o LookupBastionResultOutput) StaticJumpHostIpAddresses() pulumi.StringArrayOutput

A list of IP addresses of the hosts that the bastion has access to. Not applicable to `standard` bastions.

func (LookupBastionResultOutput) SystemTags

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`

func (LookupBastionResultOutput) TargetSubnetId

func (o LookupBastionResultOutput) TargetSubnetId() pulumi.StringOutput

The unique identifier (OCID) of the subnet that the bastion connects to.

func (LookupBastionResultOutput) TargetVcnId

The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.

func (LookupBastionResultOutput) TimeCreated

The time the bastion was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (LookupBastionResultOutput) TimeUpdated

The time the bastion was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (LookupBastionResultOutput) ToLookupBastionResultOutput

func (o LookupBastionResultOutput) ToLookupBastionResultOutput() LookupBastionResultOutput

func (LookupBastionResultOutput) ToLookupBastionResultOutputWithContext

func (o LookupBastionResultOutput) ToLookupBastionResultOutputWithContext(ctx context.Context) LookupBastionResultOutput

type LookupSessionArgs

type LookupSessionArgs struct {
	// The unique identifier (OCID) of the session.
	SessionId string `pulumi:"sessionId"`
}

A collection of arguments for invoking getSession.

type LookupSessionOutputArgs

type LookupSessionOutputArgs struct {
	// The unique identifier (OCID) of the session.
	SessionId pulumi.StringInput `pulumi:"sessionId"`
}

A collection of arguments for invoking getSession.

func (LookupSessionOutputArgs) ElementType

func (LookupSessionOutputArgs) ElementType() reflect.Type

type LookupSessionResult

type LookupSessionResult struct {
	// The unique identifier (OCID) of the bastion that is hosting this session.
	BastionId string `pulumi:"bastionId"`
	// The name of the bastion that is hosting this session.
	BastionName string `pulumi:"bastionName"`
	// The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.
	BastionPublicHostKeyInfo string `pulumi:"bastionPublicHostKeyInfo"`
	// The username that the session uses to connect to the target resource.
	BastionUserName string `pulumi:"bastionUserName"`
	// The name of the session.
	DisplayName string `pulumi:"displayName"`
	// The unique identifier (OCID) of the session, which can't be changed after creation.
	Id string `pulumi:"id"`
	// Public key details for a bastion session.
	KeyDetails []GetSessionKeyDetail `pulumi:"keyDetails"`
	// The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
	KeyType string `pulumi:"keyType"`
	// A message describing the current session state in more detail.
	LifecycleDetails string `pulumi:"lifecycleDetails"`
	SessionId        string `pulumi:"sessionId"`
	// The amount of time the session can remain active.
	SessionTtlInSeconds int `pulumi:"sessionTtlInSeconds"`
	// The connection message for the session.
	SshMetadata map[string]interface{} `pulumi:"sshMetadata"`
	// The current state of the session.
	State string `pulumi:"state"`
	// Details about a bastion session's target resource.
	TargetResourceDetails []GetSessionTargetResourceDetail `pulumi:"targetResourceDetails"`
	// The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated string `pulumi:"timeCreated"`
	// The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated string `pulumi:"timeUpdated"`
}

A collection of values returned by getSession.

func LookupSession

func LookupSession(ctx *pulumi.Context, args *LookupSessionArgs, opts ...pulumi.InvokeOption) (*LookupSessionResult, error)

This data source provides details about a specific Session resource in Oracle Cloud Infrastructure Bastion service.

Retrieves a session identified by the session ID. A bastion session lets authorized users connect to a target resource for a predetermined amount of time.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Bastion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Bastion.GetSession(ctx, &bastion.GetSessionArgs{
			SessionId: testSessionOciBastionSession.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupSessionResultOutput

type LookupSessionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSession.

func (LookupSessionResultOutput) BastionId

The unique identifier (OCID) of the bastion that is hosting this session.

func (LookupSessionResultOutput) BastionName

The name of the bastion that is hosting this session.

func (LookupSessionResultOutput) BastionPublicHostKeyInfo

func (o LookupSessionResultOutput) BastionPublicHostKeyInfo() pulumi.StringOutput

The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.

func (LookupSessionResultOutput) BastionUserName

func (o LookupSessionResultOutput) BastionUserName() pulumi.StringOutput

The username that the session uses to connect to the target resource.

func (LookupSessionResultOutput) DisplayName

The name of the session.

func (LookupSessionResultOutput) ElementType

func (LookupSessionResultOutput) ElementType() reflect.Type

func (LookupSessionResultOutput) Id

The unique identifier (OCID) of the session, which can't be changed after creation.

func (LookupSessionResultOutput) KeyDetails

Public key details for a bastion session.

func (LookupSessionResultOutput) KeyType

The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.

func (LookupSessionResultOutput) LifecycleDetails

func (o LookupSessionResultOutput) LifecycleDetails() pulumi.StringOutput

A message describing the current session state in more detail.

func (LookupSessionResultOutput) SessionId

func (LookupSessionResultOutput) SessionTtlInSeconds

func (o LookupSessionResultOutput) SessionTtlInSeconds() pulumi.IntOutput

The amount of time the session can remain active.

func (LookupSessionResultOutput) SshMetadata

func (o LookupSessionResultOutput) SshMetadata() pulumi.MapOutput

The connection message for the session.

func (LookupSessionResultOutput) State

The current state of the session.

func (LookupSessionResultOutput) TargetResourceDetails

Details about a bastion session's target resource.

func (LookupSessionResultOutput) TimeCreated

The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (LookupSessionResultOutput) TimeUpdated

The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (LookupSessionResultOutput) ToLookupSessionResultOutput

func (o LookupSessionResultOutput) ToLookupSessionResultOutput() LookupSessionResultOutput

func (LookupSessionResultOutput) ToLookupSessionResultOutputWithContext

func (o LookupSessionResultOutput) ToLookupSessionResultOutputWithContext(ctx context.Context) LookupSessionResultOutput

type Session

type Session struct {
	pulumi.CustomResourceState

	// The unique identifier (OCID) of the bastion on which to create this session.
	BastionId pulumi.StringOutput `pulumi:"bastionId"`
	// The name of the bastion that is hosting this session.
	BastionName pulumi.StringOutput `pulumi:"bastionName"`
	// The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.
	BastionPublicHostKeyInfo pulumi.StringOutput `pulumi:"bastionPublicHostKeyInfo"`
	// The username that the session uses to connect to the target resource.
	BastionUserName pulumi.StringOutput `pulumi:"bastionUserName"`
	// (Updatable) The name of the session.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Public key details for a bastion session.
	KeyDetails SessionKeyDetailsOutput `pulumi:"keyDetails"`
	// The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
	KeyType pulumi.StringOutput `pulumi:"keyType"`
	// A message describing the current session state in more detail.
	LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"`
	// The amount of time the session can remain active.
	SessionTtlInSeconds pulumi.IntOutput `pulumi:"sessionTtlInSeconds"`
	// The connection message for the session.
	SshMetadata pulumi.MapOutput `pulumi:"sshMetadata"`
	// The current state of the session.
	State pulumi.StringOutput `pulumi:"state"`
	// Details about a bastion session's target resource.
	TargetResourceDetails SessionTargetResourceDetailsOutput `pulumi:"targetResourceDetails"`
	// The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
}

This resource provides the Session resource in Oracle Cloud Infrastructure Bastion service.

Creates a new session in a bastion. A bastion 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.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Bastion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Bastion.NewSession(ctx, "test_session", &Bastion.SessionArgs{
			BastionId: pulumi.Any(testBastion.Id),
			KeyDetails: &bastion.SessionKeyDetailsArgs{
				PublicKeyContent: pulumi.Any(sessionKeyDetailsPublicKeyContent),
			},
			TargetResourceDetails: &bastion.SessionTargetResourceDetailsArgs{
				SessionType:                           pulumi.Any(sessionTargetResourceDetailsSessionType),
				TargetResourceFqdn:                    pulumi.Any(sessionTargetResourceDetailsTargetResourceFqdn),
				TargetResourceId:                      pulumi.Any(testTargetResource.Id),
				TargetResourceOperatingSystemUserName: pulumi.Any(testUser.Name),
				TargetResourcePort:                    pulumi.Any(sessionTargetResourceDetailsTargetResourcePort),
				TargetResourcePrivateIpAddress:        pulumi.Any(sessionTargetResourceDetailsTargetResourcePrivateIpAddress),
			},
			DisplayName:         pulumi.Any(sessionDisplayName),
			KeyType:             pulumi.Any(sessionKeyType),
			SessionTtlInSeconds: pulumi.Any(sessionSessionTtlInSeconds),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Sessions can be imported using the `id`, e.g.

```sh $ pulumi import oci:Bastion/session:Session test_session "id" ```

func GetSession

func GetSession(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SessionState, opts ...pulumi.ResourceOption) (*Session, error)

GetSession gets an existing Session resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSession

func NewSession(ctx *pulumi.Context,
	name string, args *SessionArgs, opts ...pulumi.ResourceOption) (*Session, error)

NewSession registers a new resource with the given unique name, arguments, and options.

func (*Session) ElementType

func (*Session) ElementType() reflect.Type

func (*Session) ToSessionOutput

func (i *Session) ToSessionOutput() SessionOutput

func (*Session) ToSessionOutputWithContext

func (i *Session) ToSessionOutputWithContext(ctx context.Context) SessionOutput

type SessionArgs

type SessionArgs struct {
	// The unique identifier (OCID) of the bastion on which to create this session.
	BastionId pulumi.StringInput
	// (Updatable) The name of the session.
	DisplayName pulumi.StringPtrInput
	// Public key details for a bastion session.
	KeyDetails SessionKeyDetailsInput
	// The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
	KeyType pulumi.StringPtrInput
	// The amount of time the session can remain active.
	SessionTtlInSeconds pulumi.IntPtrInput
	// Details about a bastion session's target resource.
	TargetResourceDetails SessionTargetResourceDetailsInput
}

The set of arguments for constructing a Session resource.

func (SessionArgs) ElementType

func (SessionArgs) ElementType() reflect.Type

type SessionArray

type SessionArray []SessionInput

func (SessionArray) ElementType

func (SessionArray) ElementType() reflect.Type

func (SessionArray) ToSessionArrayOutput

func (i SessionArray) ToSessionArrayOutput() SessionArrayOutput

func (SessionArray) ToSessionArrayOutputWithContext

func (i SessionArray) ToSessionArrayOutputWithContext(ctx context.Context) SessionArrayOutput

type SessionArrayInput

type SessionArrayInput interface {
	pulumi.Input

	ToSessionArrayOutput() SessionArrayOutput
	ToSessionArrayOutputWithContext(context.Context) SessionArrayOutput
}

SessionArrayInput is an input type that accepts SessionArray and SessionArrayOutput values. You can construct a concrete instance of `SessionArrayInput` via:

SessionArray{ SessionArgs{...} }

type SessionArrayOutput

type SessionArrayOutput struct{ *pulumi.OutputState }

func (SessionArrayOutput) ElementType

func (SessionArrayOutput) ElementType() reflect.Type

func (SessionArrayOutput) Index

func (SessionArrayOutput) ToSessionArrayOutput

func (o SessionArrayOutput) ToSessionArrayOutput() SessionArrayOutput

func (SessionArrayOutput) ToSessionArrayOutputWithContext

func (o SessionArrayOutput) ToSessionArrayOutputWithContext(ctx context.Context) SessionArrayOutput

type SessionInput

type SessionInput interface {
	pulumi.Input

	ToSessionOutput() SessionOutput
	ToSessionOutputWithContext(ctx context.Context) SessionOutput
}

type SessionKeyDetails

type SessionKeyDetails struct {
	// The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.
	PublicKeyContent string `pulumi:"publicKeyContent"`
}

type SessionKeyDetailsArgs

type SessionKeyDetailsArgs struct {
	// The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.
	PublicKeyContent pulumi.StringInput `pulumi:"publicKeyContent"`
}

func (SessionKeyDetailsArgs) ElementType

func (SessionKeyDetailsArgs) ElementType() reflect.Type

func (SessionKeyDetailsArgs) ToSessionKeyDetailsOutput

func (i SessionKeyDetailsArgs) ToSessionKeyDetailsOutput() SessionKeyDetailsOutput

func (SessionKeyDetailsArgs) ToSessionKeyDetailsOutputWithContext

func (i SessionKeyDetailsArgs) ToSessionKeyDetailsOutputWithContext(ctx context.Context) SessionKeyDetailsOutput

func (SessionKeyDetailsArgs) ToSessionKeyDetailsPtrOutput

func (i SessionKeyDetailsArgs) ToSessionKeyDetailsPtrOutput() SessionKeyDetailsPtrOutput

func (SessionKeyDetailsArgs) ToSessionKeyDetailsPtrOutputWithContext

func (i SessionKeyDetailsArgs) ToSessionKeyDetailsPtrOutputWithContext(ctx context.Context) SessionKeyDetailsPtrOutput

type SessionKeyDetailsInput

type SessionKeyDetailsInput interface {
	pulumi.Input

	ToSessionKeyDetailsOutput() SessionKeyDetailsOutput
	ToSessionKeyDetailsOutputWithContext(context.Context) SessionKeyDetailsOutput
}

SessionKeyDetailsInput is an input type that accepts SessionKeyDetailsArgs and SessionKeyDetailsOutput values. You can construct a concrete instance of `SessionKeyDetailsInput` via:

SessionKeyDetailsArgs{...}

type SessionKeyDetailsOutput

type SessionKeyDetailsOutput struct{ *pulumi.OutputState }

func (SessionKeyDetailsOutput) ElementType

func (SessionKeyDetailsOutput) ElementType() reflect.Type

func (SessionKeyDetailsOutput) PublicKeyContent

func (o SessionKeyDetailsOutput) PublicKeyContent() pulumi.StringOutput

The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.

func (SessionKeyDetailsOutput) ToSessionKeyDetailsOutput

func (o SessionKeyDetailsOutput) ToSessionKeyDetailsOutput() SessionKeyDetailsOutput

func (SessionKeyDetailsOutput) ToSessionKeyDetailsOutputWithContext

func (o SessionKeyDetailsOutput) ToSessionKeyDetailsOutputWithContext(ctx context.Context) SessionKeyDetailsOutput

func (SessionKeyDetailsOutput) ToSessionKeyDetailsPtrOutput

func (o SessionKeyDetailsOutput) ToSessionKeyDetailsPtrOutput() SessionKeyDetailsPtrOutput

func (SessionKeyDetailsOutput) ToSessionKeyDetailsPtrOutputWithContext

func (o SessionKeyDetailsOutput) ToSessionKeyDetailsPtrOutputWithContext(ctx context.Context) SessionKeyDetailsPtrOutput

type SessionKeyDetailsPtrInput

type SessionKeyDetailsPtrInput interface {
	pulumi.Input

	ToSessionKeyDetailsPtrOutput() SessionKeyDetailsPtrOutput
	ToSessionKeyDetailsPtrOutputWithContext(context.Context) SessionKeyDetailsPtrOutput
}

SessionKeyDetailsPtrInput is an input type that accepts SessionKeyDetailsArgs, SessionKeyDetailsPtr and SessionKeyDetailsPtrOutput values. You can construct a concrete instance of `SessionKeyDetailsPtrInput` via:

        SessionKeyDetailsArgs{...}

or:

        nil

type SessionKeyDetailsPtrOutput

type SessionKeyDetailsPtrOutput struct{ *pulumi.OutputState }

func (SessionKeyDetailsPtrOutput) Elem

func (SessionKeyDetailsPtrOutput) ElementType

func (SessionKeyDetailsPtrOutput) ElementType() reflect.Type

func (SessionKeyDetailsPtrOutput) PublicKeyContent

func (o SessionKeyDetailsPtrOutput) PublicKeyContent() pulumi.StringPtrOutput

The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.

func (SessionKeyDetailsPtrOutput) ToSessionKeyDetailsPtrOutput

func (o SessionKeyDetailsPtrOutput) ToSessionKeyDetailsPtrOutput() SessionKeyDetailsPtrOutput

func (SessionKeyDetailsPtrOutput) ToSessionKeyDetailsPtrOutputWithContext

func (o SessionKeyDetailsPtrOutput) ToSessionKeyDetailsPtrOutputWithContext(ctx context.Context) SessionKeyDetailsPtrOutput

type SessionMap

type SessionMap map[string]SessionInput

func (SessionMap) ElementType

func (SessionMap) ElementType() reflect.Type

func (SessionMap) ToSessionMapOutput

func (i SessionMap) ToSessionMapOutput() SessionMapOutput

func (SessionMap) ToSessionMapOutputWithContext

func (i SessionMap) ToSessionMapOutputWithContext(ctx context.Context) SessionMapOutput

type SessionMapInput

type SessionMapInput interface {
	pulumi.Input

	ToSessionMapOutput() SessionMapOutput
	ToSessionMapOutputWithContext(context.Context) SessionMapOutput
}

SessionMapInput is an input type that accepts SessionMap and SessionMapOutput values. You can construct a concrete instance of `SessionMapInput` via:

SessionMap{ "key": SessionArgs{...} }

type SessionMapOutput

type SessionMapOutput struct{ *pulumi.OutputState }

func (SessionMapOutput) ElementType

func (SessionMapOutput) ElementType() reflect.Type

func (SessionMapOutput) MapIndex

func (SessionMapOutput) ToSessionMapOutput

func (o SessionMapOutput) ToSessionMapOutput() SessionMapOutput

func (SessionMapOutput) ToSessionMapOutputWithContext

func (o SessionMapOutput) ToSessionMapOutputWithContext(ctx context.Context) SessionMapOutput

type SessionOutput

type SessionOutput struct{ *pulumi.OutputState }

func (SessionOutput) BastionId added in v0.4.0

func (o SessionOutput) BastionId() pulumi.StringOutput

The unique identifier (OCID) of the bastion on which to create this session.

func (SessionOutput) BastionName added in v0.4.0

func (o SessionOutput) BastionName() pulumi.StringOutput

The name of the bastion that is hosting this session.

func (SessionOutput) BastionPublicHostKeyInfo added in v0.4.0

func (o SessionOutput) BastionPublicHostKeyInfo() pulumi.StringOutput

The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.

func (SessionOutput) BastionUserName added in v0.4.0

func (o SessionOutput) BastionUserName() pulumi.StringOutput

The username that the session uses to connect to the target resource.

func (SessionOutput) DisplayName added in v0.4.0

func (o SessionOutput) DisplayName() pulumi.StringOutput

(Updatable) The name of the session.

func (SessionOutput) ElementType

func (SessionOutput) ElementType() reflect.Type

func (SessionOutput) KeyDetails added in v0.4.0

func (o SessionOutput) KeyDetails() SessionKeyDetailsOutput

Public key details for a bastion session.

func (SessionOutput) KeyType added in v0.4.0

func (o SessionOutput) KeyType() pulumi.StringOutput

The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.

func (SessionOutput) LifecycleDetails added in v0.4.0

func (o SessionOutput) LifecycleDetails() pulumi.StringOutput

A message describing the current session state in more detail.

func (SessionOutput) SessionTtlInSeconds added in v0.4.0

func (o SessionOutput) SessionTtlInSeconds() pulumi.IntOutput

The amount of time the session can remain active.

func (SessionOutput) SshMetadata added in v0.4.0

func (o SessionOutput) SshMetadata() pulumi.MapOutput

The connection message for the session.

func (SessionOutput) State added in v0.4.0

func (o SessionOutput) State() pulumi.StringOutput

The current state of the session.

func (SessionOutput) TargetResourceDetails added in v0.4.0

func (o SessionOutput) TargetResourceDetails() SessionTargetResourceDetailsOutput

Details about a bastion session's target resource.

func (SessionOutput) TimeCreated added in v0.4.0

func (o SessionOutput) TimeCreated() pulumi.StringOutput

The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (SessionOutput) TimeUpdated added in v0.4.0

func (o SessionOutput) TimeUpdated() pulumi.StringOutput

The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`

func (SessionOutput) ToSessionOutput

func (o SessionOutput) ToSessionOutput() SessionOutput

func (SessionOutput) ToSessionOutputWithContext

func (o SessionOutput) ToSessionOutputWithContext(ctx context.Context) SessionOutput

type SessionState

type SessionState struct {
	// The unique identifier (OCID) of the bastion on which to create this session.
	BastionId pulumi.StringPtrInput
	// The name of the bastion that is hosting this session.
	BastionName pulumi.StringPtrInput
	// The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.
	BastionPublicHostKeyInfo pulumi.StringPtrInput
	// The username that the session uses to connect to the target resource.
	BastionUserName pulumi.StringPtrInput
	// (Updatable) The name of the session.
	DisplayName pulumi.StringPtrInput
	// Public key details for a bastion session.
	KeyDetails SessionKeyDetailsPtrInput
	// The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
	KeyType pulumi.StringPtrInput
	// A message describing the current session state in more detail.
	LifecycleDetails pulumi.StringPtrInput
	// The amount of time the session can remain active.
	SessionTtlInSeconds pulumi.IntPtrInput
	// The connection message for the session.
	SshMetadata pulumi.MapInput
	// The current state of the session.
	State pulumi.StringPtrInput
	// Details about a bastion session's target resource.
	TargetResourceDetails SessionTargetResourceDetailsPtrInput
	// The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeCreated pulumi.StringPtrInput
	// The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
	TimeUpdated pulumi.StringPtrInput
}

func (SessionState) ElementType

func (SessionState) ElementType() reflect.Type

type SessionTargetResourceDetails

type SessionTargetResourceDetails struct {
	// The session type.
	SessionType string `pulumi:"sessionType"`
	// The display name of the target Compute instance that the session connects to.
	TargetResourceDisplayName *string `pulumi:"targetResourceDisplayName"`
	// The Fully Qualified Domain Name of the target resource that the session connects to.
	TargetResourceFqdn *string `pulumi:"targetResourceFqdn"`
	// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
	TargetResourceId *string `pulumi:"targetResourceId"`
	// The name of the user on the target resource operating system that the session uses for the connection.
	TargetResourceOperatingSystemUserName *string `pulumi:"targetResourceOperatingSystemUserName"`
	// The port number to connect to on the target resource.
	TargetResourcePort *int `pulumi:"targetResourcePort"`
	// The private IP address of the target resource that the session connects to.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	TargetResourcePrivateIpAddress *string `pulumi:"targetResourcePrivateIpAddress"`
}

type SessionTargetResourceDetailsArgs

type SessionTargetResourceDetailsArgs struct {
	// The session type.
	SessionType pulumi.StringInput `pulumi:"sessionType"`
	// The display name of the target Compute instance that the session connects to.
	TargetResourceDisplayName pulumi.StringPtrInput `pulumi:"targetResourceDisplayName"`
	// The Fully Qualified Domain Name of the target resource that the session connects to.
	TargetResourceFqdn pulumi.StringPtrInput `pulumi:"targetResourceFqdn"`
	// The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.
	TargetResourceId pulumi.StringPtrInput `pulumi:"targetResourceId"`
	// The name of the user on the target resource operating system that the session uses for the connection.
	TargetResourceOperatingSystemUserName pulumi.StringPtrInput `pulumi:"targetResourceOperatingSystemUserName"`
	// The port number to connect to on the target resource.
	TargetResourcePort pulumi.IntPtrInput `pulumi:"targetResourcePort"`
	// The private IP address of the target resource that the session connects to.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	TargetResourcePrivateIpAddress pulumi.StringPtrInput `pulumi:"targetResourcePrivateIpAddress"`
}

func (SessionTargetResourceDetailsArgs) ElementType

func (SessionTargetResourceDetailsArgs) ToSessionTargetResourceDetailsOutput

func (i SessionTargetResourceDetailsArgs) ToSessionTargetResourceDetailsOutput() SessionTargetResourceDetailsOutput

func (SessionTargetResourceDetailsArgs) ToSessionTargetResourceDetailsOutputWithContext

func (i SessionTargetResourceDetailsArgs) ToSessionTargetResourceDetailsOutputWithContext(ctx context.Context) SessionTargetResourceDetailsOutput

func (SessionTargetResourceDetailsArgs) ToSessionTargetResourceDetailsPtrOutput

func (i SessionTargetResourceDetailsArgs) ToSessionTargetResourceDetailsPtrOutput() SessionTargetResourceDetailsPtrOutput

func (SessionTargetResourceDetailsArgs) ToSessionTargetResourceDetailsPtrOutputWithContext

func (i SessionTargetResourceDetailsArgs) ToSessionTargetResourceDetailsPtrOutputWithContext(ctx context.Context) SessionTargetResourceDetailsPtrOutput

type SessionTargetResourceDetailsInput

type SessionTargetResourceDetailsInput interface {
	pulumi.Input

	ToSessionTargetResourceDetailsOutput() SessionTargetResourceDetailsOutput
	ToSessionTargetResourceDetailsOutputWithContext(context.Context) SessionTargetResourceDetailsOutput
}

SessionTargetResourceDetailsInput is an input type that accepts SessionTargetResourceDetailsArgs and SessionTargetResourceDetailsOutput values. You can construct a concrete instance of `SessionTargetResourceDetailsInput` via:

SessionTargetResourceDetailsArgs{...}

type SessionTargetResourceDetailsOutput

type SessionTargetResourceDetailsOutput struct{ *pulumi.OutputState }

func (SessionTargetResourceDetailsOutput) ElementType

func (SessionTargetResourceDetailsOutput) SessionType

The session type.

func (SessionTargetResourceDetailsOutput) TargetResourceDisplayName

func (o SessionTargetResourceDetailsOutput) TargetResourceDisplayName() pulumi.StringPtrOutput

The display name of the target Compute instance that the session connects to.

func (SessionTargetResourceDetailsOutput) TargetResourceFqdn added in v0.6.0

The Fully Qualified Domain Name of the target resource that the session connects to.

func (SessionTargetResourceDetailsOutput) TargetResourceId

The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.

func (SessionTargetResourceDetailsOutput) TargetResourceOperatingSystemUserName

func (o SessionTargetResourceDetailsOutput) TargetResourceOperatingSystemUserName() pulumi.StringPtrOutput

The name of the user on the target resource operating system that the session uses for the connection.

func (SessionTargetResourceDetailsOutput) TargetResourcePort

The port number to connect to on the target resource.

func (SessionTargetResourceDetailsOutput) TargetResourcePrivateIpAddress

func (o SessionTargetResourceDetailsOutput) TargetResourcePrivateIpAddress() pulumi.StringPtrOutput

The private IP address of the target resource that the session connects to.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (SessionTargetResourceDetailsOutput) ToSessionTargetResourceDetailsOutput

func (o SessionTargetResourceDetailsOutput) ToSessionTargetResourceDetailsOutput() SessionTargetResourceDetailsOutput

func (SessionTargetResourceDetailsOutput) ToSessionTargetResourceDetailsOutputWithContext

func (o SessionTargetResourceDetailsOutput) ToSessionTargetResourceDetailsOutputWithContext(ctx context.Context) SessionTargetResourceDetailsOutput

func (SessionTargetResourceDetailsOutput) ToSessionTargetResourceDetailsPtrOutput

func (o SessionTargetResourceDetailsOutput) ToSessionTargetResourceDetailsPtrOutput() SessionTargetResourceDetailsPtrOutput

func (SessionTargetResourceDetailsOutput) ToSessionTargetResourceDetailsPtrOutputWithContext

func (o SessionTargetResourceDetailsOutput) ToSessionTargetResourceDetailsPtrOutputWithContext(ctx context.Context) SessionTargetResourceDetailsPtrOutput

type SessionTargetResourceDetailsPtrInput

type SessionTargetResourceDetailsPtrInput interface {
	pulumi.Input

	ToSessionTargetResourceDetailsPtrOutput() SessionTargetResourceDetailsPtrOutput
	ToSessionTargetResourceDetailsPtrOutputWithContext(context.Context) SessionTargetResourceDetailsPtrOutput
}

SessionTargetResourceDetailsPtrInput is an input type that accepts SessionTargetResourceDetailsArgs, SessionTargetResourceDetailsPtr and SessionTargetResourceDetailsPtrOutput values. You can construct a concrete instance of `SessionTargetResourceDetailsPtrInput` via:

        SessionTargetResourceDetailsArgs{...}

or:

        nil

type SessionTargetResourceDetailsPtrOutput

type SessionTargetResourceDetailsPtrOutput struct{ *pulumi.OutputState }

func (SessionTargetResourceDetailsPtrOutput) Elem

func (SessionTargetResourceDetailsPtrOutput) ElementType

func (SessionTargetResourceDetailsPtrOutput) SessionType

The session type.

func (SessionTargetResourceDetailsPtrOutput) TargetResourceDisplayName

func (o SessionTargetResourceDetailsPtrOutput) TargetResourceDisplayName() pulumi.StringPtrOutput

The display name of the target Compute instance that the session connects to.

func (SessionTargetResourceDetailsPtrOutput) TargetResourceFqdn added in v0.6.0

The Fully Qualified Domain Name of the target resource that the session connects to.

func (SessionTargetResourceDetailsPtrOutput) TargetResourceId

The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to.

func (SessionTargetResourceDetailsPtrOutput) TargetResourceOperatingSystemUserName

func (o SessionTargetResourceDetailsPtrOutput) TargetResourceOperatingSystemUserName() pulumi.StringPtrOutput

The name of the user on the target resource operating system that the session uses for the connection.

func (SessionTargetResourceDetailsPtrOutput) TargetResourcePort

The port number to connect to on the target resource.

func (SessionTargetResourceDetailsPtrOutput) TargetResourcePrivateIpAddress

func (o SessionTargetResourceDetailsPtrOutput) TargetResourcePrivateIpAddress() pulumi.StringPtrOutput

The private IP address of the target resource that the session connects to.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (SessionTargetResourceDetailsPtrOutput) ToSessionTargetResourceDetailsPtrOutput

func (o SessionTargetResourceDetailsPtrOutput) ToSessionTargetResourceDetailsPtrOutput() SessionTargetResourceDetailsPtrOutput

func (SessionTargetResourceDetailsPtrOutput) ToSessionTargetResourceDetailsPtrOutputWithContext

func (o SessionTargetResourceDetailsPtrOutput) ToSessionTargetResourceDetailsPtrOutputWithContext(ctx context.Context) SessionTargetResourceDetailsPtrOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL