共用方式為


Api Issue - List By Service

列出與指定 API 相關聯的所有問題。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues?api-version=2021-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues?$filter={$filter}&expandCommentsAttachments={expandCommentsAttachments}&$top={$top}&$skip={$skip}&api-version=2021-08-01

URI 參數

名稱 位於 必要 類型 Description
apiId
path True

string

minLength: 1
maxLength: 80

API 識別碼。 目前 API 管理服務實例中必須是唯一的。

resourceGroupName
path True

string

資源群組的名稱。

serviceName
path True

string

minLength: 1
maxLength: 50
pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$

API 管理服務的名稱。

subscriptionId
path True

string

可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。

api-version
query True

string

要與用戶端要求搭配使用的 API 版本。

$filter
query

string

|欄位 |使用量 |支持的運算子 |支援的函式 |
|-------------|-------------|-------------|-------------|
|name |filter |ge, le, eq, ne, gt, lt |substringof、contains、startswith、endswith |
|userId |filter |ge, le, eq, ne, gt, lt |substringof、contains、startswith、endswith |
|state |filter |eq | |

$skip
query

integer (int32)

minimum: 0

要略過的記錄數目。

$top
query

integer (int32)

minimum: 1

要傳回的記錄數目。

expandCommentsAttachments
query

boolean

展開批註附件。

回應

名稱 類型 Description
200 OK

IssueCollection

分頁 API 問題的結果回應。

Other Status Codes

ErrorResponse

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

ApiManagementListApiIssues

範例要求

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a/issues?api-version=2021-08-01

範例回覆

{
  "value": [
    {
      "id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a/issues/57d2ef278aa04f0ad01d6cdc",
      "type": "Microsoft.ApiManagement/service/apis/issues",
      "name": "57d2ef278aa04f0ad01d6cdc",
      "properties": {
        "title": "New API issue",
        "description": "New API issue description",
        "createdDate": "2018-02-01T22:21:20.467Z",
        "state": "open",
        "userId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1",
        "apiId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a"
      }
    }
  ],
  "count": 1,
  "nextLink": ""
}

定義

名稱 Description
ErrorFieldContract

錯誤欄位合約。

ErrorResponse

錯誤回應。

IssueCollection

分頁發行清單表示法。

IssueContract

問題合約詳細數據。

State

問題的狀態。

ErrorFieldContract

錯誤欄位合約。

名稱 類型 Description
code

string

屬性層級錯誤碼。

message

string

人類可讀取的屬性層級錯誤表示法。

target

string

屬性名稱。

ErrorResponse

錯誤回應。

名稱 類型 Description
error.code

string

服務定義的錯誤碼。 此程式代碼可作為回應中所指定 HTTP 錯誤碼的子狀態。

error.details

ErrorFieldContract[]

要求中傳送無效欄位的清單,以防驗證錯誤。

error.message

string

人類可讀取的錯誤表示法。

IssueCollection

分頁發行清單表示法。

名稱 類型 Description
count

integer (int64)

所有頁面的總記錄計數數目。

nextLink

string

如果有的話,下一頁連結。

value

IssueContract[]

問題值。

IssueContract

問題合約詳細數據。

名稱 類型 Description
id

string

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

資源的名稱

properties.apiId

string

建立問題之 API 的資源識別碼。

properties.createdDate

string (date-time)

建立問題的日期和時間。

properties.description

string

描述問題的文字。

properties.state

State

問題的狀態。

properties.title

string

問題標題。

properties.userId

string

使用者建立問題的資源標識碼。

type

string

資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

State

問題的狀態。

Description
closed

問題已關閉。

open

問題已開啟。

proposed

建議此問題。

removed

問題已移除。

resolved

問題現已解決。