instances
Creates, updates, deletes, gets or lists a instances
resource.
Overview
Name | instances |
Type | Resource |
Id | google.apigee.instances |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. Resource ID of the instance. Values must match the regular expression ^a-z{0,30}[a-z\d]$ . |
description | string | Optional. Description of the instance. |
accessLoggingConfig | object | Access 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. |
consumerAcceptList | array | Optional. 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. |
createdAt | string | Output only. Time the instance was created in milliseconds since epoch. |
diskEncryptionKeyName | string | 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/([^/]+) |
displayName | string | Optional. Display name for the instance. |
host | string | Output only. Internal hostname or IP address of the Apigee endpoint used by clients to connect to the service. |
ipRange | string | Optional. 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 |
lastModifiedAt | string | Output only. Time the instance was last modified in milliseconds since epoch. |
location | string | Required. Compute Engine location where the instance resides. |
peeringCidrRange | string | Optional. 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 . |
port | string | Output only. Port number of the exposed Apigee endpoint. |
runtimeVersion | string | Output 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. |
serviceAttachment | string | Output 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. |
state | string | Output only. State of the instance. Values other than ACTIVE means the resource is not ready to use. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_instances_get | SELECT | instancesId, organizationsId | Gets the details for an Apigee runtime instance. Note: Not supported for Apigee hybrid. |
organizations_instances_list | SELECT | organizationsId | Lists all Apigee runtime instances for the organization. Note: Not supported for Apigee hybrid. |
organizations_instances_create | INSERT | organizationsId | Creates an Apigee runtime instance. The instance is accessible from the authorized network configured on the organization. Note: Not supported for Apigee hybrid. |
organizations_instances_delete | DELETE | instancesId, organizationsId | Deletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. Note: Not supported for Apigee hybrid. |
organizations_instances_patch | UPDATE | instancesId, organizationsId | 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. |
organizations_instances_report_status | EXEC | instancesId, organizationsId | Reports 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: location
value: string
- name: createdAt
value: string
- name: consumerAcceptList
value:
- string
- name: ipRange
value: string
- name: name
value: string
- name: serviceAttachment
value: string
- name: accessLoggingConfig
value:
- name: filter
value: string
- name: enabled
value: boolean
- name: state
value: string
- name: runtimeVersion
value: string
- name: host
value: string
- name: diskEncryptionKeyName
value: string
- name: description
value: string
- name: port
value: string
- name: lastModifiedAt
value: string
- name: peeringCidrRange
value: string
- name: displayName
value: string
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 }}';