Email Template - List By Service
取得所有電子郵件範本
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates?api-version=2024-05-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates?$filter={$filter}&$top={$top}&$skip={$skip}&api-version=2024-05-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
資源群組的名稱。 名稱不區分大小寫。 |
service
|
path | True |
string minLength: 1maxLength: 50 pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$ |
API 管理服務的名稱。 |
subscription
|
path | True |
string (uuid) |
目標訂用帳戶的標識碼。 此值必須是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
要用於這項作業的 API 版本。 |
$filter
|
query |
string |
|欄位 |使用量 |支持的運算子 |支援的函式 | |
|
$skip
|
query |
integer (int32) minimum: 0 |
要略過的記錄數目。 |
|
$top
|
query |
integer (int32) minimum: 1 |
要傳回的記錄數目。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
指定之 API 管理服務實例的電子郵件範本集合。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
ApiManagementListTemplates
範例要求
範例回覆
{
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/templates/ApplicationApprovedNotificationMessage",
"type": "Microsoft.ApiManagement/service/templates",
"name": "ApplicationApprovedNotificationMessage",
"properties": {
"subject": "Your application $AppName is published in the application gallery",
"body": "<!DOCTYPE html >\r\n<html>\r\n <head />\r\n <body>\r\n <p style=\"font-size:12pt;font-family:'Segoe UI'\">Dear $DevFirstName $DevLastName,</p>\r\n <p style=\"font-size:12pt;font-family:'Segoe UI'\">\r\n We are happy to let you know that your request to publish the $AppName application in the application gallery has been approved. Your application has been published and can be viewed <a href=\"http://$DevPortalUrl/Applications/Details/$AppId\">here</a>.\r\n </p>\r\n <p style=\"font-size:12pt;font-family:'Segoe UI'\">Best,</p>\r\n <p style=\"font-size:12pt;font-family:'Segoe UI'\">The $OrganizationName API Team</p>\r\n </body>\r\n</html>",
"title": "Application gallery submission approved",
"description": "Developers who submitted their application for publication in the application gallery on the developer portal receive this email after their submission is approved.",
"isDefault": true,
"parameters": [
{
"name": "AppId",
"title": "Application id"
},
{
"name": "AppName",
"title": "Application name"
},
{
"name": "DevFirstName",
"title": "Developer first name"
},
{
"name": "DevLastName",
"title": "Developer last name"
},
{
"name": "OrganizationName",
"title": "Organization name"
},
{
"name": "DevPortalUrl",
"title": "Developer portal URL"
}
]
}
}
],
"count": 1,
"nextLink": ""
}
定義
名稱 | Description |
---|---|
Email |
分頁電子郵件範本清單表示法。 |
Email |
電子郵件範本詳細數據。 |
Email |
電子郵件範本參數合約。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Error |
錯誤回應 |
EmailTemplateCollection
分頁電子郵件範本清單表示法。
名稱 | 類型 | Description |
---|---|---|
count |
integer (int64) |
所有頁面的總記錄計數數目。 |
nextLink |
string |
如果有的話,下一頁連結。 |
value |
頁面值。 |
EmailTemplateContract
電子郵件範本詳細數據。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
資源的名稱 |
properties.body |
string minLength: 1 |
電子郵件範本內文。 這應該是有效的 XDocument |
properties.description |
string |
電子郵件範本的描述。 |
properties.isDefault |
boolean |
範本是 API 管理所提供的預設範本,還是已編輯。 |
properties.parameters |
電子郵件範本參數值。 |
|
properties.subject |
string minLength: 1maxLength: 1000 |
範本的主旨。 |
properties.title |
string |
範本的標題。 |
type |
string |
資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
EmailTemplateParametersContractProperties
電子郵件範本參數合約。
名稱 | 類型 | Description |
---|---|---|
description |
string minLength: 1maxLength: 256 pattern: ^[A-Za-z0-9-._]+$ |
範本參數描述。 |
name |
string minLength: 1maxLength: 256 pattern: ^[A-Za-z0-9-._]+$ |
範本參數名稱。 |
title |
string minLength: 1maxLength: 4096 |
範本參數標題。 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |