datacenter_connectors
Creates, updates, deletes, gets or lists a datacenter_connectors
resource.
Overview
Name | datacenter_connectors |
Type | Resource |
Id | google.vmmigration.datacenter_connectors |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The connector's name. |
applianceInfrastructureVersion | string | Output 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. |
applianceSoftwareVersion | string | Output only. Appliance last installed update bundle version. This is the version of the automatically updatable components on the appliance. |
availableVersions | object | Holds informatiom about the available versions for upgrade. |
bucket | string | Output only. The communication channel between the datacenter connector and Google Cloud. |
createTime | string | Output only. The time the connector was created (as an API call, not when it was actually installed). |
error | object | The 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. |
registrationId | string | Immutable. 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. |
serviceAccount | string | The service account to use in the connector when communicating with the cloud. |
state | string | Output only. State of the DatacenterConnector, as determined by the health checks. |
stateTime | string | Output only. The time the state was last set. |
updateTime | string | Output only. The last time the connector was updated with an API call. |
upgradeStatus | object | UpgradeStatus contains information about upgradeAppliance operation. |
version | string | The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | datacenterConnectorsId, locationsId, projectsId, sourcesId | Gets details of a single DatacenterConnector. |
list | SELECT | locationsId, projectsId, sourcesId | Lists DatacenterConnectors in a given Source. |
create | INSERT | locationsId, projectsId, sourcesId | Creates a new DatacenterConnector in a given Source. |
delete | DELETE | datacenterConnectorsId, locationsId, projectsId, sourcesId | Deletes a single DatacenterConnector. |
upgrade_appliance | EXEC | datacenterConnectorsId, locationsId, projectsId, sourcesId | Upgrades 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.vmmigration.datacenter_connectors (
locationsId,
projectsId,
sourcesId,
registrationId,
serviceAccount,
version
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ sourcesId }}',
'{{ registrationId }}',
'{{ serviceAccount }}',
'{{ version }}'
;
- name: your_resource_model_name
props:
- name: createTime
value: string
- name: updateTime
value: string
- name: name
value: string
- name: registrationId
value: string
- name: serviceAccount
value: string
- name: version
value: string
- name: bucket
value: string
- name: state
value: string
- name: stateTime
value: string
- name: error
value:
- name: code
value: integer
- name: message
value: string
- name: details
value:
- object
- name: applianceInfrastructureVersion
value: string
- name: applianceSoftwareVersion
value: string
- name: availableVersions
value:
- name: newDeployableAppliance
value:
- name: version
value: string
- name: uri
value: string
- name: critical
value: boolean
- name: releaseNotesUri
value: string
- name: upgradeStatus
value:
- name: version
value: string
- name: state
value: string
- name: startTime
value: string
- name: previousVersion
value: string
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 }}';