共用方式為


SecurityCenterLocationCollection.GetAllAsync(CancellationToken) Method

Definition

The location of the responsible ASC of the specific subscription (home region). For each subscription there is only one responsible location. The location in the response should be used to read or write other resources in ASC according to their ID.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations
  • Operation Id: Locations_List
  • Default Api Version: 2015-06-01-preview
  • Resource: SecurityCenterLocationResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SecurityCenterLocationResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of SecurityCenterLocationResource that may take multiple service requests to iterate over.

Applies to