MapsAccountResource.GetSas(MapsAccountSasContent, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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 Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountSasToken> GetSas (Azure.ResourceManager.Maps.Models.MapsAccountSasContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSas : Azure.ResourceManager.Maps.Models.MapsAccountSasContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountSasToken>
override this.GetSas : Azure.ResourceManager.Maps.Models.MapsAccountSasContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Maps.Models.MapsAccountSasToken>
Public Overridable Function GetSas (content As MapsAccountSasContent, Optional cancellationToken As CancellationToken = Nothing) As 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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET