Storage Accounts - List Account SAS
列出記憶體帳戶的 SAS 認證。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas?api-version=2023-01-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
account
|
path | True |
string |
指定資源群組內的記憶體帳戶名稱。 儲存體帳戶名稱必須介於 3 到 24 個字元的長度,而且只能使用數字和小寫字母。 Regex pattern: |
resource
|
path | True |
string |
用戶訂用帳戶內的資源組名。 名稱不區分大小寫。 Regex pattern: |
subscription
|
path | True |
string |
目標訂用帳戶的標識碼。 |
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
要求本文
名稱 | 必要 | 類型 | Description |
---|---|---|---|
signedExpiry | True |
string |
共用存取簽章變成無效的時間。 |
signedPermission | True |
帳戶 SAS 的已簽署許可權。 可能的值為:讀取 (r) 、寫入 (w) 、刪除 (d) 、List (l) 、新增 () 、建立 (c) 、Update (u) 和 Process (p) 。 |
|
signedResourceTypes | True |
帳戶 SAS 可存取的已簽署資源類型。 服務 (s) :存取服務層級 API;容器 (c) :容器層級 API 的存取權;物件 (o) :存取 Blob、佇列訊息、數據表實體和檔案的物件層級 API。 |
|
signedServices | True |
可透過帳戶 SAS 存取的已簽署服務。 可能的值為:Blob (b) 、Queue (q) 、Table (t) 、File (f) 。 |
|
keyToSign |
string |
用來簽署帳戶 SAS 令牌的金鑰。 |
|
signedIp |
string |
要接受要求的IP位址或IP位址範圍。 |
|
signedProtocol |
允許使用帳戶 SAS 提出要求的通訊協定。 |
||
signedStart |
string |
SAS 生效的時間。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
確定 -- 傳回為要求的記憶體帳戶所建立的帳戶 SAS。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
StorageAccountListAccountSAS
Sample Request
POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res7985/providers/Microsoft.Storage/storageAccounts/sto8588/ListAccountSas?api-version=2023-01-01
{
"signedServices": "b",
"signedResourceTypes": "s",
"signedPermission": "r",
"signedProtocol": "https,http",
"signedStart": "2017-05-24T10:42:03.1567373Z",
"signedExpiry": "2017-05-24T11:42:03.1567373Z",
"keyToSign": "key1"
}
Sample Response
{
"accountSasToken": "sv=2015-04-05&ss=b&srt=s&sp=r&st=2017-05-24T10%3A42%3A03Z&se=2017-05-24T11%3A42%3A03Z&spr=https,http&sig=Z0I%2BEpM%2BPPlTC8ApfUf%2BcffO2aahMgZim3U0iArqsS0%3D"
}
定義
名稱 | Description |
---|---|
Account |
要列出記憶體帳戶 SAS 認證的參數。 |
Http |
允許使用帳戶 SAS 提出要求的通訊協定。 |
List |
列出 SAS 認證作業回應。 |
Permissions |
帳戶 SAS 的已簽署許可權。 可能的值為:讀取 (r) 、寫入 (w) 、刪除 (d) 、List (l) 、新增 () 、建立 (c) 、Update (u) 和 Process (p) 。 |
Services |
可透過帳戶 SAS 存取的已簽署服務。 可能的值為:Blob (b) 、Queue (q) 、Table (t) 、File (f) 。 |
Signed |
帳戶 SAS 可存取的已簽署資源類型。 服務 (s) :存取服務層級 API;容器 (c) :容器層級 API 的存取權;物件 (o) :存取 Blob、佇列訊息、數據表實體和檔案的物件層級 API。 |
AccountSasParameters
要列出記憶體帳戶 SAS 認證的參數。
名稱 | 類型 | Description |
---|---|---|
keyToSign |
string |
用來簽署帳戶 SAS 令牌的金鑰。 |
signedExpiry |
string |
共用存取簽章變成無效的時間。 |
signedIp |
string |
要接受要求的IP位址或IP位址範圍。 |
signedPermission |
帳戶 SAS 的已簽署許可權。 可能的值為:讀取 (r) 、寫入 (w) 、刪除 (d) 、List (l) 、新增 () 、建立 (c) 、Update (u) 和 Process (p) 。 |
|
signedProtocol |
允許使用帳戶 SAS 提出要求的通訊協定。 |
|
signedResourceTypes |
帳戶 SAS 可存取的已簽署資源類型。 服務 (s) :存取服務層級 API;容器 (c) :容器層級 API 的存取權;物件 (o) :存取 Blob、佇列訊息、數據表實體和檔案的物件層級 API。 |
|
signedServices |
可透過帳戶 SAS 存取的已簽署服務。 可能的值為:Blob (b) 、Queue (q) 、Table (t) 、File (f) 。 |
|
signedStart |
string |
SAS 生效的時間。 |
HttpProtocol
允許使用帳戶 SAS 提出要求的通訊協定。
名稱 | 類型 | Description |
---|---|---|
https |
string |
|
https,http |
string |
ListAccountSasResponse
列出 SAS 認證作業回應。
名稱 | 類型 | Description |
---|---|---|
accountSasToken |
string |
列出記憶體帳戶的 SAS 認證。 |
Permissions
帳戶 SAS 的已簽署許可權。 可能的值為:讀取 (r) 、寫入 (w) 、刪除 (d) 、List (l) 、新增 () 、建立 (c) 、Update (u) 和 Process (p) 。
名稱 | 類型 | Description |
---|---|---|
a |
string |
|
c |
string |
|
d |
string |
|
l |
string |
|
p |
string |
|
r |
string |
|
u |
string |
|
w |
string |
Services
可透過帳戶 SAS 存取的已簽署服務。 可能的值為:Blob (b) 、Queue (q) 、Table (t) 、File (f) 。
名稱 | 類型 | Description |
---|---|---|
b |
string |
|
f |
string |
|
q |
string |
|
t |
string |
SignedResourceTypes
帳戶 SAS 可存取的已簽署資源類型。 服務 (s) :存取服務層級 API;容器 (c) :容器層級 API 的存取權;物件 (o) :存取 Blob、佇列訊息、數據表實體和檔案的物件層級 API。
名稱 | 類型 | Description |
---|---|---|
c |
string |
|
o |
string |
|
s |
string |