1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. migrationcenter
  6. DiscoveryClient
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

    DiscoveryClient represents an on-premise discovery agent that scans infrastructure and uploads discovery data to Migration Center.

    Example Usage

    Migration Center Discovery Client 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",
        type: "SOURCE_TYPE_DISCOVERY_CLIENT",
    });
    const defaultAccount = new gcp.serviceaccount.Account("default", {
        accountId: "sa-test",
        displayName: "Service Account for Discovery Client",
    });
    const default2 = new gcp.serviceaccount.Account("default_2", {
        accountId: "sa-test-two",
        displayName: "Second Service Account for Discovery Client",
    });
    const defaultDiscoveryClient = new gcp.migrationcenter.DiscoveryClient("default", {
        location: "us-central1",
        discoveryClientId: "discovery-client-test",
        source: _default.id,
        serviceAccount: defaultAccount.email,
        displayName: "Terraform integration test display",
        description: "Terraform integration test description",
        ttl: "86400s",
        labels: {
            my_key: "value",
            second_key: "second_value",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.migrationcenter.Source("default",
        location="us-central1",
        source_id="source-test",
        type="SOURCE_TYPE_DISCOVERY_CLIENT")
    default_account = gcp.serviceaccount.Account("default",
        account_id="sa-test",
        display_name="Service Account for Discovery Client")
    default2 = gcp.serviceaccount.Account("default_2",
        account_id="sa-test-two",
        display_name="Second Service Account for Discovery Client")
    default_discovery_client = gcp.migrationcenter.DiscoveryClient("default",
        location="us-central1",
        discovery_client_id="discovery-client-test",
        source=default.id,
        service_account=default_account.email,
        display_name="Terraform integration test display",
        description="Terraform integration test description",
        ttl="86400s",
        labels={
            "my_key": "value",
            "second_key": "second_value",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/migrationcenter"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/serviceaccount"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := migrationcenter.NewSource(ctx, "default", &migrationcenter.SourceArgs{
    			Location: pulumi.String("us-central1"),
    			SourceId: pulumi.String("source-test"),
    			Type:     pulumi.String("SOURCE_TYPE_DISCOVERY_CLIENT"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultAccount, err := serviceaccount.NewAccount(ctx, "default", &serviceaccount.AccountArgs{
    			AccountId:   pulumi.String("sa-test"),
    			DisplayName: pulumi.String("Service Account for Discovery Client"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = serviceaccount.NewAccount(ctx, "default_2", &serviceaccount.AccountArgs{
    			AccountId:   pulumi.String("sa-test-two"),
    			DisplayName: pulumi.String("Second Service Account for Discovery Client"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = migrationcenter.NewDiscoveryClient(ctx, "default", &migrationcenter.DiscoveryClientArgs{
    			Location:          pulumi.String("us-central1"),
    			DiscoveryClientId: pulumi.String("discovery-client-test"),
    			Source:            _default.ID(),
    			ServiceAccount:    defaultAccount.Email,
    			DisplayName:       pulumi.String("Terraform integration test display"),
    			Description:       pulumi.String("Terraform integration test description"),
    			Ttl:               pulumi.String("86400s"),
    			Labels: pulumi.StringMap{
    				"my_key":     pulumi.String("value"),
    				"second_key": pulumi.String("second_value"),
    			},
    		})
    		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",
            Type = "SOURCE_TYPE_DISCOVERY_CLIENT",
        });
    
        var defaultAccount = new Gcp.ServiceAccount.Account("default", new()
        {
            AccountId = "sa-test",
            DisplayName = "Service Account for Discovery Client",
        });
    
        var default2 = new Gcp.ServiceAccount.Account("default_2", new()
        {
            AccountId = "sa-test-two",
            DisplayName = "Second Service Account for Discovery Client",
        });
    
        var defaultDiscoveryClient = new Gcp.MigrationCenter.DiscoveryClient("default", new()
        {
            Location = "us-central1",
            DiscoveryClientId = "discovery-client-test",
            Source = @default.Id,
            ServiceAccount = defaultAccount.Email,
            DisplayName = "Terraform integration test display",
            Description = "Terraform integration test description",
            Ttl = "86400s",
            Labels = 
            {
                { "my_key", "value" },
                { "second_key", "second_value" },
            },
        });
    
    });
    
    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 com.pulumi.gcp.serviceaccount.Account;
    import com.pulumi.gcp.serviceaccount.AccountArgs;
    import com.pulumi.gcp.migrationcenter.DiscoveryClient;
    import com.pulumi.gcp.migrationcenter.DiscoveryClientArgs;
    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")
                .type("SOURCE_TYPE_DISCOVERY_CLIENT")
                .build());
    
            var defaultAccount = new Account("defaultAccount", AccountArgs.builder()
                .accountId("sa-test")
                .displayName("Service Account for Discovery Client")
                .build());
    
            var default2 = new Account("default2", AccountArgs.builder()
                .accountId("sa-test-two")
                .displayName("Second Service Account for Discovery Client")
                .build());
    
            var defaultDiscoveryClient = new DiscoveryClient("defaultDiscoveryClient", DiscoveryClientArgs.builder()
                .location("us-central1")
                .discoveryClientId("discovery-client-test")
                .source(default_.id())
                .serviceAccount(defaultAccount.email())
                .displayName("Terraform integration test display")
                .description("Terraform integration test description")
                .ttl("86400s")
                .labels(Map.ofEntries(
                    Map.entry("my_key", "value"),
                    Map.entry("second_key", "second_value")
                ))
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:migrationcenter:Source
        properties:
          location: us-central1
          sourceId: source-test
          type: SOURCE_TYPE_DISCOVERY_CLIENT
      defaultAccount:
        type: gcp:serviceaccount:Account
        name: default
        properties:
          accountId: sa-test
          displayName: Service Account for Discovery Client
      default2:
        type: gcp:serviceaccount:Account
        name: default_2
        properties:
          accountId: sa-test-two
          displayName: Second Service Account for Discovery Client
      defaultDiscoveryClient:
        type: gcp:migrationcenter:DiscoveryClient
        name: default
        properties:
          location: us-central1
          discoveryClientId: discovery-client-test
          source: ${default.id}
          serviceAccount: ${defaultAccount.email}
          displayName: Terraform integration test display
          description: Terraform integration test description
          ttl: 86400s
          labels:
            my_key: value
            second_key: second_value
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    resource "gcp_migrationcenter_source" "default" {
      location  = "us-central1"
      source_id = "source-test"
      type      = "SOURCE_TYPE_DISCOVERY_CLIENT"
    }
    resource "gcp_serviceaccount_account" "default" {
      account_id   = "sa-test"
      display_name = "Service Account for Discovery Client"
    }
    resource "gcp_serviceaccount_account" "default_2" {
      account_id   = "sa-test-two"
      display_name = "Second Service Account for Discovery Client"
    }
    resource "gcp_migrationcenter_discoveryclient" "default" {
      location            = "us-central1"
      discovery_client_id = "discovery-client-test"
      source              = gcp_migrationcenter_source.default.id
      service_account     = gcp_serviceaccount_account.default.email
      display_name        = "Terraform integration test display"
      description         = "Terraform integration test description"
      ttl                 = "86400s"
      labels = {
        "my_key"     = "value"
        "second_key" = "second_value"
      }
    }
    

    Create DiscoveryClient Resource

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

    Constructor syntax

    new DiscoveryClient(name: string, args: DiscoveryClientArgs, opts?: CustomResourceOptions);
    @overload
    def DiscoveryClient(resource_name: str,
                        args: DiscoveryClientArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiscoveryClient(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        discovery_client_id: Optional[str] = None,
                        location: Optional[str] = None,
                        service_account: Optional[str] = None,
                        source: Optional[str] = None,
                        deletion_policy: Optional[str] = None,
                        description: Optional[str] = None,
                        display_name: Optional[str] = None,
                        expire_time: Optional[str] = None,
                        labels: Optional[Mapping[str, str]] = None,
                        project: Optional[str] = None,
                        ttl: Optional[str] = None)
    func NewDiscoveryClient(ctx *Context, name string, args DiscoveryClientArgs, opts ...ResourceOption) (*DiscoveryClient, error)
    public DiscoveryClient(string name, DiscoveryClientArgs args, CustomResourceOptions? opts = null)
    public DiscoveryClient(String name, DiscoveryClientArgs args)
    public DiscoveryClient(String name, DiscoveryClientArgs args, CustomResourceOptions options)
    
    type: gcp:migrationcenter:DiscoveryClient
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_migrationcenter_discoveryclient" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DiscoveryClientArgs
    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 DiscoveryClientArgs
    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 DiscoveryClientArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DiscoveryClientArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DiscoveryClientArgs
    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 discoveryClientResource = new Gcp.MigrationCenter.DiscoveryClient("discoveryClientResource", new()
    {
        DiscoveryClientId = "string",
        Location = "string",
        ServiceAccount = "string",
        Source = "string",
        DeletionPolicy = "string",
        Description = "string",
        DisplayName = "string",
        ExpireTime = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
        Ttl = "string",
    });
    
    example, err := migrationcenter.NewDiscoveryClient(ctx, "discoveryClientResource", &migrationcenter.DiscoveryClientArgs{
    	DiscoveryClientId: pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	ServiceAccount:    pulumi.String("string"),
    	Source:            pulumi.String("string"),
    	DeletionPolicy:    pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	DisplayName:       pulumi.String("string"),
    	ExpireTime:        pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    	Ttl:     pulumi.String("string"),
    })
    
    resource "gcp_migrationcenter_discoveryclient" "discoveryClientResource" {
      discovery_client_id = "string"
      location            = "string"
      service_account     = "string"
      source              = "string"
      deletion_policy     = "string"
      description         = "string"
      display_name        = "string"
      expire_time         = "string"
      labels = {
        "string" = "string"
      }
      project = "string"
      ttl     = "string"
    }
    
    var discoveryClientResource = new DiscoveryClient("discoveryClientResource", DiscoveryClientArgs.builder()
        .discoveryClientId("string")
        .location("string")
        .serviceAccount("string")
        .source("string")
        .deletionPolicy("string")
        .description("string")
        .displayName("string")
        .expireTime("string")
        .labels(Map.of("string", "string"))
        .project("string")
        .ttl("string")
        .build());
    
    discovery_client_resource = gcp.migrationcenter.DiscoveryClient("discoveryClientResource",
        discovery_client_id="string",
        location="string",
        service_account="string",
        source="string",
        deletion_policy="string",
        description="string",
        display_name="string",
        expire_time="string",
        labels={
            "string": "string",
        },
        project="string",
        ttl="string")
    
    const discoveryClientResource = new gcp.migrationcenter.DiscoveryClient("discoveryClientResource", {
        discoveryClientId: "string",
        location: "string",
        serviceAccount: "string",
        source: "string",
        deletionPolicy: "string",
        description: "string",
        displayName: "string",
        expireTime: "string",
        labels: {
            string: "string",
        },
        project: "string",
        ttl: "string",
    });
    
    type: gcp:migrationcenter:DiscoveryClient
    properties:
        deletionPolicy: string
        description: string
        discoveryClientId: string
        displayName: string
        expireTime: string
        labels:
            string: string
        location: string
        project: string
        serviceAccount: string
        source: string
        ttl: string
    

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

    DiscoveryClientId string
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    ServiceAccount string
    Service account used by the discovery client for various operation.
    Source string
    Full name of the source object associated with this discovery client.
    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. Maximum length is 1000 characters.
    DisplayName string
    Free text display name. Maximum length is 63 characters.
    ExpireTime string
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    Labels Dictionary<string, string>
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Ttl string
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    DiscoveryClientId string
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    ServiceAccount string
    Service account used by the discovery client for various operation.
    Source string
    Full name of the source object associated with this discovery client.
    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. Maximum length is 1000 characters.
    DisplayName string
    Free text display name. Maximum length is 63 characters.
    ExpireTime string
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    Labels map[string]string
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Ttl string
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    discovery_client_id string
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    service_account string
    Service account used by the discovery client for various operation.
    source string
    Full name of the source object associated with this discovery client.
    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. Maximum length is 1000 characters.
    display_name string
    Free text display name. Maximum length is 63 characters.
    expire_time string
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    labels map(string)
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ttl string
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    discoveryClientId String
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    serviceAccount String
    Service account used by the discovery client for various operation.
    source String
    Full name of the source object associated with this discovery client.
    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. Maximum length is 1000 characters.
    displayName String
    Free text display name. Maximum length is 63 characters.
    expireTime String
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    labels Map<String,String>
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ttl String
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    discoveryClientId string
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    serviceAccount string
    Service account used by the discovery client for various operation.
    source string
    Full name of the source object associated with this discovery client.
    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. Maximum length is 1000 characters.
    displayName string
    Free text display name. Maximum length is 63 characters.
    expireTime string
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    labels {[key: string]: string}
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ttl string
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    discovery_client_id str
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    service_account str
    Service account used by the discovery client for various operation.
    source str
    Full name of the source object associated with this discovery client.
    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. Maximum length is 1000 characters.
    display_name str
    Free text display name. Maximum length is 63 characters.
    expire_time str
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    labels Mapping[str, str]
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ttl str
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    discoveryClientId String
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    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.
    serviceAccount String
    Service account used by the discovery client for various operation.
    source String
    Full name of the source object associated with this discovery client.
    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. Maximum length is 1000 characters.
    displayName String
    Free text display name. Maximum length is 63 characters.
    expireTime String
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    labels Map<String>
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ttl String
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.

    Outputs

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

    CreateTime string
    Time when the discovery client was first created.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Errors List<DiscoveryClientError>
    Errors affecting client functionality. Structure is documented below.
    HeartbeatTime string
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. Full name of this discovery client.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    SignalsEndpoint string
    This field is intended for internal use.
    State string
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    UpdateTime string
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    Version string
    Client version, as reported in recent heartbeat.
    CreateTime string
    Time when the discovery client was first created.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Errors []DiscoveryClientError
    Errors affecting client functionality. Structure is documented below.
    HeartbeatTime string
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. Full name of this discovery client.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    SignalsEndpoint string
    This field is intended for internal use.
    State string
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    UpdateTime string
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    Version string
    Client version, as reported in recent heartbeat.
    create_time string
    Time when the discovery client was first created.
    effective_labels map(string)
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors list(object)
    Errors affecting client functionality. Structure is documented below.
    heartbeat_time string
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. Full name of this discovery client.
    pulumi_labels map(string)
    The combination of labels configured directly on the resource and default labels configured on the provider.
    signals_endpoint string
    This field is intended for internal use.
    state string
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    update_time string
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version string
    Client version, as reported in recent heartbeat.
    createTime String
    Time when the discovery client was first created.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors List<DiscoveryClientError>
    Errors affecting client functionality. Structure is documented below.
    heartbeatTime String
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. Full name of this discovery client.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    signalsEndpoint String
    This field is intended for internal use.
    state String
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    updateTime String
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version String
    Client version, as reported in recent heartbeat.
    createTime string
    Time when the discovery client was first created.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors DiscoveryClientError[]
    Errors affecting client functionality. Structure is documented below.
    heartbeatTime string
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. Full name of this discovery client.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    signalsEndpoint string
    This field is intended for internal use.
    state string
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    updateTime string
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version string
    Client version, as reported in recent heartbeat.
    create_time str
    Time when the discovery client was first created.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors Sequence[DiscoveryClientError]
    Errors affecting client functionality. Structure is documented below.
    heartbeat_time str
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. Full name of this discovery client.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    signals_endpoint str
    This field is intended for internal use.
    state str
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    update_time str
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version str
    Client version, as reported in recent heartbeat.
    createTime String
    Time when the discovery client was first created.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors List<Property Map>
    Errors affecting client functionality. Structure is documented below.
    heartbeatTime String
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. Full name of this discovery client.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    signalsEndpoint String
    This field is intended for internal use.
    state String
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    updateTime String
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version String
    Client version, as reported in recent heartbeat.

    Look up Existing DiscoveryClient Resource

    Get an existing DiscoveryClient 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?: DiscoveryClientState, opts?: CustomResourceOptions): DiscoveryClient
    @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,
            discovery_client_id: Optional[str] = None,
            display_name: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            errors: Optional[Sequence[DiscoveryClientErrorArgs]] = None,
            expire_time: Optional[str] = None,
            heartbeat_time: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            service_account: Optional[str] = None,
            signals_endpoint: Optional[str] = None,
            source: Optional[str] = None,
            state: Optional[str] = None,
            ttl: Optional[str] = None,
            update_time: Optional[str] = None,
            version: Optional[str] = None) -> DiscoveryClient
    func GetDiscoveryClient(ctx *Context, name string, id IDInput, state *DiscoveryClientState, opts ...ResourceOption) (*DiscoveryClient, error)
    public static DiscoveryClient Get(string name, Input<string> id, DiscoveryClientState? state, CustomResourceOptions? opts = null)
    public static DiscoveryClient get(String name, Output<String> id, DiscoveryClientState state, CustomResourceOptions options)
    resources:  _:    type: gcp:migrationcenter:DiscoveryClient    get:      id: ${id}
    import {
      to = gcp_migrationcenter_discoveryclient.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
    Time when the discovery client was first 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. Maximum length is 1000 characters.
    DiscoveryClientId string
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    DisplayName string
    Free text display name. Maximum length is 63 characters.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Errors List<DiscoveryClientError>
    Errors affecting client functionality. Structure is documented below.
    ExpireTime string
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    HeartbeatTime string
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    Labels Dictionary<string, string>
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    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.
    Name string
    Identifier. Full name of this discovery client.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    ServiceAccount string
    Service account used by the discovery client for various operation.
    SignalsEndpoint string
    This field is intended for internal use.
    Source string
    Full name of the source object associated with this discovery client.
    State string
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    Ttl string
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    UpdateTime string
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    Version string
    Client version, as reported in recent heartbeat.
    CreateTime string
    Time when the discovery client was first 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. Maximum length is 1000 characters.
    DiscoveryClientId string
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    DisplayName string
    Free text display name. Maximum length is 63 characters.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Errors []DiscoveryClientErrorArgs
    Errors affecting client functionality. Structure is documented below.
    ExpireTime string
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    HeartbeatTime string
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    Labels map[string]string
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    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.
    Name string
    Identifier. Full name of this discovery client.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    ServiceAccount string
    Service account used by the discovery client for various operation.
    SignalsEndpoint string
    This field is intended for internal use.
    Source string
    Full name of the source object associated with this discovery client.
    State string
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    Ttl string
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    UpdateTime string
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    Version string
    Client version, as reported in recent heartbeat.
    create_time string
    Time when the discovery client was first 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. Maximum length is 1000 characters.
    discovery_client_id string
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    display_name string
    Free text display name. Maximum length is 63 characters.
    effective_labels map(string)
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors list(object)
    Errors affecting client functionality. Structure is documented below.
    expire_time string
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    heartbeat_time string
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    labels map(string)
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    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.
    name string
    Identifier. Full name of this discovery client.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumi_labels map(string)
    The combination of labels configured directly on the resource and default labels configured on the provider.
    service_account string
    Service account used by the discovery client for various operation.
    signals_endpoint string
    This field is intended for internal use.
    source string
    Full name of the source object associated with this discovery client.
    state string
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    ttl string
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    update_time string
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version string
    Client version, as reported in recent heartbeat.
    createTime String
    Time when the discovery client was first 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. Maximum length is 1000 characters.
    discoveryClientId String
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    displayName String
    Free text display name. Maximum length is 63 characters.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors List<DiscoveryClientError>
    Errors affecting client functionality. Structure is documented below.
    expireTime String
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    heartbeatTime String
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    labels Map<String,String>
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    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.
    name String
    Identifier. Full name of this discovery client.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    serviceAccount String
    Service account used by the discovery client for various operation.
    signalsEndpoint String
    This field is intended for internal use.
    source String
    Full name of the source object associated with this discovery client.
    state String
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    ttl String
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    updateTime String
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version String
    Client version, as reported in recent heartbeat.
    createTime string
    Time when the discovery client was first 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. Maximum length is 1000 characters.
    discoveryClientId string
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    displayName string
    Free text display name. Maximum length is 63 characters.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors DiscoveryClientError[]
    Errors affecting client functionality. Structure is documented below.
    expireTime string
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    heartbeatTime string
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    labels {[key: string]: string}
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    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.
    name string
    Identifier. Full name of this discovery client.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    serviceAccount string
    Service account used by the discovery client for various operation.
    signalsEndpoint string
    This field is intended for internal use.
    source string
    Full name of the source object associated with this discovery client.
    state string
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    ttl string
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    updateTime string
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version string
    Client version, as reported in recent heartbeat.
    create_time str
    Time when the discovery client was first 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. Maximum length is 1000 characters.
    discovery_client_id str
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    display_name str
    Free text display name. Maximum length is 63 characters.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors Sequence[DiscoveryClientErrorArgs]
    Errors affecting client functionality. Structure is documented below.
    expire_time str
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    heartbeat_time str
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    labels Mapping[str, str]
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    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.
    name str
    Identifier. Full name of this discovery client.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    service_account str
    Service account used by the discovery client for various operation.
    signals_endpoint str
    This field is intended for internal use.
    source str
    Full name of the source object associated with this discovery client.
    state str
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    ttl str
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    update_time str
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version str
    Client version, as reported in recent heartbeat.
    createTime String
    Time when the discovery client was first 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. Maximum length is 1000 characters.
    discoveryClientId String
    User specified ID for the discovery client. It will become the last component of the discovery client name. The ID must be unique within the project, is restricted to lower-cased letters and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.
    displayName String
    Free text display name. Maximum length is 63 characters.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    errors List<Property Map>
    Errors affecting client functionality. Structure is documented below.
    expireTime String
    Client expiration time in UTC. If specified, the backend will not accept new frames after this time.
    heartbeatTime String
    Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).
    labels Map<String>
    Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
    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.
    name String
    Identifier. Full name of this discovery client.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    serviceAccount String
    Service account used by the discovery client for various operation.
    signalsEndpoint String
    This field is intended for internal use.
    source String
    Full name of the source object associated with this discovery client.
    state String
    Current state of the discovery client. Possible values: ACTIVE OFFLINE DEGRADED EXPIRED
    ttl String
    Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expireTime field.
    updateTime String
    Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeatTime field.
    version String
    Client version, as reported in recent heartbeat.

    Supporting Types

    DiscoveryClientError, DiscoveryClientErrorArgs

    Code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    Details List<DiscoveryClientErrorDetail>
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use.
    Message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    Code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    Details []DiscoveryClientErrorDetail
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use.
    Message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code number
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details list(object)
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use.
    message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code Integer
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details List<DiscoveryClientErrorDetail>
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use.
    message String
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code number
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details DiscoveryClientErrorDetail[]
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use.
    message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details Sequence[DiscoveryClientErrorDetail]
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use.
    message str
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code Number
    (Output) The status code, which should be an enum value of google.rpc.Code.
    details List<Property Map>
    (Output) A list of messages that carry the error details. There is a common set of message types for APIs to use.
    message String
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

    Import

    DiscoveryClient can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/discoveryClients/{{discovery_client_id}}
    • {{project}}/{{location}}/{{discovery_client_id}}
    • {{location}}/{{discovery_client_id}}

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

    $ pulumi import gcp:migrationcenter/discoveryClient:DiscoveryClient default projects/{{project}}/locations/{{location}}/discoveryClients/{{discovery_client_id}}
    $ pulumi import gcp:migrationcenter/discoveryClient:DiscoveryClient default {{project}}/{{location}}/{{discovery_client_id}}
    $ pulumi import gcp:migrationcenter/discoveryClient:DiscoveryClient default {{location}}/{{discovery_client_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