published on Monday, Aug 10, 2026 by Pulumi
published on Monday, Aug 10, 2026 by Pulumi
Enables a Model Garden publisher model for a project so that it can be
deployed. This calls the synchronous
ModelGardenService.EnableModel method, which checks that the prerequisites
for the model are met (for example, a completed questionnaire and accepted
consents, or an active Private Offer) before enabling it.
Note: The underlying API does not provide a way to disable a model once it has been enabled, so destroying this resource only removes it from Terraform state and does not affect the project’s enablement status.
Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.
To get more information about ModelGardenEnableModel, see:
Example Usage
Vertex Ai Model Garden Enable Model Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const enable = new gcp.vertex.AiModelGardenEnableModel("enable", {publisherModelName: "publishers/google/models/paligemma@paligemma-224-float32"});
import pulumi
import pulumi_gcp as gcp
enable = gcp.vertex.AiModelGardenEnableModel("enable", publisher_model_name="publishers/google/models/paligemma@paligemma-224-float32")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/vertex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vertex.NewAiModelGardenEnableModel(ctx, "enable", &vertex.AiModelGardenEnableModelArgs{
PublisherModelName: pulumi.String("publishers/google/models/paligemma@paligemma-224-float32"),
})
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 enable = new Gcp.Vertex.AiModelGardenEnableModel("enable", new()
{
PublisherModelName = "publishers/google/models/paligemma@paligemma-224-float32",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vertex.AiModelGardenEnableModel;
import com.pulumi.gcp.vertex.AiModelGardenEnableModelArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 enable = new AiModelGardenEnableModel("enable", AiModelGardenEnableModelArgs.builder()
.publisherModelName("publishers/google/models/paligemma@paligemma-224-float32")
.build());
}
}
resources:
enable:
type: gcp:vertex:AiModelGardenEnableModel
properties:
publisherModelName: publishers/google/models/paligemma@paligemma-224-float32
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_vertex_aimodelgardenenablemodel" "enable" {
publisher_model_name = "publishers/google/models/paligemma@paligemma-224-float32"
}
Create AiModelGardenEnableModel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiModelGardenEnableModel(name: string, args: AiModelGardenEnableModelArgs, opts?: CustomResourceOptions);@overload
def AiModelGardenEnableModel(resource_name: str,
args: AiModelGardenEnableModelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiModelGardenEnableModel(resource_name: str,
opts: Optional[ResourceOptions] = None,
publisher_model_name: Optional[str] = None,
project: Optional[str] = None)func NewAiModelGardenEnableModel(ctx *Context, name string, args AiModelGardenEnableModelArgs, opts ...ResourceOption) (*AiModelGardenEnableModel, error)public AiModelGardenEnableModel(string name, AiModelGardenEnableModelArgs args, CustomResourceOptions? opts = null)
public AiModelGardenEnableModel(String name, AiModelGardenEnableModelArgs args)
public AiModelGardenEnableModel(String name, AiModelGardenEnableModelArgs args, CustomResourceOptions options)
type: gcp:vertex:AiModelGardenEnableModel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_vertex_ai_model_garden_enable_model" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AiModelGardenEnableModelArgs
- 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 AiModelGardenEnableModelArgs
- 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 AiModelGardenEnableModelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiModelGardenEnableModelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiModelGardenEnableModelArgs
- 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 aiModelGardenEnableModelResource = new Gcp.Vertex.AiModelGardenEnableModel("aiModelGardenEnableModelResource", new()
{
PublisherModelName = "string",
Project = "string",
});
example, err := vertex.NewAiModelGardenEnableModel(ctx, "aiModelGardenEnableModelResource", &vertex.AiModelGardenEnableModelArgs{
PublisherModelName: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "gcp_vertex_ai_model_garden_enable_model" "aiModelGardenEnableModelResource" {
lifecycle {
create_before_destroy = true
}
publisher_model_name = "string"
project = "string"
}
var aiModelGardenEnableModelResource = new AiModelGardenEnableModel("aiModelGardenEnableModelResource", AiModelGardenEnableModelArgs.builder()
.publisherModelName("string")
.project("string")
.build());
ai_model_garden_enable_model_resource = gcp.vertex.AiModelGardenEnableModel("aiModelGardenEnableModelResource",
publisher_model_name="string",
project="string")
const aiModelGardenEnableModelResource = new gcp.vertex.AiModelGardenEnableModel("aiModelGardenEnableModelResource", {
publisherModelName: "string",
project: "string",
});
type: gcp:vertex:AiModelGardenEnableModel
properties:
project: string
publisherModelName: string
AiModelGardenEnableModel 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 AiModelGardenEnableModel resource accepts the following input properties:
- Publisher
Model stringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Publisher
Model stringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher_
model_ stringname - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher
Model StringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher
Model stringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher_
model_ strname - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32. - project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher
Model StringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32. - 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 AiModelGardenEnableModel resource produces the following output properties:
- Enablement
State string - Output only. The result of the model enablement.
- Id string
- The provider-assigned unique ID for this managed resource.
- Publisher
Endpoint string - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
- Enablement
State string - Output only. The result of the model enablement.
- Id string
- The provider-assigned unique ID for this managed resource.
- Publisher
Endpoint string - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
- enablement_
state string - Output only. The result of the model enablement.
- id string
- The provider-assigned unique ID for this managed resource.
- publisher_
endpoint string - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
- enablement
State String - Output only. The result of the model enablement.
- id String
- The provider-assigned unique ID for this managed resource.
- publisher
Endpoint String - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
- enablement
State string - Output only. The result of the model enablement.
- id string
- The provider-assigned unique ID for this managed resource.
- publisher
Endpoint string - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
- enablement_
state str - Output only. The result of the model enablement.
- id str
- The provider-assigned unique ID for this managed resource.
- publisher_
endpoint str - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
- enablement
State String - Output only. The result of the model enablement.
- id String
- The provider-assigned unique ID for this managed resource.
- publisher
Endpoint String - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
Look up Existing AiModelGardenEnableModel Resource
Get an existing AiModelGardenEnableModel 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?: AiModelGardenEnableModelState, opts?: CustomResourceOptions): AiModelGardenEnableModel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enablement_state: Optional[str] = None,
project: Optional[str] = None,
publisher_endpoint: Optional[str] = None,
publisher_model_name: Optional[str] = None) -> AiModelGardenEnableModelfunc GetAiModelGardenEnableModel(ctx *Context, name string, id IDInput, state *AiModelGardenEnableModelState, opts ...ResourceOption) (*AiModelGardenEnableModel, error)public static AiModelGardenEnableModel Get(string name, Input<string> id, AiModelGardenEnableModelState? state, CustomResourceOptions? opts = null)public static AiModelGardenEnableModel get(String name, Output<String> id, AiModelGardenEnableModelState state, CustomResourceOptions options)resources: _: type: gcp:vertex:AiModelGardenEnableModel get: id: ${id}import {
to = gcp_vertex_ai_model_garden_enable_model.example
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.
- Enablement
State string - Output only. The result of the model enablement.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Publisher
Endpoint string - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}. - Publisher
Model stringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32.
- Enablement
State string - Output only. The result of the model enablement.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Publisher
Endpoint string - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}. - Publisher
Model stringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32.
- enablement_
state string - Output only. The result of the model enablement.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher_
endpoint string - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}. - publisher_
model_ stringname - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32.
- enablement
State String - Output only. The result of the model enablement.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher
Endpoint String - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}. - publisher
Model StringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32.
- enablement
State string - Output only. The result of the model enablement.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher
Endpoint string - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}. - publisher
Model stringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32.
- enablement_
state str - Output only. The result of the model enablement.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher_
endpoint str - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}. - publisher_
model_ strname - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32.
- enablement
State String - Output only. The result of the model enablement.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- publisher
Endpoint String - Output only. The publisher endpoint that the project is enabled for.
Format:
projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}. - publisher
Model StringName - The resource name of the Model Garden publisher model to enable.
Format:
publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for examplepublishers/google/models/paligemma@paligemma-224-float32.
Import
This resource does not support import.
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-betaTerraform Provider.
published on Monday, Aug 10, 2026 by Pulumi