-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add keys as a child proxy resource under vaults (AKV's ARM contract).
- Loading branch information
Showing
7 changed files
with
807 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...on/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/examples/createKey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ation/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/examples/getKey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...eyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/examples/getKeyVersion.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...vault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/examples/listKeyVersions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...ion/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/examples/listKeys.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.