azure-native.maps.listAccountSas
Explore with Pulumi AI
Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
Prerequisites:
- Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
- Create or update an Azure Maps account with the same Azure region as the User Assigned Managed Identity is placed.
Uses Azure REST API version 2024-07-01-preview.
Other available API versions: 2021-12-01-preview, 2023-06-01, 2023-08-01-preview, 2023-12-01-preview, 2024-01-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native maps [ApiVersion]
. See the version guide for details.
Using listAccountSas
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function listAccountSas(args: ListAccountSasArgs, opts?: InvokeOptions): Promise<ListAccountSasResult>
function listAccountSasOutput(args: ListAccountSasOutputArgs, opts?: InvokeOptions): Output<ListAccountSasResult>
def list_account_sas(account_name: Optional[str] = None,
expiry: Optional[str] = None,
max_rate_per_second: Optional[int] = None,
principal_id: Optional[str] = None,
regions: Optional[Sequence[str]] = None,
resource_group_name: Optional[str] = None,
signing_key: Optional[Union[str, SigningKey]] = None,
start: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ListAccountSasResult
def list_account_sas_output(account_name: Optional[pulumi.Input[str]] = None,
expiry: Optional[pulumi.Input[str]] = None,
max_rate_per_second: Optional[pulumi.Input[int]] = None,
principal_id: Optional[pulumi.Input[str]] = None,
regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
signing_key: Optional[pulumi.Input[Union[str, SigningKey]]] = None,
start: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ListAccountSasResult]
func ListAccountSas(ctx *Context, args *ListAccountSasArgs, opts ...InvokeOption) (*ListAccountSasResult, error)
func ListAccountSasOutput(ctx *Context, args *ListAccountSasOutputArgs, opts ...InvokeOption) ListAccountSasResultOutput
> Note: This function is named ListAccountSas
in the Go SDK.
public static class ListAccountSas
{
public static Task<ListAccountSasResult> InvokeAsync(ListAccountSasArgs args, InvokeOptions? opts = null)
public static Output<ListAccountSasResult> Invoke(ListAccountSasInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<ListAccountSasResult> listAccountSas(ListAccountSasArgs args, InvokeOptions options)
public static Output<ListAccountSasResult> listAccountSas(ListAccountSasArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:maps:listAccountSas
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Name string - The name of the Maps Account.
- Expiry string
- The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - Max
Rate intPer Second - Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement.
- Principal
Id string - The principal Id also known as the object Id of a User Assigned Managed Identity currently assigned to the Maps Account. To assign a Managed Identity of the account, use operation Create or Update an assign a User Assigned Identity resource Id.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Signing
Key string | Pulumi.Azure Native. Maps. Signing Key - The Maps account key to use for signing. Picking
primaryKey
orsecondaryKey
will use the Maps account Shared Keys, and usingmanagedIdentity
will use the auto-renewed private key to sign the SAS. - Start string
- The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - Regions List<string>
- Optional, allows control of which region locations are permitted access to Azure Maps REST APIs with the SAS token. Example: "eastus", "westus2". Omitting this parameter will allow all region locations to be accessible.
- Account
Name string - The name of the Maps Account.
- Expiry string
- The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - Max
Rate intPer Second - Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement.
- Principal
Id string - The principal Id also known as the object Id of a User Assigned Managed Identity currently assigned to the Maps Account. To assign a Managed Identity of the account, use operation Create or Update an assign a User Assigned Identity resource Id.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Signing
Key string | SigningKey - The Maps account key to use for signing. Picking
primaryKey
orsecondaryKey
will use the Maps account Shared Keys, and usingmanagedIdentity
will use the auto-renewed private key to sign the SAS. - Start string
- The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - Regions []string
- Optional, allows control of which region locations are permitted access to Azure Maps REST APIs with the SAS token. Example: "eastus", "westus2". Omitting this parameter will allow all region locations to be accessible.
- account
Name String - The name of the Maps Account.
- expiry String
- The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - max
Rate IntegerPer Second - Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement.
- principal
Id String - The principal Id also known as the object Id of a User Assigned Managed Identity currently assigned to the Maps Account. To assign a Managed Identity of the account, use operation Create or Update an assign a User Assigned Identity resource Id.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- signing
Key String | SigningKey - The Maps account key to use for signing. Picking
primaryKey
orsecondaryKey
will use the Maps account Shared Keys, and usingmanagedIdentity
will use the auto-renewed private key to sign the SAS. - start String
- The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - regions List<String>
- Optional, allows control of which region locations are permitted access to Azure Maps REST APIs with the SAS token. Example: "eastus", "westus2". Omitting this parameter will allow all region locations to be accessible.
- account
Name string - The name of the Maps Account.
- expiry string
- The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - max
Rate numberPer Second - Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement.
- principal
Id string - The principal Id also known as the object Id of a User Assigned Managed Identity currently assigned to the Maps Account. To assign a Managed Identity of the account, use operation Create or Update an assign a User Assigned Identity resource Id.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- signing
Key string | SigningKey - The Maps account key to use for signing. Picking
primaryKey
orsecondaryKey
will use the Maps account Shared Keys, and usingmanagedIdentity
will use the auto-renewed private key to sign the SAS. - start string
- The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - regions string[]
- Optional, allows control of which region locations are permitted access to Azure Maps REST APIs with the SAS token. Example: "eastus", "westus2". Omitting this parameter will allow all region locations to be accessible.
- account_
name str - The name of the Maps Account.
- expiry str
- The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - max_
rate_ intper_ second - Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement.
- principal_
id str - The principal Id also known as the object Id of a User Assigned Managed Identity currently assigned to the Maps Account. To assign a Managed Identity of the account, use operation Create or Update an assign a User Assigned Identity resource Id.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- signing_
key str | SigningKey - The Maps account key to use for signing. Picking
primaryKey
orsecondaryKey
will use the Maps account Shared Keys, and usingmanagedIdentity
will use the auto-renewed private key to sign the SAS. - start str
- The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - regions Sequence[str]
- Optional, allows control of which region locations are permitted access to Azure Maps REST APIs with the SAS token. Example: "eastus", "westus2". Omitting this parameter will allow all region locations to be accessible.
- account
Name String - The name of the Maps Account.
- expiry String
- The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - max
Rate NumberPer Second - Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement.
- principal
Id String - The principal Id also known as the object Id of a User Assigned Managed Identity currently assigned to the Maps Account. To assign a Managed Identity of the account, use operation Create or Update an assign a User Assigned Identity resource Id.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- signing
Key String | "primaryKey" | "secondary Key" | "managed Identity" - The Maps account key to use for signing. Picking
primaryKey
orsecondaryKey
will use the Maps account Shared Keys, and usingmanagedIdentity
will use the auto-renewed private key to sign the SAS. - start String
- The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between
start
andexpiry
. - regions List<String>
- Optional, allows control of which region locations are permitted access to Azure Maps REST APIs with the SAS token. Example: "eastus", "westus2". Omitting this parameter will allow all region locations to be accessible.
listAccountSas Result
The following output properties are available:
- Account
Sas stringToken - The shared access signature access token.
- Account
Sas stringToken - The shared access signature access token.
- account
Sas StringToken - The shared access signature access token.
- account
Sas stringToken - The shared access signature access token.
- account_
sas_ strtoken - The shared access signature access token.
- account
Sas StringToken - The shared access signature access token.
Supporting Types
SigningKey
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0