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

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.
availableVersionsobjectHolds informatiom about the available versions for upgrade.
bucketstringOutput only. The communication channel between the datacenter connector and Google Cloud.
createTimestringOutput only. The time the connector was created (as an API call, not when it was actually installed).
errorobjectThe Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.
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.
stateTimestringOutput only. The time the state was last set.
updateTimestringOutput only. The last time the connector was updated with an API call.
upgradeStatusobjectUpgradeStatus contains information about upgradeAppliance operation.
versionstringThe version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatacenterConnectorsId, locationsId, projectsId, sourcesIdGets details of a single DatacenterConnector.
listSELECTlocationsId, projectsId, sourcesIdLists DatacenterConnectors in a given Source.
createINSERTlocationsId, projectsId, sourcesIdCreates a new DatacenterConnector in a given Source.
deleteDELETEdatacenterConnectorsId, locationsId, projectsId, sourcesIdDeletes a single DatacenterConnector.
upgrade_applianceEXECdatacenterConnectorsId, locationsId, projectsId, sourcesIdUpgrades the appliance relate to this DatacenterConnector to the in-place updateable version.

SELECT examples

Lists DatacenterConnectors in a given Source.

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

INSERT example

Use the following StackQL query and manifest file to create a new datacenter_connectors resource.

/*+ create */
INSERT INTO google.vmmigration.datacenter_connectors (
locationsId,
projectsId,
sourcesId,
registrationId,
serviceAccount,
version
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ sourcesId }}',
'{{ registrationId }}',
'{{ serviceAccount }}',
'{{ version }}'
;

DELETE example

Deletes the specified datacenter_connectors resource.

/*+ delete */
DELETE FROM google.vmmigration.datacenter_connectors
WHERE datacenterConnectorsId = '{{ datacenterConnectorsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sourcesId = '{{ sourcesId }}';