Certificates - Create Or Update
인증서 만들기 또는 업데이트에 대한 설명입니다.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}?api-version=2023-01-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
name
|
path | True |
string |
인증서의 이름입니다. |
resource
|
path | True |
string |
리소스가 속한 리소스 그룹의 이름입니다. Regex pattern: |
subscription
|
path | True |
string |
Azure 구독 ID. GUID 형식 문자열입니다(예: 000000000-0000-0000-0000-0000-000000000000). |
api-version
|
query | True |
string |
API 버전 |
요청 본문
Name | 필수 | 형식 | Description |
---|---|---|---|
location | True |
string |
리소스 위치입니다. |
kind |
string |
리소스 종류입니다. |
|
properties.canonicalName |
string |
무료 인증서를 통해 발급할 인증서의 CNAME |
|
properties.domainValidationMethod |
string |
무료 인증서에 대한 도메인 유효성 검사 방법 |
|
properties.hostNames |
string[] |
인증서가 적용되는 호스트 이름입니다. |
|
properties.keyVaultId |
string |
Csm 리소스 ID를 Key Vault. |
|
properties.keyVaultSecretName |
string |
비밀 이름을 Key Vault. |
|
properties.password |
string |
인증서 암호입니다. |
|
properties.pfxBlob |
string |
Pfx Blob. |
|
properties.serverFarmId |
string |
"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}"으로 형식이 지정된 연결된 App Service 계획의 리소스 ID입니다. |
|
tags |
object |
리소스 태그. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
OK. |
|
Other Status Codes |
오류 응답을 App Service. |
보안
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | 사용자 계정 가장 |
예제
Create Or Update Certificate
Sample Request
PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282?api-version=2023-01-01
{
"location": "East US",
"properties": {
"hostNames": [
"ServerCert"
],
"password": "<password>"
}
}
Sample Response
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282",
"name": "testc6282",
"type": "Microsoft.Web/certificates",
"location": "East US",
"properties": {
"friendlyName": "",
"subjectName": "ServerCert",
"hostNames": [
"ServerCert"
],
"issuer": "CACert",
"issueDate": "2015-11-12T23:40:25+00:00",
"expirationDate": "2039-12-31T23:59:59+00:00",
"thumbprint": "FE703D7411A44163B6D32B3AD9B03E175886EBFE"
}
}
정의
Name | Description |
---|---|
Certificate |
앱에 대한 SSL 인증서입니다. |
Default |
오류 응답을 App Service. |
Details | |
Error |
오류 모델. |
Hosting |
이 리소스에 사용할 App Service Environment 대한 사양입니다. |
Key |
Key Vault 비밀의 상태입니다. |
Certificate
앱에 대한 SSL 인증서입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
kind |
string |
리소스 종류입니다. |
location |
string |
리소스 위치입니다. |
name |
string |
리소스 이름입니다. |
properties.canonicalName |
string |
무료 인증서를 통해 발급할 인증서의 CNAME |
properties.cerBlob |
string |
.cer 파일의 원시 바이트 |
properties.domainValidationMethod |
string |
무료 인증서에 대한 도메인 유효성 검사 방법 |
properties.expirationDate |
string |
인증서 만료 날짜입니다. |
properties.friendlyName |
string |
인증서의 이름입니다. |
properties.hostNames |
string[] |
인증서가 적용되는 호스트 이름입니다. |
properties.hostingEnvironmentProfile |
인증서에 사용할 App Service Environment 대한 사양입니다. |
|
properties.issueDate |
string |
인증서 발급 날짜입니다. |
properties.issuer |
string |
인증서 발급자. |
properties.keyVaultId |
string |
Csm 리소스 ID를 Key Vault. |
properties.keyVaultSecretName |
string |
비밀 이름을 Key Vault. |
properties.keyVaultSecretStatus |
Key Vault 비밀의 상태입니다. |
|
properties.password |
string |
인증서 암호입니다. |
properties.pfxBlob |
string |
Pfx Blob. |
properties.publicKeyHash |
string |
공개 키 해시. |
properties.selfLink |
string |
자체 링크. |
properties.serverFarmId |
string |
"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}"으로 형식이 지정된 연결된 App Service 계획의 리소스 ID입니다. |
properties.siteName |
string |
앱 이름. |
properties.subjectName |
string |
인증서의 주체 이름입니다. |
properties.thumbprint |
string |
인증서 지문입니다. |
properties.valid |
boolean |
인증서가 유효한가요? |
tags |
object |
리소스 태그. |
type |
string |
리소스 종류. |
DefaultErrorResponse
오류 응답을 App Service.
Name | 형식 | Description |
---|---|---|
error |
오류 모델. |
Details
Name | 형식 | Description |
---|---|---|
code |
string |
프로그래밍 방식으로 오류를 식별하는 표준화된 문자열입니다. |
message |
string |
자세한 오류 설명 및 디버깅 정보입니다. |
target |
string |
자세한 오류 설명 및 디버깅 정보입니다. |
Error
오류 모델.
Name | 형식 | Description |
---|---|---|
code |
string |
프로그래밍 방식으로 오류를 식별하는 표준화된 문자열입니다. |
details |
Details[] |
자세한 오류입니다. |
innererror |
string |
디버그 오류에 대한 자세한 정보입니다. |
message |
string |
자세한 오류 설명 및 디버깅 정보입니다. |
target |
string |
자세한 오류 설명 및 디버깅 정보입니다. |
HostingEnvironmentProfile
이 리소스에 사용할 App Service Environment 대한 사양입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
App Service Environment 리소스 ID입니다. |
name |
string |
App Service Environment 이름입니다. |
type |
string |
App Service Environment 리소스 종류입니다. |
KeyVaultSecretStatus
Key Vault 비밀의 상태입니다.
Name | 형식 | Description |
---|---|---|
AzureServiceUnauthorizedToAccessKeyVault |
string |
|
CertificateOrderFailed |
string |
|
ExternalPrivateKey |
string |
|
Initialized |
string |
|
KeyVaultDoesNotExist |
string |
|
KeyVaultSecretDoesNotExist |
string |
|
OperationNotPermittedOnKeyVault |
string |
|
Succeeded |
string |
|
Unknown |
string |
|
UnknownError |
string |
|
WaitingOnCertificateOrder |
string |