mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(azure): add experimental Azure endpoint support (#1936)
This commit is contained in:
parent
415c6ce5e1
commit
9ad9cc5e2d
52 changed files with 1665 additions and 79 deletions
12
app/azure/rest/provider.js
Normal file
12
app/azure/rest/provider.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
angular.module('portainer.azure')
|
||||
.factory('Provider', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider',
|
||||
function ProviderFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
'use strict';
|
||||
return $resource(API_ENDPOINT_ENDPOINTS +'/:endpointId/azure/subscriptions/:subscriptionId/providers/:providerNamespace', {
|
||||
'endpointId': EndpointProvider.endpointID,
|
||||
'api-version': '2018-02-01'
|
||||
},
|
||||
{
|
||||
get: { method: 'GET', params: { subscriptionId: '@subscriptionId', providerNamespace: '@providerNamespace' } }
|
||||
});
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue