Azure Native v1.102.0, May 2 23
Azure Native v1.102.0, May 2 23
azure-native.authorization.getManagementLockAtResourceLevel
Explore with Pulumi AI
Get the management lock of a resource or any level below resource. API Version: 2017-04-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>
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]
func LookupManagementLockAtResourceLevel(ctx *Context, args *LookupManagementLockAtResourceLevelArgs, opts ...InvokeOption) (*LookupManagementLockAtResourceLevelResult, error)
func LookupManagementLockAtResourceLevelOutput(ctx *Context, args *LookupManagementLockAtResourceLevelOutputArgs, opts ...InvokeOption) LookupManagementLockAtResourceLevelResultOutput
> 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)
}
public static CompletableFuture<GetManagementLockAtResourceLevelResult> getManagementLockAtResourceLevel(GetManagementLockAtResourceLevelArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:authorization:getManagementLockAtResourceLevel
arguments:
# arguments dictionary
The following arguments are supported:
- Lock
Name string The name of lock.
- Parent
Resource stringPath An extra path parameter needed in some services, like SQL Databases.
- Resource
Group stringName The name of the resource group.
- Resource
Name string The name of the resource.
- Resource
Provider stringNamespace The namespace of the resource provider.
- Resource
Type string The type of the resource.
- Lock
Name string The name of lock.
- Parent
Resource stringPath An extra path parameter needed in some services, like SQL Databases.
- Resource
Group stringName The name of the resource group.
- Resource
Name string The name of the resource.
- Resource
Provider stringNamespace The namespace of the resource provider.
- Resource
Type string The type of the resource.
- lock
Name String The name of lock.
- parent
Resource StringPath An extra path parameter needed in some services, like SQL Databases.
- resource
Group StringName The name of the resource group.
- resource
Name String The name of the resource.
- resource
Provider StringNamespace The namespace of the resource provider.
- resource
Type String The type of the resource.
- lock
Name string The name of lock.
- parent
Resource stringPath An extra path parameter needed in some services, like SQL Databases.
- resource
Group stringName The name of the resource group.
- resource
Name string The name of the resource.
- resource
Provider stringNamespace The namespace of the resource provider.
- resource
Type string The type of the resource.
- lock_
name str The name of lock.
- parent_
resource_ strpath An extra path parameter needed in some services, like SQL Databases.
- resource_
group_ strname The name of the resource group.
- resource_
name str The name of the resource.
- resource_
provider_ strnamespace The namespace of the resource provider.
- resource_
type str The type of the resource.
- lock
Name String The name of lock.
- parent
Resource StringPath An extra path parameter needed in some services, like SQL Databases.
- resource
Group StringName The name of the resource group.
- resource
Name String The name of the resource.
- resource
Provider StringNamespace The namespace of the resource provider.
- resource
Type 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.
- Type string
The resource type of the lock - Microsoft.Authorization/locks.
- Notes string
Notes about the lock. Maximum of 512 characters.
- Owners
List<Pulumi.
Azure Native. Authorization. Outputs. Management Lock Owner Response> 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.
- Type string
The resource type of the lock - Microsoft.Authorization/locks.
- Notes string
Notes about the lock. Maximum of 512 characters.
- Owners
[]Management
Lock Owner Response 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.
- type String
The resource type of the lock - Microsoft.Authorization/locks.
- notes String
Notes about the lock. Maximum of 512 characters.
- owners
List<Management
Lock Owner Response> 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.
- type string
The resource type of the lock - Microsoft.Authorization/locks.
- notes string
Notes about the lock. Maximum of 512 characters.
- owners
Management
Lock Owner Response[] 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.
- type str
The resource type of the lock - Microsoft.Authorization/locks.
- notes str
Notes about the lock. Maximum of 512 characters.
- owners
Sequence[Management
Lock Owner Response] 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.
- 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
- Application
Id string The application ID of the lock owner.
- Application
Id string The application ID of the lock owner.
- application
Id String The application ID of the lock owner.
- application
Id string The application ID of the lock owner.
- application_
id str The application ID of the lock owner.
- application
Id String The application ID of the lock owner.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0