Skip to main content

apim_service_extensions

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

Overview

Nameapim_service_extensions
TypeResource
Idgoogle.apigee.apim_service_extensions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. unique name of the APIM service extension. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.
createTimestring (google-datetime)Output only. The time that this resource was created on the server.
extensionProcessorstringRequired. Name of the proxy deployed in the Apigee X instance.
extensionsarrayOptional. List of extensions that are part of the service extension. Refer to https://cloud.google.com/service-extensions/docs/quotas#limits for any limits.
lbForwardingRulestringRequired. Name of the Google Cloud LB forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule} projects/{project}/global/forwardingRules/{forwarding_rule}
networkstringRequired. The network where the forwarding rule is created. Format: projects/{project}/global/networks/{network}
networkConfigsarrayRequired. List of network configurations for the APIM service extension.
statestringOutput only. State of the APIM service extension. Values other than ACTIVE mean the resource is not ready to use. (STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, UPDATING)
updateTimestring (google-datetime)Output only. The time that this resource was updated on the server.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_apim_service_extensions_getselectorganizationsId, apimServiceExtensionsIdGets APIM service extension details.
organizations_apim_service_extensions_listselectorganizationsIdpageSize, pageTokenLists all APIM service extensions in an organization.
organizations_apim_service_extensions_createinsertorganizationsIdapimServiceExtensionIdCreates an APIM ServiceExtension in an organization.
organizations_apim_service_extensions_patchupdateorganizationsId, apimServiceExtensionsIdallowMissing, updateMaskUpdates an APIM service extension in an organization.
organizations_apim_service_extensions_deletedeleteorganizationsId, apimServiceExtensionsIdDeletes APIM service extension from an organization.

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
apimServiceExtensionsIdstring
organizationsIdstring
allowMissingboolean
apimServiceExtensionIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets APIM service extension details.

SELECT
name,
createTime,
extensionProcessor,
extensions,
lbForwardingRule,
network,
networkConfigs,
state,
updateTime
FROM google.apigee.apim_service_extensions
WHERE organizationsId = '{{ organizationsId }}' -- required
AND apimServiceExtensionsId = '{{ apimServiceExtensionsId }}' -- required
;

INSERT examples

Creates an APIM ServiceExtension in an organization.

INSERT INTO google.apigee.apim_service_extensions (
data__lbForwardingRule,
data__networkConfigs,
data__name,
data__extensions,
data__extensionProcessor,
data__network,
organizationsId,
apimServiceExtensionId
)
SELECT
'{{ lbForwardingRule }}',
'{{ networkConfigs }}',
'{{ name }}',
'{{ extensions }}',
'{{ extensionProcessor }}',
'{{ network }}',
'{{ organizationsId }}',
'{{ apimServiceExtensionId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an APIM service extension in an organization.

UPDATE google.apigee.apim_service_extensions
SET
data__lbForwardingRule = '{{ lbForwardingRule }}',
data__networkConfigs = '{{ networkConfigs }}',
data__name = '{{ name }}',
data__extensions = '{{ extensions }}',
data__extensionProcessor = '{{ extensionProcessor }}',
data__network = '{{ network }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND apimServiceExtensionsId = '{{ apimServiceExtensionsId }}' --required
AND allowMissing = {{ allowMissing}}
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes APIM service extension from an organization.

DELETE FROM google.apigee.apim_service_extensions
WHERE organizationsId = '{{ organizationsId }}' --required
AND apimServiceExtensionsId = '{{ apimServiceExtensionsId }}' --required
;