GetAccountSAS
Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account.
Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account.
Note that this is an Account SAS and not a Service SAS.
Using GetAccountSAS
function getAccountSAS(args: GetAccountSASArgs, opts?: InvokeOptions): Promise<GetAccountSASResult>function get_account_sas(connection_string=None, expiry=None, https_only=None, permissions=None, resource_types=None, services=None, start=None, opts=None)func GetAccountSAS(ctx *Context, args *GetAccountSASArgs, opts ...InvokeOption) (*GetAccountSASResult, error)public static class GetAccountSAS {
public static Task<GetAccountSASResult> InvokeAsync(GetAccountSASArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Connection
String string The connection string for the storage account to which this SAS applies. Typically directly from the
primary_connection_stringattribute of aazure.storage.Accountresource.- Expiry string
The expiration time and date of this SAS. Must be a valid ISO-8601 format time/date string.
- Permissions
Get
Account SASPermissions Args A
permissionsblock as defined below.- Resource
Types GetAccount SASResource Types Args A
resource_typesblock as defined below.- Services
Get
Account SASServices Args A
servicesblock as defined below.- Start string
The starting time and date of validity of this SAS. Must be a valid ISO-8601 format time/date string.
- Https
Only bool Only permit
httpsaccess. Iffalse, bothhttpandhttpsare permitted. Defaults totrue.
- Connection
String string The connection string for the storage account to which this SAS applies. Typically directly from the
primary_connection_stringattribute of aazure.storage.Accountresource.- Expiry string
The expiration time and date of this SAS. Must be a valid ISO-8601 format time/date string.
- Permissions
Get
Account SASPermissions A
permissionsblock as defined below.- Resource
Types GetAccount SASResource Types A
resource_typesblock as defined below.- Services
Get
Account SASServices A
servicesblock as defined below.- Start string
The starting time and date of validity of this SAS. Must be a valid ISO-8601 format time/date string.
- Https
Only bool Only permit
httpsaccess. Iffalse, bothhttpandhttpsare permitted. Defaults totrue.
- connection
String string The connection string for the storage account to which this SAS applies. Typically directly from the
primary_connection_stringattribute of aazure.storage.Accountresource.- expiry string
The expiration time and date of this SAS. Must be a valid ISO-8601 format time/date string.
- permissions
Get
Account SASPermissions A
permissionsblock as defined below.- resource
Types GetAccount SASResource Types A
resource_typesblock as defined below.- services
Get
Account SASServices A
servicesblock as defined below.- start string
The starting time and date of validity of this SAS. Must be a valid ISO-8601 format time/date string.
- https
Only boolean Only permit
httpsaccess. Iffalse, bothhttpandhttpsare permitted. Defaults totrue.
- connection_
string str The connection string for the storage account to which this SAS applies. Typically directly from the
primary_connection_stringattribute of aazure.storage.Accountresource.- expiry str
The expiration time and date of this SAS. Must be a valid ISO-8601 format time/date string.
- permissions
Dict[Get
Account SASPermissions] A
permissionsblock as defined below.- resource_
types Dict[GetAccount SASResource Types] A
resource_typesblock as defined below.- services
Dict[Get
Account SASServices] A
servicesblock as defined below.- start str
The starting time and date of validity of this SAS. Must be a valid ISO-8601 format time/date string.
- https_
only bool Only permit
httpsaccess. Iffalse, bothhttpandhttpsare permitted. Defaults totrue.
GetAccountSAS Result
The following output properties are available:
- Connection
String string - Expiry string
- Id string
The provider-assigned unique ID for this managed resource.
- Permissions
Get
Account SASPermissions - Resource
Types GetAccount SASResource Types - Sas string
The computed Account Shared Access Signature (SAS).
- Services
Get
Account SASServices - Start string
- Https
Only bool
- Connection
String string - Expiry string
- Id string
The provider-assigned unique ID for this managed resource.
- Permissions
Get
Account SASPermissions - Resource
Types GetAccount SASResource Types - Sas string
The computed Account Shared Access Signature (SAS).
- Services
Get
Account SASServices - Start string
- Https
Only bool
- connection
String string - expiry string
- id string
The provider-assigned unique ID for this managed resource.
- permissions
Get
Account SASPermissions - resource
Types GetAccount SASResource Types - sas string
The computed Account Shared Access Signature (SAS).
- services
Get
Account SASServices - start string
- https
Only boolean
- connection_
string str - expiry str
- id str
The provider-assigned unique ID for this managed resource.
- permissions
Dict[Get
Account SASPermissions] - resource_
types Dict[GetAccount SASResource Types] - sas str
The computed Account Shared Access Signature (SAS).
- services
Dict[Get
Account SASServices] - start str
- https_
only bool
Supporting Types
GetAccountSASPermissions
- Add bool
Should Add permissions be enabled for this SAS?
- Create bool
Should Create permissions be enabled for this SAS?
- Delete bool
Should Delete permissions be enabled for this SAS?
- List bool
Should List permissions be enabled for this SAS?
- Process bool
Should Process permissions be enabled for this SAS?
- Read bool
Should Read permissions be enabled for this SAS?
- Update bool
Should Update permissions be enabled for this SAS?
- Write bool
Should Write permissions be enabled for this SAS?
- Add bool
Should Add permissions be enabled for this SAS?
- Create bool
Should Create permissions be enabled for this SAS?
- Delete bool
Should Delete permissions be enabled for this SAS?
- List bool
Should List permissions be enabled for this SAS?
- Process bool
Should Process permissions be enabled for this SAS?
- Read bool
Should Read permissions be enabled for this SAS?
- Update bool
Should Update permissions be enabled for this SAS?
- Write bool
Should Write permissions be enabled for this SAS?
- add boolean
Should Add permissions be enabled for this SAS?
- create boolean
Should Create permissions be enabled for this SAS?
- delete boolean
Should Delete permissions be enabled for this SAS?
- list boolean
Should List permissions be enabled for this SAS?
- process boolean
Should Process permissions be enabled for this SAS?
- read boolean
Should Read permissions be enabled for this SAS?
- update boolean
Should Update permissions be enabled for this SAS?
- write boolean
Should Write permissions be enabled for this SAS?
- add bool
Should Add permissions be enabled for this SAS?
- create bool
Should Create permissions be enabled for this SAS?
- delete bool
Should Delete permissions be enabled for this SAS?
- list bool
Should List permissions be enabled for this SAS?
- process bool
Should Process permissions be enabled for this SAS?
- read bool
Should Read permissions be enabled for this SAS?
- update bool
Should Update permissions be enabled for this SAS?
- write bool
Should Write permissions be enabled for this SAS?
GetAccountSASResourceTypes
GetAccountSASServices
- Blob bool
Should permission be granted to
blobservices within this storage account?- File bool
Should permission be granted to
fileservices within this storage account?- Queue bool
Should permission be granted to
queueservices within this storage account?- Table bool
Should permission be granted to
tableservices within this storage account?
- Blob bool
Should permission be granted to
blobservices within this storage account?- File bool
Should permission be granted to
fileservices within this storage account?- Queue bool
Should permission be granted to
queueservices within this storage account?- Table bool
Should permission be granted to
tableservices within this storage account?
- blob boolean
Should permission be granted to
blobservices within this storage account?- file boolean
Should permission be granted to
fileservices within this storage account?- queue boolean
Should permission be granted to
queueservices within this storage account?- table boolean
Should permission be granted to
tableservices within this storage account?
- blob bool
Should permission be granted to
blobservices within this storage account?- file bool
Should permission be granted to
fileservices within this storage account?- queue bool
Should permission be granted to
queueservices within this storage account?- table bool
Should permission be granted to
tableservices within this storage account?
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.