Gateway - List By Service
列出向服務實例註冊的網關集合。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways?api-version=2021-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways?$filter={$filter}&$top={$top}&$skip={$skip}&api-version=2021-08-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
資源群組的名稱。 |
service
|
path | True |
string minLength: 1maxLength: 50 pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$ |
API 管理服務的名稱。 |
subscription
|
path | True |
string |
可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。 |
api-version
|
query | True |
string |
要與用戶端要求搭配使用的 API 版本。 |
$filter
|
query |
string |
|欄位 |使用量 |支持的運算子 |支援的函式 | |
|
$skip
|
query |
integer (int32) minimum: 0 |
要略過的記錄數目。 |
|
$top
|
query |
integer (int32) minimum: 1 |
要傳回的記錄數目。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
列出閘道實體的集合。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
ApiManagementListGateways
範例要求
範例回覆
{
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/gateways/gw1",
"type": "Microsoft.ApiManagement/service/gateways",
"name": "a1",
"properties": {
"description": "my gateway 1",
"locationData": {
"name": "my location 1"
}
}
},
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/gateways/gw2",
"type": "Microsoft.ApiManagement/service/gateways",
"name": "5a73933b8f27f7cc82a2d533",
"properties": {
"description": "my gateway 2",
"locationData": {
"name": "my location 2"
}
}
}
],
"count": 2,
"nextLink": ""
}
定義
名稱 | Description |
---|---|
Error |
錯誤欄位合約。 |
Error |
錯誤回應。 |
Gateway |
分頁閘道清單表示法。 |
Gateway |
閘道詳細數據。 |
Resource |
資源位置數據屬性。 |
ErrorFieldContract
錯誤欄位合約。
名稱 | 類型 | Description |
---|---|---|
code |
string |
屬性層級錯誤碼。 |
message |
string |
人類可讀取的屬性層級錯誤表示法。 |
target |
string |
屬性名稱。 |
ErrorResponse
錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error.code |
string |
服務定義的錯誤碼。 此程式代碼可作為回應中所指定 HTTP 錯誤碼的子狀態。 |
error.details |
要求中傳送無效欄位的清單,以防驗證錯誤。 |
|
error.message |
string |
人類可讀取的錯誤表示法。 |
GatewayCollection
分頁閘道清單表示法。
名稱 | 類型 | Description |
---|---|---|
count |
integer (int64) |
所有頁面的總記錄計數數目。 |
nextLink |
string |
如果有的話,下一頁連結。 |
value |
頁面值。 |
GatewayContract
閘道詳細數據。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
資源的名稱 |
properties.description |
string maxLength: 1000 |
閘道描述 |
properties.locationData |
閘道位置。 |
|
type |
string |
資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
ResourceLocationDataContract
資源位置數據屬性。
名稱 | 類型 | Description |
---|---|---|
city |
string maxLength: 256 |
資源所在的城市或位置。 |
countryOrRegion |
string maxLength: 256 |
資源所在的國家或地區。 |
district |
string maxLength: 256 |
資源所在的地區、州或省。 |
name |
string maxLength: 256 |
地理或實體位置的正式名稱。 |