Skip to content

Commit a676aed

Browse files
committed
add account_user_add & remove functions
1 parent 46c52f5 commit a676aed

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

articles/cosmos-db/postgresql/reference-pg-azure-storage.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ FROM { 'filename' | PROGRAM 'command' | STDIN | Azure_blob_url}
3131
[ WHERE condition ]
3232
```
3333
> [!NOTE]
34-
> Syntax and options supported remains likewise to Postgres Native [COPY](https://www.postgresql.org/docs/current/sql-copy.html)command, with following exceptions:
34+
> Syntax and options supported remains likewise to Postgres Native [COPY](https://www.postgresql.org/docs/current/sql-copy.html) command, with following exceptions:
3535
>
3636
> - `FREEZE [ boolean ]`
37-
> - `HEADER [ MATCH ]`
37+
> - `HEADER MATCH`
3838
>
3939
> `COPY TO` syntax is yet not supported.
4040
@@ -59,7 +59,8 @@ Specifies the format of destination file. Currently the extension supports follo
5959
| text | A file containing a single text value (for example, large JSON or XML) |
6060

6161
## azure_storage.account_add
62-
Allowing access to a storage account requires adding the storage account.
62+
Function allows adding access to a storage account.
63+
6364
```postgresql
6465
azure_storage.account_add
6566
(account_name_p text
@@ -73,7 +74,8 @@ An Azure blob storage (ABS) account contains all of your ABS objects: blobs, fil
7374
Your Azure blob storage (ABS) access keys are similar to a root password for your storage account. Always be careful to protect your access keys. Use Azure Key Vault to manage and rotate your keys securely. The account key is stored in a table that is only accessible by the postgres superuser. To see which storage accounts exist, use the account_list
7475

7576
## azure_storage.account_remove
76-
For removing access to storage account, following function can be used
77+
Function allows revoking account access to storage account.
78+
7779
```sql
7880
azure_storage.account_remove
7981
(account_name_p text);
@@ -83,8 +85,40 @@ azure_storage.account_remove
8385
#### account_name_p
8486
Azure blob storage (ABS) account contains all of your ABS objects: blobs, files, queues, and tables. The storage account provides a unique namespace for your ABS that is accessible from anywhere in the world over HTTP or HTTPS.
8587

88+
## azure_storage.account_user_add
89+
The function allows adding access for a role to a storage account.
90+
91+
```postgresql
92+
azure_storage.account_add
93+
( account_name_p text
94+
, user_p regrole);
95+
```
96+
97+
### Arguments
98+
#### account_name_p
99+
An Azure blob storage (ABS) account contains all of your ABS objects: blobs, files, queues, and tables. The storage account provides a unique namespace for your ABS that is accessible from anywhere in the world over HTTP or HTTPS.
100+
101+
#### user_p
102+
Role created by user visible on the cluster.
103+
104+
## azure_storage.account_user_remove
105+
The function allows removing access for a role to a storage account.
106+
107+
```postgresql
108+
azure_storage.account_remove
109+
( account_name_p text
110+
, user_p regrole);
111+
```
112+
113+
### Arguments
114+
#### account_name_p
115+
An Azure blob storage (ABS) account contains all of your ABS objects: blobs, files, queues, and tables. The storage account provides a unique namespace for your ABS that is accessible from anywhere in the world over HTTP or HTTPS.
116+
117+
#### user_p
118+
Role created by user visible on the cluster.
119+
86120
## azure_storage.account_list
87-
The function lists the account & users having access to container.
121+
The function lists the account & role having access to Azure blob storage.
88122

89123
```postgresql
90124
azure_storage.account_list
@@ -135,7 +169,7 @@ A container name must be a valid DNS name, as it forms part of the unique URI us
135169
* Two or more consecutive dash characters aren't permitted in container names.
136170

137171
The URI for a container is similar to:
138-
https://myaccount.blob.core.windows.net/mycontainer
172+
https://<span></span>myaccount.blob.core.windows.net/mycontainer
139173

140174
#### prefix
141175
returns file from blob container with matching string initials.

0 commit comments

Comments
 (0)