Skip to main content

datacenter_connectors

Creates, updates, deletes, gets or lists a datacenter_connectors resource.

Overview

Namedatacenter_connectors
TypeResource
Idgoogle.vmmigration.datacenter_connectors

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The connector's name.
applianceInfrastructureVersionstringOutput only. Appliance OVA version. This is the OVA which is manually installed by the user and contains the infrastructure for the automatically updatable components on the appliance.
applianceSoftwareVersionstringOutput only. Appliance last installed update bundle version. This is the version of the automatically updatable components on the appliance.
availableVersionsobjectOutput only. The available versions for updating this appliance. (id: AvailableUpdates)
bucketstringOutput only. The communication channel between the datacenter connector and Google Cloud.
createTimestring (google-datetime)Output only. The time the connector was created (as an API call, not when it was actually installed).
errorobjectOutput only. Provides details on the state of the Datacenter Connector in case of an error. (id: Status)
registrationIdstringImmutable. A unique key for this connector. This key is internal to the OVA connector and is supplied with its creation during the registration process and can not be modified.
serviceAccountstringThe service account to use in the connector when communicating with the cloud.
statestringOutput only. State of the DatacenterConnector, as determined by the health checks.
stateTimestring (google-datetime)Output only. The time the state was last set.
updateTimestring (google-datetime)Output only. The last time the connector was updated with an API call.
upgradeStatusobjectOutput only. The status of the current / last upgradeAppliance operation. (id: UpgradeStatus)
versionstringThe version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, sourcesId, datacenterConnectorsIdGets details of a single DatacenterConnector.
listselectprojectsId, locationsId, sourcesIdpageSize, pageToken, filter, orderByLists DatacenterConnectors in a given Source.
createinsertprojectsId, locationsId, sourcesIddatacenterConnectorId, requestIdCreates a new DatacenterConnector in a given Source.
deletedeleteprojectsId, locationsId, sourcesId, datacenterConnectorsIdrequestIdDeletes a single DatacenterConnector.
upgrade_applianceexecprojectsId, locationsId, sourcesId, datacenterConnectorsIdUpgrades the appliance relate to this DatacenterConnector to the in-place updateable version.

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.

NameDatatypeDescription
datacenterConnectorsIdstring
locationsIdstring
projectsIdstring
sourcesIdstring
datacenterConnectorIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples

Gets details of a single DatacenterConnector.

SELECT
name,
applianceInfrastructureVersion,
applianceSoftwareVersion,
availableVersions,
bucket,
createTime,
error,
registrationId,
serviceAccount,
state,
stateTime,
updateTime,
upgradeStatus,
version
FROM google.vmmigration.datacenter_connectors
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND sourcesId = '{{ sourcesId }}' -- required
AND datacenterConnectorsId = '{{ datacenterConnectorsId }}' -- required;

INSERT examples

Creates a new DatacenterConnector in a given Source.

INSERT INTO google.vmmigration.datacenter_connectors (
data__registrationId,
data__serviceAccount,
data__version,
projectsId,
locationsId,
sourcesId,
datacenterConnectorId,
requestId
)
SELECT
'{{ registrationId }}',
'{{ serviceAccount }}',
'{{ version }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ sourcesId }}',
'{{ datacenterConnectorId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a single DatacenterConnector.

DELETE FROM google.vmmigration.datacenter_connectors
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND sourcesId = '{{ sourcesId }}' --required
AND datacenterConnectorsId = '{{ datacenterConnectorsId }}' --required
AND requestId = '{{ requestId }}';

Lifecycle Methods

Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.

EXEC google.vmmigration.datacenter_connectors.upgrade_appliance 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@sourcesId='{{ sourcesId }}' --required,
@datacenterConnectorsId='{{ datacenterConnectorsId }}' --required
@@json=
'{
"requestId": "{{ requestId }}"
}';