Managed Instance Keys - Create Or Update
관리되는 instance 키를 만들거나 업데이트합니다.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}?api-version=2021-11-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
key
|
path | True |
string |
(업데이트 또는 생성)에서 작동할 관리되는 instance 키의 이름입니다. |
managed
|
path | True |
string |
관리되는 인스턴스의 이름입니다. |
resource
|
path | True |
string |
리소스를 포함하는 리소스 그룹의 이름입니다. Azure 리소스 관리자 API 또는 포털에서 이 값을 가져올 수 있습니다. |
subscription
|
path | True |
string |
Azure 구독을 식별하는 구독 ID입니다. |
api-version
|
query | True |
string |
요청에 사용할 API 버전입니다. |
요청 본문
Name | 필수 | 형식 | Description |
---|---|---|---|
properties.serverKeyType | True |
'ServiceManaged', 'AzureKeyVault'와 같은 키 형식입니다. |
|
properties.uri |
string |
키의 URI입니다. ServerKeyType이 AzureKeyVault인 경우 URI가 필요합니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
관리되는 instance 키를 업데이트했습니다. |
|
201 Created |
관리되는 instance 키를 만들었습니다. |
|
202 Accepted |
수락됨 |
|
Other Status Codes |
오류 응답: ***
|
예제
Creates or updates a managed instance key
Sample Request
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/keys/someVault_someKey_01234567890123456789012345678901?api-version=2021-11-01
{
"properties": {
"serverKeyType": "AzureKeyVault",
"uri": "https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901"
}
}
Sample Response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/keys/someVault_someKey_01234567890123456789012345678901",
"name": "sqlcrudtest-4645",
"type": "Microsoft.Sql/managedInstances/keys",
"kind": "azurekeyvault",
"properties": {
"thumbprint": "00112233445566778899AABBCCDDEEFFAABBCCDD",
"creationDate": "2020-11-01T00:00:00Z",
"autoRotationEnabled": false
}
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/keys/someVault_someKey_01234567890123456789012345678901",
"name": "sqlcrudtest-4645",
"type": "Microsoft.Sql/managedInstances/keys",
"kind": "azurekeyvault",
"properties": {
"thumbprint": "00112233445566778899AABBCCDDEEFFAABBCCDD",
"creationDate": "2020-11-01T00:00:00Z",
"autoRotationEnabled": false
}
}
정의
Name | Description |
---|---|
Managed |
관리되는 instance 키입니다. |
Server |
'ServiceManaged', 'AzureKeyVault'와 같은 키 형식입니다. |
ManagedInstanceKey
관리되는 instance 키입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
kind |
string |
암호화 보호기의 종류입니다. Azure Portal 환경에 사용되는 메타데이터입니다. |
name |
string |
리소스 이름입니다. |
properties.autoRotationEnabled |
boolean |
키 자동 회전 옵트인 플래그입니다. true 또는 false입니다. |
properties.creationDate |
string |
키 만들기 날짜입니다. |
properties.serverKeyType |
'ServiceManaged', 'AzureKeyVault'와 같은 키 형식입니다. |
|
properties.thumbprint |
string |
키의 지문입니다. |
properties.uri |
string |
키의 URI입니다. ServerKeyType이 AzureKeyVault인 경우 URI가 필요합니다. |
type |
string |
리소스 종류. |
ServerKeyType
'ServiceManaged', 'AzureKeyVault'와 같은 키 형식입니다.
Name | 형식 | Description |
---|---|---|
AzureKeyVault |
string |
|
ServiceManaged |
string |