ALTER EXTERNAL CONSUMER
statementpartialNative apps, listings & sharingModifies the properties of an existing external consumer, or manages its programmatic access tokens (PATs) and workload identities.
Syntax
supportedpartialnot supportednot scored
ALTER EXTERNAL CONSUMER [ IF EXISTS ] <name> SET
[ COMMENT = '<string_literal>' ]
[ EMAIL = '<email_address>' ]
ALTER EXTERNAL CONSUMER [ IF EXISTS ] <name> UNSET
[ COMMENT ]
[ EMAIL ]
ALTER EXTERNAL CONSUMER [ IF EXISTS ] <name> RENAME TO <new_name>
Parameters
| Name | Required | Description |
|---|---|---|
IF EXISTS | Applies the change only if an external consumer with the specified name exists. If no external consumer with that name exists, the command does nothing and completes successfully instead of returning an error. | |
name | Specifies the identifier for the external consumer to modify. | |
COMMENT = 'string_literal' | Specifies a new comment for the external consumer. | |
EMAIL = 'email_address' | Specifies a new email address for the external consumer. | |
RENAME TO new_name | Renames the external consumer to the specified identifier. |
Access control requirements
A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes OWNERSHIP | External Consumer | Required to modify the properties of the consumer. 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
- IF EXISTS, RENAME TO are not exercised by any test
See also
- CREATE EXTERNAL CONSUMER
- DROP EXTERNAL CONSUMER
- ALTER EXTERNAL CONSUMER … ADD PROGRAMMATIC ACCESS TOKEN (PAT) ↗
- ALTER EXTERNAL CONSUMER … REMOVE PROGRAMMATIC ACCESS TOKEN (PAT) ↗
- ALTER EXTERNAL CONSUMER … ROTATE PROGRAMMATIC ACCESS TOKEN (PAT) ↗
- ALTER EXTERNAL CONSUMER … MODIFY PROGRAMMATIC ACCESS TOKEN (PAT) ↗
- Workload identity federation for external consumers ↗
- SHOW EXTERNAL CONSUMERS