SiteManagerExtensions.GetSitesByServiceGroupAsync 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.
Get Site at SG scope
- Request Path: /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
- Operation Id: SitesByServiceGroup_Get
- Default Api Version: 2025-03-01-preview
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SiteManager.EdgeSiteResource>> GetSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default);
static member GetSitesByServiceGroupAsync : Azure.ResourceManager.Resources.TenantResource * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SiteManager.EdgeSiteResource>>
<Extension()>
Public Function GetSitesByServiceGroupAsync (tenantResource As TenantResource, servicegroupName As String, siteName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EdgeSiteResource))
Parameters
- tenantResource
- TenantResource
The TenantResource instance the method will execute against.
- servicegroupName
- String
The name of the service group.
- siteName
- String
The name of the site.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
servicegroupName
or siteName
is an empty string, and was expected to be non-empty.
tenantResource
, servicegroupName
or siteName
is null.