Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idgoogle.apigee.instances

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. Resource ID of the instance. Values must match the regular expression ^a-z{0,30}[a-z\d]$.
accessLoggingConfigobjectOptional. Access logging configuration enables the access logging feature at the instance. Apigee customers can enable access logging to ship the access logs to their own project's cloud logging. (id: GoogleCloudApigeeV1AccessLoggingConfig)
consumerAcceptListarrayOptional. Customer accept list represents the list of projects (id/number) on customer side that can privately connect to the service attachment. It is an optional field which the customers can provide during the instance creation. By default, the customer project associated with the Apigee organization will be included to the list.
createdAtstring (int64)Output only. Time the instance was created in milliseconds since epoch.
descriptionstringOptional. Description of the instance.
diskEncryptionKeyNamestringOptional. Customer Managed Encryption Key (CMEK) used for disk and volume encryption. If not specified, a Google-Managed encryption key will be used. Use the following format: projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)
displayNamestringOptional. Display name for the instance.
hoststringOutput only. Internal hostname or IP address of the Apigee endpoint used by clients to connect to the service.
ipRangestringOptional. Comma-separated list of CIDR blocks of length 22 and/or 28 used to create the Apigee instance. Providing CIDR ranges is optional. You can provide just /22 or /28 or both (or neither). Ranges you provide should be freely available as part of a larger named range you have allocated to the Service Networking peering. If this parameter is not provided, Apigee automatically requests an available /22 and /28 CIDR block from Service Networking. Use the /22 CIDR block for configuring your firewall needs to allow traffic from Apigee. Input formats: a.b.c.d/22 or e.f.g.h/28 or a.b.c.d/22,e.f.g.h/28
lastModifiedAtstring (int64)Output only. Time the instance was last modified in milliseconds since epoch.
locationstringRequired. Compute Engine location where the instance resides.
peeringCidrRangestringOptional. Size of the CIDR block range that will be reserved by the instance. PAID organizations support SLASH_16 to SLASH_20 and defaults to SLASH_16. Evaluation organizations support only SLASH_23.
portstringOutput only. Port number of the exposed Apigee endpoint.
runtimeVersionstringOutput only. Version of the runtime system running in the instance. The runtime system is the set of components that serve the API Proxy traffic in your Environments.
serviceAttachmentstringOutput only. Resource name of the service attachment created for the instance in the format: projects/*/regions/*/serviceAttachments/* Apigee customers can privately forward traffic to this service attachment using the PSC endpoints.
statestringOutput only. State of the instance. Values other than ACTIVE means the resource is not ready to use.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_instances_getselectorganizationsId, instancesIdGets the details for an Apigee runtime instance. Note: Not supported for Apigee hybrid.
organizations_instances_listselectorganizationsIdpageSize, pageTokenLists all Apigee runtime instances for the organization. Note: Not supported for Apigee hybrid.
organizations_instances_createinsertorganizationsIdCreates an Apigee runtime instance. The instance is accessible from the authorized network configured on the organization. Note: Not supported for Apigee hybrid.
organizations_instances_patchupdateorganizationsId, instancesIdupdateMaskUpdates an Apigee runtime instance. You can update the fields described in NodeConfig. No other fields will be updated. Note: Not supported for Apigee hybrid.
organizations_instances_deletedeleteorganizationsId, instancesIdDeletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. Note: Not supported for Apigee hybrid.
organizations_instances_report_statusexecorganizationsId, instancesIdReports the latest status for a runtime 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
organizationsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the details for an Apigee runtime instance. Note: Not supported for Apigee hybrid.

SELECT
name,
accessLoggingConfig,
consumerAcceptList,
createdAt,
description,
diskEncryptionKeyName,
displayName,
host,
ipRange,
lastModifiedAt,
location,
peeringCidrRange,
port,
runtimeVersion,
serviceAttachment,
state
FROM google.apigee.instances
WHERE organizationsId = '{{ organizationsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required;

INSERT examples

Creates an Apigee runtime instance. The instance is accessible from the authorized network configured on the organization. Note: Not supported for Apigee hybrid.

INSERT INTO google.apigee.instances (
data__name,
data__location,
data__peeringCidrRange,
data__description,
data__displayName,
data__diskEncryptionKeyName,
data__ipRange,
data__consumerAcceptList,
data__accessLoggingConfig,
organizationsId
)
SELECT
'{{ name }}',
'{{ location }}',
'{{ peeringCidrRange }}',
'{{ description }}',
'{{ displayName }}',
'{{ diskEncryptionKeyName }}',
'{{ ipRange }}',
'{{ consumerAcceptList }}',
'{{ accessLoggingConfig }}',
'{{ organizationsId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an Apigee runtime instance. You can update the fields described in NodeConfig. No other fields will be updated. Note: Not supported for Apigee hybrid.

UPDATE google.apigee.instances
SET
data__name = '{{ name }}',
data__location = '{{ location }}',
data__peeringCidrRange = '{{ peeringCidrRange }}',
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__diskEncryptionKeyName = '{{ diskEncryptionKeyName }}',
data__ipRange = '{{ ipRange }}',
data__consumerAcceptList = '{{ consumerAcceptList }}',
data__accessLoggingConfig = '{{ accessLoggingConfig }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. Note: Not supported for Apigee hybrid.

DELETE FROM google.apigee.instances
WHERE organizationsId = '{{ organizationsId }}' --required
AND instancesId = '{{ instancesId }}' --required;

Lifecycle Methods

Reports the latest status for a runtime instance.

EXEC google.apigee.instances.organizations_instances_report_status 
@organizationsId='{{ organizationsId }}' --required,
@instancesId='{{ instancesId }}' --required
@@json=
'{
"instanceUid": "{{ instanceUid }}",
"reportTime": "{{ reportTime }}",
"resources": "{{ resources }}"
}';