Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idgoogle.apigee.instances

Fields

NameDatatypeDescription
namestringRequired. Resource ID of the instance. Values must match the regular expression ^a-z{0,30}[a-z\d]$.
descriptionstringOptional. Description of the instance.
accessLoggingConfigobjectAccess logging configuration enables customers to ship the access logs from the tenant projects to their own project's cloud logging. The feature is at the instance level ad disabled by default. It can be enabled during CreateInstance or UpdateInstance.
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.
createdAtstringOutput only. Time the instance was created in milliseconds since epoch.
diskEncryptionKeyNamestringCustomer 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
lastModifiedAtstringOutput 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

NameAccessible byRequired ParamsDescription
organizations_instances_getSELECTinstancesId, organizationsIdGets the details for an Apigee runtime instance. Note: Not supported for Apigee hybrid.
organizations_instances_listSELECTorganizationsIdLists 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_deleteDELETEinstancesId, organizationsIdDeletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. Note: Not supported for Apigee hybrid.
organizations_instances_patchUPDATEinstancesId, organizationsIdUpdates 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_report_statusEXECinstancesId, organizationsIdReports the latest status for a runtime instance.

SELECT examples

Lists all Apigee runtime instances for the organization. Note: Not supported for Apigee hybrid.

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

INSERT example

Use the following StackQL query and manifest file to create a new instances resource.

/*+ create */
INSERT INTO google.apigee.instances (
organizationsId,
location,
consumerAcceptList,
ipRange,
name,
accessLoggingConfig,
diskEncryptionKeyName,
description,
peeringCidrRange,
displayName
)
SELECT
'{{ organizationsId }}',
'{{ location }}',
'{{ consumerAcceptList }}',
'{{ ipRange }}',
'{{ name }}',
'{{ accessLoggingConfig }}',
'{{ diskEncryptionKeyName }}',
'{{ description }}',
'{{ peeringCidrRange }}',
'{{ displayName }}'
;

UPDATE example

Updates a instances resource.

/*+ update */
UPDATE google.apigee.instances
SET
location = '{{ location }}',
consumerAcceptList = '{{ consumerAcceptList }}',
ipRange = '{{ ipRange }}',
name = '{{ name }}',
accessLoggingConfig = '{{ accessLoggingConfig }}',
diskEncryptionKeyName = '{{ diskEncryptionKeyName }}',
description = '{{ description }}',
peeringCidrRange = '{{ peeringCidrRange }}',
displayName = '{{ displayName }}'
WHERE
instancesId = '{{ instancesId }}'
AND organizationsId = '{{ organizationsId }}';

DELETE example

Deletes the specified instances resource.

/*+ delete */
DELETE FROM google.apigee.instances
WHERE instancesId = '{{ instancesId }}'
AND organizationsId = '{{ organizationsId }}';