mirror of
https://dev.azure.com/effectory/Survey%20Software/_git/Cloud%20Engineering
synced 2026-02-27 10:45:02 +01:00
Add Sonar Client to update permissions and tags in Sonar Projects to new team structure Related work items: #125680
14 lines
689 B
C#
14 lines
689 B
C#
using AzureRestApi.Models.Resources;
|
|
|
|
namespace AzureRestApi.Repositories;
|
|
|
|
public class AzureResourceRepository(HttpClient httpClient, AccessTokenRepository accessTokenRepository)
|
|
: AzureBaseRepository<Resource>(httpClient, accessTokenRepository)
|
|
{
|
|
public async Task<List<Resource>> GetAll(string subscriptionId)
|
|
{
|
|
// GET https://management.azure.com/subscriptions/{subscriptionId}/resources?$filter={$filter}&$expand={$expand}&$top={$top}&api-version=2021-04-01
|
|
var uri = new Uri($"https://management.azure.com/subscriptions/{subscriptionId}/resources?$expand=createdTime,changedTime&api-version=2021-04-01");
|
|
return await GetAllByUri(uri);
|
|
}
|
|
} |