【问题标题】:azure -command not found while running GET command运行 GET 命令时找不到 azure -command
【发布时间】:2019-03-26 21:24:36
【问题描述】:
curl -X GET -H "Authorization: Bearer<token>" -H "Content-Type: application/json" https://management.azure.com/subscriptions/xxxx-xxx-xxxxxx-xxxxxxxxx/providers/microsoft.insights/eventtypes/management/values?api-version=2015-04-01&$filter=eventTimestamp ge '2019-03-21T00:00:00Z' and eventTimestamp le '2019-03-24T20:40:00Z' and resourceGroupName eq 'name'&$select=operationName,status,level

此命令用于收集 azure 活动日志我在 CLI 中运行此命令给出错误 bash:=,状态,级别:找不到命令... bash: =e​​ventTimestamp: 找不到命令...

【问题讨论】:

    标签: azure curl get


    【解决方案1】:

    您好,我自己找到了解决方案

    您正在使用的 POST 请求复制并粘贴到 Postman(软件)。然后点击“代码”。 https://management.azure.com/subscriptions/xxxx-xxxxx-xxxxx-xxx/providers/microsoft.insights/eventtypes/management/values?api-version=2015-04-01&amp;$filter=eventTimestamp%20ge%20%272019-03-21T00:00:00Z%27%20and%20eventTimestamp%20le%20%272019-03-24T20:40:00Z%27%20and%20resourceGroupName%20eq%20%27Ajay%27&amp;$select=operationName,status,level'

    【讨论】:

    • %20 = 空格和 %27= '
    猜你喜欢
    • 1970-01-01
    • 2019-11-12
    • 1970-01-01
    • 1970-01-01
    • 2021-02-23
    • 1970-01-01
    • 2017-04-25
    • 2014-03-18
    • 2015-06-14
    相关资源
    最近更新 更多