Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"name": "hsm1",
"location": "westus",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2021-04-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"initialAdminObjectIds": [
"00000000-0000-0000-0000-000000000000"
],
"enableSoftDelete": true,
"softDeleteRetentionInDays": 90,
"enablePurgeProtection": true,
"hsmUri": "https://westus.hsm1.managedhsm.azure.net",
"provisioningState": "Succeeded",
"statusMessage": "ManagedHsm is functional.",
"scheduledPurgeDate": "2021-04-01T00:00:59Z"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1",
"name": "hsm1",
"type": "Microsoft.KeyVault/managedHSMs",
"location": "westus",
"sku": {
"family": "B",
"name": "Standard_B1"
},
"tags": {
"Dept": "hsm",
"Environment": "dogfood"
}
}
},
"404": {
"headers": {},
"body": {
"error": {
"code": "",
"message": ""
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2021-04-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"initialAdminObjectIds": [
"00000000-0000-0000-0000-000000000000"
],
"enableSoftDelete": true,
"softDeleteRetentionInDays": 90,
"enablePurgeProtection": true,
"hsmUri": "https://westus.hsm1.managedhsm.azure.net",
"provisioningState": "Succeeded",
"statusMessage": "ManagedHsm is functional.",
"scheduledPurgeDate": "2021-04-01T00:00:59Z"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1",
"name": "hsm1",
"type": "Microsoft.KeyVault/managedHSMs",
"location": "westus",
"sku": {
"family": "B",
"name": "Standard_B1"
},
"tags": {
"Dept": "hsm",
"Environment": "dogfood"
}
},
{
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"initialAdminObjectIds": [
"00000000-0000-0000-0000-000000000000"
],
"enableSoftDelete": true,
"softDeleteRetentionInDays": 90,
"enablePurgeProtection": true,
"hsmUri": "https://westus.hsm2.managedhsm.azure.net",
"provisioningState": "Succeeded",
"statusMessage": "ManagedHsm is functional.",
"scheduledPurgeDate": "2021-04-01T00:00:59Z"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm2",
"name": "hsm2",
"type": "Microsoft.KeyVault/managedHSMs",
"location": "westus",
"sku": {
"family": "B",
"name": "Standard_B1"
},
"tags": {
"Dept": "hsm",
"Environment": "production"
}
}
],
"nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/deletedManagedHSMs?api-version=2021-04-01-preview&$skiptoken=dmF1bHQtcGVza3ktanVyeS03MzA3Ng=="
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"name": "hsm1",
"location": "westus",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2021-04-01-preview"
},
"responses": {
"202": {},
"404": {
"headers": {},
"body": {
"error": {
"code": "",
"message": ""
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,157 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedManagedHSMs": {
"get": {
"tags": [
"ManagedHsms"
],
"operationId": "ManagedHsms_ListDeleted",
"description": "The List operation gets information about the deleted managed HSMs associated with the subscription.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Retrieved information about all managed HSMs in the specified subscription.",
"schema": {
"$ref": "#/definitions/ManagedHsmListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ManagedHsmError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List deleted managed HSMs in the specified subscription": {
"$ref": "./examples/DeletedManagedHsm_List.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedManagedHSMs/{name}": {
"get": {
"tags": [
"ManagedHsms"
],
"operationId": "ManagedHsms_GetDeleted",
"description": "Gets the specified deleted managed HSM.",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the deleted managed HSM."
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location of the deleted managed HSM."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Retrieved information about the specified deleted managed HSM.",
"schema": {
"$ref": "#/definitions/ManagedHsm"
}
},
"404": {
"description": "The specified resource does not exist.",
"schema": {
"$ref": "common.json#/definitions/CloudError"
},
"x-ms-error-response": true
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ManagedHsmError"
}
}
},
"x-ms-examples": {
"Retrieve a deleted managed HSM": {
"$ref": "./examples/DeletedManagedHsm_Get.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedManagedHSMs/{name}/purge": {
"post": {
"tags": [
"ManagedHsms"
],
"operationId": "ManagedHsms_PurgeDeleted",
"description": "Permanently deletes the specified managed HSM.",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the soft-deleted managed HSM."
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location of the soft-deleted managed HSM."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"404": {
"description": "The specified resource does not exist.",
"schema": {
"$ref": "common.json#/definitions/CloudError"
},
"x-ms-error-response": true
},
"202": {
"description": "Accepted and the operation will complete asynchronously."
},
"default": {
"description": "The error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ManagedHsmError"
}
}
},
"x-ms-examples": {
"Purge a managed HSM Pool": {
"$ref": "./examples/DeletedManagedHsm_Purge.json"
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -764,6 +915,12 @@
"name": "PublicNetworkAccess",
"modelAsString": true
}
},
"scheduledPurgeDate": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "The scheduled purge date in UTC."
}
},
"description": "Properties of the managed HSM Pool"
Expand Down