Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idgoogle.datafusion.instances

Fields

NameDatatypeDescription
namestringOutput only. The name of this instance is in the form of projects/{project}/locations/{location}/instances/{instance}.
descriptionstringA description of this instance.
acceleratorsarrayOutput only. List of accelerators enabled for this CDF instance.
apiEndpointstringOutput only. Endpoint on which the REST APIs is accessible.
availableVersionarrayOutput only. Available versions that the instance can be upgraded to using UpdateInstanceRequest.
createTimestringOutput only. The time the instance was created.
cryptoKeyConfigobjectThe crypto key configuration. This field is used by the Customer-managed encryption keys (CMEK) feature.
dataplexDataLineageIntegrationEnabledbooleanOptional. Option to enable the Dataplex Lineage Integration feature.
dataprocServiceAccountstringUser-managed service account to set on Dataproc when Cloud Data Fusion creates Dataproc to run data processing pipelines. This allows users to have fine-grained access control on Dataproc's accesses to cloud resources.
disabledReasonarrayOutput only. If the instance state is DISABLED, the reason for disabling the instance.
displayNamestringDisplay name for an instance.
enableRbacbooleanOption to enable granular role-based access control.
enableStackdriverLoggingbooleanOption to enable Stackdriver Logging.
enableStackdriverMonitoringbooleanOption to enable Stackdriver Monitoring.
enableZoneSeparationbooleanOption to enable granular zone separation.
eventPublishConfigobjectConfirguration of PubSubEventWriter.
gcsBucketstringOutput only. Cloud Storage bucket generated by Data Fusion in the customer project.
labelsobjectThe resource labels for instance to use to annotate any related underlying resources such as Compute Engine VMs. The character '=' is not allowed to be used within the labels.
maintenancePolicyobjectMaintenance policy of the instance.
networkConfigobjectNetwork configuration for a Data Fusion instance. These configurations are used for peering with the customer network. Configurations are optional when a public Data Fusion instance is to be created. However, providing these configurations allows several benefits, such as reduced network latency while accessing the customer resources from managed Data Fusion instance nodes, as well as access to the customer on-prem resources.
optionsobjectMap of additional options used to configure the behavior of Data Fusion instance.
p4ServiceAccountstringOutput only. Service agent for the customer project.
patchRevisionstringOptional. Current patch revision of the Data Fusion.
privateInstancebooleanSpecifies whether the Data Fusion instance should be private. If set to true, all Data Fusion nodes will have private IP addresses and will not be able to access the public internet.
satisfiesPzsbooleanOutput only. Reserved for future use.
serviceAccountstringOutput only. Deprecated. Use tenant_project_id instead to extract the tenant project ID.
serviceEndpointstringOutput only. Endpoint on which the Data Fusion UI is accessible.
statestringOutput only. The current state of this Data Fusion instance.
stateMessagestringOutput only. Additional information about the current state of this Data Fusion instance if available.
tenantProjectIdstringOutput only. The name of the tenant project.
typestringRequired. Instance type.
updateTimestringOutput only. The time the instance was last updated.
versionstringCurrent version of the Data Fusion. Only specifiable in Update.
workforceIdentityServiceEndpointstringOutput only. Endpoint on which the Data Fusion UI is accessible to third-party users
zonestringName of the zone in which the Data Fusion instance will be created. Only DEVELOPER instances use this field.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstancesId, locationsId, projectsIdGets details of a single Data Fusion instance.
listSELECTlocationsId, projectsIdLists Data Fusion instances in the specified project and location.
createINSERTlocationsId, projectsIdCreates a new Data Fusion instance in the specified project and location.
deleteDELETEinstancesId, locationsId, projectsIdDeletes a single Date Fusion instance.
patchUPDATEinstancesId, locationsId, projectsIdUpdates a single Data Fusion instance.
restartEXECinstancesId, locationsId, projectsIdRestart a single Data Fusion instance. At the end of an operation instance is fully restarted.

SELECT examples

Lists Data Fusion instances in the specified project and location.

SELECT
name,
description,
accelerators,
apiEndpoint,
availableVersion,
createTime,
cryptoKeyConfig,
dataplexDataLineageIntegrationEnabled,
dataprocServiceAccount,
disabledReason,
displayName,
enableRbac,
enableStackdriverLogging,
enableStackdriverMonitoring,
enableZoneSeparation,
eventPublishConfig,
gcsBucket,
labels,
maintenancePolicy,
networkConfig,
options,
p4ServiceAccount,
patchRevision,
privateInstance,
satisfiesPzs,
serviceAccount,
serviceEndpoint,
state,
stateMessage,
tenantProjectId,
type,
updateTime,
version,
workforceIdentityServiceEndpoint,
zone
FROM google.datafusion.instances
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.datafusion.instances (
locationsId,
projectsId,
description,
type,
enableStackdriverLogging,
enableStackdriverMonitoring,
privateInstance,
networkConfig,
labels,
options,
zone,
version,
displayName,
dataprocServiceAccount,
enableRbac,
cryptoKeyConfig,
eventPublishConfig,
enableZoneSeparation,
patchRevision,
dataplexDataLineageIntegrationEnabled,
maintenancePolicy
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ description }}',
'{{ type }}',
{{ enableStackdriverLogging }},
{{ enableStackdriverMonitoring }},
{{ privateInstance }},
'{{ networkConfig }}',
'{{ labels }}',
'{{ options }}',
'{{ zone }}',
'{{ version }}',
'{{ displayName }}',
'{{ dataprocServiceAccount }}',
{{ enableRbac }},
'{{ cryptoKeyConfig }}',
'{{ eventPublishConfig }}',
{{ enableZoneSeparation }},
'{{ patchRevision }}',
{{ dataplexDataLineageIntegrationEnabled }},
'{{ maintenancePolicy }}'
;

UPDATE example

Updates a instances resource.

/*+ update */
UPDATE google.datafusion.instances
SET
description = '{{ description }}',
type = '{{ type }}',
enableStackdriverLogging = true|false,
enableStackdriverMonitoring = true|false,
privateInstance = true|false,
networkConfig = '{{ networkConfig }}',
labels = '{{ labels }}',
options = '{{ options }}',
zone = '{{ zone }}',
version = '{{ version }}',
displayName = '{{ displayName }}',
dataprocServiceAccount = '{{ dataprocServiceAccount }}',
enableRbac = true|false,
cryptoKeyConfig = '{{ cryptoKeyConfig }}',
eventPublishConfig = '{{ eventPublishConfig }}',
enableZoneSeparation = true|false,
patchRevision = '{{ patchRevision }}',
dataplexDataLineageIntegrationEnabled = true|false,
maintenancePolicy = '{{ maintenancePolicy }}'
WHERE
instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified instances resource.

/*+ delete */
DELETE FROM google.datafusion.instances
WHERE instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';