1. Registry
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. vertex
  6. AiModelGardenEnableModel
Viewing docs for Google Cloud v9.34.0
published on Monday, Aug 10, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.34.0
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:

    PublisherModelName string
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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.
    PublisherModelName string
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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_name string
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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.
    publisherModelName String
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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.
    publisherModelName string
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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_name str
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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.
    publisherModelName String
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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:

    EnablementState string
    Output only. The result of the model enablement.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublisherEndpoint string
    Output only. The publisher endpoint that the project is enabled for. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
    EnablementState string
    Output only. The result of the model enablement.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublisherEndpoint 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}.
    enablementState String
    Output only. The result of the model enablement.
    id String
    The provider-assigned unique ID for this managed resource.
    publisherEndpoint String
    Output only. The publisher endpoint that the project is enabled for. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
    enablementState string
    Output only. The result of the model enablement.
    id string
    The provider-assigned unique ID for this managed resource.
    publisherEndpoint 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}.
    enablementState String
    Output only. The result of the model enablement.
    id String
    The provider-assigned unique ID for this managed resource.
    publisherEndpoint 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) -> AiModelGardenEnableModel
    func 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.
    The following state arguments are supported:
    EnablementState 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.
    PublisherEndpoint string
    Output only. The publisher endpoint that the project is enabled for. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
    PublisherModelName string
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/google/models/paligemma@paligemma-224-float32.
    EnablementState 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.
    PublisherEndpoint string
    Output only. The publisher endpoint that the project is enabled for. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
    PublisherModelName string
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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_name string
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/google/models/paligemma@paligemma-224-float32.
    enablementState 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.
    publisherEndpoint String
    Output only. The publisher endpoint that the project is enabled for. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
    publisherModelName String
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/google/models/paligemma@paligemma-224-float32.
    enablementState 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.
    publisherEndpoint string
    Output only. The publisher endpoint that the project is enabled for. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
    publisherModelName string
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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_name str
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/google/models/paligemma@paligemma-224-float32.
    enablementState 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.
    publisherEndpoint String
    Output only. The publisher endpoint that the project is enabled for. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{publisher_model}.
    publisherModelName String
    The resource name of the Model Garden publisher model to enable. Format: publishers/{publisher}/models/{publisher_model}, optionally with a version suffix, for example publishers/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-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.34.0
    published on Monday, Aug 10, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial