You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/postgresql/reference-pg-azure-storage.md
+40-6Lines changed: 40 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,10 @@ FROM { 'filename' | PROGRAM 'command' | STDIN | Azure_blob_url}
31
31
[ WHERE condition ]
32
32
```
33
33
> [!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:
35
35
>
36
36
> -`FREEZE [ boolean ]`
37
-
> -`HEADER [ MATCH ]`
37
+
> -`HEADER MATCH`
38
38
>
39
39
> `COPY TO` syntax is yet not supported.
40
40
@@ -59,7 +59,8 @@ Specifies the format of destination file. Currently the extension supports follo
59
59
| text | A file containing a single text value (for example, large JSON or XML) |
60
60
61
61
## 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
+
63
64
```postgresql
64
65
azure_storage.account_add
65
66
(account_name_p text
@@ -73,7 +74,8 @@ An Azure blob storage (ABS) account contains all of your ABS objects: blobs, fil
73
74
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
74
75
75
76
## 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
+
77
79
```sql
78
80
azure_storage.account_remove
79
81
(account_name_p text);
@@ -83,8 +85,40 @@ azure_storage.account_remove
83
85
#### account_name_p
84
86
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.
85
87
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
+
86
120
## 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.
88
122
89
123
```postgresql
90
124
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
135
169
* Two or more consecutive dash characters aren't permitted in container names.
0 commit comments