oci_apigateway_gateway

This resource provides the Gateway resource in Oracle Cloud Infrastructure API Gateway service.

Creates a new gateway.

Example Usage

resource "oci_apigateway_gateway" "test_gateway" {
    #Required
    compartment_id = var.compartment_id
    endpoint_type = var.gateway_endpoint_type
    subnet_id = oci_core_subnet.test_subnet.id

    #Optional
    certificate_id = "${oci_apigateway_certificate.test_certificate.id}"
    ca_bundles {
        #Required
        type = var.gateway_ca_bundles_type

        #Optional
        ca_bundle_id = oci_apigateway_ca_bundle.test_ca_bundle.id
        certificate_authority_id = oci_apigateway_certificate_authority.test_certificate_authority.id
    }
    defined_tags = {"Operations.CostCenter"= "42"}
    display_name = var.gateway_display_name
    freeform_tags = {"Department"= "Finance"}
    network_security_group_ids = var.gateway_network_security_group_ids
    response_cache_details {
        #Required
        type = var.gateway_response_cache_details_type

        #Optional
        authentication_secret_id = oci_vault_secret.test_secret.id
        authentication_secret_version_number = var.gateway_response_cache_details_authentication_secret_version_number
        connect_timeout_in_ms = var.gateway_response_cache_details_connect_timeout_in_ms
        is_ssl_enabled = var.gateway_response_cache_details_is_ssl_enabled
        is_ssl_verify_disabled = var.gateway_response_cache_details_is_ssl_verify_disabled
        read_timeout_in_ms = var.gateway_response_cache_details_read_timeout_in_ms
        send_timeout_in_ms = var.gateway_response_cache_details_send_timeout_in_ms
        servers {

            #Optional
            host = var.gateway_response_cache_details_servers_host
            port = var.gateway_response_cache_details_servers_port
        }
    }
}

Argument Reference

The following arguments are supported:

* 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

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Gateway * update - (Defaults to 20 minutes), when updating the Gateway * delete - (Defaults to 20 minutes), when destroying the Gateway

Import

Gateways can be imported using the id, e.g.

$ terraform import oci_apigateway_gateway.test_gateway "id"