Skip to content

Commit

Permalink
Fixing issue Azure#2467 In List Activity Logs $filter is not optional…
Browse files Browse the repository at this point in the history
… and it requires at least a start time.
  • Loading branch information
gucalder committed Jun 28, 2019
1 parent 0602217 commit 2af54a5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"name": "$filter",
"in": "query",
"type": "string",
"required": false,
"description": "Reduces the set of data collected.<br>The **$filter** argument is very restricted and allows only the following patterns.<br>- *List events for a resource group*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq 'resourceGroupName'.<br>- *List events for resource*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.<br>- *List events for a subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.<br>- *List events for a resource provider*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.<br>- *List events for a correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.<br><br>**NOTE**: No other syntax is allowed."
"required": true,
"description": "Reduces the set of data collected.<br>This argument is required and it also requires at least the start date/time.<br>The **$filter** argument is very restricted and allows only the following patterns.<br>- *List events for a resource group*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq 'resourceGroupName'.<br>- *List events for resource*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.<br>- *List events for a subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.<br>- *List events for a resource provider*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.<br>- *List events for a correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.<br><br>**NOTE**: No other syntax is allowed."
},
{
"$ref": "#/parameters/SelectParameter"
Expand Down Expand Up @@ -80,9 +80,7 @@
},
"x-ms-odata": "#/definitions/EventData",
"x-ms-examples": {
"Get Activity Logs without filter or select": { "$ref": "./examples/GetActivityLogsNoParams.json" },
"Get Activity Logs with filter": { "$ref": "./examples/GetActivityLogsFiltered.json" },
"Get Activity Logs with select": { "$ref": "./examples/GetActivityLogsSelected.json" },
"Get Activity Logs with filter and select": { "$ref": "./examples/GetActivityLogsFilteredAndSelected.json" }
}
}
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 2af54a5

Please sign in to comment.