1. Packages
  2. Azure Native v2
  3. API Docs
  4. authorization
  5. getManagementLockAtResourceLevel
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.authorization.getManagementLockAtResourceLevel

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Get the management lock of a resource or any level below resource. Azure REST API version: 2020-05-01.

Using getManagementLockAtResourceLevel

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getManagementLockAtResourceLevel(args: GetManagementLockAtResourceLevelArgs, opts?: InvokeOptions): Promise<GetManagementLockAtResourceLevelResult>
function getManagementLockAtResourceLevelOutput(args: GetManagementLockAtResourceLevelOutputArgs, opts?: InvokeOptions): Output<GetManagementLockAtResourceLevelResult>
Copy
def get_management_lock_at_resource_level(lock_name: Optional[str] = None,
                                          parent_resource_path: Optional[str] = None,
                                          resource_group_name: Optional[str] = None,
                                          resource_name: Optional[str] = None,
                                          resource_provider_namespace: Optional[str] = None,
                                          resource_type: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetManagementLockAtResourceLevelResult
def get_management_lock_at_resource_level_output(lock_name: Optional[pulumi.Input[str]] = None,
                                          parent_resource_path: Optional[pulumi.Input[str]] = None,
                                          resource_group_name: Optional[pulumi.Input[str]] = None,
                                          resource_name: Optional[pulumi.Input[str]] = None,
                                          resource_provider_namespace: Optional[pulumi.Input[str]] = None,
                                          resource_type: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetManagementLockAtResourceLevelResult]
Copy
func LookupManagementLockAtResourceLevel(ctx *Context, args *LookupManagementLockAtResourceLevelArgs, opts ...InvokeOption) (*LookupManagementLockAtResourceLevelResult, error)
func LookupManagementLockAtResourceLevelOutput(ctx *Context, args *LookupManagementLockAtResourceLevelOutputArgs, opts ...InvokeOption) LookupManagementLockAtResourceLevelResultOutput
Copy

> Note: This function is named LookupManagementLockAtResourceLevel in the Go SDK.

public static class GetManagementLockAtResourceLevel 
{
    public static Task<GetManagementLockAtResourceLevelResult> InvokeAsync(GetManagementLockAtResourceLevelArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementLockAtResourceLevelResult> Invoke(GetManagementLockAtResourceLevelInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagementLockAtResourceLevelResult> getManagementLockAtResourceLevel(GetManagementLockAtResourceLevelArgs args, InvokeOptions options)
public static Output<GetManagementLockAtResourceLevelResult> getManagementLockAtResourceLevel(GetManagementLockAtResourceLevelArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:authorization:getManagementLockAtResourceLevel
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LockName
This property is required.
Changes to this property will trigger replacement.
string
The name of lock.
ParentResourcePath
This property is required.
Changes to this property will trigger replacement.
string
An extra path parameter needed in some services, like SQL Databases.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource.
ResourceProviderNamespace
This property is required.
Changes to this property will trigger replacement.
string
The namespace of the resource provider.
ResourceType
This property is required.
Changes to this property will trigger replacement.
string
The type of the resource.
LockName
This property is required.
Changes to this property will trigger replacement.
string
The name of lock.
ParentResourcePath
This property is required.
Changes to this property will trigger replacement.
string
An extra path parameter needed in some services, like SQL Databases.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource.
ResourceProviderNamespace
This property is required.
Changes to this property will trigger replacement.
string
The namespace of the resource provider.
ResourceType
This property is required.
Changes to this property will trigger replacement.
string
The type of the resource.
lockName
This property is required.
Changes to this property will trigger replacement.
String
The name of lock.
parentResourcePath
This property is required.
Changes to this property will trigger replacement.
String
An extra path parameter needed in some services, like SQL Databases.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
resourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource.
resourceProviderNamespace
This property is required.
Changes to this property will trigger replacement.
String
The namespace of the resource provider.
resourceType
This property is required.
Changes to this property will trigger replacement.
String
The type of the resource.
lockName
This property is required.
Changes to this property will trigger replacement.
string
The name of lock.
parentResourcePath
This property is required.
Changes to this property will trigger replacement.
string
An extra path parameter needed in some services, like SQL Databases.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
resourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource.
resourceProviderNamespace
This property is required.
Changes to this property will trigger replacement.
string
The namespace of the resource provider.
resourceType
This property is required.
Changes to this property will trigger replacement.
string
The type of the resource.
lock_name
This property is required.
Changes to this property will trigger replacement.
str
The name of lock.
parent_resource_path
This property is required.
Changes to this property will trigger replacement.
str
An extra path parameter needed in some services, like SQL Databases.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
resource_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource.
resource_provider_namespace
This property is required.
Changes to this property will trigger replacement.
str
The namespace of the resource provider.
resource_type
This property is required.
Changes to this property will trigger replacement.
str
The type of the resource.
lockName
This property is required.
Changes to this property will trigger replacement.
String
The name of lock.
parentResourcePath
This property is required.
Changes to this property will trigger replacement.
String
An extra path parameter needed in some services, like SQL Databases.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
resourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource.
resourceProviderNamespace
This property is required.
Changes to this property will trigger replacement.
String
The namespace of the resource provider.
resourceType
This property is required.
Changes to this property will trigger replacement.
String
The type of the resource.

getManagementLockAtResourceLevel Result

The following output properties are available:

Id string
The resource ID of the lock.
Level string
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.
Name string
The name of the lock.
SystemData Pulumi.AzureNative.Authorization.Outputs.SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
The resource type of the lock - Microsoft.Authorization/locks.
Notes string
Notes about the lock. Maximum of 512 characters.
Owners List<Pulumi.AzureNative.Authorization.Outputs.ManagementLockOwnerResponse>
The owners of the lock.
Id string
The resource ID of the lock.
Level string
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.
Name string
The name of the lock.
SystemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
The resource type of the lock - Microsoft.Authorization/locks.
Notes string
Notes about the lock. Maximum of 512 characters.
Owners []ManagementLockOwnerResponse
The owners of the lock.
id String
The resource ID of the lock.
level String
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.
name String
The name of the lock.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type String
The resource type of the lock - Microsoft.Authorization/locks.
notes String
Notes about the lock. Maximum of 512 characters.
owners List<ManagementLockOwnerResponse>
The owners of the lock.
id string
The resource ID of the lock.
level string
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.
name string
The name of the lock.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type string
The resource type of the lock - Microsoft.Authorization/locks.
notes string
Notes about the lock. Maximum of 512 characters.
owners ManagementLockOwnerResponse[]
The owners of the lock.
id str
The resource ID of the lock.
level str
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.
name str
The name of the lock.
system_data SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type str
The resource type of the lock - Microsoft.Authorization/locks.
notes str
Notes about the lock. Maximum of 512 characters.
owners Sequence[ManagementLockOwnerResponse]
The owners of the lock.
id String
The resource ID of the lock.
level String
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.
name String
The name of the lock.
systemData Property Map
Metadata pertaining to creation and last modification of the resource.
type String
The resource type of the lock - Microsoft.Authorization/locks.
notes String
Notes about the lock. Maximum of 512 characters.
owners List<Property Map>
The owners of the lock.

Supporting Types

ManagementLockOwnerResponse

ApplicationId string
The application ID of the lock owner.
ApplicationId string
The application ID of the lock owner.
applicationId String
The application ID of the lock owner.
applicationId string
The application ID of the lock owner.
application_id str
The application ID of the lock owner.
applicationId String
The application ID of the lock owner.

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi