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

Created game server rollout data source #6756

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/3727.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-datasource
google_game_services_game_server_deployment_rollout (beta only)
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package google
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package google
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
subcategory: "Game Servers"
layout: "google"
page_title: "Google: google_game_services_game_server_deployment_rollout"
sidebar_current: "docs-google-datasource-game-services-game-server-deployment-rollout"
description: |-
Get the rollout state.
---

# google\_game\_services\_game\_server\_deployment\_rollout

Use this data source to get the rollout state.

https://cloud.google.com/game-servers/docs/reference/rest/v1beta/GameServerDeploymentRollout

## Example Usage


```hcl
data "google_game_services_game_server_deployment_rollout" "qa" {
provider = google-beta
deployment_id = "tf-test-deployment-s8sn12jt2c"
}
```

## Argument Reference

The following arguments are supported:


* `deployment_id` - (Required)
The deployment to get the rollout state from. Only 1 rollout must be associated with each deployment.


## Attributes Reference

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

* `default_game_server_config` -
This field points to the game server config that is
applied by default to all realms and clusters. For example,
`projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.


* `game_server_config_overrides` -
The game_server_config_overrides contains the per game server config
overrides. The overrides are processed in the order they are listed. As
soon as a match is found for a cluster, the rest of the list is not
processed. Structure is documented below.

* `project` - The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.


The `game_server_config_overrides` block contains:

* `realms_selector` -
Selection by realms. Structure is documented below.

* `config_version` -
Version of the configuration.

The `realms_selector` block contains:

* `realms` -
List of realms to match against.

* `id` - an identifier for the resource with format `projects/{{project}}/locations/global/gameServerDeployments/{{deployment_id}}/rollout`

* `name` -
The resource id of the game server deployment
eg: `projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout`.
16 changes: 16 additions & 0 deletions website/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,22 @@
</ul>
</li>

<li>
<a href="#">Game Servers</a>
<ul class="nav">
<li>
<a href="#">Data Sources</a>
<ul class="nav nav-auto-expand">

<li>
<a href="/docs/providers/google/d/game_services_game_server_deployment_rollout.html">google_game_services_game_server_deployment_rollout</a>
</li>

</ul>
</li>
</ul>
</li>

<li>
<a href="#">Identity Platform</a>
<ul class="nav">
Expand Down