google_api_gateway_api

A consumable API that can be used by multiple Gateways.

To get more information about Api, see:

Open in Cloud Shell

Example Usage - Apigateway Api Basic

resource "google_api_gateway_api" "api" {
  provider = google-beta
  api_id = "my-api"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Api can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Api using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/global/apis/{{api_id}}"
  to = google_api_gateway_api.default
}

When using the terraform import command, Api can be imported using one of the formats above. For example:

$ terraform import google_api_gateway_api.default projects/{{project}}/locations/global/apis/{{api_id}}
$ terraform import google_api_gateway_api.default {{project}}/{{api_id}}
$ terraform import google_api_gateway_api.default {{api_id}}

User Project Overrides

This resource supports User Project Overrides.