diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json new file mode 100644 index 000000000000..ca48011201b5 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Authorization/locks/read", + "display": { + "provider": "Microsoft.Authorization", + "resource": "locks", + "operation": "read" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json new file mode 100644 index 000000000000..6f438e1d39dd --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2017-04-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json new file mode 100644 index 000000000000..deaa709d7c6d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2017-04-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json new file mode 100644 index 000000000000..978b6f0e6a35 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2017-04-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json new file mode 100644 index 000000000000..101f79079cd8 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2017-04-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json new file mode 100644 index 000000000000..3f53e41f0712 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2017-04-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json new file mode 100644 index 000000000000..9b5def12fc67 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2017-04-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json new file mode 100644 index 000000000000..4d0e98094bf1 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2017-04-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json new file mode 100644 index 000000000000..660fe763ff48 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2017-04-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json new file mode 100644 index 000000000000..57c4829b8ca6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json new file mode 100644 index 000000000000..116abc47a57d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json new file mode 100644 index 000000000000..451fd0e4ae62 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json new file mode 100644 index 000000000000..57c4829b8ca6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json new file mode 100644 index 000000000000..6b710eb40f1f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json new file mode 100644 index 000000000000..7e49925a349a --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json new file mode 100644 index 000000000000..c859a8028b66 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json new file mode 100644 index 000000000000..b95519f6eff9 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json new file mode 100644 index 000000000000..aea219f7f328 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json @@ -0,0 +1,1191 @@ +{ + "swagger": "2.0", + "info": { + "title": "ManagementLockClient", + "version": "2017-04-01", + "description": "Azure resources can be locked to prevent other users in your organization from deleting or modifying resources." + }, + "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/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "AuthorizationOperations_List", + "description": "Lists all of the available Microsoft.Authorization REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "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": { + "$ref": "./examples/ListProviderOperations.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtResourceGroupLevel", + "summary": "Creates or updates a management lock at the resource group level.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to lock.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create management lock at resource group level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtResourceGroupLevel", + "summary": "Deletes a management lock at the resource group level.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the lock.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete management lock at resource group level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceGroupLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtResourceGroupLevel", + "description": "Gets a management lock at the resource group level.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the locked resource group.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get management lock at resource group level": { + "$ref": "./examples/ManagementLocks_GetAtResourceGroupLevel.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateByScope", + "description": "Create or update a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "Create or update management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create management lock at scope": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtScope.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteByScope", + "description": "Delete a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. " + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete management lock at scope": { + "$ref": "./examples/ManagementLocks_DeleteAtScope.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetByScope", + "description": "Get a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. " + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get management lock at scope": { + "$ref": "./examples/ManagementLocks_GetAtScope.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtResourceLevel", + "summary": "Creates or updates a management lock at the resource level or any level below the resource.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource to lock. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider namespace of the resource to lock." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource to lock.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to lock." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "Parameters for creating or updating a management lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create management lock at resource level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtResourceLevel", + "summary": "Deletes the management lock of a resource or any level below the resource.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource with the lock to delete. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider namespace of the resource with the lock to delete." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource with the lock to delete.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource with the lock to delete." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete management lock at resource level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtResourceLevel", + "description": "Get the management lock of a resource or any level below resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "An extra path parameter needed in some services, like SQL Databases.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of the resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get management lock at resource level": { + "$ref": "./examples/ManagementLocks_GetAtResourceLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtSubscriptionLevel", + "summary": "Creates or updates a management lock at the subscription level.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create management lock at subscription level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtSubscriptionLevel", + "summary": "Deletes the management lock at the subscription level.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete management lock at subscription level": { + "$ref": "./examples/ManagementLocks_DeleteAtSubscriptionLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtSubscriptionLevel", + "description": "Gets a management lock at the subscription level.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get management lock at subscription level": { + "$ref": "./examples/ManagementLocks_GetAtSubscriptionLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtResourceGroupLevel", + "description": "Gets all the management locks for a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the locks to get.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + }, + "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-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management groups at resource group level": { + "$ref": "./examples/ManagementLocks_ListAtResourceGroupLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtResourceLevel", + "description": "Gets all the management locks for a resource or any level below resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the locked resource. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the locked resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the locked resource." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + }, + "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-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at resource level": { + "$ref": "./examples/ManagementLocks_ListAtResourceLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtSubscriptionLevel", + "description": "Gets all the management locks for a subscription.", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + }, + "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-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at subscription level": { + "$ref": "./examples/ManagementLocks_ListAtSubscriptionLevel.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListByScope", + "description": "Gets all the management locks for a scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + }, + "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-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at scope": { + "$ref": "./examples/ManagementLocks_ListAtScope.json" + } + } + } + } + }, + "definitions": { + "ManagementLockOwner": { + "properties": { + "applicationId": { + "type": "string", + "description": "The application ID of the lock owner." + } + }, + "description": "Lock owner properties." + }, + "ManagementLockProperties": { + "properties": { + "level": { + "type": "string", + "description": "The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.", + "enum": [ + "NotSpecified", + "CanNotDelete", + "ReadOnly" + ], + "x-ms-enum": { + "name": "LockLevel", + "modelAsString": true + } + }, + "notes": { + "type": "string", + "description": "Notes about the lock. Maximum of 512 characters." + }, + "owners": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementLockOwner" + }, + "description": "The owners of the lock." + } + }, + "required": [ + "level" + ], + "description": "The lock properties." + }, + "ManagementLockObject": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementLockProperties", + "description": "The properties of the lock." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The resource ID of the lock." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The resource type of the lock - Microsoft.Authorization/locks." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the lock." + } + }, + "required": [ + "properties" + ], + "description": "The lock information.", + "x-ms-azure-resource": true + }, + "ManagementLockListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The list of locks." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "The list of locks." + }, + "Operation": { + "description": "Microsoft.Authorization operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Authorization", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Authorization operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Authorization operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation." + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json new file mode 100644 index 000000000000..714673520b3f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Authorization/locks/read", + "display": { + "provider": "Microsoft.Authorization", + "resource": "locks", + "operation": "read" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json new file mode 100644 index 000000000000..8a4c2f9655aa --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json new file mode 100644 index 000000000000..3dec34a5440d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json new file mode 100644 index 000000000000..c0c317056ac6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json new file mode 100644 index 000000000000..2973fee11cff --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json new file mode 100644 index 000000000000..96bfcaaf6d6d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2020-05-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json new file mode 100644 index 000000000000..5b5157440d52 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2020-05-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json new file mode 100644 index 000000000000..c7cdc3201dc4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2020-05-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json new file mode 100644 index 000000000000..69f83a3055a1 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2020-05-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json new file mode 100644 index 000000000000..0a188c2b2037 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json new file mode 100644 index 000000000000..e8d9cdc460ac --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json new file mode 100644 index 000000000000..f523f551aa8e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json new file mode 100644 index 000000000000..0a188c2b2037 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json new file mode 100644 index 000000000000..d3b533b5db93 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json new file mode 100644 index 000000000000..2c06a3a26f86 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json new file mode 100644 index 000000000000..7cc5c9b65fd6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json new file mode 100644 index 000000000000..2c6ef36b9ea3 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json new file mode 100644 index 000000000000..9a58ec7f0eca --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -0,0 +1,1188 @@ +{ + "swagger": "2.0", + "info": { + "title": "ManagementLockClient", + "version": "2020-05-01", + "description": "Azure resources can be locked to prevent other users in your organization from deleting or modifying resources." + }, + "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/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "AuthorizationOperations_List", + "description": "Lists all of the available Microsoft.Authorization REST API operations.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "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": { + "$ref": "./examples/ListProviderOperations.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtResourceGroupLevel", + "summary": "Creates or updates a management lock at the resource group level.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to lock.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The management lock parameters." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create management lock at resource group level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtResourceGroupLevel", + "summary": "Deletes a management lock at the resource group level.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the lock.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock to delete." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete management lock at resource group level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceGroupLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtResourceGroupLevel", + "description": "Gets a management lock at the resource group level.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the locked resource group.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to get." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get management lock at resource group level": { + "$ref": "./examples/ManagementLocks_GetAtResourceGroupLevel.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateByScope", + "description": "Create or update a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "Create or update management lock parameters." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create management lock at scope": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtScope.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteByScope", + "description": "Delete a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. " + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete management lock at scope": { + "$ref": "./examples/ManagementLocks_DeleteAtScope.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetByScope", + "description": "Get a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. " + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get management lock at scope": { + "$ref": "./examples/ManagementLocks_GetAtScope.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtResourceLevel", + "summary": "Creates or updates a management lock at the resource level or any level below the resource.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource to lock. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider namespace of the resource to lock." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource to lock.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to lock." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "Parameters for creating or updating a management lock." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create management lock at resource level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtResourceLevel", + "summary": "Deletes the management lock of a resource or any level below the resource.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource with the lock to delete. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider namespace of the resource with the lock to delete." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource with the lock to delete.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource with the lock to delete." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to delete." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete management lock at resource level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtResourceLevel", + "description": "Get the management lock of a resource or any level below resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "An extra path parameter needed in some services, like SQL Databases.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of the resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get management lock at resource level": { + "$ref": "./examples/ManagementLocks_GetAtResourceLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtSubscriptionLevel", + "summary": "Creates or updates a management lock at the subscription level.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The management lock parameters." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create management lock at subscription level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtSubscriptionLevel", + "summary": "Deletes the management lock at the subscription level.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock to delete." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete management lock at subscription level": { + "$ref": "./examples/ManagementLocks_DeleteAtSubscriptionLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtSubscriptionLevel", + "description": "Gets a management lock at the subscription level.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to get." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get management lock at subscription level": { + "$ref": "./examples/ManagementLocks_GetAtSubscriptionLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtResourceGroupLevel", + "description": "Gets all the management locks for a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the locks to get.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + }, + "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-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management groups at resource group level": { + "$ref": "./examples/ManagementLocks_ListAtResourceGroupLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtResourceLevel", + "description": "Gets all the management locks for a resource or any level below resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the locked resource. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the locked resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the locked resource." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + }, + "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-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at resource level": { + "$ref": "./examples/ManagementLocks_ListAtResourceLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtSubscriptionLevel", + "description": "Gets all the management locks for a subscription.", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + }, + "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-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at subscription level": { + "$ref": "./examples/ManagementLocks_ListAtSubscriptionLevel.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListByScope", + "description": "Gets all the management locks for a scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + }, + "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-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at scope": { + "$ref": "./examples/ManagementLocks_ListAtScope.json" + } + } + } + } + }, + "definitions": { + "ManagementLockOwner": { + "properties": { + "applicationId": { + "type": "string", + "description": "The application ID of the lock owner." + } + }, + "description": "Lock owner properties." + }, + "ManagementLockProperties": { + "properties": { + "level": { + "type": "string", + "description": "The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.", + "enum": [ + "NotSpecified", + "CanNotDelete", + "ReadOnly" + ], + "x-ms-enum": { + "name": "LockLevel", + "modelAsString": true + } + }, + "notes": { + "type": "string", + "description": "Notes about the lock. Maximum of 512 characters." + }, + "owners": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementLockOwner" + }, + "description": "The owners of the lock." + } + }, + "required": [ + "level" + ], + "description": "The lock properties." + }, + "ManagementLockObject": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementLockProperties", + "description": "The properties of the lock." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The resource ID of the lock." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The resource type of the lock - Microsoft.Authorization/locks." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the lock." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + }, + "required": [ + "properties" + ], + "description": "The lock information.", + "x-ms-azure-resource": true + }, + "ManagementLockListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The list of locks." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "The list of locks." + }, + "Operation": { + "description": "Microsoft.Authorization operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Authorization", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Authorization operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Authorization operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + } + } +} diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 1c34b373b0f2..d60c5b4c1a63 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -33,7 +33,7 @@ tag: package-features-2021-07 ``` ``` yaml $(package-locks) -tag: package-locks-2016-09 +tag: package-locks-2020-05 ``` ``` yaml $(package-policy) @@ -75,6 +75,16 @@ input-file: - Microsoft.Authorization/stable/2020-05-01/privateLinks.json ``` +### Tag: package-locks-2020-05 + +These settings apply only when `--tag=package-locks-2020-05` is specified on the command line. + +``` yaml $(tag) == 'package-locks-2020-05' +input-file: +- Microsoft.Authorization/stable/2020-05-01/locks.json +``` + + ### Tag: package-resources-2021-04 @@ -101,6 +111,15 @@ input-file: override-info: title: PolicyClient ``` +### Tag: package-locks-2017-04 + +These settings apply only when `--tag=package-locks-2017-04` is specified on the command line. + +``` yaml $(tag) == 'package-locks-2017-04' +input-file: +- Microsoft.Authorization/stable/2017-04-01/locks.json +``` + ### Tag: package-preview-2020-08