你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ITenantActivityLogsOperations.ListWithHttpMessagesAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取租户的活动日志。<br>适用于 API 以获取订阅的活动日志的所有内容都适用于此 API, (参数、$filter等) 。<此处>需要指出的一点是,此 API 不会 在租户的单个订阅中检索日志,而只会显示租户级别生成的日志。
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Monitor.Models.EventData>>> ListWithHttpMessagesAsync (Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Monitor.Models.EventData> odataQuery = default, string select = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListWithHttpMessagesAsync : Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Monitor.Models.EventData> * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Monitor.Models.EventData>>>
Public Function ListWithHttpMessagesAsync (Optional odataQuery As ODataQuery(Of EventData) = Nothing, Optional select As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of EventData)))
参数
- odataQuery
- ODataQuery<EventData>
要应用于操作的 OData 参数。
- select
- String
用于提取仅具有给定属性的事件。<br>$select 参数是要返回的属性名称的逗号分隔列表。 可能的值包括: authorization、 claims、 correlationId、 description、 eventDataId、 eventName、 eventTimestamp、 httpRequest、 level、 operationId、 operationName、 properties、 resourceGroupName、 resourceProviderName、 resourceId、 status、 submissionTimestamp、 subStatus、 subscriptionId
- customHeaders
- Dictionary<String,List<String>>
将添加到请求的标头。
- cancellationToken
- CancellationToken
取消标记。
返回
例外
当操作返回无效状态代码时引发
无法反序列化响应时引发
当所需参数为 null 时引发