Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idgoogle.apigeeregistry.instances

Fields

NameDatatypeDescription
namestringFormat: projects/*/locations/*/instance. Currently only locations/global is supported.
buildobjectBuild information of the Instance if it's in ACTIVE state.
configobjectAvailable configurations to provision an Instance.
createTimestringOutput only. Creation timestamp.
statestringOutput only. The current state of the Instance.
stateMessagestringOutput only. Extra information of Instance.State if the state is FAILED.
updateTimestringOutput only. Last update timestamp.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_instances_getSELECTinstancesId, locationsId, projectsIdGets details of a single Instance.
projects_locations_instances_createINSERTlocationsId, projectsIdProvisions instance resources for the Registry.
projects_locations_instances_deleteDELETEinstancesId, locationsId, projectsIdDeletes the Registry instance.

SELECT examples

Gets details of a single Instance.

SELECT
name,
build,
config,
createTime,
state,
stateMessage,
updateTime
FROM google.apigeeregistry.instances
WHERE instancesId = '{{ instancesId }}'
AND 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.apigeeregistry.instances (
locationsId,
projectsId,
name,
config
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ config }}'
;

DELETE example

Deletes the specified instances resource.

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