ALTER EXTERNAL ACCESS INTEGRATION
statementpartialIntegrations, network & secretsModifies the properties of an existing external access integration.
Syntax
supportedpartialnot supportednot scored
ALTER EXTERNAL ACCESS INTEGRATION [ IF EXISTS ] <name> SET
[ ALLOWED_NETWORK_RULES = (<rule_name> [ , <rule_name> ... ]) ]
[ ALLOWED_HTTP_RULES = (<http_rule_name> [ , <http_rule_name> ... ]) ]
[ ALLOWED_API_AUTHENTICATION_INTEGRATIONS = { ( <integration_name_1> [, <integration_name_2>, ... ] ) | none } ]
[ ALLOWED_AUTHENTICATION_SECRETS = { ( <secret_name> [ , <secret_name> ... ] ) | all | none } ]
[ ENABLED = { TRUE | FALSE } ]
[ COMMENT = '<string_literal>' ]
[ TAG <tag_name> = '<tag_value>' [ , <tag_name> = '<tag_value>' ... ] ]
ALTER EXTERNAL ACCESS INTEGRATION [ IF EXISTS ] <name> UNSET {
ALLOWED_NETWORK_RULES |
ALLOWED_HTTP_RULES |
ALLOWED_API_AUTHENTICATION_INTEGRATIONS |
ALLOWED_AUTHENTICATION_SECRETS |
COMMENT |
TAG <tag_name> }
[ , ... ]
Parameters
| Name | Required | Description |
|---|---|---|
name | Identifier for the external access integration to alter. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. | |
SET ... | Specifies the properties to set for the integration: | |
ALLOWED_NETWORK_RULES = (rule_name [ , rule_name ... ]) | Specifies the allowed network rules. Only egress rules may be specified. For reference information about network rules, refer to CREATE NETWORK RULE. | |
ALLOWED_HTTP_RULES = (http_rule_name [ , http_rule_name ... ]) | Specifies the allowed HTTP rules, replacing the current list. HTTP rules are in preview and apply only in Cortex Code cloud sandboxes. You can specify at most 32 HTTP rules, and the role that runs the statement needs the USAGE privilege on each of them. For reference information about HTTP rules, refer to CREATE HTTP RULE. | |
ALLOWED_API_AUTHENTICATION_INTEGRATIONS = ( integration_name_1 [, integration_name_2, ... ] ) | none | Specifies the security integrations whose OAuth authorization server issued the secret used by the UDF or procedure. The security integration must be the type used for external API integration. For reference information about security integrations, refer to CREATE SECURITY INTEGRATION (External API Authentication). | |
ALLOWED_AUTHENTICATION_SECRETS = ( secret_name [ , secret_name ... ] ) | all | none | Specifies the secrets that a UDF or procedure can use when referring to this integration. For reference information about secrets, refer to CREATE SECRET. | |
ENABLED = { TRUE | FALSE } | Specifies whether this integration is enabled or disabled. If the integration is disabled, any handler code that relies on it will be unable to reach the external endpoint. The value is case-insensitive. The default is TRUE. | |
COMMENT = 'string_literal' | Specifies a comment for the external access integration. Default: No value | |
TAG tag_name = 'tag_value' [ , tag_name = 'tag_value' , ... ] | Specifies the tag name and the tag string value. The tag value is always a string, and the maximum number of characters for the tag value is 256. For information about specifying tags in a statement, see Tag quotas. | |
UNSET ... | Specifies the property to unset for the integration, which resets it to the default: ALLOWED_NETWORK_RULES ALLOWED_HTTP_RULES ALLOWED_API_AUTHENTICATION_INTEGRATIONS ALLOWED_AUTHENTICATION_SECRETS COMMENT TAG tag_name You can reset multiple properties/parameters with a single ALTER statement; however, each property/parameter must be separated by a comma. When resetting a property/parameter, specify only the name; specifying a value for the property will return an error. |
Usage notes
- Regarding metadata: Attention Customers should ensure that no personal data (other than for a User object), sensitive data, export-controlled data, or other regulated data is entered as metadata when using the Snowflake service. For more information, see Metadata fields in Snowflake.
Access control requirements
A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes OWNERSHIP | Integration | OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the GRANT OWNERSHIP command to a different role by the owning role (or any role with the MANAGE GRANTS privilege). USAGE | HTTP rule | Required for each HTTP rule named when you set ALLOWED_HTTP_RULES. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Known gaps
- ALLOWED_HTTP_RULES is not exercised by any test