Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi
oci.Bastion.getBastion
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBastion = oci.Bastion.getBastion({
bastionId: testBastionOciBastionBastion.id,
});
import pulumi
import pulumi_oci as oci
test_bastion = oci.Bastion.get_bastion(bastion_id=test_bastion_oci_bastion_bastion["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testBastion = Oci.Bastion.GetBastion.Invoke(new()
{
BastionId = testBastionOciBastionBastion.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Bastion.BastionFunctions;
import com.pulumi.oci.Bastion.inputs.GetBastionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testBastion = BastionFunctions.getBastion(GetBastionArgs.builder()
.bastionId(testBastionOciBastionBastion.id())
.build());
}
}
variables:
testBastion:
fn::invoke:
Function: oci:Bastion:getBastion
Arguments:
bastionId: ${testBastionOciBastionBastion.id}
Using getBastion
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBastion(args: GetBastionArgs, opts?: InvokeOptions): Promise<GetBastionResult>
function getBastionOutput(args: GetBastionOutputArgs, opts?: InvokeOptions): Output<GetBastionResult>
def get_bastion(bastion_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBastionResult
def get_bastion_output(bastion_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBastionResult]
func GetBastion(ctx *Context, args *GetBastionArgs, opts ...InvokeOption) (*GetBastionResult, error)
func GetBastionOutput(ctx *Context, args *GetBastionOutputArgs, opts ...InvokeOption) GetBastionResultOutput
> Note: This function is named GetBastion
in the Go SDK.
public static class GetBastion
{
public static Task<GetBastionResult> InvokeAsync(GetBastionArgs args, InvokeOptions? opts = null)
public static Output<GetBastionResult> Invoke(GetBastionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBastionResult> getBastion(GetBastionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Bastion/getBastion:getBastion
arguments:
# arguments dictionary
The following arguments are supported:
- Bastion
Id string - The unique identifier (OCID) of the bastion.
- Bastion
Id string - The unique identifier (OCID) of the bastion.
- bastion
Id String - The unique identifier (OCID) of the bastion.
- bastion
Id string - The unique identifier (OCID) of the bastion.
- bastion_
id str - The unique identifier (OCID) of the bastion.
- bastion
Id String - The unique identifier (OCID) of the bastion.
getBastion Result
The following output properties are available:
- Bastion
Id string - Bastion
Type string - The type of bastion.
- Client
Cidr List<string>Block Allow Lists - A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
- Compartment
Id string - The unique identifier (OCID) of the compartment where the bastion is located.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dns
Proxy stringStatus - Flag to enable FQDN and SOCKS5 Proxy Support. Example:
ENABLED
,DISABLED
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- The unique identifier (OCID) of the bastion, which can't be changed after creation.
- Lifecycle
Details string - A message describing the current state in more detail.
- Max
Session intTtl In Seconds - The maximum amount of time that any session on the bastion can remain active.
- Max
Sessions intAllowed - The maximum number of active sessions allowed on the bastion.
- Name string
- The name of the bastion, which can't be changed after creation.
- Phone
Book stringEntry - The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to
standard
bastions. - Private
Endpoint stringIp Address - The private IP address of the created private endpoint.
- State string
- The current state of the bastion.
- Static
Jump List<string>Host Ip Addresses - A list of IP addresses of the hosts that the bastion has access to. Not applicable to
standard
bastions. - Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Target
Subnet stringId - The unique identifier (OCID) of the subnet that the bastion connects to.
- Target
Vcn stringId - The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
- Time
Created string - The time the bastion was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- Time
Updated string - The time the bastion was updated. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- Bastion
Id string - Bastion
Type string - The type of bastion.
- Client
Cidr []stringBlock Allow Lists - A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
- Compartment
Id string - The unique identifier (OCID) of the compartment where the bastion is located.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dns
Proxy stringStatus - Flag to enable FQDN and SOCKS5 Proxy Support. Example:
ENABLED
,DISABLED
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- The unique identifier (OCID) of the bastion, which can't be changed after creation.
- Lifecycle
Details string - A message describing the current state in more detail.
- Max
Session intTtl In Seconds - The maximum amount of time that any session on the bastion can remain active.
- Max
Sessions intAllowed - The maximum number of active sessions allowed on the bastion.
- Name string
- The name of the bastion, which can't be changed after creation.
- Phone
Book stringEntry - The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to
standard
bastions. - Private
Endpoint stringIp Address - The private IP address of the created private endpoint.
- State string
- The current state of the bastion.
- Static
Jump []stringHost Ip Addresses - A list of IP addresses of the hosts that the bastion has access to. Not applicable to
standard
bastions. - map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Target
Subnet stringId - The unique identifier (OCID) of the subnet that the bastion connects to.
- Target
Vcn stringId - The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
- Time
Created string - The time the bastion was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- Time
Updated string - The time the bastion was updated. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- bastion
Id String - bastion
Type String - The type of bastion.
- client
Cidr List<String>Block Allow Lists - A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
- compartment
Id String - The unique identifier (OCID) of the compartment where the bastion is located.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- dns
Proxy StringStatus - Flag to enable FQDN and SOCKS5 Proxy Support. Example:
ENABLED
,DISABLED
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- The unique identifier (OCID) of the bastion, which can't be changed after creation.
- lifecycle
Details String - A message describing the current state in more detail.
- max
Session IntegerTtl In Seconds - The maximum amount of time that any session on the bastion can remain active.
- max
Sessions IntegerAllowed - The maximum number of active sessions allowed on the bastion.
- name String
- The name of the bastion, which can't be changed after creation.
- phone
Book StringEntry - The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to
standard
bastions. - private
Endpoint StringIp Address - The private IP address of the created private endpoint.
- state String
- The current state of the bastion.
- static
Jump List<String>Host Ip Addresses - A list of IP addresses of the hosts that the bastion has access to. Not applicable to
standard
bastions. - Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Subnet StringId - The unique identifier (OCID) of the subnet that the bastion connects to.
- target
Vcn StringId - The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
- time
Created String - The time the bastion was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- time
Updated String - The time the bastion was updated. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- bastion
Id string - bastion
Type string - The type of bastion.
- client
Cidr string[]Block Allow Lists - A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
- compartment
Id string - The unique identifier (OCID) of the compartment where the bastion is located.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- dns
Proxy stringStatus - Flag to enable FQDN and SOCKS5 Proxy Support. Example:
ENABLED
,DISABLED
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- The unique identifier (OCID) of the bastion, which can't be changed after creation.
- lifecycle
Details string - A message describing the current state in more detail.
- max
Session numberTtl In Seconds - The maximum amount of time that any session on the bastion can remain active.
- max
Sessions numberAllowed - The maximum number of active sessions allowed on the bastion.
- name string
- The name of the bastion, which can't be changed after creation.
- phone
Book stringEntry - The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to
standard
bastions. - private
Endpoint stringIp Address - The private IP address of the created private endpoint.
- state string
- The current state of the bastion.
- static
Jump string[]Host Ip Addresses - A list of IP addresses of the hosts that the bastion has access to. Not applicable to
standard
bastions. - {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Subnet stringId - The unique identifier (OCID) of the subnet that the bastion connects to.
- target
Vcn stringId - The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
- time
Created string - The time the bastion was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- time
Updated string - The time the bastion was updated. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- bastion_
id str - bastion_
type str - The type of bastion.
- client_
cidr_ Sequence[str]block_ allow_ lists - A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
- compartment_
id str - The unique identifier (OCID) of the compartment where the bastion is located.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- dns_
proxy_ strstatus - Flag to enable FQDN and SOCKS5 Proxy Support. Example:
ENABLED
,DISABLED
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- The unique identifier (OCID) of the bastion, which can't be changed after creation.
- lifecycle_
details str - A message describing the current state in more detail.
- max_
session_ intttl_ in_ seconds - The maximum amount of time that any session on the bastion can remain active.
- max_
sessions_ intallowed - The maximum number of active sessions allowed on the bastion.
- name str
- The name of the bastion, which can't be changed after creation.
- phone_
book_ strentry - The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to
standard
bastions. - private_
endpoint_ strip_ address - The private IP address of the created private endpoint.
- state str
- The current state of the bastion.
- static_
jump_ Sequence[str]host_ ip_ addresses - A list of IP addresses of the hosts that the bastion has access to. Not applicable to
standard
bastions. - Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target_
subnet_ strid - The unique identifier (OCID) of the subnet that the bastion connects to.
- target_
vcn_ strid - The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
- time_
created str - The time the bastion was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- time_
updated str - The time the bastion was updated. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- bastion
Id String - bastion
Type String - The type of bastion.
- client
Cidr List<String>Block Allow Lists - A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
- compartment
Id String - The unique identifier (OCID) of the compartment where the bastion is located.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- dns
Proxy StringStatus - Flag to enable FQDN and SOCKS5 Proxy Support. Example:
ENABLED
,DISABLED
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- The unique identifier (OCID) of the bastion, which can't be changed after creation.
- lifecycle
Details String - A message describing the current state in more detail.
- max
Session NumberTtl In Seconds - The maximum amount of time that any session on the bastion can remain active.
- max
Sessions NumberAllowed - The maximum number of active sessions allowed on the bastion.
- name String
- The name of the bastion, which can't be changed after creation.
- phone
Book StringEntry - The phonebook entry of the customer's team, which can't be changed after creation. Not applicable to
standard
bastions. - private
Endpoint StringIp Address - The private IP address of the created private endpoint.
- state String
- The current state of the bastion.
- static
Jump List<String>Host Ip Addresses - A list of IP addresses of the hosts that the bastion has access to. Not applicable to
standard
bastions. - Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Subnet StringId - The unique identifier (OCID) of the subnet that the bastion connects to.
- target
Vcn StringId - The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
- time
Created String - The time the bastion was created. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
- time
Updated String - The time the bastion was updated. Format is defined by RFC3339. Example:
2020-01-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.