Google Native
getMigrationJob
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>
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]
func LookupMigrationJob(ctx *Context, args *LookupMigrationJobArgs, opts ...InvokeOption) (*LookupMigrationJobResult, error)
func LookupMigrationJobOutput(ctx *Context, args *LookupMigrationJobOutputArgs, opts ...InvokeOption) LookupMigrationJobResultOutput
> 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)
}
public static CompletableFuture<GetMigrationJobResult> getMigrationJob(GetMigrationJobArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: google-native:datamigration/v1:getMigrationJob
Arguments:
# Arguments dictionary
The following arguments are supported:
- Location string
- Migration
Job stringId - Project string
- Location string
- Migration
Job stringId - Project string
- location String
- migration
Job StringId - project String
- location string
- migration
Job stringId - project string
- location str
- migration_
job_ strid - project str
- location String
- migration
Job StringId - project String
getMigrationJob Result
The following output properties are available:
- Create
Time 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.
- Destination
Database Pulumi.Google Native. Datamigration. V1. Outputs. Database Type Response The database engine type and provider of the destination.
- Display
Name string The migration job display name.
- Dump
Flags Pulumi.Google Native. Datamigration. V1. Outputs. Dump Flags Response The initial dump flags. This field and the "dump_path" field are mutually exclusive.
- Dump
Path string The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.
- 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".
- End
Time string If the migration job is completed, the time when it was completed.
- Error
Pulumi.
Google Native. Datamigration. V1. Outputs. Status Response 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.
- Reverse
Ssh Pulumi.Connectivity Google Native. Datamigration. V1. Outputs. Reverse Ssh Connectivity Response The details needed to communicate to the source over Reverse SSH tunnel connectivity.
- Source string
The resource name (URI) of the source connection profile.
- Source
Database Pulumi.Google Native. Datamigration. V1. Outputs. Database Type Response The database engine type and provider of the source.
- State string
The current migration job state.
- Static
Ip Pulumi.Connectivity Google Native. Datamigration. V1. Outputs. Static Ip Connectivity Response static ip connectivity data (default, no additional details needed).
- Type string
The migration job type.
- Update
Time 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".
- Vpc
Peering Pulumi.Connectivity Google Native. Datamigration. V1. Outputs. Vpc Peering Connectivity Response The details of the VPC network that the source database is located in.
- Create
Time 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.
- Destination
Database DatabaseType Response The database engine type and provider of the destination.
- Display
Name string The migration job display name.
- Dump
Flags DumpFlags Response The initial dump flags. This field and the "dump_path" field are mutually exclusive.
- Dump
Path string The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.
- 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".
- End
Time string If the migration job is completed, the time when it was completed.
- Error
Status
Response 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.
- Reverse
Ssh ReverseConnectivity Ssh Connectivity Response The details needed to communicate to the source over Reverse SSH tunnel connectivity.
- Source string
The resource name (URI) of the source connection profile.
- Source
Database DatabaseType Response The database engine type and provider of the source.
- State string
The current migration job state.
- Static
Ip StaticConnectivity Ip Connectivity Response static ip connectivity data (default, no additional details needed).
- Type string
The migration job type.
- Update
Time 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".
- Vpc
Peering VpcConnectivity Peering Connectivity Response The details of the VPC network that the source database is located in.
- create
Time 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.
- destination
Database DatabaseType Response The database engine type and provider of the destination.
- display
Name String The migration job display name.
- dump
Flags DumpFlags Response The initial dump flags. This field and the "dump_path" field are mutually exclusive.
- dump
Path String The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.
- 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".
- end
Time String If the migration job is completed, the time when it was completed.
- error
Status
Response 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.
- reverse
Ssh ReverseConnectivity Ssh Connectivity Response The details needed to communicate to the source over Reverse SSH tunnel connectivity.
- source String
The resource name (URI) of the source connection profile.
- source
Database DatabaseType Response The database engine type and provider of the source.
- state String
The current migration job state.
- static
Ip StaticConnectivity Ip Connectivity Response static ip connectivity data (default, no additional details needed).
- type String
The migration job type.
- update
Time 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".
- vpc
Peering VpcConnectivity Peering Connectivity Response The details of the VPC network that the source database is located in.
- create
Time 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.
- destination
Database DatabaseType Response The database engine type and provider of the destination.
- display
Name string The migration job display name.
- dump
Flags DumpFlags Response The initial dump flags. This field and the "dump_path" field are mutually exclusive.
- dump
Path string The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.
- 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".
- end
Time string If the migration job is completed, the time when it was completed.
- error
Status
Response 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.
- reverse
Ssh ReverseConnectivity Ssh Connectivity Response The details needed to communicate to the source over Reverse SSH tunnel connectivity.
- source string
The resource name (URI) of the source connection profile.
- source
Database DatabaseType Response The database engine type and provider of the source.
- state string
The current migration job state.
- static
Ip StaticConnectivity Ip Connectivity Response static ip connectivity data (default, no additional details needed).
- type string
The migration job type.
- update
Time 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".
- vpc
Peering VpcConnectivity Peering Connectivity Response 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 DatabaseType Response The database engine type and provider of the destination.
- display_
name str The migration job display name.
- dump_
flags DumpFlags Response The initial dump flags. This field and the "dump_path" field are mutually exclusive.
- dump_
path str The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.
- 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
Status
Response 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_ Reverseconnectivity Ssh Connectivity Response 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 DatabaseType Response The database engine type and provider of the source.
- state str
The current migration job state.
- static_
ip_ Staticconnectivity Ip Connectivity Response 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_ Vpcconnectivity Peering Connectivity Response The details of the VPC network that the source database is located in.
- create
Time 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.
- destination
Database Property Map The database engine type and provider of the destination.
- display
Name String The migration job display name.
- dump
Flags Property Map The initial dump flags. This field and the "dump_path" field are mutually exclusive.
- dump
Path String The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.
- 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".
- end
Time 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.
- reverse
Ssh Property MapConnectivity The details needed to communicate to the source over Reverse SSH tunnel connectivity.
- source String
The resource name (URI) of the source connection profile.
- source
Database Property Map The database engine type and provider of the source.
- state String
The current migration job state.
- static
Ip Property MapConnectivity static ip connectivity data (default, no additional details needed).
- type String
The migration job type.
- update
Time 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".
- vpc
Peering Property MapConnectivity The details of the VPC network that the source database is located in.
Supporting Types
DatabaseTypeResponse
DumpFlagResponse
DumpFlagsResponse
- Dump
Flags List<Pulumi.Google Native. Datamigration. V1. Inputs. Dump Flag Response> The flags for the initial dump.
- Dump
Flags []DumpFlag Response The flags for the initial dump.
- dump
Flags List<DumpFlag Response> The flags for the initial dump.
- dump
Flags DumpFlag Response[] The flags for the initial dump.
- dump_
flags Sequence[DumpFlag Response] The flags for the initial dump.
- dump
Flags List<Property Map> The flags for the initial dump.
ReverseSshConnectivityResponse
- Vm string
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- Vm
Ip string The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- Vm
Port int The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- Vpc string
The name of the VPC to peer with the Cloud SQL private network.
- Vm string
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- Vm
Ip string The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- Vm
Port int The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- Vpc string
The name of the VPC to peer with the Cloud SQL private network.
- vm String
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vm
Ip String The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vm
Port Integer The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vpc String
The name of the VPC to peer with the Cloud SQL private network.
- vm string
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vm
Ip string The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vm
Port number The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vpc string
The name of the VPC to peer with the Cloud SQL private network.
- vm str
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vm_
ip str The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vm_
port int The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vpc str
The name of the VPC to peer with the Cloud SQL private network.
- vm String
The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vm
Ip String The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vm
Port Number The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel.
- vpc String
The name of the VPC to peer with the Cloud SQL private network.
StatusResponse
- Code int
The status code, which should be an enum value of google.rpc.Code.
- Details
List<Immutable
Dictionary<string, string>> A list of messages that carry the error details. There is a common set of message types for APIs to use.
- Message 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 int
The status code, which should be an enum value of google.rpc.Code.
- Details []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 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 Integer
The status code, which should be an enum value of google.rpc.Code.
- details 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 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 number
The status code, which should be an enum value of google.rpc.Code.
- details {[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 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 int
The status code, which should be an enum value of google.rpc.Code.
- details 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 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 Number
The status code, which should be an enum value of google.rpc.Code.
- details 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 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 string
The name of the VPC network to peer with the Cloud SQL private network.
- Vpc string
The name of the VPC network to peer with the Cloud SQL private network.
- vpc String
The name of the VPC network to peer with the Cloud SQL private network.
- vpc string
The name of the VPC network to peer with the Cloud SQL private network.
- vpc str
The name of the VPC network to peer with the Cloud SQL private network.
- vpc String
The name of the VPC network to peer with the Cloud SQL private network.
Package Details
- Repository
- https://github.com/pulumi/pulumi-google-native
- License
- Apache-2.0