共用方式為


Cache - List By Service

列出指定服務實例中所有外部快取的集合。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches?api-version=2024-05-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches?$top={$top}&$skip={$skip}&api-version=2024-05-01

URI 參數

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

string

minLength: 1
maxLength: 90

資源群組的名稱。 名稱不區分大小寫。

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 (uuid)

目標訂用帳戶的標識碼。 此值必須是 UUID。

api-version
query True

string

minLength: 1

要用於這項作業的 API 版本。

$skip
query

integer (int32)

minimum: 0

要略過的記錄數目。

$top
query

integer (int32)

minimum: 1

要傳回的記錄數目。

回應

名稱 類型 Description
200 OK

CacheCollection

傳回 Cache 實體的集合。

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 模擬您的用戶帳戶

範例

ApiManagementListCaches

範例要求

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/caches?api-version=2024-05-01

範例回覆

{
  "value": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/caches/c1",
      "type": "Microsoft.ApiManagement/service/caches",
      "name": "c1",
      "properties": {
        "useFromLocation": "default",
        "description": "Redis cache instances in West India",
        "connectionString": "{{5f7fbca77a891a2200f3db38}}",
        "resourceId": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redis/apimservice1"
      }
    }
  ],
  "count": 1
}

定義

名稱 Description
CacheCollection

分頁快取清單表示。

CacheContract

快取詳細數據。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

CacheCollection

分頁快取清單表示。

名稱 類型 Description
count

integer (int64)

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

nextLink

string

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

value

CacheContract[]

頁面值。

CacheContract

快取詳細數據。

名稱 類型 Description
id

string

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

name

string

資源的名稱

properties.connectionString

string

maxLength: 300

要快取的運行時間連接字串

properties.description

string

maxLength: 2000

快取描述

properties.resourceId

string

maxLength: 2000

外部系統快取中實體的原始 URI 指向

properties.useFromLocation

string

maxLength: 256

使用快取的來源位置識別碼 (應該是 'default' 或有效的 Azure 區域識別碼)

type

string

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

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳細數據。

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

error 物件。