Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idgoogle.apigeeregistry.instances

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringFormat: projects/*/locations/*/instance. Currently only locations/global is supported.
buildobjectOutput only. Build info of the Instance if it's in ACTIVE state. (id: Build)
configobjectRequired. Config of the Instance. (id: Config)
createTimestring (google-datetime)Output only. Creation timestamp.
statestringOutput only. The current state of the Instance.
stateMessagestringOutput only. Extra information of Instance.State if the state is FAILED.
updateTimestring (google-datetime)Output only. Last update timestamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_instances_getselectprojectsId, locationsId, instancesIdGets details of a single Instance.
projects_locations_instances_createinsertprojectsId, locationsIdinstanceIdProvisions instance resources for the Registry.
projects_locations_instances_deletedeleteprojectsId, locationsId, instancesIdDeletes the Registry instance.

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
instanceIdstring

SELECT examples

Gets details of a single Instance.

SELECT
name,
build,
config,
createTime,
state,
stateMessage,
updateTime
FROM google.apigeeregistry.instances
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required;

INSERT examples

Provisions instance resources for the Registry.

INSERT INTO google.apigeeregistry.instances (
data__name,
data__config,
projectsId,
locationsId,
instanceId
)
SELECT
'{{ name }}',
'{{ config }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ instanceId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes the Registry instance.

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