1. Packages
  2. Google Cloud Native
  3. API Docs
  4. datamigration
  5. datamigration/v1beta1
  6. getMigrationJob

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.datamigration/v1beta1.getMigrationJob

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Gets details of a single migration job.

Using getMigrationJob

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMigrationJob(args: GetMigrationJobArgs, opts?: InvokeOptions): Promise<GetMigrationJobResult>
function getMigrationJobOutput(args: GetMigrationJobOutputArgs, opts?: InvokeOptions): Output<GetMigrationJobResult>
Copy
def get_migration_job(location: Optional[str] = None,
                      migration_job_id: Optional[str] = None,
                      project: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetMigrationJobResult
def get_migration_job_output(location: Optional[pulumi.Input[str]] = None,
                      migration_job_id: Optional[pulumi.Input[str]] = None,
                      project: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetMigrationJobResult]
Copy
func LookupMigrationJob(ctx *Context, args *LookupMigrationJobArgs, opts ...InvokeOption) (*LookupMigrationJobResult, error)
func LookupMigrationJobOutput(ctx *Context, args *LookupMigrationJobOutputArgs, opts ...InvokeOption) LookupMigrationJobResultOutput
Copy

> Note: This function is named LookupMigrationJob in the Go SDK.

public static class GetMigrationJob 
{
    public static Task<GetMigrationJobResult> InvokeAsync(GetMigrationJobArgs args, InvokeOptions? opts = null)
    public static Output<GetMigrationJobResult> Invoke(GetMigrationJobInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMigrationJobResult> getMigrationJob(GetMigrationJobArgs args, InvokeOptions options)
public static Output<GetMigrationJobResult> getMigrationJob(GetMigrationJobArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:datamigration/v1beta1:getMigrationJob
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location This property is required. string
MigrationJobId This property is required. string
Project string
Location This property is required. string
MigrationJobId This property is required. string
Project string
location This property is required. String
migrationJobId This property is required. String
project String
location This property is required. string
migrationJobId This property is required. string
project string
location This property is required. str
migration_job_id This property is required. str
project str
location This property is required. String
migrationJobId This property is required. String
project String

getMigrationJob Result

The following output properties are available:

CreateTime string
The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
Destination string
The resource name (URI) of the destination connection profile.
DestinationDatabase Pulumi.GoogleNative.Datamigration.V1Beta1.Outputs.DatabaseTypeResponse
The database engine type and provider of the destination.
DisplayName string
The migration job display name.
DumpPath string
The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
Duration string
The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
EndTime string
If the migration job is completed, the time when it was completed.
Error Pulumi.GoogleNative.Datamigration.V1Beta1.Outputs.StatusResponse
The error details in case of state FAILED.
Labels Dictionary<string, string>
The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Name string
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
Phase string
The current migration job phase.
ReverseSshConnectivity Pulumi.GoogleNative.Datamigration.V1Beta1.Outputs.ReverseSshConnectivityResponse
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
Source string
The resource name (URI) of the source connection profile.
SourceDatabase Pulumi.GoogleNative.Datamigration.V1Beta1.Outputs.DatabaseTypeResponse
The database engine type and provider of the source.
State string
The current migration job state.
StaticIpConnectivity Pulumi.GoogleNative.Datamigration.V1Beta1.Outputs.StaticIpConnectivityResponse
static ip connectivity data (default, no additional details needed).
Type string
The migration job type.
UpdateTime string
The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
VpcPeeringConnectivity Pulumi.GoogleNative.Datamigration.V1Beta1.Outputs.VpcPeeringConnectivityResponse
The details of the VPC network that the source database is located in.
CreateTime string
The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
Destination string
The resource name (URI) of the destination connection profile.
DestinationDatabase DatabaseTypeResponse
The database engine type and provider of the destination.
DisplayName string
The migration job display name.
DumpPath string
The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
Duration string
The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
EndTime string
If the migration job is completed, the time when it was completed.
Error StatusResponse
The error details in case of state FAILED.
Labels map[string]string
The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Name string
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
Phase string
The current migration job phase.
ReverseSshConnectivity ReverseSshConnectivityResponse
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
Source string
The resource name (URI) of the source connection profile.
SourceDatabase DatabaseTypeResponse
The database engine type and provider of the source.
State string
The current migration job state.
StaticIpConnectivity StaticIpConnectivityResponse
static ip connectivity data (default, no additional details needed).
Type string
The migration job type.
UpdateTime string
The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
VpcPeeringConnectivity VpcPeeringConnectivityResponse
The details of the VPC network that the source database is located in.
createTime String
The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
destination String
The resource name (URI) of the destination connection profile.
destinationDatabase DatabaseTypeResponse
The database engine type and provider of the destination.
displayName String
The migration job display name.
dumpPath String
The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
duration String
The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
endTime String
If the migration job is completed, the time when it was completed.
error StatusResponse
The error details in case of state FAILED.
labels Map<String,String>
The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
name String
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
phase String
The current migration job phase.
reverseSshConnectivity ReverseSshConnectivityResponse
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
source String
The resource name (URI) of the source connection profile.
sourceDatabase DatabaseTypeResponse
The database engine type and provider of the source.
state String
The current migration job state.
staticIpConnectivity StaticIpConnectivityResponse
static ip connectivity data (default, no additional details needed).
type String
The migration job type.
updateTime String
The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
vpcPeeringConnectivity VpcPeeringConnectivityResponse
The details of the VPC network that the source database is located in.
createTime string
The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
destination string
The resource name (URI) of the destination connection profile.
destinationDatabase DatabaseTypeResponse
The database engine type and provider of the destination.
displayName string
The migration job display name.
dumpPath string
The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
duration string
The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
endTime string
If the migration job is completed, the time when it was completed.
error StatusResponse
The error details in case of state FAILED.
labels {[key: string]: string}
The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
name string
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
phase string
The current migration job phase.
reverseSshConnectivity ReverseSshConnectivityResponse
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
source string
The resource name (URI) of the source connection profile.
sourceDatabase DatabaseTypeResponse
The database engine type and provider of the source.
state string
The current migration job state.
staticIpConnectivity StaticIpConnectivityResponse
static ip connectivity data (default, no additional details needed).
type string
The migration job type.
updateTime string
The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
vpcPeeringConnectivity VpcPeeringConnectivityResponse
The details of the VPC network that the source database is located in.
create_time str
The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
destination str
The resource name (URI) of the destination connection profile.
destination_database DatabaseTypeResponse
The database engine type and provider of the destination.
display_name str
The migration job display name.
dump_path str
The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
duration str
The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
end_time str
If the migration job is completed, the time when it was completed.
error StatusResponse
The error details in case of state FAILED.
labels Mapping[str, str]
The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
name str
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
phase str
The current migration job phase.
reverse_ssh_connectivity ReverseSshConnectivityResponse
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
source str
The resource name (URI) of the source connection profile.
source_database DatabaseTypeResponse
The database engine type and provider of the source.
state str
The current migration job state.
static_ip_connectivity StaticIpConnectivityResponse
static ip connectivity data (default, no additional details needed).
type str
The migration job type.
update_time str
The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
vpc_peering_connectivity VpcPeeringConnectivityResponse
The details of the VPC network that the source database is located in.
createTime String
The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
destination String
The resource name (URI) of the destination connection profile.
destinationDatabase Property Map
The database engine type and provider of the destination.
displayName String
The migration job display name.
dumpPath String
The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
duration String
The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
endTime String
If the migration job is completed, the time when it was completed.
error Property Map
The error details in case of state FAILED.
labels Map<String>
The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
name String
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
phase String
The current migration job phase.
reverseSshConnectivity Property Map
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
source String
The resource name (URI) of the source connection profile.
sourceDatabase Property Map
The database engine type and provider of the source.
state String
The current migration job state.
staticIpConnectivity Property Map
static ip connectivity data (default, no additional details needed).
type String
The migration job type.
updateTime String
The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
vpcPeeringConnectivity Property Map
The details of the VPC network that the source database is located in.

Supporting Types

DatabaseTypeResponse

Engine This property is required. string
The database engine.
Provider This property is required. string
The database provider.
Engine This property is required. string
The database engine.
Provider This property is required. string
The database provider.
engine This property is required. String
The database engine.
provider This property is required. String
The database provider.
engine This property is required. string
The database engine.
provider This property is required. string
The database provider.
engine This property is required. str
The database engine.
provider This property is required. str
The database provider.
engine This property is required. String
The database engine.
provider This property is required. String
The database provider.

ReverseSshConnectivityResponse

Vm This property is required. string
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
VmIp This property is required. string
The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
VmPort This property is required. int
The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
Vpc This property is required. string
The name of the VPC to peer with the Cloud SQL private network.
Vm This property is required. string
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
VmIp This property is required. string
The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
VmPort This property is required. int
The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
Vpc This property is required. string
The name of the VPC to peer with the Cloud SQL private network.
vm This property is required. String
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vmIp This property is required. String
The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vmPort This property is required. Integer
The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vpc This property is required. String
The name of the VPC to peer with the Cloud SQL private network.
vm This property is required. string
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vmIp This property is required. string
The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vmPort This property is required. number
The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vpc This property is required. string
The name of the VPC to peer with the Cloud SQL private network.
vm This property is required. str
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vm_ip This property is required. str
The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vm_port This property is required. int
The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vpc This property is required. str
The name of the VPC to peer with the Cloud SQL private network.
vm This property is required. String
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vmIp This property is required. String
The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vmPort This property is required. Number
The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
vpc This property is required. String
The name of the VPC to peer with the Cloud SQL private network.

StatusResponse

Code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Details This property is required. List<ImmutableDictionary<string, string>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Message This property is required. string
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 This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Details This property is required. []map[string]string
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Message This property is required. string
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 This property is required. Integer
The status code, which should be an enum value of google.rpc.Code.
details This property is required. List<Map<String,String>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. String
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 This property is required. number
The status code, which should be an enum value of google.rpc.Code.
details This property is required. {[key: string]: string}[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. string
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 This property is required. int
The status code, which should be an enum value of google.rpc.Code.
details This property is required. Sequence[Mapping[str, str]]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. str
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 This property is required. Number
The status code, which should be an enum value of google.rpc.Code.
details This property is required. List<Map<String>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. String
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.

VpcPeeringConnectivityResponse

Vpc This property is required. string
The name of the VPC network to peer with the Cloud SQL private network.
Vpc This property is required. string
The name of the VPC network to peer with the Cloud SQL private network.
vpc This property is required. String
The name of the VPC network to peer with the Cloud SQL private network.
vpc This property is required. string
The name of the VPC network to peer with the Cloud SQL private network.
vpc This property is required. str
The name of the VPC network to peer with the Cloud SQL private network.
vpc This property is required. String
The name of the VPC network to peer with the Cloud SQL private network.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi