{ "swagger": "2.0", "info": { "title": "AuthorizationManagementClient", "version": "2018-01-01-preview", "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These calls handle provider operations." }, "host": "management.azure.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow", "scopes": { "user_impersonation": "impersonate your user account" } } }, "paths": { "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}": { "get": { "tags": [ "ProviderOperationsMetadata" ], "operationId": "ProviderOperationsMetadata_Get", "description": "Gets provider operations metadata for the specified resource provider.", "parameters": [ { "$ref": "#/parameters/ResourceProviderNamespaceParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "$expand", "in": "query", "required": false, "type": "string", "default": "resourceTypes", "description": "Specifies whether to expand the values." } ], "responses": { "200": { "description": "OK - Returns the operations metadata.", "schema": { "$ref": "#/definitions/ProviderOperationsMetadata" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "List provider operations metadata for resource provider": { "$ref": "./examples/GetProviderOperationsRP.json" } } } }, "/providers/Microsoft.Authorization/providerOperations": { "get": { "tags": [ "ProviderOperationsMetadata" ], "operationId": "ProviderOperationsMetadata_List", "description": "Gets provider operations metadata for all resource providers.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "$expand", "in": "query", "required": false, "type": "string", "default": "resourceTypes", "description": "Specifies whether to expand the values." } ], "responses": { "200": { "description": "OK - Returns an array of the operations metadata.", "schema": { "$ref": "#/definitions/ProviderOperationsMetadataListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, "x-ms-examples": { "List provider operations metadata for all resource providers": { "$ref": "./examples/GetAllProviderOperations.json" } } } } }, "definitions": { "ResourceType": { "properties": { "name": { "type": "string", "description": "The resource type name." }, "displayName": { "type": "string", "description": "The resource type display name." }, "operations": { "type": "array", "items": { "$ref": "#/definitions/ProviderOperation" }, "x-ms-identifiers": [], "description": "The resource type operations." } }, "type": "object", "description": "Resource Type" }, "ProviderOperation": { "properties": { "name": { "type": "string", "description": "The operation name." }, "displayName": { "type": "string", "description": "The operation display name." }, "description": { "type": "string", "description": "The operation description." }, "origin": { "type": "string", "description": "The operation origin." }, "properties": { "type": "object", "x-ms-client-flatten": true, "description": "The operation properties." }, "isDataAction": { "type": "boolean", "description": "The dataAction flag to specify the operation type." } }, "type": "object", "description": "Operation" }, "ProviderOperationsMetadata": { "properties": { "id": { "type": "string", "description": "The provider id." }, "name": { "type": "string", "description": "The provider name." }, "type": { "type": "string", "description": "The provider type." }, "displayName": { "type": "string", "description": "The provider display name." }, "resourceTypes": { "type": "array", "items": { "$ref": "#/definitions/ResourceType" }, "x-ms-identifiers": [ "name" ], "description": "The provider resource types" }, "operations": { "type": "array", "items": { "$ref": "#/definitions/ProviderOperation" }, "x-ms-identifiers": [], "description": "The provider operations." } }, "type": "object", "description": "Provider Operations metadata" }, "ProviderOperationsMetadataListResult": { "properties": { "value": { "type": "array", "items": { "$ref": "#/definitions/ProviderOperationsMetadata" }, "description": "The list of providers." }, "nextLink": { "type": "string", "description": "The URL to use for getting the next set of results." } }, "type": "object", "description": "Provider operations metadata list" } }, "parameters": { "ResourceProviderNamespaceParameter": { "name": "resourceProviderNamespace", "in": "path", "required": true, "type": "string", "description": "The namespace of the resource provider.", "x-ms-skip-url-encoding": true, "x-ms-parameter-location": "method" } } }