Skip to main content

environments_debugmask

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

Overview

Nameenvironments_debugmask
TypeResource
Idgoogle.apigee.environments_debugmask

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringName of the debug mask.
faultJSONPathsarrayList of JSON paths that specify the JSON elements to be filtered from JSON payloads in error flows.
faultXPathsarrayList of XPaths that specify the XML elements to be filtered from XML payloads in error flows.
namespacesobjectMap of namespaces to URIs.
requestJSONPathsarrayList of JSON paths that specify the JSON elements to be filtered from JSON request message payloads.
requestXPathsarrayList of XPaths that specify the XML elements to be filtered from XML request message payloads.
responseJSONPathsarrayList of JSON paths that specify the JSON elements to be filtered from JSON response message payloads.
responseXPathsarrayList of XPaths that specify the XML elements to be filtered from XML response message payloads.
variablesarrayList of variables that should be masked from the debug output.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_environments_get_debugmaskselectorganizationsId, environmentsIdGets the debug mask singleton resource for an environment.
organizations_environments_update_debugmaskupdateorganizationsId, environmentsIdupdateMask, replaceRepeatedFieldsUpdates the debug mask singleton resource for an environment.

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
replaceRepeatedFieldsboolean
updateMaskstring (google-fieldmask)

SELECT examples

Gets the debug mask singleton resource for an environment.

SELECT
name,
faultJSONPaths,
faultXPaths,
namespaces,
requestJSONPaths,
requestXPaths,
responseJSONPaths,
responseXPaths,
variables
FROM google.apigee.environments_debugmask
WHERE organizationsId = '{{ organizationsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required;

UPDATE examples

Updates the debug mask singleton resource for an environment.

UPDATE google.apigee.environments_debugmask
SET
data__name = '{{ name }}',
data__namespaces = '{{ namespaces }}',
data__requestXPaths = '{{ requestXPaths }}',
data__responseXPaths = '{{ responseXPaths }}',
data__faultXPaths = '{{ faultXPaths }}',
data__requestJSONPaths = '{{ requestJSONPaths }}',
data__responseJSONPaths = '{{ responseJSONPaths }}',
data__faultJSONPaths = '{{ faultJSONPaths }}',
data__variables = '{{ variables }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND updateMask = '{{ updateMask}}'
AND replaceRepeatedFields = {{ replaceRepeatedFields}}
RETURNING
name,
faultJSONPaths,
faultXPaths,
namespaces,
requestJSONPaths,
requestXPaths,
responseJSONPaths,
responseXPaths,
variables;