-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[KeyVault] Updating resource-manager swagger to include missing defintions #2210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0bcffea
bece2a3
56bc236
462e482
e5f5687
03e395d
b2ff292
c799ef9
22a028c
be28391
3c6661a
7e2d938
152da1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "parameters":{ | ||
| "subscriptionId":"00000000-0000-0000-0000-000000000000", | ||
| "api-version":"2016-10-01", | ||
| "vaultName":{ | ||
| "name":"sample-vault", | ||
| "type":"Microsoft.KeyVault/vaults" | ||
| } | ||
| }, | ||
| "responses":{ | ||
| "200":{ | ||
| "body":{ | ||
| "nameAvailable":true | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| { | ||
| "parameters":{ | ||
| "resourceGroupName":"sample-group", | ||
| "vaultName":"sample-vault", | ||
| "secretName":"secret-name", | ||
| "subscriptionId":"00000000-0000-0000-0000-000000000000", | ||
| "api-version":"2016-10-01", | ||
| "parameters":{ | ||
| "properties":{ | ||
| "value": "secret-value" | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault/secrets/secret-name", | ||
| "name": "secret-name", | ||
| "type": "Microsoft.KeyVault/vaults/secrets", | ||
| "location": "westus", | ||
| "properties": { | ||
| "attributes": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing required property "value".
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. value is not actually required in this model. I've update the model to reflect that. |
||
| "enabled": true, | ||
| "created": 1514938738, | ||
| "updated": 1514938738 | ||
| }, | ||
| "secretUri": "https://sample-vault.vault.azure.net/secrets/secret-name", | ||
| "secretUriWithVersion": "https:/sample-vault.vault.azure.net/secrets/secret-name/baf6de32c4774c7c81345f6476cf90a4" | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault/secrets/secret-name", | ||
| "name": "secret-name", | ||
| "type": "Microsoft.KeyVault/vaults/secrets", | ||
| "location": "westus", | ||
| "properties": { | ||
| "attributes": { | ||
| "enabled": true, | ||
| "created": 1514938738, | ||
| "updated": 1514938738 | ||
| }, | ||
| "secretUri": "https://sample-vault.vault.azure.net/secrets/secret-name", | ||
| "secretUriWithVersion": "https:/sample-vault.vault.azure.net/secrets/secret-name/baf6de32c4774c7c81345f6476cf90a4" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,204 @@ | ||
| { | ||
| "parameters":{ | ||
| "resourceGroupName":"sample-resource-group", | ||
| "vaultName":"sample-vault", | ||
| "subscriptionId":"00000000-0000-0000-0000-000000000000", | ||
| "api-version":"2016-10-01", | ||
| "parameters":{ | ||
| "location": "westus", | ||
| "properties":{ | ||
| "tenantId": "00000000-0000-0000-0000-000000000000", | ||
| "sku": {"family": "A", "name": "standard"}, | ||
| "accessPolicies":[{ | ||
| "tenantId": "00000000-0000-0000-0000-000000000000", | ||
| "objectId": "00000000-0000-0000-0000-000000000000", | ||
| "permissions": { | ||
| "keys": [ | ||
| "encrypt", | ||
| "decrypt", | ||
| "wrapKey", | ||
| "unwrapKey", | ||
| "sign", | ||
| "verify", | ||
| "get", | ||
| "list", | ||
| "create", | ||
| "update", | ||
| "import", | ||
| "delete", | ||
| "backup", | ||
| "restore", | ||
| "recover", | ||
| "purge" | ||
| ], | ||
| "secrets":[ | ||
| "get", | ||
| "list", | ||
| "set", | ||
| "delete", | ||
| "backup", | ||
| "restore", | ||
| "recover", | ||
| "purge" | ||
| ], | ||
| "certificates":[ | ||
| "get", | ||
| "list", | ||
| "delete", | ||
| "create", | ||
| "import", | ||
| "update", | ||
| "managecontacts", | ||
| "getissuers", | ||
| "listissuers", | ||
| "setissuers", | ||
| "deleteissuers", | ||
| "manageissuers", | ||
| "recover", | ||
| "purge" | ||
| ] | ||
| } | ||
| }], | ||
| "enabledForDeployment": true, | ||
| "enabledForDiskEncryption": true, | ||
| "enabledForTemplateDeployment": true | ||
| } | ||
| } | ||
| }, | ||
| "responses":{ | ||
| "200":{ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Vaults_CreateOrUpdate can return 201 too, please provide example response.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added |
||
| "body":{ | ||
| "id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.KeyVault/vaults/sample-vault", | ||
| "name":"sample-vault", | ||
| "type":"Microsoft.KeyVault/vaults", | ||
| "location":"westus", | ||
| "tags":{}, | ||
| "properties":{ | ||
| "sku":{"family":"A","name":"standard"}, | ||
| "tenantId":"00000000-0000-0000-0000-000000000000", | ||
| "accessPolicies":[{ | ||
| "tenantId": "00000000-0000-0000-0000-000000000000", | ||
| "objectId": "00000000-0000-0000-0000-000000000000", | ||
| "permissions": { | ||
| "keys": [ | ||
| "encrypt", | ||
| "decrypt", | ||
| "wrapKey", | ||
| "unwrapKey", | ||
| "sign", | ||
| "verify", | ||
| "get", | ||
| "list", | ||
| "create", | ||
| "update", | ||
| "import", | ||
| "delete", | ||
| "backup", | ||
| "restore", | ||
| "recover", | ||
| "purge" | ||
| ], | ||
| "secrets":[ | ||
| "get", | ||
| "list", | ||
| "set", | ||
| "delete", | ||
| "backup", | ||
| "restore", | ||
| "recover", | ||
| "purge" | ||
| ], | ||
| "certificates":[ | ||
| "get", | ||
| "list", | ||
| "delete", | ||
| "create", | ||
| "import", | ||
| "update", | ||
| "managecontacts", | ||
| "getissuers", | ||
| "listissuers", | ||
| "setissuers", | ||
| "deleteissuers", | ||
| "manageissuers", | ||
| "recover", | ||
| "purge" | ||
| ] | ||
| } | ||
| }], | ||
| "enabledForDeployment":true, | ||
| "enabledForDiskEncryption":true, | ||
| "enabledForTemplateDeployment":true, | ||
| "vaultUri":"https://sample-vault.vault.azure.net" | ||
| } | ||
| } | ||
| }, | ||
| "201":{ | ||
| "body":{ | ||
| "id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-resource-group/providers/Microsoft.KeyVault/vaults/sample-vault", | ||
| "name":"sample-vault", | ||
| "type":"Microsoft.KeyVault/vaults", | ||
| "location":"westus", | ||
| "tags":{}, | ||
| "properties":{ | ||
| "sku":{"family":"A","name":"standard"}, | ||
| "tenantId":"00000000-0000-0000-0000-000000000000", | ||
| "accessPolicies":[{ | ||
| "tenantId": "00000000-0000-0000-0000-000000000000", | ||
| "objectId": "00000000-0000-0000-0000-000000000000", | ||
| "permissions": { | ||
| "keys": [ | ||
| "encrypt", | ||
| "decrypt", | ||
| "wrapKey", | ||
| "unwrapKey", | ||
| "sign", | ||
| "verify", | ||
| "get", | ||
| "list", | ||
| "create", | ||
| "update", | ||
| "import", | ||
| "delete", | ||
| "backup", | ||
| "restore", | ||
| "recover", | ||
| "purge" | ||
| ], | ||
| "secrets":[ | ||
| "get", | ||
| "list", | ||
| "set", | ||
| "delete", | ||
| "backup", | ||
| "restore", | ||
| "recover", | ||
| "purge" | ||
| ], | ||
| "certificates":[ | ||
| "get", | ||
| "list", | ||
| "delete", | ||
| "create", | ||
| "import", | ||
| "update", | ||
| "managecontacts", | ||
| "getissuers", | ||
| "listissuers", | ||
| "setissuers", | ||
| "deleteissuers", | ||
| "manageissuers", | ||
| "recover", | ||
| "purge" | ||
| ] | ||
| } | ||
| }], | ||
| "enabledForDeployment":true, | ||
| "enabledForDiskEncryption":true, | ||
| "enabledForTemplateDeployment":true, | ||
| "vaultUri":"https://sample-vault.vault.azure.net" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "parameters":{ | ||
| "resourceGroupName":"sample-resource-group", | ||
| "vaultName":"sample-vault", | ||
| "subscriptionId":"00000000-0000-0000-0000-000000000000", | ||
| "api-version":"2016-10-01" | ||
| }, | ||
| "responses":{ | ||
| "200":{ | ||
| "headers":{}, | ||
| "body":"" | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "parameters":{ | ||
| "vaultName":"sample-vault", | ||
| "location":"westus", | ||
| "subscriptionId":"00000000-0000-0000-0000-000000000000", | ||
| "api-version":"2016-10-01" | ||
| }, | ||
| "responses":{ | ||
| "200":{ | ||
| "headers":{}, | ||
| "body":{ | ||
| "id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/sample-vault", | ||
| "name":"sample-vault", | ||
| "type":"Microsoft.KeyVault/deletedVaults", | ||
| "properties":{ | ||
| "vaultId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault", | ||
| "location":"westus", | ||
| "tags":{}, | ||
| "deletionDate":"2017-01-01T00:00:59Z", | ||
| "scheduledPurgeDate":"2017-04-01T00:00:59Z" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "parameters": { | ||
| "resourceGroupName": "sample-group", | ||
| "vaultName": "sample-vault", | ||
| "secretName":"secret-name", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "api-version": "2016-10-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault/secrets/secret-name", | ||
| "name": "secret-name", | ||
| "type": "Microsoft.KeyVault/vaults/secrets", | ||
| "location": "westus", | ||
| "properties": { | ||
| "attributes": { | ||
| "enabled": true, | ||
| "created": 1514940950, | ||
| "updated": 1514940950 | ||
| }, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing required property "value".
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for listSecrets.json
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. value is not actually required in this model. I've update the model to reflect that. |
||
| "secretUri": "https://sample-vault.vault.azure.net/secrets/secret-name", | ||
| "secretUriWithVersion": "https://sample-vault.vault.azure.net/secrets/secret-name/77445834f7de41bab81d0723bf996860" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add 201 response example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might have missed this one