ALTER ARTIFACT REPOSITORY¶
Modifies the properties of an existing artifact repository.
- See also:
CREATE ARTIFACT REPOSITORY , DESCRIBE ARTIFACT REPOSITORY , DROP ARTIFACT REPOSITORY , SHOW ARTIFACT REPOSITORIES
Syntax¶
Parameters¶
nameSpecifies the identifier of the artifact repository 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.
For more information, see Identifier requirements.
SET ...Sets one or more properties on the repository.
COMMENT = 'string_literal'- Updates the repository comment.
UNSET ...Removes a property, resetting it to the default.
SET TAG/UNSET TAGAdds or removes tags on the repository. For more details, see Introduction to object tagging.
Access control requirements¶
A role used to execute this operation must have the following privileges at a minimum:
| Privilege | Object | Notes |
|---|---|---|
| OWNERSHIP | Artifact repository | Required to alter any property or tag on the repository. |
Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema.
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.
Usage notes¶
- You can’t change the
TYPEof an existing artifact repository. To change the type, drop the repository and create a new one. - You can’t change the
API_INTEGRATIONof aPYPIrepository after creation.
Examples¶
Update the comment on a repository:
Clear the comment:
Set a tag: