删除商业市场的报表查询 API

此 API 删除用户定义的查询。

请求语法

方法 请求 URI
DELETE https://api.partnercenter.microsoft.com/insights/v1.1/cmp/ScheduledQueries/{queryId}

请求标头

页眉 类型 描述
授权 字符串 必需。 表单中的 Microsoft Entra 访问令牌 Bearer <token>
Content-Type string Application/JSON

路径参数

参数名称 类型 描述
queryId string 进行筛选以仅获取此参数中给定 ID 的查询的详细信息

查询参数

请求有效负载

术语表

响应

响应有效负载的结构如下所示,采用 JSON 格式。

响应代码:200、400、401、403、404、500

响应有效负载:

{
  "Value": [
    {
      "QueryId": "string",
      "Name": "string",
      "Description": "string",
      "Query": "string",
      "Type": "string",
      "User": "string",
      "CreatedTime": "string",
    }
  ],
  "TotalCount": 0,
  "Message": "string",
  "StatusCode": 0
}

术语表

此表列出了响应中元素的关键定义。

参数 描述
QueryId 已删除查询的唯一 UUID。
Name 已删除查询的名称
Description 已删除查询的说明
Query 已删除查询的报表查询字符串
Type userDefined
User 创建查询的用户 ID
CreatedTime 创建查询的时间
TotalCount 值数组中的数据集数目
StatusCode 结果代码。 可能的值为 200、400、401、403、500