Skip to content

Commit

Permalink
Add keys as a child proxy resource under vaults (AKV's ARM contract).
Browse files Browse the repository at this point in the history
  • Loading branch information
adarce committed Oct 28, 2020
1 parent 7181280 commit b11b1a9
Show file tree
Hide file tree
Showing 7 changed files with 807 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "sample-group",
"vaultName": "sample-vault-name",
"keyName": "sample-key-name",
"api-version": "2019-09-01",
"parameters": {
"properties": {
"kty": "RSA"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault-name/keys/sample-key-name",
"name": "sample-key-name",
"type": "Microsoft.KeyVault/vaults/keys",
"location": "westus",
"properties": {
"attributes": {
"enabled": true,
"created": 1598533051,
"updated": 1598533051,
"recoveryLevel": "Purgeable"
},
"kty": "RSA",
"keyOps": [
"encrypt",
"decrypt",
"sign",
"verify",
"wrapKey",
"unwrapKey"
],
"keySize": 2048,
"keyUri": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name",
"keyUriWithVersion": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name/fd618d9519b74f9aae94ade66b876acc"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "sample-group",
"vaultName": "sample-vault-name",
"keyName": "sample-key-name",
"api-version": "2019-09-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault-name/keys/sample-key-name",
"name": "sample-key-name",
"type": "Microsoft.KeyVault/vaults/keys",
"location": "westus",
"properties": {
"attributes": {
"enabled": true,
"created": 1598533051,
"updated": 1598533051,
"recoveryLevel": "Purgeable"
},
"kty": "RSA",
"keyOps": [
"encrypt",
"decrypt",
"sign",
"verify",
"wrapKey",
"unwrapKey"
],
"keySize": 2048,
"keyUri": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name",
"keyUriWithVersion": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name/fd618d9519b74f9aae94ade66b876acc"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "sample-group",
"vaultName": "sample-vault-name",
"keyName": "sample-key-name",
"keyVersion": "fd618d9519b74f9aae94ade66b876acc",
"api-version": "2019-09-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault-name/keys/sample-key-name/versions/fd618d9519b74f9aae94ade66b876acc",
"name": "fd618d9519b74f9aae94ade66b876acc",
"type": "Microsoft.KeyVault/vaults/keys/versions",
"location": "westus",
"properties": {
"attributes": {
"enabled": true,
"created": 1598533051,
"updated": 1598533051,
"recoveryLevel": "Purgeable"
},
"kty": "RSA",
"keyOps": [
"encrypt",
"decrypt",
"sign",
"verify",
"wrapKey",
"unwrapKey"
],
"keySize": 2048,
"keyUri": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name",
"keyUriWithVersion": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name/fd618d9519b74f9aae94ade66b876acc"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "sample-group",
"vaultName": "sample-vault-name",
"keyName": "sample-key-name",
"api-version": "2019-09-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault-name/keys/sample-key-name/versions/c2296aa24acf4daf86942bff5aca73dd",
"name": "c2296aa24acf4daf86942bff5aca73dd",
"type": "Microsoft.KeyVault/vaults/keys/versions",
"location": "westus",
"properties": {
"attributes": {
"enabled": true,
"created": 1598641074,
"updated": 1598641074,
"recoveryLevel": "Purgeable"
},
"keyUri": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name",
"keyUriWithVersion": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name/c2296aa24acf4daf86942bff5aca73dd"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault-name/keys/sample-key-name/versions/d5a04667b6f44b0ca62825f5eae93da6",
"name": "d5a04667b6f44b0ca62825f5eae93da6",
"type": "Microsoft.KeyVault/vaults/keys/versions",
"location": "westus",
"properties": {
"attributes": {
"enabled": true,
"created": 1598641295,
"updated": 1598641295,
"recoveryLevel": "Purgeable"
},
"keyUri": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name",
"keyUriWithVersion": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name/d5a04667b6f44b0ca62825f5eae93da6"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "sample-group",
"vaultName": "sample-vault-name",
"api-version": "2019-09-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault-name/keys/sample-key-name-1",
"name": "sample-key-name-1",
"type": "Microsoft.KeyVault/vaults/keys",
"location": "westus",
"properties": {
"attributes": {
"enabled": true,
"created": 1596493796,
"updated": 1596493796,
"recoveryLevel": "Purgeable"
},
"keyUri": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name-1"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault-name/keys/sample-key-name-2",
"name": "sample-key-name-2",
"type": "Microsoft.KeyVault/vaults/keys",
"location": "westus",
"properties": {
"attributes": {
"enabled": true,
"created": 1596493797,
"updated": 1596493797,
"recoveryLevel": "Purgeable"
},
"keyUri": "https://sample-vault-name.vault.azure.net:443/keys/sample-key-name-2"
}
}
]
}
}
}
}
Loading

0 comments on commit b11b1a9

Please sign in to comment.