|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "AuthorizationManagementClient", |
| 5 | + "version": "2020-03-01-preview", |
| 6 | + "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role definitions and role assignments. A role definition describes the set of actions that can be performed on resources. A role assignment grants access to Azure Active Directory users." |
| 7 | + }, |
| 8 | + "host": "management.azure.com", |
| 9 | + "schemes": [ |
| 10 | + "https" |
| 11 | + ], |
| 12 | + "consumes": [ |
| 13 | + "application/json" |
| 14 | + ], |
| 15 | + "produces": [ |
| 16 | + "application/json" |
| 17 | + ], |
| 18 | + "security": [ |
| 19 | + { |
| 20 | + "azure_auth": [ |
| 21 | + "user_impersonation" |
| 22 | + ] |
| 23 | + } |
| 24 | + ], |
| 25 | + "securityDefinitions": { |
| 26 | + "azure_auth": { |
| 27 | + "type": "oauth2", |
| 28 | + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", |
| 29 | + "flow": "implicit", |
| 30 | + "description": "Azure Active Directory OAuth2 Flow", |
| 31 | + "scopes": { |
| 32 | + "user_impersonation": "impersonate your user account" |
| 33 | + } |
| 34 | + } |
| 35 | + }, |
| 36 | + "paths": { |
| 37 | + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/classicAdministrators": { |
| 38 | + "get": { |
| 39 | + "tags": [ |
| 40 | + "ClassicAdministrators" |
| 41 | + ], |
| 42 | + "operationId": "ClassicAdministrators_List", |
| 43 | + "description": "List service administrator, account administrator, and co-administrators for the subscription.", |
| 44 | + "parameters": [ |
| 45 | + { |
| 46 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
| 47 | + }, |
| 48 | + { |
| 49 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" |
| 50 | + } |
| 51 | + ], |
| 52 | + "responses": { |
| 53 | + "200": { |
| 54 | + "description": "Returns an array of administrators.", |
| 55 | + "schema": { |
| 56 | + "$ref": "#/definitions/ClassicAdministratorListResult" |
| 57 | + } |
| 58 | + }, |
| 59 | + "default": { |
| 60 | + "description": "Error response describing why the operation failed.", |
| 61 | + "schema": { |
| 62 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" |
| 63 | + } |
| 64 | + } |
| 65 | + }, |
| 66 | + "x-ms-pageable": { |
| 67 | + "nextLinkName": "nextLink" |
| 68 | + }, |
| 69 | + "x-ms-examples": { |
| 70 | + "List classic administrators": { |
| 71 | + "$ref": "./examples/ClassicAdministrators_List.json" |
| 72 | + } |
| 73 | + } |
| 74 | + } |
| 75 | + } |
| 76 | + }, |
| 77 | + "definitions": { |
| 78 | + "ClassicAdministratorProperties": { |
| 79 | + "properties": { |
| 80 | + "emailAddress": { |
| 81 | + "type": "string", |
| 82 | + "description": "The email address of the administrator." |
| 83 | + }, |
| 84 | + "role": { |
| 85 | + "type": "string", |
| 86 | + "description": "The role of the administrator." |
| 87 | + } |
| 88 | + }, |
| 89 | + "description": "Classic Administrator properties." |
| 90 | + }, |
| 91 | + "ClassicAdministrator": { |
| 92 | + "properties": { |
| 93 | + "id": { |
| 94 | + "type": "string", |
| 95 | + "description": "The ID of the administrator." |
| 96 | + }, |
| 97 | + "name": { |
| 98 | + "type": "string", |
| 99 | + "description": "The name of the administrator." |
| 100 | + }, |
| 101 | + "type": { |
| 102 | + "type": "string", |
| 103 | + "description": "The type of the administrator." |
| 104 | + }, |
| 105 | + "properties": { |
| 106 | + "x-ms-client-flatten": true, |
| 107 | + "$ref": "#/definitions/ClassicAdministratorProperties", |
| 108 | + "description": "Properties for the classic administrator." |
| 109 | + } |
| 110 | + }, |
| 111 | + "description": "Classic Administrators" |
| 112 | + }, |
| 113 | + "ClassicAdministratorListResult": { |
| 114 | + "properties": { |
| 115 | + "value": { |
| 116 | + "type": "array", |
| 117 | + "items": { |
| 118 | + "$ref": "#/definitions/ClassicAdministrator" |
| 119 | + }, |
| 120 | + "description": "An array of administrators." |
| 121 | + }, |
| 122 | + "nextLink": { |
| 123 | + "readOnly": true, |
| 124 | + "type": "string", |
| 125 | + "description": "The URL to use for getting the next set of results." |
| 126 | + } |
| 127 | + }, |
| 128 | + "description": "ClassicAdministrator list result information." |
| 129 | + } |
| 130 | + }, |
| 131 | + "parameters": {} |
| 132 | +} |
0 commit comments