1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. bigquery
  6. ReservationGroup
Viewing docs for Google Cloud v9.22.0
published on Friday, May 1, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.22.0
published on Friday, May 1, 2026 by Pulumi

    A reservation group is a container for reservations.

    To get more information about ReservationGroup, see:

    Example Usage

    Bigquery Reservation Group Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const reservationGroup = new gcp.bigquery.ReservationGroup("reservation_group", {
        name: "my-reservation-group",
        location: "us-west2",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    reservation_group = gcp.bigquery.ReservationGroup("reservation_group",
        name="my-reservation-group",
        location="us-west2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/bigquery"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := bigquery.NewReservationGroup(ctx, "reservation_group", &bigquery.ReservationGroupArgs{
    			Name:     pulumi.String("my-reservation-group"),
    			Location: pulumi.String("us-west2"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var reservationGroup = new Gcp.BigQuery.ReservationGroup("reservation_group", new()
        {
            Name = "my-reservation-group",
            Location = "us-west2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.bigquery.ReservationGroup;
    import com.pulumi.gcp.bigquery.ReservationGroupArgs;
    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) {
            var reservationGroup = new ReservationGroup("reservationGroup", ReservationGroupArgs.builder()
                .name("my-reservation-group")
                .location("us-west2")
                .build());
    
        }
    }
    
    resources:
      reservationGroup:
        type: gcp:bigquery:ReservationGroup
        name: reservation_group
        properties:
          name: my-reservation-group
          location: us-west2
    

    Create ReservationGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ReservationGroup(name: string, args?: ReservationGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ReservationGroup(resource_name: str,
                         args: Optional[ReservationGroupArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReservationGroup(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         location: Optional[str] = None,
                         name: Optional[str] = None,
                         project: Optional[str] = None)
    func NewReservationGroup(ctx *Context, name string, args *ReservationGroupArgs, opts ...ResourceOption) (*ReservationGroup, error)
    public ReservationGroup(string name, ReservationGroupArgs? args = null, CustomResourceOptions? opts = null)
    public ReservationGroup(String name, ReservationGroupArgs args)
    public ReservationGroup(String name, ReservationGroupArgs args, CustomResourceOptions options)
    
    type: gcp:bigquery:ReservationGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ReservationGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ReservationGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ReservationGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReservationGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReservationGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var reservationGroupResource = new Gcp.BigQuery.ReservationGroup("reservationGroupResource", new()
    {
        Location = "string",
        Name = "string",
        Project = "string",
    });
    
    example, err := bigquery.NewReservationGroup(ctx, "reservationGroupResource", &bigquery.ReservationGroupArgs{
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Project:  pulumi.String("string"),
    })
    
    var reservationGroupResource = new ReservationGroup("reservationGroupResource", ReservationGroupArgs.builder()
        .location("string")
        .name("string")
        .project("string")
        .build());
    
    reservation_group_resource = gcp.bigquery.ReservationGroup("reservationGroupResource",
        location="string",
        name="string",
        project="string")
    
    const reservationGroupResource = new gcp.bigquery.ReservationGroup("reservationGroupResource", {
        location: "string",
        name: "string",
        project: "string",
    });
    
    type: gcp:bigquery:ReservationGroup
    properties:
        location: string
        name: string
        project: string
    

    ReservationGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ReservationGroup resource accepts the following input properties:

    Location string
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    Name string
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Location string
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    Name string
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    name String
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    name string
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location str
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    name str
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    name String
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReservationGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ReservationGroup Resource

    Get an existing ReservationGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ReservationGroupState, opts?: CustomResourceOptions): ReservationGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None) -> ReservationGroup
    func GetReservationGroup(ctx *Context, name string, id IDInput, state *ReservationGroupState, opts ...ResourceOption) (*ReservationGroup, error)
    public static ReservationGroup Get(string name, Input<string> id, ReservationGroupState? state, CustomResourceOptions? opts = null)
    public static ReservationGroup get(String name, Output<String> id, ReservationGroupState state, CustomResourceOptions options)
    resources:  _:    type: gcp:bigquery:ReservationGroup    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Location string
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    Name string
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Location string
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    Name string
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    name String
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    name string
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location str
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    name str
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.
    name String
    The name of the reservation group. This field must only contain alphanumeric characters or dash.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Import

    ReservationGroup can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/reservationGroups/{{name}}
    • {{project}}/{{location}}/{{name}}
    • {{location}}/{{name}}

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

    $ pulumi import gcp:bigquery/reservationGroup:ReservationGroup default projects/{{project}}/locations/{{location}}/reservationGroups/{{name}}
    $ pulumi import gcp:bigquery/reservationGroup:ReservationGroup default {{project}}/{{location}}/{{name}}
    $ pulumi import gcp:bigquery/reservationGroup:ReservationGroup default {{location}}/{{name}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.
    gcp logo
    Viewing docs for Google Cloud v9.22.0
    published on Friday, May 1, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.