Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idgoogle.looker.instances

Fields

NameDatatypeDescription
namestringOutput only. Format: projects/{project}/locations/{location}/instances/{instance}.
adminSettingsobjectLooker instance Admin settings fields.
consumerNetworkstringNetwork name in the consumer project. Format: projects/{project}/global/networks/{network}. Note that the consumer network may be in a different GCP project than the consumer project that is hosting the Looker Instance.
createTimestringOutput only. The time when the Looker instance provisioning was first requested.
customDomainobjectCustom domain information.
denyMaintenancePeriodobjectSpecifies the maintenance denial period.
egressPublicIpstringOutput only. Public Egress IP (IPv4).
encryptionConfigobjectEncryption configuration (i.e. CMEK).
fipsEnabledbooleanOptional. Whether FIPS is enabled on the Looker instance.
geminiEnabledbooleanOptional. Whether Gemini feature is enabled on the Looker instance or not.
ingressPrivateIpstringOutput only. Private Ingress IP (IPv4).
ingressPublicIpstringOutput only. Public Ingress IP (IPv4).
lastDenyMaintenancePeriodobjectSpecifies the maintenance denial period.
linkedLspProjectNumberstringOptional. Linked Google Cloud Project Number for Looker Studio Pro.
lookerUristringOutput only. Looker instance URI which can be used to access the Looker Instance UI.
lookerVersionstringOutput only. The Looker version that the instance is using.
maintenanceScheduleobjectPublished upcoming future maintenance schedule.
maintenanceWindowobjectSpecifies the recurring maintenance window.
oauthConfigobjectLooker instance OAuth login settings.
platformEditionstringPlatform edition.
privateIpEnabledbooleanWhether private IP is enabled on the Looker instance.
pscConfigobjectInformation for Private Service Connect (PSC) setup for a Looker instance.
pscEnabledbooleanOptional. Whether to use Private Service Connect (PSC) for private IP connectivity. If true, neither public_ip_enabled nor private_ip_enabled can be true.
publicIpEnabledbooleanWhether public IP is enabled on the Looker instance.
reservedRangestringName of a reserved IP address range within the Instance.consumer_network, to be used for private services access connection. May or may not be specified in a create request.
statestringOutput only. The state of the instance.
updateTimestringOutput only. The time when the Looker instance was last updated.
userMetadataobjectMetadata about users for a Looker instance.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstancesId, locationsId, projectsIdGets details of a single Instance.
listSELECTlocationsId, projectsIdLists Instances in a given project and location.
createINSERTlocationsId, projectsIdCreates a new Instance in a given project and location.
deleteDELETEinstancesId, locationsId, projectsIdDelete instance.
patchUPDATEinstancesId, locationsId, projectsIdUpdate Instance.
exportEXECinstancesId, locationsId, projectsIdExport instance.
importEXECinstancesId, locationsId, projectsIdImport instance.
restartEXECinstancesId, locationsId, projectsIdRestart instance.

SELECT examples

Lists Instances in a given project and location.

SELECT
name,
adminSettings,
consumerNetwork,
createTime,
customDomain,
denyMaintenancePeriod,
egressPublicIp,
encryptionConfig,
fipsEnabled,
geminiEnabled,
ingressPrivateIp,
ingressPublicIp,
lastDenyMaintenancePeriod,
linkedLspProjectNumber,
lookerUri,
lookerVersion,
maintenanceSchedule,
maintenanceWindow,
oauthConfig,
platformEdition,
privateIpEnabled,
pscConfig,
pscEnabled,
publicIpEnabled,
reservedRange,
state,
updateTime,
userMetadata
FROM google.looker.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.looker.instances (
locationsId,
projectsId,
platformEdition,
publicIpEnabled,
privateIpEnabled,
pscEnabled,
pscConfig,
consumerNetwork,
reservedRange,
maintenanceWindow,
denyMaintenancePeriod,
maintenanceSchedule,
userMetadata,
customDomain,
encryptionConfig,
adminSettings,
oauthConfig,
linkedLspProjectNumber,
fipsEnabled,
geminiEnabled
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ platformEdition }}',
{{ publicIpEnabled }},
{{ privateIpEnabled }},
{{ pscEnabled }},
'{{ pscConfig }}',
'{{ consumerNetwork }}',
'{{ reservedRange }}',
'{{ maintenanceWindow }}',
'{{ denyMaintenancePeriod }}',
'{{ maintenanceSchedule }}',
'{{ userMetadata }}',
'{{ customDomain }}',
'{{ encryptionConfig }}',
'{{ adminSettings }}',
'{{ oauthConfig }}',
'{{ linkedLspProjectNumber }}',
{{ fipsEnabled }},
{{ geminiEnabled }}
;

UPDATE example

Updates a instances resource.

/*+ update */
UPDATE google.looker.instances
SET
platformEdition = '{{ platformEdition }}',
publicIpEnabled = true|false,
privateIpEnabled = true|false,
pscEnabled = true|false,
pscConfig = '{{ pscConfig }}',
consumerNetwork = '{{ consumerNetwork }}',
reservedRange = '{{ reservedRange }}',
maintenanceWindow = '{{ maintenanceWindow }}',
denyMaintenancePeriod = '{{ denyMaintenancePeriod }}',
maintenanceSchedule = '{{ maintenanceSchedule }}',
userMetadata = '{{ userMetadata }}',
customDomain = '{{ customDomain }}',
encryptionConfig = '{{ encryptionConfig }}',
adminSettings = '{{ adminSettings }}',
oauthConfig = '{{ oauthConfig }}',
linkedLspProjectNumber = '{{ linkedLspProjectNumber }}',
fipsEnabled = true|false,
geminiEnabled = true|false
WHERE
instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified instances resource.

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