1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. migrationcenter
  6. Source
Viewing docs for Google Cloud v9.26.0
published on Tuesday, Jun 9, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.26.0
published on Tuesday, Jun 9, 2026 by Pulumi

    Source represents a data source from which asset discovery data is ingested into Migration Center.

    Example Usage

    Migration Center Source Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.migrationcenter.Source("default", {
        location: "us-central1",
        sourceId: "source-test",
        description: "Terraform integration test description",
        displayName: "Terraform integration test display",
        priority: 10,
        type: "SOURCE_TYPE_CUSTOM",
        managed: false,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.migrationcenter.Source("default",
        location="us-central1",
        source_id="source-test",
        description="Terraform integration test description",
        display_name="Terraform integration test display",
        priority=10,
        type="SOURCE_TYPE_CUSTOM",
        managed=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/migrationcenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := migrationcenter.NewSource(ctx, "default", &migrationcenter.SourceArgs{
    			Location:    pulumi.String("us-central1"),
    			SourceId:    pulumi.String("source-test"),
    			Description: pulumi.String("Terraform integration test description"),
    			DisplayName: pulumi.String("Terraform integration test display"),
    			Priority:    pulumi.Int(10),
    			Type:        pulumi.String("SOURCE_TYPE_CUSTOM"),
    			Managed:     pulumi.Bool(false),
    		})
    		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 @default = new Gcp.MigrationCenter.Source("default", new()
        {
            Location = "us-central1",
            SourceId = "source-test",
            Description = "Terraform integration test description",
            DisplayName = "Terraform integration test display",
            Priority = 10,
            Type = "SOURCE_TYPE_CUSTOM",
            Managed = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.migrationcenter.Source;
    import com.pulumi.gcp.migrationcenter.SourceArgs;
    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 default_ = new Source("default", SourceArgs.builder()
                .location("us-central1")
                .sourceId("source-test")
                .description("Terraform integration test description")
                .displayName("Terraform integration test display")
                .priority(10)
                .type("SOURCE_TYPE_CUSTOM")
                .managed(false)
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:migrationcenter:Source
        properties:
          location: us-central1
          sourceId: source-test
          description: Terraform integration test description
          displayName: Terraform integration test display
          priority: 10
          type: SOURCE_TYPE_CUSTOM
          managed: false
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    resource "gcp_migrationcenter_source" "default" {
      location     = "us-central1"
      source_id    = "source-test"
      description  = "Terraform integration test description"
      display_name = "Terraform integration test display"
      priority     = 10
      type         = "SOURCE_TYPE_CUSTOM"
      managed      = false
    }
    

    Create Source Resource

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

    Constructor syntax

    new Source(name: string, args: SourceArgs, opts?: CustomResourceOptions);
    @overload
    def Source(resource_name: str,
               args: SourceArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Source(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               location: Optional[str] = None,
               source_id: Optional[str] = None,
               deletion_policy: Optional[str] = None,
               description: Optional[str] = None,
               display_name: Optional[str] = None,
               managed: Optional[bool] = None,
               priority: Optional[int] = None,
               project: Optional[str] = None,
               type: Optional[str] = None)
    func NewSource(ctx *Context, name string, args SourceArgs, opts ...ResourceOption) (*Source, error)
    public Source(string name, SourceArgs args, CustomResourceOptions? opts = null)
    public Source(String name, SourceArgs args)
    public Source(String name, SourceArgs args, CustomResourceOptions options)
    
    type: gcp:migrationcenter:Source
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_migrationcenter_source" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SourceArgs
    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 SourceArgs
    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 SourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SourceArgs
    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 sourceResource = new Gcp.MigrationCenter.Source("sourceResource", new()
    {
        Location = "string",
        SourceId = "string",
        DeletionPolicy = "string",
        Description = "string",
        DisplayName = "string",
        Managed = false,
        Priority = 0,
        Project = "string",
        Type = "string",
    });
    
    example, err := migrationcenter.NewSource(ctx, "sourceResource", &migrationcenter.SourceArgs{
    	Location:       pulumi.String("string"),
    	SourceId:       pulumi.String("string"),
    	DeletionPolicy: pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	DisplayName:    pulumi.String("string"),
    	Managed:        pulumi.Bool(false),
    	Priority:       pulumi.Int(0),
    	Project:        pulumi.String("string"),
    	Type:           pulumi.String("string"),
    })
    
    resource "gcp_migrationcenter_source" "sourceResource" {
      location        = "string"
      source_id       = "string"
      deletion_policy = "string"
      description     = "string"
      display_name    = "string"
      managed         = false
      priority        = 0
      project         = "string"
      type            = "string"
    }
    
    var sourceResource = new com.pulumi.gcp.migrationcenter.Source("sourceResource", com.pulumi.gcp.migrationcenter.SourceArgs.builder()
        .location("string")
        .sourceId("string")
        .deletionPolicy("string")
        .description("string")
        .displayName("string")
        .managed(false)
        .priority(0)
        .project("string")
        .type("string")
        .build());
    
    source_resource = gcp.migrationcenter.Source("sourceResource",
        location="string",
        source_id="string",
        deletion_policy="string",
        description="string",
        display_name="string",
        managed=False,
        priority=0,
        project="string",
        type="string")
    
    const sourceResource = new gcp.migrationcenter.Source("sourceResource", {
        location: "string",
        sourceId: "string",
        deletionPolicy: "string",
        description: "string",
        displayName: "string",
        managed: false,
        priority: 0,
        project: "string",
        type: "string",
    });
    
    type: gcp:migrationcenter:Source
    properties:
        deletionPolicy: string
        description: string
        displayName: string
        location: string
        managed: false
        priority: 0
        project: string
        sourceId: string
        type: string
    

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

    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    SourceId string
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    Description string
    Free-text description.
    DisplayName string
    User-friendly display name.
    Managed bool
    If true, the source is managed by other service(s).
    Priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Type string
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    SourceId string
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    Description string
    Free-text description.
    DisplayName string
    User-friendly display name.
    Managed bool
    If true, the source is managed by other service(s).
    Priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Type string
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    source_id string
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    description string
    Free-text description.
    display_name string
    User-friendly display name.
    managed bool
    If true, the source is managed by other service(s).
    priority number
    The information confidence of the source. The higher the value, the higher the confidence.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    type string
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    sourceId String
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    description String
    Free-text description.
    displayName String
    User-friendly display name.
    managed Boolean
    If true, the source is managed by other service(s).
    priority Integer
    The information confidence of the source. The higher the value, the higher the confidence.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    type String
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    sourceId string
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    description string
    Free-text description.
    displayName string
    User-friendly display name.
    managed boolean
    If true, the source is managed by other service(s).
    priority number
    The information confidence of the source. The higher the value, the higher the confidence.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    type string
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    source_id str
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    description str
    Free-text description.
    display_name str
    User-friendly display name.
    managed bool
    If true, the source is managed by other service(s).
    priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    type str
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    sourceId String
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    description String
    Free-text description.
    displayName String
    User-friendly display name.
    managed Boolean
    If true, the source is managed by other service(s).
    priority Number
    The information confidence of the source. The higher the value, the higher the confidence.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    type String
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT

    Outputs

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

    CreateTime string
    The timestamp when the source was created.
    ErrorFrameCount int
    The number of frames that were reported by the source and contained errors.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The full name of the source.
    PendingFrameCount int
    Number of frames that are still being processed.
    State string
    The state of the source. Possible values: ACTIVE DELETING INVALID
    UpdateTime string
    The timestamp when the source was last updated.
    CreateTime string
    The timestamp when the source was created.
    ErrorFrameCount int
    The number of frames that were reported by the source and contained errors.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The full name of the source.
    PendingFrameCount int
    Number of frames that are still being processed.
    State string
    The state of the source. Possible values: ACTIVE DELETING INVALID
    UpdateTime string
    The timestamp when the source was last updated.
    create_time string
    The timestamp when the source was created.
    error_frame_count number
    The number of frames that were reported by the source and contained errors.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The full name of the source.
    pending_frame_count number
    Number of frames that are still being processed.
    state string
    The state of the source. Possible values: ACTIVE DELETING INVALID
    update_time string
    The timestamp when the source was last updated.
    createTime String
    The timestamp when the source was created.
    errorFrameCount Integer
    The number of frames that were reported by the source and contained errors.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The full name of the source.
    pendingFrameCount Integer
    Number of frames that are still being processed.
    state String
    The state of the source. Possible values: ACTIVE DELETING INVALID
    updateTime String
    The timestamp when the source was last updated.
    createTime string
    The timestamp when the source was created.
    errorFrameCount number
    The number of frames that were reported by the source and contained errors.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The full name of the source.
    pendingFrameCount number
    Number of frames that are still being processed.
    state string
    The state of the source. Possible values: ACTIVE DELETING INVALID
    updateTime string
    The timestamp when the source was last updated.
    create_time str
    The timestamp when the source was created.
    error_frame_count int
    The number of frames that were reported by the source and contained errors.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The full name of the source.
    pending_frame_count int
    Number of frames that are still being processed.
    state str
    The state of the source. Possible values: ACTIVE DELETING INVALID
    update_time str
    The timestamp when the source was last updated.
    createTime String
    The timestamp when the source was created.
    errorFrameCount Number
    The number of frames that were reported by the source and contained errors.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The full name of the source.
    pendingFrameCount Number
    Number of frames that are still being processed.
    state String
    The state of the source. Possible values: ACTIVE DELETING INVALID
    updateTime String
    The timestamp when the source was last updated.

    Look up Existing Source Resource

    Get an existing Source 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?: SourceState, opts?: CustomResourceOptions): Source
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            deletion_policy: Optional[str] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            error_frame_count: Optional[int] = None,
            location: Optional[str] = None,
            managed: Optional[bool] = None,
            name: Optional[str] = None,
            pending_frame_count: Optional[int] = None,
            priority: Optional[int] = None,
            project: Optional[str] = None,
            source_id: Optional[str] = None,
            state: Optional[str] = None,
            type: Optional[str] = None,
            update_time: Optional[str] = None) -> Source
    func GetSource(ctx *Context, name string, id IDInput, state *SourceState, opts ...ResourceOption) (*Source, error)
    public static Source Get(string name, Input<string> id, SourceState? state, CustomResourceOptions? opts = null)
    public static Source get(String name, Output<String> id, SourceState state, CustomResourceOptions options)
    resources:  _:    type: gcp:migrationcenter:Source    get:      id: ${id}
    import {
      to = gcp_migrationcenter_source.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:
    CreateTime string
    The timestamp when the source was created.
    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.
    Description string
    Free-text description.
    DisplayName string
    User-friendly display name.
    ErrorFrameCount int
    The number of frames that were reported by the source and contained errors.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Managed bool
    If true, the source is managed by other service(s).
    Name string
    The full name of the source.
    PendingFrameCount int
    Number of frames that are still being processed.
    Priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    SourceId string
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    State string
    The state of the source. Possible values: ACTIVE DELETING INVALID
    Type string
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    UpdateTime string
    The timestamp when the source was last updated.
    CreateTime string
    The timestamp when the source was created.
    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.
    Description string
    Free-text description.
    DisplayName string
    User-friendly display name.
    ErrorFrameCount int
    The number of frames that were reported by the source and contained errors.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Managed bool
    If true, the source is managed by other service(s).
    Name string
    The full name of the source.
    PendingFrameCount int
    Number of frames that are still being processed.
    Priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    SourceId string
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    State string
    The state of the source. Possible values: ACTIVE DELETING INVALID
    Type string
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    UpdateTime string
    The timestamp when the source was last updated.
    create_time string
    The timestamp when the source was created.
    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.
    description string
    Free-text description.
    display_name string
    User-friendly display name.
    error_frame_count number
    The number of frames that were reported by the source and contained errors.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    managed bool
    If true, the source is managed by other service(s).
    name string
    The full name of the source.
    pending_frame_count number
    Number of frames that are still being processed.
    priority number
    The information confidence of the source. The higher the value, the higher the confidence.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    source_id string
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    state string
    The state of the source. Possible values: ACTIVE DELETING INVALID
    type string
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    update_time string
    The timestamp when the source was last updated.
    createTime String
    The timestamp when the source was created.
    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.
    description String
    Free-text description.
    displayName String
    User-friendly display name.
    errorFrameCount Integer
    The number of frames that were reported by the source and contained errors.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    managed Boolean
    If true, the source is managed by other service(s).
    name String
    The full name of the source.
    pendingFrameCount Integer
    Number of frames that are still being processed.
    priority Integer
    The information confidence of the source. The higher the value, the higher the confidence.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    sourceId String
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    state String
    The state of the source. Possible values: ACTIVE DELETING INVALID
    type String
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    updateTime String
    The timestamp when the source was last updated.
    createTime string
    The timestamp when the source was created.
    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.
    description string
    Free-text description.
    displayName string
    User-friendly display name.
    errorFrameCount number
    The number of frames that were reported by the source and contained errors.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    managed boolean
    If true, the source is managed by other service(s).
    name string
    The full name of the source.
    pendingFrameCount number
    Number of frames that are still being processed.
    priority number
    The information confidence of the source. The higher the value, the higher the confidence.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    sourceId string
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    state string
    The state of the source. Possible values: ACTIVE DELETING INVALID
    type string
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    updateTime string
    The timestamp when the source was last updated.
    create_time str
    The timestamp when the source was created.
    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.
    description str
    Free-text description.
    display_name str
    User-friendly display name.
    error_frame_count int
    The number of frames that were reported by the source and contained errors.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    managed bool
    If true, the source is managed by other service(s).
    name str
    The full name of the source.
    pending_frame_count int
    Number of frames that are still being processed.
    priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    source_id str
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    state str
    The state of the source. Possible values: ACTIVE DELETING INVALID
    type str
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    update_time str
    The timestamp when the source was last updated.
    createTime String
    The timestamp when the source was created.
    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.
    description String
    Free-text description.
    displayName String
    User-friendly display name.
    errorFrameCount Number
    The number of frames that were reported by the source and contained errors.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    managed Boolean
    If true, the source is managed by other service(s).
    name String
    The full name of the source.
    pendingFrameCount Number
    Number of frames that are still being processed.
    priority Number
    The information confidence of the source. The higher the value, the higher the confidence.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    sourceId String
    User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    state String
    The state of the source. Possible values: ACTIVE DELETING INVALID
    type String
    Data source type. Possible values: SOURCE_TYPE_UNKNOWN SOURCE_TYPE_UPLOAD SOURCE_TYPE_GUEST_OS_SCAN SOURCE_TYPE_INVENTORY_SCAN SOURCE_TYPE_CUSTOM SOURCE_TYPE_DISCOVERY_CLIENT
    updateTime String
    The timestamp when the source was last updated.

    Import

    Source can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/sources/{{source_id}}
    • {{project}}/{{location}}/{{source_id}}
    • {{location}}/{{source_id}}

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

    $ pulumi import gcp:migrationcenter/source:Source default projects/{{project}}/locations/{{location}}/sources/{{source_id}}
    $ pulumi import gcp:migrationcenter/source:Source default {{project}}/{{location}}/{{source_id}}
    $ pulumi import gcp:migrationcenter/source:Source default {{location}}/{{source_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.26.0
    published on Tuesday, Jun 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial