Skip to content
Prev Previous commit
Next Next commit
404 is valid response, remove filter parameter from list operations
  • Loading branch information
vivsriaus committed Oct 3, 2017
commit 91c7775cf119d7bb7cee3d5cbf0f4e640bf79680
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@
"schema": {
"$ref": "#/definitions/PolicyDefinition"
}
},
"404": {
"description": "Not Found - the built in policy definition was not found."
}
}
}
Expand Down Expand Up @@ -275,13 +278,6 @@
"operationId": "PolicyDefinitions_List",
"description": "Gets all the policy definitions for a subscription.",
"parameters": [
{
"name": "$filter",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this was not supported and here by mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, apparently, only policy assignment list supports filter. Not policy definitions and set definitions

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, this was exposed in the CLI, I create an issue for that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"in": "query",
"required": false,
"type": "string",
"description": "The filter to apply on the operation."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
Expand Down Expand Up @@ -311,20 +307,13 @@
"operationId": "PolicyDefinitions_ListBuiltIn",
"description": "Gets all the built in policy definitions.",
"parameters": [
{
"name": "$filter",
"in": "query",
"required": false,
"type": "string",
"description": "The filter to apply on the operation."
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns ana array of built in policy definitions.",
"description": "OK - Returns an array of built in policy definitions.",
"schema": {
"$ref": "#/definitions/PolicyDefinitionListResult"
}
Expand All @@ -344,13 +333,6 @@
"operationId": "PolicyDefinitions_ListByManagementGroup",
"description": "Gets all the policy definitions for a subscription at management group level.",
"parameters": [
{
"name": "$filter",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question, not supported?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, not supported

"in": "query",
"required": false,
"type": "string",
"description": "The filter to apply on the operation."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
Expand Down