overrides
Creates, updates, deletes, gets or lists a overrides
resource.
Overview
Name | overrides |
Type | Resource |
Id | google.apigee.overrides |
Fields
Name | Datatype | Description |
---|---|---|
name | string | ID of the trace configuration override specified as a system-generated UUID. |
apiProxy | string | ID of the API proxy that will have its trace configuration overridden. |
samplingConfig | object | TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_environments_trace_config_overrides_get | SELECT | environmentsId, organizationsId, overridesId | Gets a trace configuration override. |
organizations_environments_trace_config_overrides_list | SELECT | environmentsId, organizationsId | Lists all of the distributed trace configuration overrides in an environment. |
organizations_environments_trace_config_overrides_create | INSERT | environmentsId, organizationsId | 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. |
organizations_environments_trace_config_overrides_delete | DELETE | environmentsId, organizationsId, overridesId | Deletes a distributed trace configuration override. |
organizations_environments_trace_config_overrides_patch | UPDATE | environmentsId, organizationsId, overridesId | 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. |
SELECT
examples
Lists all of the distributed trace configuration overrides in an environment.
SELECT
name,
apiProxy,
samplingConfig
FROM google.apigee.overrides
WHERE environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new overrides
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apigee.overrides (
environmentsId,
organizationsId,
apiProxy,
samplingConfig,
name
)
SELECT
'{{ environmentsId }}',
'{{ organizationsId }}',
'{{ apiProxy }}',
'{{ samplingConfig }}',
'{{ name }}'
;
- name: your_resource_model_name
props:
- name: apiProxy
value: string
- name: samplingConfig
value:
- name: sampler
value: string
- name: samplingRate
value: number
- name: name
value: string
UPDATE
example
Updates a overrides
resource.
/*+ update */
UPDATE google.apigee.overrides
SET
apiProxy = '{{ apiProxy }}',
samplingConfig = '{{ samplingConfig }}',
name = '{{ name }}'
WHERE
environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}'
AND overridesId = '{{ overridesId }}';
DELETE
example
Deletes the specified overrides
resource.
/*+ delete */
DELETE FROM google.apigee.overrides
WHERE environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}'
AND overridesId = '{{ overridesId }}';