published on Tuesday, Jun 9, 2026 by Pulumi
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. - 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 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 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. - 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 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. - 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 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. - 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 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:
- Create
Time string - The timestamp when the source was created.
- Error
Frame intCount - 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 intCount - 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.
- Create
Time string - The timestamp when the source was created.
- Error
Frame intCount - 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 intCount - 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.
- create_
time string - The timestamp when the source was created.
- error_
frame_ numbercount - 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_ numbercount - 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.
- create
Time String - The timestamp when the source was created.
- error
Frame IntegerCount - 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 IntegerCount - 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.
- create
Time string - The timestamp when the source was created.
- error
Frame numberCount - 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 numberCount - 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.
- create_
time str - The timestamp when the source was created.
- error_
frame_ intcount - 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_ intcount - 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.
- create
Time String - The timestamp when the source was created.
- error
Frame NumberCount - 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 NumberCount - 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.
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) -> Sourcefunc 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.
- 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 intCount - 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 intCount - 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.
- 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.
- 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 intCount - 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 intCount - 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.
- 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.
- 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_ numbercount - 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_ numbercount - 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.
- 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 IntegerCount - 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.
- pending
Frame IntegerCount - 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.
- 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.
- 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 numberCount - 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.
- pending
Frame numberCount - 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.
- 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_ intcount - 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_ intcount - 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.
- 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 NumberCount - 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.
- pending
Frame NumberCount - 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.
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-betaTerraform Provider.
published on Tuesday, Jun 9, 2026 by Pulumi