Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"api-version": "7.4-preview.1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "AllowKeyManagementOperationsThroughARM",
"value": "true",
"description": "If false, all key management operations must happen through the Managed HSM data plane. If true, allows users to manage keys via the Azure Resource Manager."
}
]
}
}
}
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"vaultBaseUrl": "https://myvault.vault.azure.net/",
"setting-name": "AllowKeyManagementOperationsThroughARM",
"api-version": "7.4-preview.1",
"parameters": {
"value":"true"
}
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "AllowKeyManagementOperationsThroughARM",
"value": "true",
"description": "If false, all key management operations must happen through the Managed HSM data plane. If true, allows users to manage keys via the Azure Resource Manager."

}
]
}
}
}
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"swagger": "2.0",
"info": {
"title": "KeyVaultClient",
"description": "The key vault client performs cryptographic key operations and vault operations against the Key Vault service.",
"version": "7.4-preview.1"
},
"x-ms-parameterized-host": {
"hostTemplate": "{vaultBaseUrl}",
"useSchemePrefix": false,
"positionInOperation": "first",
"parameters": [
{
"name": "vaultBaseUrl",
"description": "The vault name, for example https://myvault.vault.azure.net.",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true

}
]
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/settings/{setting-name}": {
"patch": {
"tags": [
"Settings"
],
"operationId": "UpdateSettings",
"summary": "Updates key vault account setting, stores it, then returns the setting name and value to the client.",
"description": "If false, all key management operations must happen through the Managed HSM data plane. If true, allows users to manage keys via the Azure Resource Manager.",
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
"parameters": [
{
"name": "setting-name",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the account setting. Must be a valid settings option."
},
{
"name": "parameters",
"in": "body",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/UpdateSettingsRequest"
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
},
"description": "The parameters to update an account setting."
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "An account setting containing the name of the setting and the value it is set to. ",
"schema": {
"$ref": "#/definitions/Setting"
}
},
"default": {
"description": "Key Vault error response describing why the operation failed.",
"schema": {
"$ref": "common.json#/definitions/KeyVaultError"
}
}
},
"x-ms-examples": {
"Create key": {
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
"$ref": "./examples/UpdateSetting-example.json"
}
}
},
"get": {
"tags": [
"Settings"
],
"operationId": "GetSettingValue",
"summary": "Get specified account setting value.",
"description": "Retrieves the value of a specified, value account setting.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
"responses": {
"200": {
"description": "An account setting containing the name of the setting and the value it is set to.",
"schema": {
"$ref": "#/definitions/Setting"
}
},
"default": {
"description": "Key Vault error response describing why the operation failed.",
"schema": {
"$ref": "common.json#/definitions/KeyVaultError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
"x-ms-examples": {
"GetKeys": {
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
"$ref": "./examples/UpdateSetting-example.json"
}
}
}
},
"/settings": {
"get": {
"tags": [
"Settings"
],
"operationId": "GetSettings",
"summary": "List account settings.",
"description": "Retrieves a list of all the available account settings that can be configured.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "A response message containing a list of account settings with their associated value.",
"schema": {
"$ref": "#/definitions/SettingsListResult"
}
},
"default": {
"description": "Key Vault error response describing why the operation failed.",
"schema": {
"$ref": "common.json#/definitions/KeyVaultError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"GetKeys": {
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
"$ref": "./examples/ListSettings-example.json"
}
}
}
}
},
"definitions": {
"UpdateSettingsRequest": {
"properties": {
"value": {
"type": "string",
"description": "The account setting value. True if setting is enabled, false if disabled"
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
}
},
"description": "The update settings request object.",
"required": [
"value"
]
},
"Setting": {
"properties": {
"name": {
"type": "string",
"description": "The account setting to be updated"
},
"value": {
"type": "string",
"description": "The account setting value. True if setting is enabled, false if disabled"
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
}
},
"required": [
"name",
"value"
],
"description": "The update settings response object containing the setting name and its value."
},
"SettingsListResult": {
"properties": {
Comment thread
maddiemlucas marked this conversation as resolved.
Outdated
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Setting"
},
"readOnly": true,
"description": "A response message containing a list of account settings with their associated value."
}
},
"description": "The settings list result."
}
},
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client API version."
}
}
}