connection_profiles
Creates, updates, deletes, gets or lists a connection_profiles
resource.
Overview
Name | connection_profiles |
Type | Resource |
Id | google.datamigration.connection_profiles |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}. |
alloydb | object | An AlloyDB cluster connection profile. (id: AlloyDbConnectionProfile) |
cloudsql | object | A CloudSQL database connection profile. (id: CloudSqlConnectionProfile) |
createTime | string (google-datetime) | Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". |
displayName | string | The connection profile display name. |
error | object | Output only. The error details in case of state FAILED. (id: Status) |
labels | object | The resource labels for connection profile 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" } . |
mysql | object | A MySQL database connection profile. (id: MySqlConnectionProfile) |
oracle | object | An Oracle database connection profile. (id: OracleConnectionProfile) |
postgresql | object | A PostgreSQL database connection profile. (id: PostgreSqlConnectionProfile) |
provider | string | The database provider. |
role | string | Optional. The connection profile role. |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
sqlserver | object | Connection profile for a SQL Server data source. (id: SqlServerConnectionProfile) |
state | string | The current connection profile state (e.g. DRAFT, READY, or FAILED). |
updateTime | string (google-datetime) | Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}. |
alloydb | object | An AlloyDB cluster connection profile. (id: AlloyDbConnectionProfile) |
cloudsql | object | A CloudSQL database connection profile. (id: CloudSqlConnectionProfile) |
createTime | string (google-datetime) | Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". |
displayName | string | The connection profile display name. |
error | object | Output only. The error details in case of state FAILED. (id: Status) |
labels | object | The resource labels for connection profile 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" } . |
mysql | object | A MySQL database connection profile. (id: MySqlConnectionProfile) |
oracle | object | An Oracle database connection profile. (id: OracleConnectionProfile) |
postgresql | object | A PostgreSQL database connection profile. (id: PostgreSqlConnectionProfile) |
provider | string | The database provider. |
role | string | Optional. The connection profile role. |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
sqlserver | object | Connection profile for a SQL Server data source. (id: SqlServerConnectionProfile) |
state | string | The current connection profile state (e.g. DRAFT, READY, or FAILED). |
updateTime | string (google-datetime) | Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , connectionProfilesId | Gets details of a single connection profile. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Retrieves a list of all connection profiles in a given project and location. |
create | insert | projectsId , locationsId | connectionProfileId , requestId , validateOnly , skipValidation | Creates a new connection profile in a given project and location. |
patch | update | projectsId , locationsId , connectionProfilesId | updateMask , requestId , validateOnly , skipValidation | Update the configuration of a single connection profile. |
delete | delete | projectsId , locationsId , connectionProfilesId | requestId , force | Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
connectionProfilesId | string | |
locationsId | string | |
projectsId | string | |
connectionProfileId | string | |
filter | string | |
force | boolean | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
skipValidation | boolean | |
updateMask | string (google-fieldmask) | |
validateOnly | boolean |
SELECT
examples
- get
- list
Gets details of a single connection profile.
SELECT
name,
alloydb,
cloudsql,
createTime,
displayName,
error,
labels,
mysql,
oracle,
postgresql,
provider,
role,
satisfiesPzi,
satisfiesPzs,
sqlserver,
state,
updateTime
FROM google.datamigration.connection_profiles
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND connectionProfilesId = '{{ connectionProfilesId }}' -- required;
Retrieves a list of all connection profiles in a given project and location.
SELECT
name,
alloydb,
cloudsql,
createTime,
displayName,
error,
labels,
mysql,
oracle,
postgresql,
provider,
role,
satisfiesPzi,
satisfiesPzs,
sqlserver,
state,
updateTime
FROM google.datamigration.connection_profiles
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Creates a new connection profile in a given project and location.
INSERT INTO google.datamigration.connection_profiles (
data__name,
data__labels,
data__state,
data__displayName,
data__role,
data__mysql,
data__postgresql,
data__sqlserver,
data__oracle,
data__cloudsql,
data__alloydb,
data__provider,
projectsId,
locationsId,
connectionProfileId,
requestId,
validateOnly,
skipValidation
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ state }}',
'{{ displayName }}',
'{{ role }}',
'{{ mysql }}',
'{{ postgresql }}',
'{{ sqlserver }}',
'{{ oracle }}',
'{{ cloudsql }}',
'{{ alloydb }}',
'{{ provider }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ connectionProfileId }}',
'{{ requestId }}',
'{{ validateOnly }}',
'{{ skipValidation }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: connection_profiles
props:
- name: projectsId
value: string
description: Required parameter for the connection_profiles resource.
- name: locationsId
value: string
description: Required parameter for the connection_profiles resource.
- name: name
value: string
description: >
The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
- name: labels
value: object
description: >
The resource labels for connection profile 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: state
value: string
description: >
The current connection profile state (e.g. DRAFT, READY, or FAILED).
valid_values: ['STATE_UNSPECIFIED', 'DRAFT', 'CREATING', 'READY', 'UPDATING', 'DELETING', 'DELETED', 'FAILED']
- name: displayName
value: string
description: >
The connection profile display name.
- name: role
value: string
description: >
Optional. The connection profile role.
valid_values: ['ROLE_UNSPECIFIED', 'SOURCE', 'DESTINATION']
- name: mysql
value: object
description: >
A MySQL database connection profile.
- name: postgresql
value: object
description: >
A PostgreSQL database connection profile.
- name: sqlserver
value: object
description: >
Connection profile for a SQL Server data source.
- name: oracle
value: object
description: >
An Oracle database connection profile.
- name: cloudsql
value: object
description: >
A CloudSQL database connection profile.
- name: alloydb
value: object
description: >
An AlloyDB cluster connection profile.
- name: provider
value: string
description: >
The database provider.
valid_values: ['DATABASE_PROVIDER_UNSPECIFIED', 'CLOUDSQL', 'RDS', 'AURORA', 'ALLOYDB', 'AZURE_DATABASE']
- name: connectionProfileId
value: string
- name: requestId
value: string
- name: validateOnly
value: boolean
- name: skipValidation
value: boolean
UPDATE
examples
- patch
Update the configuration of a single connection profile.
UPDATE google.datamigration.connection_profiles
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__state = '{{ state }}',
data__displayName = '{{ displayName }}',
data__role = '{{ role }}',
data__mysql = '{{ mysql }}',
data__postgresql = '{{ postgresql }}',
data__sqlserver = '{{ sqlserver }}',
data__oracle = '{{ oracle }}',
data__cloudsql = '{{ cloudsql }}',
data__alloydb = '{{ alloydb }}',
data__provider = '{{ provider }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND connectionProfilesId = '{{ connectionProfilesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND validateOnly = {{ validateOnly}}
AND skipValidation = {{ skipValidation}}
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.
DELETE FROM google.datamigration.connection_profiles
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND connectionProfilesId = '{{ connectionProfilesId }}' --required
AND requestId = '{{ requestId }}'
AND force = '{{ force }}';