Microsoft Azure

Azure Resource Manager: Locks

Azure resources can be locked to prevent other users in your organization from deleting or modifying resources.

Developer tools#openapi#cloud

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Azure resources can be locked to prevent other users in your organization from deleting or modifying resources.

Endpoints 17

Operations

  • GETAuthorizationOperations_List/providers/Microsoft.Authorization/operationsLists all of the available Microsoft.Authorization REST API operations.

ManagementLocks

  • GETManagementLocks_GetAtResourceGroupLevel/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Authorization/locks/:lockNameGets a management lock at the resource group level.
  • PUTCreates or updates a management lock at the resource group level./subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Authorization/locks/:lockNameWhen you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to…
  • DELETEDeletes a management lock at the resource group level./subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Authorization/locks/:lockNameTo delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner…
  • GETManagementLocks_GetByScope/:scope/providers/Microsoft.Authorization/locks/:lockNameGet a management lock by scope.
  • PUTManagementLocks_CreateOrUpdateByScope/:scope/providers/Microsoft.Authorization/locks/:lockNameCreate or update a management lock by scope.
  • DELETEManagementLocks_DeleteByScope/:scope/providers/Microsoft.Authorization/locks/:lockNameDelete a management lock by scope.
  • GETManagementLocks_GetAtResourceLevel/subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/:resourceProviderNamespace/:parentResourcePath/:resourceType/:resourceName/providers/Microsoft.Authorization/locks/:lockNameGet the management lock of a resource or any level below resource.
  • PUTCreates or updates a management lock at the resource level or any level below the resource./subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/:resourceProviderNamespace/:parentResourcePath/:resourceType/:resourceName/providers/Microsoft.Authorization/locks/:lockNameWhen you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to…
  • DELETEDeletes the management lock of a resource or any level below the resource./subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/:resourceProviderNamespace/:parentResourcePath/:resourceType/:resourceName/providers/Microsoft.Authorization/locks/:lockNameTo delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner…
  • GETManagementLocks_GetAtSubscriptionLevel/subscriptions/:subscriptionId/providers/Microsoft.Authorization/locks/:lockNameGets a management lock at the subscription level.
  • PUTCreates or updates a management lock at the subscription level./subscriptions/:subscriptionId/providers/Microsoft.Authorization/locks/:lockNameWhen you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to…
  • DELETEDeletes the management lock at the subscription level./subscriptions/:subscriptionId/providers/Microsoft.Authorization/locks/:lockNameTo delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner…
  • GETManagementLocks_ListAtResourceGroupLevel/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Authorization/locks?$filter=stringGets all the management locks for a resource group.
  • GETManagementLocks_ListAtResourceLevel/subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/:resourceProviderNamespace/:parentResourcePath/:resourceType/:resourceName/providers/Microsoft.Authorization/locks?$filter=stringGets all the management locks for a resource or any level below resource.
  • GETManagementLocks_ListAtSubscriptionLevel/subscriptions/:subscriptionId/providers/Microsoft.Authorization/locks?$filter=stringGets all the management locks for a subscription.
  • GETManagementLocks_ListByScope/:scope/providers/Microsoft.Authorization/locks?$filter=stringGets all the management locks for a scope.

API details

Base URL
https://management.azure.com
Authentication
OAuth 2.0 (implicit flow) with 1 scope
Operations
17 operations on 9 pathsGET 9PUT 4DELETE 4
Main resources
ManagementLocks 16Operations 1
Response formats
application/json
Description format
Swagger 2.0, API version 2020-05-01

How to test the Azure Resource Manager: Locks in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Resource Manager: Locks collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “AuthorizationOperations_List” (GET /providers/Microsoft.Authorization/operations), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure Resource Manager: Locks?

Azure resources can be locked to prevent other users in your organization from deleting or modifying resources. It is listed under Developer tools and has 17 endpoints.

Who publishes the Azure Resource Manager: Locks?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Azure Resource Manager: Locks?

Requests go to https://management.azure.com. Endpoint paths are added to this base URL.

How do I authenticate with the Azure Resource Manager: Locks?

With OAuth 2.0 (implicit flow) with 1 scope.

How many endpoints does the Azure Resource Manager: Locks have?

17 operations on 9 paths (9 GET, 4 PUT, 4 DELETE). The largest groups are ManagementLocks, Operations.

Is forking the Azure Resource Manager: Locks free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.