json - 请求参数RefreshType格式不正确

标签 json azure httprequest azure-logic-apps

我尝试通过逻辑APP处理我的Azure Analysis Service Cube:

enter image description here

在 HTTP 操作中,我有以下正文:

{
    "inputs": {
        "method": "POST",
        "uri": "https://northeurope.asazure.windows.net/servers/xxx/models/xxx/refreshes",
        "body": {
            "refresh": {
                "objects": [
                    {
                        "database": "ModelName",
                        "table": "TableName"
                    }
                ],
                "type": "full"
            }
        },
        "authentication": {
            "type": "ActiveDirectoryOAuth",
            "authority": "https://login.windows.net",
            "tenant": "xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
            "audience": "https://*.asazure.windows.net",
            "clientId": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
            "secret": "xxxxYjxx7y5xxskHxxxxxxznxxxxxxxxODX+xxxxxxxx"
        }
    }
}

运行此逻辑应用后,出现以下错误:

{
    "statusCode": 400,
    "headers": {
        "Strict-Transport-Security": "max-age=xxxxxx00; includeSubDomains",
        "x-ms-root-activity-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
        "x-ms-current-utc-date": "2/7/2019 9:25:05 AM",
        "x-ms-xmlaerror-extended": "Request parameter RefreshType is not in correct format.",
        "Date": "Thu, 07 Feb 2019 09:25:05 GMT",
        "Server": "Microsoft-HTTPAPI/2.0",
        "Content-Length": "294",
        "Content-Type": "application/json; charset=utf-8"
    },
    "body": {
        "code": "BadRequest",
        "subCode": 2,
        "message": "Request parameter RefreshType is not in correct format.",
        "timeStamp": "2019-02-07T09:25:05.4650388Z",
        "httpStatusCode": 400,
        "details": [
            {
                "code": "RootActivityId",
                "message": "353ab74e-2793-4ee5-954f-819c851f4cb6"
            },
            {
                "code": "Param1",
                "message": "RefreshType"
            }
        ]
    }
}

您有什么想法吗,为什么我会收到此错误消息?我该如何解决这个问题

最佳答案

刷新类型是一个枚举,仅从下面的列表中获取值,您可以将类型设置为完整并检查是否有效:

enter image description here

希望有帮助。

关于json - 请求参数RefreshType格式不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54579804/

相关文章:

azure - 为什么无法将数据存储在 Azure 计算实例中?

php - 为什么相同的 http 请求在浏览器中有效,但从我的 Android 应用程序发送时却失败了?

java - 如何使用restfb请求缩短超时时间?

javascript - 在 REQUEST nodejs 中返回 json 主体

python - 使用 request() 发布数据时出现异常 "A JSONObject text must begin with ' {' at character 0 of"

javascript - 使用 JavaScript 对 JSON 文件或至少一个下拉列表进行排序的替代方法?

json - 使用 serde 漂亮地打印没有换行符的 JSON?

javascript - 我如何循环这个 JSON?

azure - 在 Azure 中同步并行操作

azure - 如何使用静态出站 IP 配置 Azure ContainerApps?