你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MapsAccountResource.GetSasAsync Method

Definition

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:

  1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
  2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is placed.
  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listSas
  • Operation Id: Accounts_ListSas
  • Default Api Version: 2023-06-01
  • Resource: MapsAccountResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountSasToken>> GetSasAsync (Azure.ResourceManager.Maps.Models.MapsAccountSasContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSasAsync : Azure.ResourceManager.Maps.Models.MapsAccountSasContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountSasToken>>
override this.GetSasAsync : Azure.ResourceManager.Maps.Models.MapsAccountSasContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountSasToken>>
Public Overridable Function GetSasAsync (content As MapsAccountSasContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MapsAccountSasToken))

Parameters

content
MapsAccountSasContent

The updated parameters for the Maps Account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to