diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ListProviderOperations.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ListProviderOperations.json new file mode 100755 index 000000000000..5c15ac1c0475 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ListProviderOperations.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2016-09-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/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json new file mode 100755 index 000000000000..0d1a17d79841 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json new file mode 100755 index 000000000000..601b91d1ef3f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-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": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtScope.json new file mode 100755 index 000000000000..b9efc85edd71 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json new file mode 100755 index 000000000000..38311972abf6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json new file mode 100755 index 000000000000..485daca86bd3 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceLevel.json new file mode 100755 index 000000000000..5f4ab8b56bfd --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-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": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtScope.json new file mode 100755 index 000000000000..eb52b025e28e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtScope.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json new file mode 100755 index 000000000000..20b598d9a186 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceGroupLevel.json new file mode 100755 index 000000000000..b1a7b8d4206d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceLevel.json new file mode 100755 index 000000000000..fc4efee8ad97 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-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": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtScope.json new file mode 100755 index 000000000000..caeab93e4c24 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtScope.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtSubscriptionLevel.json new file mode 100755 index 000000000000..b1a7b8d4206d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceGroupLevel.json new file mode 100755 index 000000000000..7dcbe5b9e854 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceLevel.json new file mode 100755 index 000000000000..139b5b75c7fe --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-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": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtScope.json new file mode 100755 index 000000000000..219052cfc3e7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtScope.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtSubscriptionLevel.json new file mode 100755 index 000000000000..fab8c451fd03 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json index 15ce9bc3d51d..b57edba8035f 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json @@ -56,6 +56,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List provider operations": { + "$ref": "./examples/ListProviderOperations.json" + } } } }, @@ -114,6 +119,11 @@ "$ref": "#/definitions/ManagementLockObject" } } + }, + "x-ms-examples": { + "Create management lock at resource group level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json" + } } }, "delete": { @@ -155,6 +165,11 @@ "200": { "description": "OK" } + }, + "x-ms-examples": { + "Delete management lock at resource group level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceGroupLevel.json" + } } }, "get": { @@ -195,6 +210,11 @@ "$ref": "#/definitions/ManagementLockObject" } } + }, + "x-ms-examples": { + "Get management lock at resource group level": { + "$ref": "./examples/ManagementLocks_GetAtResourceGroupLevel.json" + } } } }, @@ -246,6 +266,11 @@ "$ref": "#/definitions/ManagementLockObject" } } + }, + "x-ms-examples": { + "Create management lock at scope": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtScope.json" + } } }, "delete": { @@ -280,6 +305,11 @@ "200": { "description": "OK" } + }, + "x-ms-examples": { + "Delete management lock at scope": { + "$ref": "./examples/ManagementLocks_DeleteAtScope.json" + } } }, "get": { @@ -314,6 +344,11 @@ "$ref": "#/definitions/ManagementLockObject" } } + }, + "x-ms-examples": { + "Get management lock at scope": { + "$ref": "./examples/ManagementLocks_GetAtScope.json" + } } } }, @@ -402,6 +437,11 @@ "$ref": "#/definitions/ManagementLockObject" } } + }, + "x-ms-examples": { + "Create management lock at resource level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json" + } } }, "delete": { @@ -473,6 +513,11 @@ "200": { "description": "OK" } + }, + "x-ms-examples": { + "Delete management lock at resource level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceLevel.json" + } } }, "get": { @@ -543,6 +588,11 @@ "$ref": "#/definitions/ManagementLockObject" } } + }, + "x-ms-examples": { + "Get management lock at resource level": { + "$ref": "./examples/ManagementLocks_GetAtResourceLevel.json" + } } } }, @@ -591,6 +641,11 @@ "$ref": "#/definitions/ManagementLockObject" } } + }, + "x-ms-examples": { + "Create management lock at subscription level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json" + } } }, "delete": { @@ -622,6 +677,11 @@ "200": { "description": "OK" } + }, + "x-ms-examples": { + "Delete management lock at subscription level": { + "$ref": "./examples/ManagementLocks_DeleteAtSubscriptionLevel.json" + } } }, "get": { @@ -652,6 +712,11 @@ "$ref": "#/definitions/ManagementLockObject" } } + }, + "x-ms-examples": { + "Get management lock at subscription level": { + "$ref": "./examples/ManagementLocks_GetAtSubscriptionLevel.json" + } } } }, @@ -698,7 +763,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ManagementLockObject" + "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": { @@ -774,7 +844,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ManagementLockObject" + "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": { @@ -810,7 +885,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ManagementLockObject" + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at subscription level": { + "$ref": "./examples/ManagementLocks_ListAtSubscriptionLevel.json" + } + } } }, "/{scope}/providers/Microsoft.Authorization/locks": { @@ -850,7 +930,12 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "#/definitions/ManagementLockObject" + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at scope": { + "$ref": "./examples/ManagementLocks_ListAtScope.json" + } + } } } },