-
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.
[Hub Generated] Review request for Microsoft.KeyVault to add version …
…preview/2021-06-01-preview (#14945) * Adds base for updating Microsoft.KeyVault from version preview/2021-04-01-preview to version 2021-06-01-preview * Updates readme * Updates API version in new specs and examples * KeyVault - Add PublicNetworkAccess property to Vault resource KeyVault - Add PublicNetworkAccess property to Vault resource * Re add 'all' permissions * Revert the int64 change back to unixtime * Change * Fix lint * Add missing tag
- Loading branch information
Showing
49 changed files
with
7,735 additions
and
4 deletions.
There are no files selected for viewing
91 changes: 91 additions & 0 deletions
91
...ation/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-06-01-preview/common.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,91 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2021-06-01-preview", | ||
"title": "KeyVaultManagementClient", | ||
"description": "The Azure management API provides a RESTful set of web services that interact with Azure Key Vault." | ||
}, | ||
"paths": {}, | ||
"definitions": { | ||
"CloudError": { | ||
"description": "An error response from Key Vault resource provider", | ||
"properties": { | ||
"error": { | ||
"$ref": "#/definitions/CloudErrorBody" | ||
} | ||
}, | ||
"x-ms-external": true | ||
}, | ||
"CloudErrorBody": { | ||
"description": "An error response from Key Vault resource provider", | ||
"properties": { | ||
"code": { | ||
"type": "string", | ||
"description": "Error code. This is a mnemonic that can be consumed programmatically." | ||
}, | ||
"message": { | ||
"type": "string", | ||
"description": "User friendly error message. The message is typically localized and may vary with service version." | ||
} | ||
}, | ||
"x-ms-external": true | ||
}, | ||
"SystemData": { | ||
"description": "Metadata pertaining to creation and last modification of the key vault resource.", | ||
"readOnly": true, | ||
"properties": { | ||
"createdBy": { | ||
"type": "string", | ||
"description": "The identity that created the key vault resource." | ||
}, | ||
"createdByType": { | ||
"description": "The type of identity that created the key vault resource.", | ||
"$ref": "#/definitions/IdentityType" | ||
}, | ||
"createdAt": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The timestamp of the key vault resource creation (UTC)." | ||
}, | ||
"lastModifiedBy": { | ||
"type": "string", | ||
"description": "The identity that last modified the key vault resource." | ||
}, | ||
"lastModifiedByType": { | ||
"description": "The type of identity that last modified the key vault resource.", | ||
"$ref": "#/definitions/IdentityType" | ||
}, | ||
"lastModifiedAt": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The timestamp of the key vault resource last modification (UTC)." | ||
} | ||
} | ||
}, | ||
"IdentityType": { | ||
"type": "string", | ||
"description": "The type of identity.", | ||
"enum": [ | ||
"User", | ||
"Application", | ||
"ManagedIdentity", | ||
"Key" | ||
], | ||
"x-ms-enum": { | ||
"name": "identityType", | ||
"modelAsString": true | ||
} | ||
} | ||
}, | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...manager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/DeletedManagedHsm_Get.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,28 @@ | ||
{ | ||
"parameters": { | ||
"name": "hsm1", | ||
"location": "westus", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2021-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedManagedHSMs/hsm1", | ||
"name": "vault-agile-drawer-6404", | ||
"type": "Microsoft.KeyVault/deletedManagedHSMs", | ||
"properties": { | ||
"mhsmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1", | ||
"location": "westus", | ||
"deletionDate": "2021-04-01T00:00:59Z", | ||
"scheduledPurgeDate": "2021-04-01T00:00:59Z", | ||
"purgeProtectionEnabled": true, | ||
"tags": { | ||
"Dept": "hsm", | ||
"Environment": "production" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...anager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/DeletedManagedHsm_List.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,47 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2021-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedManagedHSMs/hsm1", | ||
"name": "vault-agile-drawer-6404", | ||
"type": "Microsoft.KeyVault/deletedManagedHSMs", | ||
"properties": { | ||
"mhsmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1", | ||
"location": "westus", | ||
"deletionDate": "2021-04-01T00:00:59Z", | ||
"scheduledPurgeDate": "2021-04-01T00:00:59Z", | ||
"purgeProtectionEnabled": true, | ||
"tags": { | ||
"Dept": "hsm", | ||
"Environment": "production" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedManagedHSMs/hsm2", | ||
"name": "vault-agile-drawer-6404", | ||
"type": "Microsoft.KeyVault/deletedManagedHSMs", | ||
"properties": { | ||
"mhsmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm2", | ||
"location": "westus", | ||
"deletionDate": "2021-04-01T00:00:59Z", | ||
"scheduledPurgeDate": "2021-04-01T00:00:59Z", | ||
"purgeProtectionEnabled": true, | ||
"tags": { | ||
"Dept": "hsm", | ||
"Environment": "production" | ||
} | ||
} | ||
} | ||
], | ||
"nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/deletedManagedHSMs?api-version=2021-06-01-preview&$skiptoken=dmF1bHQtcGVza3ktanVyeS03MzA3Ng==" | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...nager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/DeletedManagedHsm_Purge.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,11 @@ | ||
{ | ||
"parameters": { | ||
"name": "hsm1", | ||
"location": "westus", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2021-06-01-preview" | ||
}, | ||
"responses": { | ||
"202": {} | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
...ger/Microsoft.KeyVault/preview/2021-06-01-preview/examples/ManagedHsm_CreateOrUpdate.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,86 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "hsm-group", | ||
"name": "hsm1", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2021-06-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"tenantId": "00000000-0000-0000-0000-000000000000", | ||
"initialAdminObjectIds": [ | ||
"00000000-0000-0000-0000-000000000000" | ||
], | ||
"enableSoftDelete": true, | ||
"softDeleteRetentionInDays": 90, | ||
"enablePurgeProtection": true | ||
}, | ||
"location": "westus", | ||
"sku": { | ||
"family": "B", | ||
"name": "Standard_B1" | ||
}, | ||
"tags": { | ||
"Dept": "hsm", | ||
"Environment": "dogfood" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"tenantId": "00000000-0000-0000-0000-000000000000", | ||
"initialAdminObjectIds": [ | ||
"00000000-0000-0000-0000-000000000000" | ||
], | ||
"enableSoftDelete": true, | ||
"softDeleteRetentionInDays": 90, | ||
"enablePurgeProtection": true, | ||
"hsmUri": null, | ||
"provisioningState": "Provisioning", | ||
"statusMessage": "Allocating hardware" | ||
}, | ||
"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" | ||
} | ||
} | ||
}, | ||
"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." | ||
}, | ||
"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" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...rce-manager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/ManagedHsm_Delete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "hsm-group", | ||
"name": "hsm1", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2021-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...source-manager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/ManagedHsm_Get.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,45 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "hsm-group", | ||
"name": "hsm1", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2021-06-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." | ||
}, | ||
"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" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Retry-After": "60", | ||
"Location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2021-06-01-preview&kv-operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...icrosoft.KeyVault/preview/2021-06-01-preview/examples/ManagedHsm_ListByResourceGroup.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,68 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "hsm-group", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2021-06-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." | ||
}, | ||
"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." | ||
}, | ||
"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/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs?api-version=2021-06-01-preview&$skiptoken=dmF1bHQtcGVza3ktanVyeS03MzA3Ng==" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.