Skip to main content

overrides

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

Overview

Nameoverrides
TypeResource
Idgoogle.apigee.overrides

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringID of the trace configuration override specified as a system-generated UUID.
apiProxystringID of the API proxy that will have its trace configuration overridden.
samplingConfigobjectTrace configuration to override. (id: GoogleCloudApigeeV1TraceSamplingConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_environments_trace_config_overrides_getselectorganizationsId, environmentsId, overridesIdGets a trace configuration override.
organizations_environments_trace_config_overrides_listselectorganizationsId, environmentsIdpageSize, pageTokenLists all of the distributed trace configuration overrides in an environment.
organizations_environments_trace_config_overrides_createinsertorganizationsId, environmentsIdCreates a trace configuration override. The response contains a system-generated UUID, that can be used to view, update, or delete the configuration override. Use the List API to view the existing trace configuration overrides.
organizations_environments_trace_config_overrides_patchupdateorganizationsId, environmentsId, overridesIdupdateMaskUpdates a distributed trace configuration override. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.
organizations_environments_trace_config_overrides_deletedeleteorganizationsId, environmentsId, overridesIdDeletes a distributed trace configuration override.

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
environmentsIdstring
organizationsIdstring
overridesIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a trace configuration override.

SELECT
name,
apiProxy,
samplingConfig
FROM google.apigee.overrides
WHERE organizationsId = '{{ organizationsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required
AND overridesId = '{{ overridesId }}' -- required;

INSERT examples

Creates a trace configuration override. The response contains a system-generated UUID, that can be used to view, update, or delete the configuration override. Use the List API to view the existing trace configuration overrides.

INSERT INTO google.apigee.overrides (
data__name,
data__apiProxy,
data__samplingConfig,
organizationsId,
environmentsId
)
SELECT
'{{ name }}',
'{{ apiProxy }}',
'{{ samplingConfig }}',
'{{ organizationsId }}',
'{{ environmentsId }}'
RETURNING
name,
apiProxy,
samplingConfig
;

UPDATE examples

Updates a distributed trace configuration override. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.

UPDATE google.apigee.overrides
SET
data__name = '{{ name }}',
data__apiProxy = '{{ apiProxy }}',
data__samplingConfig = '{{ samplingConfig }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND overridesId = '{{ overridesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
apiProxy,
samplingConfig;

DELETE examples

Deletes a distributed trace configuration override.

DELETE FROM google.apigee.overrides
WHERE organizationsId = '{{ organizationsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND overridesId = '{{ overridesId }}' --required;