Routes - Create
指定したサブスクリプション、リソース グループ、プロファイル、および AzureFrontDoor エンドポイントの下に、指定したルート名を持つ新しいルートを作成します。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}?api-version=2025-04-15
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
endpoint
|
path | True |
string |
グローバルに一意であるプロファイルの下のエンドポイントの名前。 |
profile
|
path | True |
string minLength: 1maxLength: 260 pattern: ^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$ |
リソース グループ内で一意である Azure Front Door Standard または Azure Front Door Premium の名前。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
リソース グループの名前。 名前は大文字と小文字が区別されます。 |
route
|
path | True |
string |
ルーティング規則の名前。 |
subscription
|
path | True |
string (uuid) |
ターゲット サブスクリプションの ID。 値は UUID である必要があります。 |
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
要求本文
名前 | 必須 | 型 | 説明 |
---|---|---|---|
properties.originGroup | True |
配信元グループへの参照。 |
|
properties.cacheConfiguration |
このルートのキャッシュ構成。 キャッシュを無効にするには、cacheConfiguration オブジェクトを指定しないでください。 |
||
properties.customDomains |
このエンドポイントによって参照されるドメイン。 |
||
properties.enabledState |
この規則の使用を有効にするかどうかを指定します。 許可される値は 'Enabled' または 'Disabled' です |
||
properties.forwardingProtocol |
この規則は、トラフィックをバックエンドに転送するときに使用するプロトコルです。 |
||
properties.httpsRedirect |
HTTP トラフィックを HTTPS トラフィックに自動的にリダイレクトするかどうかを指定します。 これは、このルールを設定する簡単な方法であり、実行される最初のルールであることに注意してください。 |
||
properties.linkToDefaultDomain |
このルートが既定のエンドポイント ドメインにリンクされるかどうか。 |
||
properties.originPath |
string |
AzureFrontDoor がコンテンツの取得に使用できる配信元のディレクトリ パス (例: contoso.cloudapp.net/originpath)。 |
|
properties.patternsToMatch |
string[] |
ルールのルート パターン。 |
|
properties.ruleSets |
このエンドポイントによって参照されるルール セット。 |
||
properties.supportedProtocols |
このルートでサポートされているプロトコルの一覧。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
[OK] |
|
201 Created |
作成。 要求が満たされ、新しいエンドポイントが作成されました。 |
|
202 Accepted |
承認された。 要求は処理のために受け入れられ、操作は非同期的に完了します。 ヘッダー location: string |
|
Other Status Codes |
操作が失敗した理由を説明する Azure Front Door エラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー。
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントを偽装する |
例
Routes_Create
要求のサンプル
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1/routes/route1?api-version=2025-04-15
{
"properties": {
"customDomains": [
{
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1"
}
],
"originGroup": {
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1"
},
"originPath": null,
"ruleSets": [
{
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1"
}
],
"supportedProtocols": [
"Https",
"Http"
],
"patternsToMatch": [
"/*"
],
"cacheConfiguration": {
"compressionSettings": {
"contentTypesToCompress": [
"text/html",
"application/octet-stream"
],
"isCompressionEnabled": true
},
"queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings",
"queryParameters": "querystring=test"
},
"forwardingProtocol": "MatchRequest",
"linkToDefaultDomain": "Enabled",
"httpsRedirect": "Enabled",
"enabledState": "Enabled"
}
}
応答のサンプル
{
"name": "route1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1/routes/route1",
"type": "Microsoft.Cdn/profiles/afdendpoints/routes",
"properties": {
"customDomains": [
{
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1"
}
],
"originGroup": {
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1"
},
"originPath": null,
"ruleSets": [
{
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1"
}
],
"supportedProtocols": [
"Https",
"Http"
],
"patternsToMatch": [
"/*"
],
"cacheConfiguration": {
"compressionSettings": {
"contentTypesToCompress": [
"text/html",
"application/octet-stream"
],
"isCompressionEnabled": true
},
"queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings",
"queryParameters": "querystring=test"
},
"forwardingProtocol": "MatchRequest",
"linkToDefaultDomain": "Enabled",
"httpsRedirect": "Enabled",
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
{
"name": "route1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1/routes/route1",
"type": "Microsoft.Cdn/profiles/afdendpoints/routes",
"properties": {
"customDomains": [
{
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1"
}
],
"originGroup": {
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1"
},
"originPath": null,
"ruleSets": [
{
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1"
}
],
"supportedProtocols": [
"Https",
"Http"
],
"patternsToMatch": [
"/*"
],
"cacheConfiguration": {
"compressionSettings": {
"contentTypesToCompress": [
"text/html",
"application/octet-stream"
],
"isCompressionEnabled": true
},
"queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings",
"queryParameters": "querystring=test"
},
"forwardingProtocol": "MatchRequest",
"linkToDefaultDomain": "Enabled",
"httpsRedirect": "Enabled",
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
azure-asyncoperation: https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2025-04-15
{
"name": "route1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1/routes/route1",
"type": "Microsoft.Cdn/profiles/afdendpoints/routes",
"properties": {
"customDomains": [
{
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/domain1"
}
],
"originGroup": {
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1"
},
"originPath": null,
"ruleSets": [
{
"id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1"
}
],
"supportedProtocols": [
"Https",
"Http"
],
"patternsToMatch": [
"/*"
],
"cacheConfiguration": {
"compressionSettings": {
"contentTypesToCompress": [
"text/html",
"application/octet-stream"
],
"isCompressionEnabled": true
},
"queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings",
"queryParameters": "querystring=test"
},
"forwardingProtocol": "MatchRequest",
"linkToDefaultDomain": "Enabled",
"httpsRedirect": "Enabled",
"enabledState": "Enabled",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted"
}
}
定義
名前 | 説明 |
---|---|
Activated |
状態と共に別のリソースへの参照。 |
AFDEndpoint |
顧客のエンドポイントでサポートされているプロトコル。 |
Afd |
プロビジョニング状態 |
afd |
クエリ文字列を含む要求を Frontdoor がキャッシュする方法を定義します。 キャッシュ時、特定のクエリ文字列を無視する場合、一意の URL を使用してすべての要求をキャッシュする場合、または特定のクエリ文字列をキャッシュする場合は、クエリ文字列を無視できます。 |
Afd |
キャッシュの種類のルートのキャッシュ設定。 キャッシュを無効にするには、cacheConfiguration オブジェクトを指定しないでください。 |
Compression |
圧縮の設定。 |
created |
リソースを作成した ID の種類。 |
Deployment |
|
Enabled |
この規則の使用を有効にするかどうかを指定します。 許可される値は 'Enabled' または 'Disabled' です |
Error |
リソース管理エラーの追加情報。 |
Error |
エラーの詳細。 |
Error |
エラー応答 |
Forwarding |
この規則は、トラフィックをバックエンドに転送するときに使用するプロトコルです。 |
https |
HTTP トラフィックを HTTPS トラフィックに自動的にリダイレクトするかどうかを指定します。 これは、このルールを設定する簡単な方法であり、実行される最初のルールであることに注意してください。 |
Link |
このルートが既定のエンドポイント ドメインにリンクされるかどうか。 |
Resource |
別のリソースへの参照。 |
Route |
すべてのルートまたはシークレット関連情報へのフレンドリ ルート名マッピング。 |
system |
リソースの作成と最後の変更に関連するメタデータ。 |
ActivatedResourceReference
状態と共に別のリソースへの参照。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソース ID。 |
isActive |
boolean |
リソースがアクティブか非アクティブか |
AFDEndpointProtocols
顧客のエンドポイントでサポートされているプロトコル。
値 | 説明 |
---|---|
Http | |
Https |
AfdProvisioningState
プロビジョニング状態
値 | 説明 |
---|---|
Creating | |
Deleting | |
Failed | |
Succeeded | |
Updating |
afdQueryStringCachingBehavior
クエリ文字列を含む要求を Frontdoor がキャッシュする方法を定義します。 キャッシュ時、特定のクエリ文字列を無視する場合、一意の URL を使用してすべての要求をキャッシュする場合、または特定のクエリ文字列をキャッシュする場合は、クエリ文字列を無視できます。
値 | 説明 |
---|---|
IgnoreQueryString | |
IgnoreSpecifiedQueryStrings | |
IncludeSpecifiedQueryStrings | |
UseQueryString |
AfdRouteCacheConfiguration
キャッシュの種類のルートのキャッシュ設定。 キャッシュを無効にするには、cacheConfiguration オブジェクトを指定しないでください。
名前 | 型 | 説明 |
---|---|---|
compressionSettings |
圧縮設定。 |
|
queryParameters |
string |
含めるか除外するクエリ パラメーター (コンマ区切り)。 |
queryStringCachingBehavior |
クエリ文字列を含む要求を Frontdoor がキャッシュする方法を定義します。 キャッシュ時、特定のクエリ文字列を無視する場合、一意の URL を使用してすべての要求をキャッシュする場合、または特定のクエリ文字列をキャッシュする場合は、クエリ文字列を無視できます。 |
CompressionSettings
圧縮の設定。
名前 | 型 | 説明 |
---|---|---|
contentTypesToCompress |
string[] |
圧縮が適用されるコンテンツ タイプの一覧。 値は有効な MIME の種類である必要があります。 |
isCompressionEnabled |
boolean |
AzureFrontDoor でコンテンツ圧縮が有効かどうかを示します。 既定値は false です。 圧縮が有効になっている場合、ユーザーが圧縮バージョンを要求した場合、コンテンツは圧縮として処理されます。 要求されたコンテンツが 1 バイト未満または 1 MB より大きい場合、AzureFrontDoor ではコンテンツは圧縮されません。 |
createdByType
リソースを作成した ID の種類。
値 | 説明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
DeploymentStatus
値 | 説明 |
---|---|
Failed | |
InProgress | |
NotStarted | |
Succeeded |
EnabledState
この規則の使用を有効にするかどうかを指定します。 許可される値は 'Enabled' または 'Disabled' です
値 | 説明 |
---|---|
Disabled | |
Enabled |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
名前 | 型 | 説明 |
---|---|---|
info |
object |
追加情報。 |
type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
名前 | 型 | 説明 |
---|---|---|
additionalInfo |
エラーの追加情報。 |
|
code |
string |
エラー コード。 |
details |
エラーの詳細。 |
|
message |
string |
エラー メッセージ。 |
target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
名前 | 型 | 説明 |
---|---|---|
error |
エラー オブジェクト。 |
ForwardingProtocol
この規則は、トラフィックをバックエンドに転送するときに使用するプロトコルです。
値 | 説明 |
---|---|
HttpOnly | |
HttpsOnly | |
MatchRequest |
httpsRedirect
HTTP トラフィックを HTTPS トラフィックに自動的にリダイレクトするかどうかを指定します。 これは、このルールを設定する簡単な方法であり、実行される最初のルールであることに注意してください。
値 | 説明 |
---|---|
Disabled | |
Enabled |
LinkToDefaultDomain
このルートが既定のエンドポイント ドメインにリンクされるかどうか。
値 | 説明 |
---|---|
Disabled | |
Enabled |
ResourceReference
別のリソースへの参照。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソース ID。 |
Route
すべてのルートまたはシークレット関連情報へのフレンドリ ルート名マッピング。
名前 | 型 | 規定値 | 説明 |
---|---|---|---|
id |
string (arm-id) |
リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
|
name |
string |
リソースの名前 |
|
properties.cacheConfiguration |
このルートのキャッシュ構成。 キャッシュを無効にするには、cacheConfiguration オブジェクトを指定しないでください。 |
||
properties.customDomains |
このエンドポイントによって参照されるドメイン。 |
||
properties.deploymentStatus | |||
properties.enabledState |
この規則の使用を有効にするかどうかを指定します。 許可される値は 'Enabled' または 'Disabled' です |
||
properties.endpointName |
string |
ルートを保持するエンドポイントの名前。 |
|
properties.forwardingProtocol | MatchRequest |
この規則は、トラフィックをバックエンドに転送するときに使用するプロトコルです。 |
|
properties.httpsRedirect | Disabled |
HTTP トラフィックを HTTPS トラフィックに自動的にリダイレクトするかどうかを指定します。 これは、このルールを設定する簡単な方法であり、実行される最初のルールであることに注意してください。 |
|
properties.linkToDefaultDomain | Disabled |
このルートが既定のエンドポイント ドメインにリンクされるかどうか。 |
|
properties.originGroup |
配信元グループへの参照。 |
||
properties.originPath |
string |
AzureFrontDoor がコンテンツの取得に使用できる配信元のディレクトリ パス (例: contoso.cloudapp.net/originpath)。 |
|
properties.patternsToMatch |
string[] |
ルールのルート パターン。 |
|
properties.provisioningState |
プロビジョニング状態 |
||
properties.ruleSets |
このエンドポイントによって参照されるルール セット。 |
||
properties.supportedProtocols | [ "Http", "Https" ] |
このルートでサポートされているプロトコルの一覧。 |
|
systemData |
createdBy および modifiedBy 情報を含む Azure Resource Manager メタデータ。 |
||
type |
string |
リソースの型。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts" |
systemData
リソースの作成と最後の変更に関連するメタデータ。
名前 | 型 | 説明 |
---|---|---|
createdAt |
string (date-time) |
リソース作成のタイムスタンプ (UTC)。 |
createdBy |
string |
リソースを作成した ID。 |
createdByType |
リソースを作成した ID の種類。 |
|
lastModifiedAt |
string (date-time) |
リソースの最終変更のタイムスタンプ (UTC) |
lastModifiedBy |
string |
リソースを最後に変更した ID。 |
lastModifiedByType |
リソースを最後に変更した ID の種類。 |