forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import keys.json to 2020-04-01 preview (Azure#14297)
* Import keys.json to 2020-04-01 preview * Add keys.json in readme.cmd * update api version * Update api versions in example files * move attributes to common * fix swagger lint * Update * Revert "Update" This reverts commit 8d58f99. * Revert "fix swagger lint" This reverts commit 058b918. * Revert "move attributes to common" This reverts commit 211f805. * move attributes under key attributes
- Loading branch information
Showing
7 changed files
with
821 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
...lt/resource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/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,53 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "sample-group", | ||
"vaultName": "sample-vault-name", | ||
"keyName": "sample-key-name", | ||
"api-version": "2020-04-01-preview", | ||
"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" | ||
} | ||
} | ||
}, | ||
"default": { | ||
"headers": {}, | ||
"body": { | ||
"error": { | ||
"code": "", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...vault/resource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/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,48 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "sample-group", | ||
"vaultName": "sample-vault-name", | ||
"keyName": "sample-key-name", | ||
"api-version": "2020-04-01-preview" | ||
}, | ||
"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" | ||
} | ||
} | ||
}, | ||
"default": { | ||
"headers": {}, | ||
"body": { | ||
"error": { | ||
"code": "", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...esource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/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,49 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "sample-group", | ||
"vaultName": "sample-vault-name", | ||
"keyName": "sample-key-name", | ||
"keyVersion": "fd618d9519b74f9aae94ade66b876acc", | ||
"api-version": "2020-04-01-preview" | ||
}, | ||
"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" | ||
} | ||
} | ||
}, | ||
"default": { | ||
"headers": {}, | ||
"body": { | ||
"error": { | ||
"code": "", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
...ource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/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,58 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "sample-group", | ||
"vaultName": "sample-vault-name", | ||
"keyName": "sample-key-name", | ||
"api-version": "2020-04-01-preview" | ||
}, | ||
"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" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"default": { | ||
"headers": {}, | ||
"body": { | ||
"error": { | ||
"code": "", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...ult/resource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/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,55 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "sample-group", | ||
"vaultName": "sample-vault-name", | ||
"api-version": "2020-04-01-preview" | ||
}, | ||
"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" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"default": { | ||
"headers": {}, | ||
"body": { | ||
"error": { | ||
"code": "", | ||
"message": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.