共用方式為


SecurityCenterLocationCollection.GetAll(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.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterLocationResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SecurityCenterLocationResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to