diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/keyvault.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/keyvault.json index a57bc8f2e040..006d6be9695a 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/keyvault.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/keyvault.json @@ -443,6 +443,12 @@ "schema": { "$ref": "#/definitions/VaultListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } } }, "x-ms-pageable": { @@ -489,6 +495,12 @@ "schema": { "$ref": "#/definitions/VaultListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } } }, "x-ms-pageable": { @@ -528,6 +540,12 @@ "schema": { "$ref": "#/definitions/DeletedVaultListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } } }, "x-ms-pageable": { @@ -719,6 +737,12 @@ "schema": { "$ref": "#/definitions/ResourceListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } } }, "x-ms-pageable": { @@ -764,6 +788,12 @@ "schema": { "$ref": "#/definitions/CheckNameAvailabilityResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } } }, "x-ms-examples": { diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/providers.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/providers.json index d1f28d8f5599..8dc2cf818c97 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/providers.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/providers.json @@ -34,6 +34,12 @@ "schema": { "$ref": "#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } } }, "x-ms-pageable": { @@ -152,6 +158,29 @@ "description": "Blob duration of specification." } } + }, + "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 } }, "parameters": { diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/secrets.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/secrets.json index 69bd1c38e79a..64a05998bf50 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/secrets.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2019-09-01/secrets.json @@ -73,7 +73,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ResponseError" + "$ref": "#/definitions/CloudError" } } }, @@ -151,7 +151,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ResponseError" + "$ref": "#/definitions/CloudError" } } }, @@ -212,7 +212,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ResponseError" + "$ref": "#/definitions/CloudError" } } }, @@ -291,21 +291,25 @@ } }, "definitions": { - "ResponseError": { + "CloudError": { "description": "An error response from Key Vault resource provider", "properties": { "error": { - "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." - } - } + "$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