Certificates - Create Or Update
証明書の作成または更新の説明。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}?api-version=2025-05-01
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
name
|
path | True |
string |
証明書の名前。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
リソース グループの名前。 名前は大文字と小文字が区別されます。 |
|
subscription
|
path | True |
string (uuid) |
ターゲット サブスクリプションの ID。 値は UUID である必要があります。 |
|
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
要求本文
| 名前 | 必須 | 型 | 説明 |
|---|---|---|---|
| location | True |
string |
リソースが存在する地理的な場所 |
| kind |
string |
リソースの種類。 リソースがアプリの場合は、サポートされている種類の値の詳細については、https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference を参照してください。 |
|
| properties.canonicalName |
string |
無料証明書を使用して発行される証明書の CNAME |
|
| properties.domainValidationMethod |
string |
無料証明書のドメイン検証の方法 |
|
| properties.hostNames |
string[] |
証明書が適用されるホスト名。 |
|
| properties.keyVaultId |
string (arm-id) |
Azure Key Vault Csm リソース ID。 |
|
| properties.keyVaultSecretName |
string |
Azure Key Vault シークレット名。 |
|
| properties.password |
string |
証明書のパスワード。 |
|
| properties.pfxBlob |
string (byte) |
Pfx BLOB。 |
|
| properties.serverFarmId |
string (arm-id) |
関連付けられている App Service プランのリソース ID。 |
|
| tags |
object |
リソース タグ。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
リソース「証明書」更新操作が成功しました |
|
| Other Status Codes |
予期しないエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー。
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
| 名前 | 説明 |
|---|---|
| user_impersonation | ユーザー アカウントを偽装する |
例
Create Or Update Certificate
要求のサンプル
応答のサンプル
{
"name": "testc6282",
"type": "Microsoft.Web/certificates",
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282",
"location": "East US",
"properties": {
"expirationDate": "2039-12-31T23:59:59+00:00",
"friendlyName": "",
"hostNames": [
"ServerCert"
],
"issueDate": "2015-11-12T23:40:25+00:00",
"issuer": "CACert",
"subjectName": "ServerCert",
"thumbprint": "FE703D7411A44163B6D32B3AD9B03E175886EBFE"
}
}
定義
| 名前 | 説明 |
|---|---|
| Certificate |
アプリの SSL 証明書。 |
|
created |
リソースを作成した ID の種類。 |
|
Default |
App Service エラー応答。 |
|
Default |
エラー モデル。 |
|
Default |
詳細なエラー。 |
|
Hosting |
このリソースに使用する App Service Environment の仕様。 |
|
Key |
Key Vault シークレットの状態。 |
|
system |
リソースの作成と最後の変更に関連するメタデータ。 |
Certificate
アプリの SSL 証明書。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string (arm-id) |
リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| kind |
string |
リソースの種類。 リソースがアプリの場合は、サポートされている種類の値の詳細については、https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference を参照してください。 |
| location |
string |
リソースが存在する地理的な場所 |
| name |
string |
リソースの名前 |
| properties.canonicalName |
string |
無料証明書を使用して発行される証明書の CNAME |
| properties.cerBlob |
string (byte) |
.cer ファイルの生バイト数 |
| properties.domainValidationMethod |
string |
無料証明書のドメイン検証の方法 |
| properties.expirationDate |
string (date-time) |
証明書の有効期限。 |
| properties.friendlyName |
string |
証明書のフレンドリ名。 |
| properties.hostNames |
string[] |
証明書が適用されるホスト名。 |
| properties.hostingEnvironmentProfile |
証明書に使用する App Service Environment の仕様。 |
|
| properties.issueDate |
string (date-time) |
証明書の発行日。 |
| properties.issuer |
string |
証明書の発行者。 |
| properties.keyVaultId |
string (arm-id) |
Azure Key Vault Csm リソース ID。 |
| properties.keyVaultSecretName |
string |
Azure Key Vault シークレット名。 |
| properties.keyVaultSecretStatus |
Key Vault シークレットの状態。 |
|
| properties.password |
string |
証明書のパスワード。 |
| properties.pfxBlob |
string (byte) |
Pfx BLOB。 |
| properties.publicKeyHash |
string |
公開キー ハッシュ。 |
| properties.selfLink |
string |
セルフリンク。 |
| properties.serverFarmId |
string (arm-id) |
関連付けられている App Service プランのリソース ID。 |
| properties.siteName |
string |
[アプリ名]: |
| properties.subjectName |
string |
証明書のサブジェクト名。 |
| properties.thumbprint |
string |
証明書の拇印。 |
| properties.valid |
boolean |
証明書は有効ですか? |
| systemData |
createdBy および modifiedBy 情報を含む Azure Resource Manager メタデータ。 |
|
| tags |
object |
リソース タグ。 |
| type |
string |
リソースの型。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts" |
createdByType
リソースを作成した ID の種類。
| 値 | 説明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DefaultErrorResponse
App Service エラー応答。
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー モデル。 |
DefaultErrorResponseError
エラー モデル。
| 名前 | 型 | 説明 |
|---|---|---|
| code |
string |
プログラムでエラーを識別するための標準化された文字列。 |
| details |
詳細なエラー。 |
|
| innererror |
string |
エラーのデバッグに関する詳細情報。 |
| message |
string |
詳細なエラーの説明とデバッグ情報。 |
| target |
string |
詳細なエラーの説明とデバッグ情報。 |
DefaultErrorResponseErrorDetailsItem
詳細なエラー。
| 名前 | 型 | 説明 |
|---|---|---|
| code |
string |
プログラムでエラーを識別するための標準化された文字列。 |
| message |
string |
詳細なエラーの説明とデバッグ情報。 |
| target |
string |
詳細なエラーの説明とデバッグ情報。 |
HostingEnvironmentProfile
このリソースに使用する App Service Environment の仕様。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
App Service Environment のリソース ID。 |
| name |
string |
App Service 環境の名前。 |
| type |
string |
App Service Environment のリソースの種類。 |
KeyVaultSecretStatus
Key Vault シークレットの状態。
| 値 | 説明 |
|---|---|
| Initialized | |
| WaitingOnCertificateOrder | |
| Succeeded | |
| CertificateOrderFailed | |
| OperationNotPermittedOnKeyVault | |
| AzureServiceUnauthorizedToAccessKeyVault | |
| KeyVaultDoesNotExist | |
| KeyVaultSecretDoesNotExist | |
| UnknownError | |
| ExternalPrivateKey | |
| Unknown |
systemData
リソースの作成と最後の変更に関連するメタデータ。
| 名前 | 型 | 説明 |
|---|---|---|
| createdAt |
string (date-time) |
リソース作成のタイムスタンプ (UTC)。 |
| createdBy |
string |
リソースを作成した ID。 |
| createdByType |
リソースを作成した ID の種類。 |
|
| lastModifiedAt |
string (date-time) |
リソースの最終変更のタイムスタンプ (UTC) |
| lastModifiedBy |
string |
リソースを最後に変更した ID。 |
| lastModifiedByType |
リソースを最後に変更した ID の種類。 |