Create or update a management lock by scope.
For more information, see the official documentation for Management Locks: Create or update by scope.
| Field | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The ID of the target subscription. | Required |
| scope | string | The scope for the lock. | Required |
| lockName | string | The name of lock. | Required |
| parameters | ManagementLockObject | See parameters fields. | Required |
| Field | Type | Description | Required |
|---|---|---|---|
| level | string | The level of the lock. | Required |
| notes | string | Notes about the lock. | Optional |
| owners | ManagementLockOwner[] | The owners of the lock. | Optional |
Returns fields as described in ManagementLockObject.
Delete a management lock by scope.
For more information, see the official documentation for Management Locks: Delete by scope.
| Field | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The ID of the target subscription. | Required |
| scope | string | The scope for the lock. | Required |
| lockName | string | The name of lock. | Required |
The action does not have an output.
Gets all the management locks for a scope.
For more information, see the official documentation for Management Locks: List by scope.
| Field | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The ID of the target subscription. | Required |
| scope | string | The scope for the lock. | Required |
| options | ManagementLocksListByScopeOptionalParams | See options fields. | Optional |
| Field | Type | Description | Required |
|---|---|---|---|
| filter | string | The filter to apply to the operation. | Optional |
Returns an array of ManagementLockObject objects.