Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idgoogle.datafusion.instances

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The name of this instance is in the form of projects/{project}/locations/{location}/instances/{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.
createTimestring (google-datetime)Output only. The time the instance was created.
cryptoKeyConfigobjectOptional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature. (id: CryptoKeyConfig)
dataplexDataLineageIntegrationEnabledbooleanOptional. Option to enable the Dataplex Lineage Integration feature.
dataprocServiceAccountstringOptional. User-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.
descriptionstringOptional. A description of this instance.
disabledReasonarrayOutput only. If the instance state is DISABLED, the reason for disabling the instance.
displayNamestringOptional. Display name for an instance.
enableRbacbooleanOptional. Option to enable granular role-based access control.
enableStackdriverLoggingbooleanOptional. Option to enable Dataproc Stackdriver Logging.
enableStackdriverMonitoringbooleanOptional. Option to enable Stackdriver Monitoring.
enableZoneSeparationbooleanOutput only. Option to enable granular zone separation.
eventPublishConfigobjectOptional. Option to enable and pass metadata for event publishing. (id: EventPublishConfig)
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.
loggingConfigobjectOptional. The logging configuration for this instance. This field is supported only in CDF versions 6.11.0 and above. (id: LoggingConfig)
maintenanceEventsarrayOutput only. The maintenance events for this instance.
maintenancePolicyobjectOptional. Configure the maintenance policy for this instance. (id: MaintenancePolicy)
networkConfigobjectOptional. Network configuration options. These are required when a private Data Fusion instance is to be created. (id: NetworkConfig)
optionsobjectOptional. Map 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.
privateInstancebooleanOptional. Specifies 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.
satisfiesPzibooleanOutput only. Reserved for future use.
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.
tagsobjectOptional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
tenantProjectIdstringOutput only. The name of the tenant project.
typestringRequired. Instance type.
updateTimestring (google-datetime)Output only. The time the instance was last updated.
versionstringOptional. Current version of the Data Fusion. Only specifiable in Update.
workforceIdentityServiceEndpointstringOutput only. Endpoint on which the Data Fusion UI is accessible to third-party users
zonestringOptional. Name of the zone in which the Data Fusion instance will be created. Only DEVELOPER instances use this field.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, instancesIdGets details of a single Data Fusion instance.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists Data Fusion instances in the specified project and location.
createinsertprojectsId, locationsIdinstanceIdCreates a new Data Fusion instance in the specified project and location.
patchupdateprojectsId, locationsId, instancesIdupdateMaskUpdates a single Data Fusion instance.
deletedeleteprojectsId, locationsId, instancesIdforceDeletes a single Date Fusion instance.
restartexecprojectsId, locationsId, instancesIdRestart a single Data Fusion instance. At the end of an operation instance is fully restarted.

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
instancesIdstring
locationsIdstring
projectsIdstring
filterstring
forceboolean
instanceIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single Data Fusion instance.

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

INSERT examples

Creates a new Data Fusion instance in the specified project and location.

INSERT INTO google.datafusion.instances (
data__description,
data__type,
data__enableStackdriverLogging,
data__enableStackdriverMonitoring,
data__privateInstance,
data__networkConfig,
data__labels,
data__options,
data__zone,
data__version,
data__displayName,
data__dataprocServiceAccount,
data__enableRbac,
data__cryptoKeyConfig,
data__eventPublishConfig,
data__patchRevision,
data__dataplexDataLineageIntegrationEnabled,
data__maintenancePolicy,
data__tags,
data__loggingConfig,
projectsId,
locationsId,
instanceId
)
SELECT
'{{ description }}',
'{{ type }}',
{{ enableStackdriverLogging }},
{{ enableStackdriverMonitoring }},
{{ privateInstance }},
'{{ networkConfig }}',
'{{ labels }}',
'{{ options }}',
'{{ zone }}',
'{{ version }}',
'{{ displayName }}',
'{{ dataprocServiceAccount }}',
{{ enableRbac }},
'{{ cryptoKeyConfig }}',
'{{ eventPublishConfig }}',
'{{ patchRevision }}',
{{ dataplexDataLineageIntegrationEnabled }},
'{{ maintenancePolicy }}',
'{{ tags }}',
'{{ loggingConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ instanceId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a single Data Fusion instance.

UPDATE google.datafusion.instances
SET
data__description = '{{ description }}',
data__type = '{{ type }}',
data__enableStackdriverLogging = {{ enableStackdriverLogging }},
data__enableStackdriverMonitoring = {{ enableStackdriverMonitoring }},
data__privateInstance = {{ privateInstance }},
data__networkConfig = '{{ networkConfig }}',
data__labels = '{{ labels }}',
data__options = '{{ options }}',
data__zone = '{{ zone }}',
data__version = '{{ version }}',
data__displayName = '{{ displayName }}',
data__dataprocServiceAccount = '{{ dataprocServiceAccount }}',
data__enableRbac = {{ enableRbac }},
data__cryptoKeyConfig = '{{ cryptoKeyConfig }}',
data__eventPublishConfig = '{{ eventPublishConfig }}',
data__patchRevision = '{{ patchRevision }}',
data__dataplexDataLineageIntegrationEnabled = {{ dataplexDataLineageIntegrationEnabled }},
data__maintenancePolicy = '{{ maintenancePolicy }}',
data__tags = '{{ tags }}',
data__loggingConfig = '{{ loggingConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single Date Fusion instance.

DELETE FROM google.datafusion.instances
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND force = '{{ force }}';

Lifecycle Methods

Restart a single Data Fusion instance. At the end of an operation instance is fully restarted.

EXEC google.datafusion.instances.restart 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@instancesId='{{ instancesId }}' --required;