gcp.gameservices.getGameServerDeploymentRollout

Explore with Pulumi AI

Use this data source to get the rollout state.

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

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var qa = Gcp.GameServices.GetGameServerDeploymentRollout.Invoke(new()
    {
        DeploymentId = "tf-test-deployment-s8sn12jt2c",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/gameservices"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gameservices.LookupGameServerDeploymentRollout(ctx, &gameservices.LookupGameServerDeploymentRolloutArgs{
			DeploymentId: "tf-test-deployment-s8sn12jt2c",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.gameservices.GameservicesFunctions;
import com.pulumi.gcp.gameservices.inputs.GetGameServerDeploymentRolloutArgs;
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 qa = GameservicesFunctions.getGameServerDeploymentRollout(GetGameServerDeploymentRolloutArgs.builder()
            .deploymentId("tf-test-deployment-s8sn12jt2c")
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

qa = gcp.gameservices.get_game_server_deployment_rollout(deployment_id="tf-test-deployment-s8sn12jt2c")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const qa = gcp.gameservices.getGameServerDeploymentRollout({
    deploymentId: "tf-test-deployment-s8sn12jt2c",
});
variables:
  qa:
    fn::invoke:
      Function: gcp:gameservices:getGameServerDeploymentRollout
      Arguments:
        deploymentId: tf-test-deployment-s8sn12jt2c

Using getGameServerDeploymentRollout

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 getGameServerDeploymentRollout(args: GetGameServerDeploymentRolloutArgs, opts?: InvokeOptions): Promise<GetGameServerDeploymentRolloutResult>
function getGameServerDeploymentRolloutOutput(args: GetGameServerDeploymentRolloutOutputArgs, opts?: InvokeOptions): Output<GetGameServerDeploymentRolloutResult>
def get_game_server_deployment_rollout(deployment_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetGameServerDeploymentRolloutResult
def get_game_server_deployment_rollout_output(deployment_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetGameServerDeploymentRolloutResult]
func LookupGameServerDeploymentRollout(ctx *Context, args *LookupGameServerDeploymentRolloutArgs, opts ...InvokeOption) (*LookupGameServerDeploymentRolloutResult, error)
func LookupGameServerDeploymentRolloutOutput(ctx *Context, args *LookupGameServerDeploymentRolloutOutputArgs, opts ...InvokeOption) LookupGameServerDeploymentRolloutResultOutput

> Note: This function is named LookupGameServerDeploymentRollout in the Go SDK.

public static class GetGameServerDeploymentRollout 
{
    public static Task<GetGameServerDeploymentRolloutResult> InvokeAsync(GetGameServerDeploymentRolloutArgs args, InvokeOptions? opts = null)
    public static Output<GetGameServerDeploymentRolloutResult> Invoke(GetGameServerDeploymentRolloutInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGameServerDeploymentRolloutResult> getGameServerDeploymentRollout(GetGameServerDeploymentRolloutArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: gcp:gameservices/getGameServerDeploymentRollout:getGameServerDeploymentRollout
  arguments:
    # arguments dictionary

The following arguments are supported:

DeploymentId string

The deployment to get the rollout state from. Only 1 rollout must be associated with each deployment.

DeploymentId string

The deployment to get the rollout state from. Only 1 rollout must be associated with each deployment.

deploymentId String

The deployment to get the rollout state from. Only 1 rollout must be associated with each deployment.

deploymentId string

The deployment to get the rollout state from. Only 1 rollout must be associated with each deployment.

deployment_id str

The deployment to get the rollout state from. Only 1 rollout must be associated with each deployment.

deploymentId String

The deployment to get the rollout state from. Only 1 rollout must be associated with each deployment.

getGameServerDeploymentRollout Result

The following output properties are available:

DefaultGameServerConfig string

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.

DeploymentId string
GameServerConfigOverrides List<GetGameServerDeploymentRolloutGameServerConfigOverride>

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.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The resource id of the game server deployment eg: projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout.

Project string

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

DefaultGameServerConfig string

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.

DeploymentId string
GameServerConfigOverrides []GetGameServerDeploymentRolloutGameServerConfigOverride

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.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The resource id of the game server deployment eg: projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout.

Project string

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

defaultGameServerConfig String

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.

deploymentId String
gameServerConfigOverrides List<GetGameServerDeploymentRolloutGameServerConfigOverride>

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.

id String

The provider-assigned unique ID for this managed resource.

name String

The resource id of the game server deployment eg: projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout.

project String

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

defaultGameServerConfig string

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.

deploymentId string
gameServerConfigOverrides GetGameServerDeploymentRolloutGameServerConfigOverride[]

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.

id string

The provider-assigned unique ID for this managed resource.

name string

The resource id of the game server deployment eg: projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout.

project string

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

default_game_server_config str

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.

deployment_id str
game_server_config_overrides Sequence[GetGameServerDeploymentRolloutGameServerConfigOverride]

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.

id str

The provider-assigned unique ID for this managed resource.

name str

The resource id of the game server deployment eg: projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout.

project str

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

defaultGameServerConfig String

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.

deploymentId String
gameServerConfigOverrides List<Property Map>

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.

id String

The provider-assigned unique ID for this managed resource.

name String

The resource id of the game server deployment eg: projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout.

project String

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

Supporting Types

GetGameServerDeploymentRolloutGameServerConfigOverride

ConfigVersion string

Version of the configuration.

RealmsSelectors List<GetGameServerDeploymentRolloutGameServerConfigOverrideRealmsSelector>

Selection by realms. Structure is documented below.

ConfigVersion string

Version of the configuration.

RealmsSelectors []GetGameServerDeploymentRolloutGameServerConfigOverrideRealmsSelector

Selection by realms. Structure is documented below.

configVersion String

Version of the configuration.

realmsSelectors List<GetGameServerDeploymentRolloutGameServerConfigOverrideRealmsSelector>

Selection by realms. Structure is documented below.

configVersion string

Version of the configuration.

realmsSelectors GetGameServerDeploymentRolloutGameServerConfigOverrideRealmsSelector[]

Selection by realms. Structure is documented below.

config_version str

Version of the configuration.

realms_selectors Sequence[GetGameServerDeploymentRolloutGameServerConfigOverrideRealmsSelector]

Selection by realms. Structure is documented below.

configVersion String

Version of the configuration.

realmsSelectors List<Property Map>

Selection by realms. Structure is documented below.

GetGameServerDeploymentRolloutGameServerConfigOverrideRealmsSelector

Realms List<string>

List of realms to match against.

Realms []string

List of realms to match against.

realms List<String>

List of realms to match against.

realms string[]

List of realms to match against.

realms Sequence[str]

List of realms to match against.

realms List<String>

List of realms to match against.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.