|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "AuthorizationManagementClient", |
| 5 | + "version": "2020-10-01", |
| 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 assignments. 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 | + "/{scope}/providers/Microsoft.Authorization/eligibleChildResources": { |
| 38 | + "get": { |
| 39 | + "tags": [ |
| 40 | + "eligibleChildResources" |
| 41 | + ], |
| 42 | + "operationId": "EligibleChildResources_Get", |
| 43 | + "description": "Get the child resources of a resource on which user has eligible access", |
| 44 | + "parameters": [ |
| 45 | + { |
| 46 | + "name": "scope", |
| 47 | + "in": "path", |
| 48 | + "required": true, |
| 49 | + "type": "string", |
| 50 | + "description": "The scope of the role management policy.", |
| 51 | + "x-ms-skip-url-encoding": true |
| 52 | + }, |
| 53 | + { |
| 54 | + "name": "$filter", |
| 55 | + "in": "query", |
| 56 | + "required": false, |
| 57 | + "type": "string", |
| 58 | + "description": "The filter to apply on the operation. Use $filter=resourceType+eq+'Subscription' to filter on only resource of type = 'Subscription'. Use $filter=resourceType+eq+'subscription'+or+resourceType+eq+'resourcegroup' to filter on resource of type = 'Subscription' or 'ResourceGroup'" |
| 59 | + }, |
| 60 | + { |
| 61 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
| 62 | + } |
| 63 | + ], |
| 64 | + "responses": { |
| 65 | + "200": { |
| 66 | + "description": "OK - Returns information about the role management policy.", |
| 67 | + "schema": { |
| 68 | + "$ref": "#/definitions/EligibleChildResourcesListResult" |
| 69 | + } |
| 70 | + }, |
| 71 | + "default": { |
| 72 | + "description": "Error response describing why the operation failed.", |
| 73 | + "schema": { |
| 74 | + "$ref": "#/definitions/CloudError" |
| 75 | + } |
| 76 | + } |
| 77 | + }, |
| 78 | + "x-ms-pageable": { |
| 79 | + "nextLinkName": "nextLink" |
| 80 | + }, |
| 81 | + "x-ms-examples": { |
| 82 | + "GetEligibleChildResourcesByScope": { |
| 83 | + "$ref": "./examples/GetEligibleChildResourcesByScope.json" |
| 84 | + } |
| 85 | + } |
| 86 | + } |
| 87 | + } |
| 88 | + }, |
| 89 | + "definitions": { |
| 90 | + "EligibleChildResourcesListResult": { |
| 91 | + "properties": { |
| 92 | + "value": { |
| 93 | + "type": "array", |
| 94 | + "items": { |
| 95 | + "$ref": "#/definitions/EligibleChildResource" |
| 96 | + }, |
| 97 | + "description": "Eligible child resource list." |
| 98 | + }, |
| 99 | + "nextLink": { |
| 100 | + "type": "string", |
| 101 | + "description": "The URL to use for getting the next set of results." |
| 102 | + } |
| 103 | + }, |
| 104 | + "type": "object", |
| 105 | + "description": "Eligible child resources list operation result." |
| 106 | + }, |
| 107 | + "EligibleChildResource": { |
| 108 | + "properties": { |
| 109 | + "id": { |
| 110 | + "type": "string", |
| 111 | + "readOnly": true, |
| 112 | + "description": "The resource scope Id." |
| 113 | + }, |
| 114 | + "name": { |
| 115 | + "type": "string", |
| 116 | + "readOnly": true, |
| 117 | + "description": "The resource name." |
| 118 | + }, |
| 119 | + "type": { |
| 120 | + "type": "string", |
| 121 | + "readOnly": true, |
| 122 | + "description": "The resource type." |
| 123 | + } |
| 124 | + }, |
| 125 | + "type": "object", |
| 126 | + "description": "Eligible child resource" |
| 127 | + }, |
| 128 | + "CloudError": { |
| 129 | + "x-ms-external": true, |
| 130 | + "properties": { |
| 131 | + "error": { |
| 132 | + "$ref": "#/definitions/CloudErrorBody" |
| 133 | + } |
| 134 | + }, |
| 135 | + "type": "object", |
| 136 | + "description": "An error response from the service." |
| 137 | + }, |
| 138 | + "CloudErrorBody": { |
| 139 | + "x-ms-external": true, |
| 140 | + "properties": { |
| 141 | + "code": { |
| 142 | + "type": "string", |
| 143 | + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." |
| 144 | + }, |
| 145 | + "message": { |
| 146 | + "type": "string", |
| 147 | + "description": "A message describing the error, intended to be suitable for display in a user interface." |
| 148 | + } |
| 149 | + }, |
| 150 | + "type": "object", |
| 151 | + "description": "An error response from the service." |
| 152 | + } |
| 153 | + } |
| 154 | +} |
0 commit comments