Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix api-gateway import tests #9871

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/5104.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
apigateway: fixed import functionality for all `apigateway` resources
```
6 changes: 3 additions & 3 deletions website/docs/r/api_gateway_api.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ This resource provides the following
Api can be imported using any of these accepted formats:

```
$ terraform import google_api_gateway_api.default projects/{{project}}/locations/global/apis/{{name}}
$ terraform import google_api_gateway_api.default {{project}}/{{name}}
$ terraform import google_api_gateway_api.default {{name}}
$ 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
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/api_gateway_api_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ This resource provides the following
ApiConfig can be imported using any of these accepted formats:

```
$ terraform import google_api_gateway_api_config.default projects/{{project}}/locations/global/apis/{{api}}/configs/{{name}}
$ terraform import google_api_gateway_api_config.default {{project}}/{{api}}/{{name}}
$ terraform import google_api_gateway_api_config.default {{api}}/{{name}}
$ terraform import google_api_gateway_api_config.default projects/{{project}}/locations/global/apis/{{api}}/configs/{{api_config_id}}
$ terraform import google_api_gateway_api_config.default {{project}}/{{api}}/{{api_config_id}}
$ terraform import google_api_gateway_api_config.default {{api}}/{{api_config_id}}
```

## User Project Overrides
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/api_gateway_api_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ exported:

For all import syntaxes, the "resource in question" can take any of the following forms:

* projects/{{project}}/locations/global/apis/{{name}}
* {{project}}/{{name}}
* {{name}}
* projects/{{project}}/locations/global/apis/{{api}}
* {{project}}/{{api}}
* {{api}}

Any variables not passed in the import command will be taken from the provider configuration.

Expand Down
8 changes: 4 additions & 4 deletions website/docs/r/api_gateway_gateway.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ This resource provides the following
Gateway can be imported using any of these accepted formats:

```
$ terraform import google_api_gateway_gateway.default projects/{{project}}/locations/{{region}}/gateways/{{name}}
$ terraform import google_api_gateway_gateway.default {{project}}/{{region}}/{{name}}
$ terraform import google_api_gateway_gateway.default {{region}}/{{name}}
$ terraform import google_api_gateway_gateway.default {{name}}
$ terraform import google_api_gateway_gateway.default projects/{{project}}/locations/{{region}}/gateways/{{gateway_id}}
$ terraform import google_api_gateway_gateway.default {{project}}/{{region}}/{{gateway_id}}
$ terraform import google_api_gateway_gateway.default {{region}}/{{gateway_id}}
$ terraform import google_api_gateway_gateway.default {{gateway_id}}
```

## User Project Overrides
Expand Down
8 changes: 4 additions & 4 deletions website/docs/r/api_gateway_gateway_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ exported:

For all import syntaxes, the "resource in question" can take any of the following forms:

* projects/{{project}}/locations/{{region}}/gateways/{{name}}
* {{project}}/{{region}}/{{name}}
* {{region}}/{{name}}
* {{name}}
* projects/{{project}}/locations/{{region}}/gateways/{{gateway}}
* {{project}}/{{region}}/{{gateway}}
* {{region}}/{{gateway}}
* {{gateway}}

Any variables not passed in the import command will be taken from the provider configuration.

Expand Down