Skip to content

Commit

Permalink
Add list_by_scope (#5757)
Browse files Browse the repository at this point in the history
* Add list_by_scope

* Add filter
  • Loading branch information
yuwzho authored and kpajdzik committed May 1, 2019
1 parent 782a843 commit f949c31
Showing 1 changed file with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,46 @@
},
"x-ms-odata": "#/definitions/ManagementLockObject"
}
},
"/{scope}/providers/Microsoft.Authorization/locks": {
"get": {
"tags": [
"ManagementLocks"
],
"operationId": "ManagementLocks_ListByScope",
"description": "Gets all the management locks for a scope.",
"parameters": [
{
"name": "scope",
"in": "path",
"required": true,
"type": "string",
"description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources."
},
{
"name": "$filter",
"in": "query",
"required": false,
"type": "string",
"description": "The filter to apply on the operation."
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns an array of resource locks.",
"schema": {
"$ref": "#/definitions/ManagementLockListResult"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-odata": "#/definitions/ManagementLockObject"
}
}
},
"definitions": {
Expand Down Expand Up @@ -957,4 +997,4 @@
"description": "The API version to use for the operation."
}
}
}
}

0 comments on commit f949c31

Please sign in to comment.