Custom Domains - Create Or Update
1 つのライフサイクル アプリケーションのカスタム ドメインを作成または更新します。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}?api-version=2023-12-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
app
|
path | True |
string |
アプリ リソースの名前。 |
domain
|
path | True |
string |
カスタム ドメイン リソースの名前。 |
resource
|
path | True |
string |
リソースを含むリソース グループの名前。 この値は、Azure Resource Manager API またはポータルから取得できます。 |
service
|
path | True |
string pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ |
サービス リソースの名前。 |
subscription
|
path | True |
string |
Microsoft Azure サブスクリプションを一意に識別するサブスクリプション ID を取得します。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。 |
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
要求本文
名前 | 型 | 説明 |
---|---|---|
properties |
カスタム ドメイン リソースのプロパティ。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
成功。 応答では、更新された既存のカスタム ドメインについて説明します。 |
|
201 Created |
作成。 応答は、新しいカスタム ドメインを記述し、操作の結果を照会するための Azure-AsyncOperation ヘッダーを含みます。 |
|
202 Accepted |
受け入れ られる。 応答は、終了しているカスタム ドメインが更新中であることを示し、操作の結果を照会するための Location ヘッダーが含まれています。 |
|
Other Status Codes |
操作が失敗した理由を説明するエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントを偽装する |
例
CustomDomains_CreateOrUpdate
要求のサンプル
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/domains/mydomain.com?api-version=2023-12-01
{
"properties": {
"thumbprint": "934367bf1c97033f877db0f15cb1b586957d3133",
"certName": "mycert"
}
}
応答のサンプル
{
"properties": {
"thumbprint": "934367bf1c97033f877db0f15cb1b586957d3133",
"appName": "myapp",
"certName": "mycert"
},
"systemData": {
"createdBy": "sample-user",
"createdByType": "User",
"createdAt": "2021-08-11T03:16:03.944Z",
"lastModifiedBy": "sample-user",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-11T03:17:03.944Z"
},
"type": "Microsoft.AppPlatform/Spring/apps/domains",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/domains/mydomain.com",
"name": "mydomain.com"
}
{
"properties": {
"thumbprint": "934367bf1c97033f877db0f15cb1b586957d3133",
"appName": "myapp",
"certName": "mycert"
},
"systemData": {
"createdBy": "sample-user",
"createdByType": "User",
"createdAt": "2021-08-11T03:16:03.944Z",
"lastModifiedBy": "sample-user",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-11T03:17:03.944Z"
},
"type": "Microsoft.AppPlatform/Spring/apps/domains",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/domains/mydomain.com",
"name": "mydomain.com"
}
{
"properties": {
"thumbprint": "934367bf1c97033f877db0f15cb1b586957d3133",
"appName": "myapp",
"certName": "mycert"
},
"systemData": {
"createdBy": "sample-user",
"createdByType": "User",
"createdAt": "2021-08-11T03:16:03.944Z",
"lastModifiedBy": "sample-user",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-11T03:17:03.944Z"
},
"type": "Microsoft.AppPlatform/Spring/apps/domains",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/domains/mydomain.com",
"name": "mydomain.com"
}
定義
名前 | 説明 |
---|---|
Cloud |
サービスからのエラー応答。 |
Cloud |
サービスからのエラー応答。 |
created |
リソースを作成した ID の種類。 |
Custom |
アプリ リソース ペイロードのカスタム ドメイン。 |
Custom |
カスタム ドメイン リソース ペイロード。 |
Custom |
ドメインのプロビジョニング状態 |
last |
リソースを最後に変更した ID の種類。 |
System |
リソースの作成と最後の変更に関連するメタデータ。 |
CloudError
サービスからのエラー応答。
名前 | 型 | 説明 |
---|---|---|
error |
サービスからのエラー応答。 |
CloudErrorBody
サービスからのエラー応答。
名前 | 型 | 説明 |
---|---|---|
code |
string |
エラーの識別子。 コードは不変であり、プログラムで使用することを目的としています。 |
details |
エラーに関する追加の詳細の一覧。 |
|
message |
string |
ユーザー インターフェイスでの表示に適したエラーを説明するメッセージ。 |
target |
string |
特定のエラーのターゲット。 たとえば、エラーが発生したプロパティの名前です。 |
createdByType
リソースを作成した ID の種類。
値 | 説明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
CustomDomainProperties
アプリ リソース ペイロードのカスタム ドメイン。
名前 | 型 | 説明 |
---|---|---|
appName |
string |
ドメインのアプリ名。 |
certName |
string |
ドメインのバインドされた証明書名。 |
provisioningState |
ドメインのプロビジョニング状態 |
|
thumbprint |
string |
バインドされた証明書の拇印。 |
CustomDomainResource
カスタム ドメイン リソース ペイロード。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソースの完全修飾リソース ID。 |
name |
string |
リソースの名前。 |
properties |
カスタム ドメイン リソースのプロパティ。 |
|
systemData |
リソースの作成と最後の変更に関連するメタデータ。 |
|
type |
string |
リソースの種類。 |
CustomDomainResourceProvisioningState
ドメインのプロビジョニング状態
値 | 説明 |
---|---|
Creating | |
Deleting | |
Failed | |
Succeeded | |
Updating |
lastModifiedByType
リソースを最後に変更した ID の種類。
値 | 説明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
SystemData
リソースの作成と最後の変更に関連するメタデータ。
名前 | 型 | 説明 |
---|---|---|
createdAt |
string (date-time) |
リソース作成のタイムスタンプ (UTC)。 |
createdBy |
string |
リソースを作成した ID。 |
createdByType |
リソースを作成した ID の種類。 |
|
lastModifiedAt |
string (date-time) |
リソース変更のタイムスタンプ (UTC)。 |
lastModifiedBy |
string |
リソースを最後に変更した ID。 |
lastModifiedByType |
リソースを最後に変更した ID の種類。 |