Storage Accounts - List Account SAS

列出存储帐户的 SAS 凭据。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas?api-version=2024-01-01

URI 参数

名称 必需 类型 说明
accountName
path True

string

minLength: 3
maxLength: 24
pattern: ^[a-z0-9]+$

指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+$

用户订阅中的资源组的名称。 此名称不区分大小写。

subscriptionId
path True

string

minLength: 1

目标订阅的 ID。

api-version
query True

string

minLength: 1

用于此操作的 API 版本。

请求正文

名称 必需 类型 说明
signedExpiry True

string (date-time)

共享访问签名失效的时间。

signedPermission True

Permissions

帐户 SAS 的已签名权限。 可能的值包括:读取(r)、写入(w)、删除(d)、列表(l)、添加(a)、创建(c)、更新(u)和进程(p)。

signedResourceTypes True

SignedResourceTypes

可通过帐户 SAS 访问的已签名资源类型。 服务(s):访问服务级别 API;容器(c):访问容器级 API;对象(o):访问 Blob、队列消息、表实体和文件的对象级 API。

signedServices True

Services

使用帐户 SAS 访问的已签名服务。 可能的值包括:Blob(b)、队列(q)、表(t)、文件(f)。

keyToSign

string

用于对帐户 SAS 令牌进行签名的密钥。

signedIp

string

要从中接受请求的 IP 地址或一系列 IP 地址。

signedProtocol

HttpProtocol

允许使用帐户 SAS 发出的请求的协议。

signedStart

string (date-time)

SAS 生效的时间。

响应

名称 类型 说明
200 OK

ListAccountSasResponse

确定 - 返回为请求的存储帐户创建的帐户 SAS。

安全性

azure_auth

Azure Active Directory OAuth2 流

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

StorageAccountListAccountSAS

示例请求

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res7985/providers/Microsoft.Storage/storageAccounts/sto8588/ListAccountSas?api-version=2024-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"
}

示例响应

{
  "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"
}

定义

名称 说明
AccountSasParameters

列出存储帐户的 SAS 凭据的参数。

HttpProtocol

允许使用帐户 SAS 发出的请求的协议。

ListAccountSasResponse

列出 SAS 凭据作响应。

Permissions

帐户 SAS 的已签名权限。 可能的值包括:读取(r)、写入(w)、删除(d)、列表(l)、添加(a)、创建(c)、更新(u)和进程(p)。

Services

使用帐户 SAS 访问的已签名服务。 可能的值包括:Blob(b)、队列(q)、表(t)、文件(f)。

SignedResourceTypes

可通过帐户 SAS 访问的已签名资源类型。 服务(s):访问服务级别 API;容器(c):访问容器级 API;对象(o):访问 Blob、队列消息、表实体和文件的对象级 API。

AccountSasParameters

列出存储帐户的 SAS 凭据的参数。

名称 类型 说明
keyToSign

string

用于对帐户 SAS 令牌进行签名的密钥。

signedExpiry

string (date-time)

共享访问签名失效的时间。

signedIp

string

要从中接受请求的 IP 地址或一系列 IP 地址。

signedPermission

Permissions

帐户 SAS 的已签名权限。 可能的值包括:读取(r)、写入(w)、删除(d)、列表(l)、添加(a)、创建(c)、更新(u)和进程(p)。

signedProtocol

HttpProtocol

允许使用帐户 SAS 发出的请求的协议。

signedResourceTypes

SignedResourceTypes

可通过帐户 SAS 访问的已签名资源类型。 服务(s):访问服务级别 API;容器(c):访问容器级 API;对象(o):访问 Blob、队列消息、表实体和文件的对象级 API。

signedServices

Services

使用帐户 SAS 访问的已签名服务。 可能的值包括:Blob(b)、队列(q)、表(t)、文件(f)。

signedStart

string (date-time)

SAS 生效的时间。

HttpProtocol

允许使用帐户 SAS 发出的请求的协议。

说明
https
https,http

ListAccountSasResponse

列出 SAS 凭据作响应。

名称 类型 说明
accountSasToken

string

列出存储帐户的 SAS 凭据。

Permissions

帐户 SAS 的已签名权限。 可能的值包括:读取(r)、写入(w)、删除(d)、列表(l)、添加(a)、创建(c)、更新(u)和进程(p)。

说明
a
c
d
l
p
r
u
w

Services

使用帐户 SAS 访问的已签名服务。 可能的值包括:Blob(b)、队列(q)、表(t)、文件(f)。

说明
b
f
q
t

SignedResourceTypes

可通过帐户 SAS 访问的已签名资源类型。 服务(s):访问服务级别 API;容器(c):访问容器级 API;对象(o):访问 Blob、队列消息、表实体和文件的对象级 API。

说明
c
o
s