1. Registry
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. vertex
  6. AiAgentAnomalyDetectionScope
Viewing docs for Google Cloud v9.36.1
published on Thursday, Sep 3, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.36.1
published on Thursday, Sep 3, 2026 by Pulumi

    An Agent Anomaly Detection (AAD) scope defines the Cloud Logging and Observability buckets that AAD monitors for anomalous agent behavior within a location. Creating a scope provisions a dedicated tenant project for detection. Only one scope may exist per location.

    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 AgentAnomalyDetectionScope, see:

    Example Usage

    Vertex Ai Agent Anomaly Detection Scope Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const project = gcp.organizations.getProject({});
    const aad_log_bucket = new gcp.logging.ProjectBucketConfig("aad-log-bucket", {
        project: project.then(project => project.projectId),
        location: "us",
        retentionDays: 30,
        bucketId: "aad-log-bucket",
        enableAnalytics: true,
    });
    const scope = new gcp.vertex.AiAgentAnomalyDetectionScope("scope", {
        region: "us",
        agentAnomalyDetectionScopeId: "agent-anomaly-detection-scope",
        displayName: "Basic AAD scope",
        logBuckets: [aad_log_bucket.id],
        observabilityBuckets: [project.then(project => `projects/${project.projectId}/locations/us/buckets/_Trace/datasets/Spans`)],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    project = gcp.organizations.get_project()
    aad_log_bucket = gcp.logging.ProjectBucketConfig("aad-log-bucket",
        project=project.project_id,
        location="us",
        retention_days=30,
        bucket_id="aad-log-bucket",
        enable_analytics=True)
    scope = gcp.vertex.AiAgentAnomalyDetectionScope("scope",
        region="us",
        agent_anomaly_detection_scope_id="agent-anomaly-detection-scope",
        display_name="Basic AAD scope",
        log_buckets=[aad_log_bucket.id],
        observability_buckets=[f"projects/{project.project_id}/locations/us/buckets/_Trace/datasets/Spans"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/logging"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
    	"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 {
    		project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		aad_log_bucket, err := logging.NewProjectBucketConfig(ctx, "aad-log-bucket", &logging.ProjectBucketConfigArgs{
    			Project:         pulumi.String(project.ProjectId),
    			Location:        pulumi.String("us"),
    			RetentionDays:   pulumi.Int(30),
    			BucketId:        pulumi.String("aad-log-bucket"),
    			EnableAnalytics: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vertex.NewAiAgentAnomalyDetectionScope(ctx, "scope", &vertex.AiAgentAnomalyDetectionScopeArgs{
    			Region:                       pulumi.String("us"),
    			AgentAnomalyDetectionScopeId: pulumi.String("agent-anomaly-detection-scope"),
    			DisplayName:                  pulumi.String("Basic AAD scope"),
    			LogBuckets: pulumi.StringArray{
    				aad_log_bucket.ID().ToIDOutput().ToStringOutput(),
    			},
    			ObservabilityBuckets: pulumi.StringArray{
    				pulumi.Sprintf("projects/%v/locations/us/buckets/_Trace/datasets/Spans", project.ProjectId),
    			},
    		})
    		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 project = Gcp.Organizations.GetProject.Invoke();
    
        var aad_log_bucket = new Gcp.Logging.ProjectBucketConfig("aad-log-bucket", new()
        {
            Project = project.Apply(getProjectResult => getProjectResult.ProjectId),
            Location = "us",
            RetentionDays = 30,
            BucketId = "aad-log-bucket",
            EnableAnalytics = true,
        });
    
        var scope = new Gcp.Vertex.AiAgentAnomalyDetectionScope("scope", new()
        {
            Region = "us",
            AgentAnomalyDetectionScopeId = "agent-anomaly-detection-scope",
            DisplayName = "Basic AAD scope",
            LogBuckets = new[]
            {
                aad_log_bucket.Id,
            },
            ObservabilityBuckets = new[]
            {
                $"projects/{project.Apply(getProjectResult => getProjectResult.ProjectId)}/locations/us/buckets/_Trace/datasets/Spans",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
    import com.pulumi.gcp.logging.ProjectBucketConfig;
    import com.pulumi.gcp.logging.ProjectBucketConfigArgs;
    import com.pulumi.gcp.vertex.AiAgentAnomalyDetectionScope;
    import com.pulumi.gcp.vertex.AiAgentAnomalyDetectionScopeArgs;
    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) {
            final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
                .build());
    
            var aad_log_bucket = new ProjectBucketConfig("aad-log-bucket", ProjectBucketConfigArgs.builder()
                .project(project.projectId())
                .location("us")
                .retentionDays(30)
                .bucketId("aad-log-bucket")
                .enableAnalytics(true)
                .build());
    
            var scope = new AiAgentAnomalyDetectionScope("scope", AiAgentAnomalyDetectionScopeArgs.builder()
                .region("us")
                .agentAnomalyDetectionScopeId("agent-anomaly-detection-scope")
                .displayName("Basic AAD scope")
                .logBuckets(aad_log_bucket.id())
                .observabilityBuckets(String.format("projects/%s/locations/us/buckets/_Trace/datasets/Spans", project.projectId()))
                .build());
    
        }
    }
    
    resources:
      aad-log-bucket:
        type: gcp:logging:ProjectBucketConfig
        properties:
          project: ${project.projectId}
          location: us
          retentionDays: 30
          bucketId: aad-log-bucket
          enableAnalytics: true
      scope:
        type: gcp:vertex:AiAgentAnomalyDetectionScope
        properties:
          region: us
          agentAnomalyDetectionScopeId: agent-anomaly-detection-scope
          displayName: Basic AAD scope
          logBuckets:
            - ${["aad-log-bucket"].id}
          observabilityBuckets:
            - projects/${project.projectId}/locations/us/buckets/_Trace/datasets/Spans
    variables:
      project:
        fn::invoke:
          function: gcp:organizations:getProject
          arguments: {}
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    data "gcp_organizations_getproject" "project" {
    }
    
    resource "gcp_logging_projectbucketconfig" "aad-log-bucket" {
      project          = data.gcp_organizations_getproject.project.project_id
      location         = "us"
      retention_days   = 30
      bucket_id        = "aad-log-bucket"
      enable_analytics = true
    }
    resource "gcp_vertex_aiagentanomalydetectionscope" "scope" {
      region                           = "us"
      agent_anomaly_detection_scope_id = "agent-anomaly-detection-scope"
      display_name                     = "Basic AAD scope"
      log_buckets                      = [gcp_logging_projectbucketconfig.aad-log-bucket.id]
      observability_buckets            = ["projects/${data.gcp_organizations_getproject.project.project_id}/locations/us/buckets/_Trace/datasets/Spans"]
    }
    

    Create AiAgentAnomalyDetectionScope Resource

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

    Constructor syntax

    new AiAgentAnomalyDetectionScope(name: string, args: AiAgentAnomalyDetectionScopeArgs, opts?: CustomResourceOptions);
    @overload
    def AiAgentAnomalyDetectionScope(resource_name: str,
                                     args: AiAgentAnomalyDetectionScopeArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def AiAgentAnomalyDetectionScope(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     agent_anomaly_detection_scope_id: Optional[str] = None,
                                     log_buckets: Optional[Sequence[str]] = None,
                                     observability_buckets: Optional[Sequence[str]] = None,
                                     region: Optional[str] = None,
                                     deletion_policy: Optional[str] = None,
                                     display_name: Optional[str] = None,
                                     project: Optional[str] = None)
    func NewAiAgentAnomalyDetectionScope(ctx *Context, name string, args AiAgentAnomalyDetectionScopeArgs, opts ...ResourceOption) (*AiAgentAnomalyDetectionScope, error)
    public AiAgentAnomalyDetectionScope(string name, AiAgentAnomalyDetectionScopeArgs args, CustomResourceOptions? opts = null)
    public AiAgentAnomalyDetectionScope(String name, AiAgentAnomalyDetectionScopeArgs args)
    public AiAgentAnomalyDetectionScope(String name, AiAgentAnomalyDetectionScopeArgs args, CustomResourceOptions options)
    
    type: gcp:vertex:AiAgentAnomalyDetectionScope
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_vertex_ai_agent_anomaly_detection_scope" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AiAgentAnomalyDetectionScopeArgs
    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 AiAgentAnomalyDetectionScopeArgs
    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 AiAgentAnomalyDetectionScopeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AiAgentAnomalyDetectionScopeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AiAgentAnomalyDetectionScopeArgs
    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 aiAgentAnomalyDetectionScopeResource = new Gcp.Vertex.AiAgentAnomalyDetectionScope("aiAgentAnomalyDetectionScopeResource", new()
    {
        AgentAnomalyDetectionScopeId = "string",
        LogBuckets = new[]
        {
            "string",
        },
        ObservabilityBuckets = new[]
        {
            "string",
        },
        Region = "string",
        DeletionPolicy = "string",
        DisplayName = "string",
        Project = "string",
    });
    
    example, err := vertex.NewAiAgentAnomalyDetectionScope(ctx, "aiAgentAnomalyDetectionScopeResource", &vertex.AiAgentAnomalyDetectionScopeArgs{
    	AgentAnomalyDetectionScopeId: pulumi.String("string"),
    	LogBuckets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ObservabilityBuckets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Region:         pulumi.String("string"),
    	DeletionPolicy: pulumi.String("string"),
    	DisplayName:    pulumi.String("string"),
    	Project:        pulumi.String("string"),
    })
    
    resource "gcp_vertex_ai_agent_anomaly_detection_scope" "aiAgentAnomalyDetectionScopeResource" {
      lifecycle {
        create_before_destroy = true
      }
      agent_anomaly_detection_scope_id = "string"
      log_buckets                      = ["string"]
      observability_buckets            = ["string"]
      region                           = "string"
      deletion_policy                  = "string"
      display_name                     = "string"
      project                          = "string"
    }
    
    var aiAgentAnomalyDetectionScopeResource = new AiAgentAnomalyDetectionScope("aiAgentAnomalyDetectionScopeResource", AiAgentAnomalyDetectionScopeArgs.builder()
        .agentAnomalyDetectionScopeId("string")
        .logBuckets("string")
        .observabilityBuckets("string")
        .region("string")
        .deletionPolicy("string")
        .displayName("string")
        .project("string")
        .build());
    
    ai_agent_anomaly_detection_scope_resource = gcp.vertex.AiAgentAnomalyDetectionScope("aiAgentAnomalyDetectionScopeResource",
        agent_anomaly_detection_scope_id="string",
        log_buckets=["string"],
        observability_buckets=["string"],
        region="string",
        deletion_policy="string",
        display_name="string",
        project="string")
    
    const aiAgentAnomalyDetectionScopeResource = new gcp.vertex.AiAgentAnomalyDetectionScope("aiAgentAnomalyDetectionScopeResource", {
        agentAnomalyDetectionScopeId: "string",
        logBuckets: ["string"],
        observabilityBuckets: ["string"],
        region: "string",
        deletionPolicy: "string",
        displayName: "string",
        project: "string",
    });
    
    type: gcp:vertex:AiAgentAnomalyDetectionScope
    properties:
        agentAnomalyDetectionScopeId: string
        deletionPolicy: string
        displayName: string
        logBuckets:
            - string
        observabilityBuckets:
            - string
        project: string
        region: string
    

    AiAgentAnomalyDetectionScope 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 AiAgentAnomalyDetectionScope resource accepts the following input properties:

    AgentAnomalyDetectionScopeId string
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    LogBuckets List<string>
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    ObservabilityBuckets List<string>
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    Region string
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    DisplayName string
    User provided display name of the AgentAnomalyDetectionScope.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    AgentAnomalyDetectionScopeId string
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    LogBuckets []string
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    ObservabilityBuckets []string
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    Region string
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    DisplayName string
    User provided display name of the AgentAnomalyDetectionScope.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    agent_anomaly_detection_scope_id string
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    log_buckets list(string)
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    observability_buckets list(string)
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    region string
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    display_name string
    User provided display name of the AgentAnomalyDetectionScope.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    agentAnomalyDetectionScopeId String
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    logBuckets List<String>
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    observabilityBuckets List<String>
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    region String
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    displayName String
    User provided display name of the AgentAnomalyDetectionScope.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    agentAnomalyDetectionScopeId string
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    logBuckets string[]
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    observabilityBuckets string[]
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    region string
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    displayName string
    User provided display name of the AgentAnomalyDetectionScope.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    agent_anomaly_detection_scope_id str
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    log_buckets Sequence[str]
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    observability_buckets Sequence[str]
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    region str
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    display_name str
    User provided display name of the AgentAnomalyDetectionScope.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    agentAnomalyDetectionScopeId String
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    logBuckets List<String>
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    observabilityBuckets List<String>
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    region String
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    displayName String
    User provided display name of the AgentAnomalyDetectionScope.
    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 AiAgentAnomalyDetectionScope resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    State string
    The lifecycle state of the scope.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    State string
    The lifecycle state of the scope.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    state string
    The lifecycle state of the scope.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    state String
    The lifecycle state of the scope.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    state string
    The lifecycle state of the scope.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    state str
    The lifecycle state of the scope.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    state String
    The lifecycle state of the scope.

    Look up Existing AiAgentAnomalyDetectionScope Resource

    Get an existing AiAgentAnomalyDetectionScope 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?: AiAgentAnomalyDetectionScopeState, opts?: CustomResourceOptions): AiAgentAnomalyDetectionScope
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_anomaly_detection_scope_id: Optional[str] = None,
            deletion_policy: Optional[str] = None,
            display_name: Optional[str] = None,
            log_buckets: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            observability_buckets: Optional[Sequence[str]] = None,
            project: Optional[str] = None,
            region: Optional[str] = None,
            state: Optional[str] = None) -> AiAgentAnomalyDetectionScope
    func GetAiAgentAnomalyDetectionScope(ctx *Context, name string, id IDInput, state *AiAgentAnomalyDetectionScopeState, opts ...ResourceOption) (*AiAgentAnomalyDetectionScope, error)
    public static AiAgentAnomalyDetectionScope Get(string name, Input<string> id, AiAgentAnomalyDetectionScopeState? state, CustomResourceOptions? opts = null)
    public static AiAgentAnomalyDetectionScope get(String name, Output<String> id, AiAgentAnomalyDetectionScopeState state, CustomResourceOptions options)
    resources:  _:    type: gcp:vertex:AiAgentAnomalyDetectionScope    get:      id: ${id}
    import {
      to = gcp_vertex_ai_agent_anomaly_detection_scope.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:
    AgentAnomalyDetectionScopeId string
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    DisplayName string
    User provided display name of the AgentAnomalyDetectionScope.
    LogBuckets List<string>
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    Name string
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    ObservabilityBuckets List<string>
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    State string
    The lifecycle state of the scope.
    AgentAnomalyDetectionScopeId string
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    DisplayName string
    User provided display name of the AgentAnomalyDetectionScope.
    LogBuckets []string
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    Name string
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    ObservabilityBuckets []string
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    State string
    The lifecycle state of the scope.
    agent_anomaly_detection_scope_id string
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    display_name string
    User provided display name of the AgentAnomalyDetectionScope.
    log_buckets list(string)
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    name string
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    observability_buckets list(string)
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region string
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    state string
    The lifecycle state of the scope.
    agentAnomalyDetectionScopeId String
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    displayName String
    User provided display name of the AgentAnomalyDetectionScope.
    logBuckets List<String>
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    name String
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    observabilityBuckets List<String>
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    state String
    The lifecycle state of the scope.
    agentAnomalyDetectionScopeId string
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    displayName string
    User provided display name of the AgentAnomalyDetectionScope.
    logBuckets string[]
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    name string
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    observabilityBuckets string[]
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region string
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    state string
    The lifecycle state of the scope.
    agent_anomaly_detection_scope_id str
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    display_name str
    User provided display name of the AgentAnomalyDetectionScope.
    log_buckets Sequence[str]
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    name str
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    observability_buckets Sequence[str]
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region str
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    state str
    The lifecycle state of the scope.
    agentAnomalyDetectionScopeId String
    The ID to use for the AgentAnomalyDetectionScope, which will become the final component of the scope's resource name. This value should be 1-63 characters and valid characters are /[a-z][0-9]-/.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    displayName String
    User provided display name of the AgentAnomalyDetectionScope.
    logBuckets List<String>
    Customer owned Cloud Logging bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}.
    name String
    The resource name of the AgentAnomalyDetectionScope, in the format projects/{{project}}/locations/{{location}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope}}
    observabilityBuckets List<String>
    Customer owned Cloud Observability bucket resource names attached to this scope. Format: projects/{{project}}/locations/{{location}}/buckets/{{bucket}}/datasets/{{dataset}}.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    The region of the AgentAnomalyDetectionScope, e.g. us-central1.
    state String
    The lifecycle state of the scope.

    Import

    AgentAnomalyDetectionScope can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{region}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope_id}}
    • {{project}}/{{region}}/{{agent_anomaly_detection_scope_id}}
    • {{region}}/{{agent_anomaly_detection_scope_id}}
    • {{agent_anomaly_detection_scope_id}}

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

    $ pulumi import gcp:vertex/aiAgentAnomalyDetectionScope:AiAgentAnomalyDetectionScope default projects/{{project}}/locations/{{region}}/agentAnomalyDetectionScopes/{{agent_anomaly_detection_scope_id}}
    $ pulumi import gcp:vertex/aiAgentAnomalyDetectionScope:AiAgentAnomalyDetectionScope default {{project}}/{{region}}/{{agent_anomaly_detection_scope_id}}
    $ pulumi import gcp:vertex/aiAgentAnomalyDetectionScope:AiAgentAnomalyDetectionScope default {{region}}/{{agent_anomaly_detection_scope_id}}
    $ pulumi import gcp:vertex/aiAgentAnomalyDetectionScope:AiAgentAnomalyDetectionScope default {{agent_anomaly_detection_scope_id}}
    

    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.36.1
    published on Thursday, Sep 3, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial