Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ApiGateway.getGateway
Explore with Pulumi AI
This data source provides details about a specific Gateway resource in Oracle Cloud Infrastructure API Gateway service.
Gets a gateway by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testGateway = oci.ApiGateway.getGateway({
    gatewayId: testGatewayOciApigatewayGateway.id,
});
import pulumi
import pulumi_oci as oci
test_gateway = oci.ApiGateway.get_gateway(gateway_id=test_gateway_oci_apigateway_gateway["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/apigateway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.GetGateway(ctx, &apigateway.GetGatewayArgs{
			GatewayId: testGatewayOciApigatewayGateway.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 testGateway = Oci.ApiGateway.GetGateway.Invoke(new()
    {
        GatewayId = testGatewayOciApigatewayGateway.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ApiGateway.ApiGatewayFunctions;
import com.pulumi.oci.ApiGateway.inputs.GetGatewayArgs;
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 testGateway = ApiGatewayFunctions.getGateway(GetGatewayArgs.builder()
            .gatewayId(testGatewayOciApigatewayGateway.id())
            .build());
    }
}
variables:
  testGateway:
    fn::invoke:
      function: oci:ApiGateway:getGateway
      arguments:
        gatewayId: ${testGatewayOciApigatewayGateway.id}
Using getGateway
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 getGateway(args: GetGatewayArgs, opts?: InvokeOptions): Promise<GetGatewayResult>
function getGatewayOutput(args: GetGatewayOutputArgs, opts?: InvokeOptions): Output<GetGatewayResult>def get_gateway(gateway_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetGatewayResult
def get_gateway_output(gateway_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetGatewayResult]func LookupGateway(ctx *Context, args *LookupGatewayArgs, opts ...InvokeOption) (*LookupGatewayResult, error)
func LookupGatewayOutput(ctx *Context, args *LookupGatewayOutputArgs, opts ...InvokeOption) LookupGatewayResultOutput> Note: This function is named LookupGateway in the Go SDK.
public static class GetGateway 
{
    public static Task<GetGatewayResult> InvokeAsync(GetGatewayArgs args, InvokeOptions? opts = null)
    public static Output<GetGatewayResult> Invoke(GetGatewayInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOptions options)
public static Output<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ApiGateway/getGateway:getGateway
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GatewayId string
- The ocid of the gateway.
- GatewayId string
- The ocid of the gateway.
- gatewayId String
- The ocid of the gateway.
- gatewayId string
- The ocid of the gateway.
- gateway_id str
- The ocid of the gateway.
- gatewayId String
- The ocid of the gateway.
getGateway Result
The following output properties are available:
- CaBundles List<GetGateway Ca Bundle> 
- An array of CA bundles that should be used on the Gateway for TLS validation.
- CertificateId string
- The OCID of the resource.
- CompartmentId string
- The OCID of the compartment in which the resource is created.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- EndpointType string
- Gateway endpoint type. PUBLICwill have a public ip address assigned to it, whilePRIVATEwill only be accessible on a private IP address on the subnet. Example:PUBLICorPRIVATE
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- GatewayId string
- Hostname string
- The hostname for APIs deployed on the gateway.
- Id string
- The OCID of the resource.
- IpAddresses List<GetGateway Ip Address> 
- An array of IP addresses associated with the gateway.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- NetworkSecurity List<string>Group Ids 
- An array of Network Security Groups OCIDs associated with this API Gateway.
- ResponseCache List<GetDetails Gateway Response Cache Detail> 
- Base Gateway response cache.
- State string
- The current state of the gateway.
- SubnetId string
- The OCID of the subnet in which related resources are created.
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- CaBundles []GetGateway Ca Bundle 
- An array of CA bundles that should be used on the Gateway for TLS validation.
- CertificateId string
- The OCID of the resource.
- CompartmentId string
- The OCID of the compartment in which the resource is created.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- EndpointType string
- Gateway endpoint type. PUBLICwill have a public ip address assigned to it, whilePRIVATEwill only be accessible on a private IP address on the subnet. Example:PUBLICorPRIVATE
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- GatewayId string
- Hostname string
- The hostname for APIs deployed on the gateway.
- Id string
- The OCID of the resource.
- IpAddresses []GetGateway Ip Address 
- An array of IP addresses associated with the gateway.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- NetworkSecurity []stringGroup Ids 
- An array of Network Security Groups OCIDs associated with this API Gateway.
- ResponseCache []GetDetails Gateway Response Cache Detail 
- Base Gateway response cache.
- State string
- The current state of the gateway.
- SubnetId string
- The OCID of the subnet in which related resources are created.
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- caBundles List<GetGateway Ca Bundle> 
- An array of CA bundles that should be used on the Gateway for TLS validation.
- certificateId String
- The OCID of the resource.
- compartmentId String
- The OCID of the compartment in which the resource is created.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- endpointType String
- Gateway endpoint type. PUBLICwill have a public ip address assigned to it, whilePRIVATEwill only be accessible on a private IP address on the subnet. Example:PUBLICorPRIVATE
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- gatewayId String
- hostname String
- The hostname for APIs deployed on the gateway.
- id String
- The OCID of the resource.
- ipAddresses List<GetGateway Ip Address> 
- An array of IP addresses associated with the gateway.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- networkSecurity List<String>Group Ids 
- An array of Network Security Groups OCIDs associated with this API Gateway.
- responseCache List<GetDetails Gateway Response Cache Detail> 
- Base Gateway response cache.
- state String
- The current state of the gateway.
- subnetId String
- The OCID of the subnet in which related resources are created.
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- caBundles GetGateway Ca Bundle[] 
- An array of CA bundles that should be used on the Gateway for TLS validation.
- certificateId string
- The OCID of the resource.
- compartmentId string
- The OCID of the compartment in which the resource is created.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- endpointType string
- Gateway endpoint type. PUBLICwill have a public ip address assigned to it, whilePRIVATEwill only be accessible on a private IP address on the subnet. Example:PUBLICorPRIVATE
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- gatewayId string
- hostname string
- The hostname for APIs deployed on the gateway.
- id string
- The OCID of the resource.
- ipAddresses GetGateway Ip Address[] 
- An array of IP addresses associated with the gateway.
- lifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- networkSecurity string[]Group Ids 
- An array of Network Security Groups OCIDs associated with this API Gateway.
- responseCache GetDetails Gateway Response Cache Detail[] 
- Base Gateway response cache.
- state string
- The current state of the gateway.
- subnetId string
- The OCID of the subnet in which related resources are created.
- timeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- ca_bundles Sequence[GetGateway Ca Bundle] 
- An array of CA bundles that should be used on the Gateway for TLS validation.
- certificate_id str
- The OCID of the resource.
- compartment_id str
- The OCID of the compartment in which the resource is created.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- endpoint_type str
- Gateway endpoint type. PUBLICwill have a public ip address assigned to it, whilePRIVATEwill only be accessible on a private IP address on the subnet. Example:PUBLICorPRIVATE
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- gateway_id str
- hostname str
- The hostname for APIs deployed on the gateway.
- id str
- The OCID of the resource.
- ip_addresses Sequence[GetGateway Ip Address] 
- An array of IP addresses associated with the gateway.
- lifecycle_details str
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- network_security_ Sequence[str]group_ ids 
- An array of Network Security Groups OCIDs associated with this API Gateway.
- response_cache_ Sequence[Getdetails Gateway Response Cache Detail] 
- Base Gateway response cache.
- state str
- The current state of the gateway.
- subnet_id str
- The OCID of the subnet in which related resources are created.
- time_created str
- The time this resource was created. An RFC3339 formatted datetime string.
- time_updated str
- The time this resource was last updated. An RFC3339 formatted datetime string.
- caBundles List<Property Map>
- An array of CA bundles that should be used on the Gateway for TLS validation.
- certificateId String
- The OCID of the resource.
- compartmentId String
- The OCID of the compartment in which the resource is created.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- endpointType String
- Gateway endpoint type. PUBLICwill have a public ip address assigned to it, whilePRIVATEwill only be accessible on a private IP address on the subnet. Example:PUBLICorPRIVATE
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- gatewayId String
- hostname String
- The hostname for APIs deployed on the gateway.
- id String
- The OCID of the resource.
- ipAddresses List<Property Map>
- An array of IP addresses associated with the gateway.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
- networkSecurity List<String>Group Ids 
- An array of Network Security Groups OCIDs associated with this API Gateway.
- responseCache List<Property Map>Details 
- Base Gateway response cache.
- state String
- The current state of the gateway.
- subnetId String
- The OCID of the subnet in which related resources are created.
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
Supporting Types
GetGatewayCaBundle   
- CaBundle stringId 
- The OCID of the resource.
- string
- The OCID of the resource.
- Type string
- Type of the Response Cache.
- CaBundle stringId 
- The OCID of the resource.
- string
- The OCID of the resource.
- Type string
- Type of the Response Cache.
- caBundle StringId 
- The OCID of the resource.
- String
- The OCID of the resource.
- type String
- Type of the Response Cache.
- caBundle stringId 
- The OCID of the resource.
- string
- The OCID of the resource.
- type string
- Type of the Response Cache.
- ca_bundle_ strid 
- The OCID of the resource.
- str
- The OCID of the resource.
- type str
- Type of the Response Cache.
- caBundle StringId 
- The OCID of the resource.
- String
- The OCID of the resource.
- type String
- Type of the Response Cache.
GetGatewayIpAddress   
- IpAddress string
- An IP address.
- IpAddress string
- An IP address.
- ipAddress String
- An IP address.
- ipAddress string
- An IP address.
- ip_address str
- An IP address.
- ipAddress String
- An IP address.
GetGatewayResponseCacheDetail    
- AuthenticationSecret stringId 
- The OCID of the Oracle Vault Service secret resource.
- AuthenticationSecret stringVersion Number 
- The version number of the authentication secret to use.
- ConnectTimeout intIn Ms 
- Defines the timeout for establishing a connection with the Response Cache.
- IsSsl boolEnabled 
- Defines if the connection should be over SSL.
- IsSsl boolVerify Disabled 
- Defines whether or not to uphold SSL verification.
- ReadTimeout intIn Ms 
- Defines the timeout for reading data from the Response Cache.
- SendTimeout intIn Ms 
- Defines the timeout for transmitting data to the Response Cache.
- Servers
List<GetGateway Response Cache Detail Server> 
- The set of cache store members to connect to. At present only a single server is supported.
- Type string
- Type of the Response Cache.
- AuthenticationSecret stringId 
- The OCID of the Oracle Vault Service secret resource.
- AuthenticationSecret stringVersion Number 
- The version number of the authentication secret to use.
- ConnectTimeout intIn Ms 
- Defines the timeout for establishing a connection with the Response Cache.
- IsSsl boolEnabled 
- Defines if the connection should be over SSL.
- IsSsl boolVerify Disabled 
- Defines whether or not to uphold SSL verification.
- ReadTimeout intIn Ms 
- Defines the timeout for reading data from the Response Cache.
- SendTimeout intIn Ms 
- Defines the timeout for transmitting data to the Response Cache.
- Servers
[]GetGateway Response Cache Detail Server 
- The set of cache store members to connect to. At present only a single server is supported.
- Type string
- Type of the Response Cache.
- authenticationSecret StringId 
- The OCID of the Oracle Vault Service secret resource.
- authenticationSecret StringVersion Number 
- The version number of the authentication secret to use.
- connectTimeout IntegerIn Ms 
- Defines the timeout for establishing a connection with the Response Cache.
- isSsl BooleanEnabled 
- Defines if the connection should be over SSL.
- isSsl BooleanVerify Disabled 
- Defines whether or not to uphold SSL verification.
- readTimeout IntegerIn Ms 
- Defines the timeout for reading data from the Response Cache.
- sendTimeout IntegerIn Ms 
- Defines the timeout for transmitting data to the Response Cache.
- servers
List<GetGateway Response Cache Detail Server> 
- The set of cache store members to connect to. At present only a single server is supported.
- type String
- Type of the Response Cache.
- authenticationSecret stringId 
- The OCID of the Oracle Vault Service secret resource.
- authenticationSecret stringVersion Number 
- The version number of the authentication secret to use.
- connectTimeout numberIn Ms 
- Defines the timeout for establishing a connection with the Response Cache.
- isSsl booleanEnabled 
- Defines if the connection should be over SSL.
- isSsl booleanVerify Disabled 
- Defines whether or not to uphold SSL verification.
- readTimeout numberIn Ms 
- Defines the timeout for reading data from the Response Cache.
- sendTimeout numberIn Ms 
- Defines the timeout for transmitting data to the Response Cache.
- servers
GetGateway Response Cache Detail Server[] 
- The set of cache store members to connect to. At present only a single server is supported.
- type string
- Type of the Response Cache.
- authentication_secret_ strid 
- The OCID of the Oracle Vault Service secret resource.
- authentication_secret_ strversion_ number 
- The version number of the authentication secret to use.
- connect_timeout_ intin_ ms 
- Defines the timeout for establishing a connection with the Response Cache.
- is_ssl_ boolenabled 
- Defines if the connection should be over SSL.
- is_ssl_ boolverify_ disabled 
- Defines whether or not to uphold SSL verification.
- read_timeout_ intin_ ms 
- Defines the timeout for reading data from the Response Cache.
- send_timeout_ intin_ ms 
- Defines the timeout for transmitting data to the Response Cache.
- servers
Sequence[GetGateway Response Cache Detail Server] 
- The set of cache store members to connect to. At present only a single server is supported.
- type str
- Type of the Response Cache.
- authenticationSecret StringId 
- The OCID of the Oracle Vault Service secret resource.
- authenticationSecret StringVersion Number 
- The version number of the authentication secret to use.
- connectTimeout NumberIn Ms 
- Defines the timeout for establishing a connection with the Response Cache.
- isSsl BooleanEnabled 
- Defines if the connection should be over SSL.
- isSsl BooleanVerify Disabled 
- Defines whether or not to uphold SSL verification.
- readTimeout NumberIn Ms 
- Defines the timeout for reading data from the Response Cache.
- sendTimeout NumberIn Ms 
- Defines the timeout for transmitting data to the Response Cache.
- servers List<Property Map>
- The set of cache store members to connect to. At present only a single server is supported.
- type String
- Type of the Response Cache.
GetGatewayResponseCacheDetailServer     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.