Skip to main content

keys_ip_override

Creates, updates, deletes, gets or lists a keys_ip_override resource.

Overview

Namekeys_ip_override
TypeResource
Idgoogle.recaptchaenterprise.keys_ip_override

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
add_ip_overrideinsertprojectsId, keysIdAdds an IP override to a key. The following restrictions hold: * The maximum number of IP overrides per key is 1000. * For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.
remove_ip_overridedeleteprojectsId, keysIdRemoves an IP override from a key. The following restrictions hold: * If the IP isn't found in an existing IP override, a NOT_FOUND error is returned. * If the IP is found in an existing IP override, but the override type does not match, a NOT_FOUND error is returned.

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
keysIdstring
projectsIdstring

INSERT examples

Adds an IP override to a key. The following restrictions hold: * The maximum number of IP overrides per key is 1000. * For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

INSERT INTO google.recaptchaenterprise.keys_ip_override (
data__ipOverrideData,
projectsId,
keysId
)
SELECT
'{{ ipOverrideData }}',
'{{ projectsId }}',
'{{ keysId }}'
;

DELETE examples

Removes an IP override from a key. The following restrictions hold: * If the IP isn't found in an existing IP override, a NOT_FOUND error is returned. * If the IP is found in an existing IP override, but the override type does not match, a NOT_FOUND error is returned.

DELETE FROM google.recaptchaenterprise.keys_ip_override
WHERE projectsId = '{{ projectsId }}' --required
AND keysId = '{{ keysId }}' --required;