|
1932 | 1932 | } |
1933 | 1933 | } |
1934 | 1934 | }, |
| 1935 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys": { |
| 1936 | + "get": { |
| 1937 | + "operationId": "SqlResources_ListClientEncryptionKeys", |
| 1938 | + "x-ms-examples": { |
| 1939 | + "CosmosDBClientEncryptionKeysList": { |
| 1940 | + "$ref": "./examples/CosmosDBSqlClientEncryptionKeysList.json" |
| 1941 | + } |
| 1942 | + }, |
| 1943 | + "description": "Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database.", |
| 1944 | + "parameters": [ |
| 1945 | + { |
| 1946 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 1947 | + }, |
| 1948 | + { |
| 1949 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 1950 | + }, |
| 1951 | + { |
| 1952 | + "$ref": "#/parameters/accountNameParameter" |
| 1953 | + }, |
| 1954 | + { |
| 1955 | + "$ref": "#/parameters/databaseNameParameter" |
| 1956 | + }, |
| 1957 | + { |
| 1958 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 1959 | + } |
| 1960 | + ], |
| 1961 | + "responses": { |
| 1962 | + "200": { |
| 1963 | + "description": "The ClientEncryptionKeys were retrieved successfully.", |
| 1964 | + "schema": { |
| 1965 | + "$ref": "#/definitions/ClientEncryptionKeysListResult" |
| 1966 | + } |
| 1967 | + } |
| 1968 | + }, |
| 1969 | + "x-ms-pageable": { |
| 1970 | + "nextLinkName": null |
| 1971 | + } |
| 1972 | + } |
| 1973 | + }, |
| 1974 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}": { |
| 1975 | + "get": { |
| 1976 | + "operationId": "SqlResources_GetClientEncryptionKey", |
| 1977 | + "x-ms-examples": { |
| 1978 | + "CosmosDBClientEncryptionKeyGet": { |
| 1979 | + "$ref": "./examples/CosmosDBSqlClientEncryptionKeyGet.json" |
| 1980 | + } |
| 1981 | + }, |
| 1982 | + "description": "Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database.", |
| 1983 | + "parameters": [ |
| 1984 | + { |
| 1985 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 1986 | + }, |
| 1987 | + { |
| 1988 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 1989 | + }, |
| 1990 | + { |
| 1991 | + "$ref": "#/parameters/accountNameParameter" |
| 1992 | + }, |
| 1993 | + { |
| 1994 | + "$ref": "#/parameters/databaseNameParameter" |
| 1995 | + }, |
| 1996 | + { |
| 1997 | + "$ref": "#/parameters/clientEncryptionKeyNameParameter" |
| 1998 | + }, |
| 1999 | + { |
| 2000 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 2001 | + } |
| 2002 | + ], |
| 2003 | + "responses": { |
| 2004 | + "200": { |
| 2005 | + "description": "The ClientEncryptionKey was retrieved successfully.", |
| 2006 | + "schema": { |
| 2007 | + "$ref": "#/definitions/ClientEncryptionKeyGetResults" |
| 2008 | + } |
| 2009 | + } |
| 2010 | + } |
| 2011 | + }, |
| 2012 | + "put": { |
| 2013 | + "operationId": "SqlResources_CreateUpdateClientEncryptionKey", |
| 2014 | + "x-ms-examples": { |
| 2015 | + "CosmosDBClientEncryptionKeyCreateUpdate": { |
| 2016 | + "$ref": "./examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json" |
| 2017 | + } |
| 2018 | + }, |
| 2019 | + "description": "Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly).", |
| 2020 | + "parameters": [ |
| 2021 | + { |
| 2022 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 2023 | + }, |
| 2024 | + { |
| 2025 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 2026 | + }, |
| 2027 | + { |
| 2028 | + "$ref": "#/parameters/accountNameParameter" |
| 2029 | + }, |
| 2030 | + { |
| 2031 | + "$ref": "#/parameters/databaseNameParameter" |
| 2032 | + }, |
| 2033 | + { |
| 2034 | + "$ref": "#/parameters/clientEncryptionKeyNameParameter" |
| 2035 | + }, |
| 2036 | + { |
| 2037 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 2038 | + }, |
| 2039 | + { |
| 2040 | + "name": "createUpdateClientEncryptionKeyParameters", |
| 2041 | + "in": "body", |
| 2042 | + "required": true, |
| 2043 | + "schema": { |
| 2044 | + "$ref": "#/definitions/ClientEncryptionKeyCreateUpdateParameters" |
| 2045 | + }, |
| 2046 | + "description": "The parameters to provide for the client encryption key." |
| 2047 | + } |
| 2048 | + ], |
| 2049 | + "responses": { |
| 2050 | + "200": { |
| 2051 | + "description": "The client encryption key create or update operation was completed successfully.", |
| 2052 | + "schema": { |
| 2053 | + "$ref": "#/definitions/ClientEncryptionKeyGetResults" |
| 2054 | + } |
| 2055 | + } |
| 2056 | + } |
| 2057 | + } |
| 2058 | + }, |
1935 | 2059 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers": { |
1936 | 2060 | "get": { |
1937 | 2061 | "operationId": "SqlResources_ListSqlContainers", |
|
5636 | 5760 | } |
5637 | 5761 | }, |
5638 | 5762 | "definitions": { |
| 5763 | + "ClientEncryptionKeysListResult": { |
| 5764 | + "type": "object", |
| 5765 | + "properties": { |
| 5766 | + "value": { |
| 5767 | + "readOnly": true, |
| 5768 | + "type": "array", |
| 5769 | + "items": { |
| 5770 | + "$ref": "#/definitions/ClientEncryptionKeyGetResults" |
| 5771 | + }, |
| 5772 | + "description": "List of client encryption keys and their properties." |
| 5773 | + } |
| 5774 | + }, |
| 5775 | + "description": "The List operation response, that contains the client encryption keys and their properties." |
| 5776 | + }, |
5639 | 5777 | "DatabaseAccountsListResult": { |
5640 | 5778 | "properties": { |
5641 | 5779 | "value": { |
|
5990 | 6128 | }, |
5991 | 6129 | "x-ms-azure-resource": true |
5992 | 6130 | }, |
| 6131 | + "ClientEncryptionKeyCreateUpdateParameters": { |
| 6132 | + "description": "Parameters to create and update ClientEncryptionKey.", |
| 6133 | + "type": "object", |
| 6134 | + "properties": { |
| 6135 | + "properties": { |
| 6136 | + "x-ms-client-flatten": true, |
| 6137 | + "description": "Properties to create and update ClientEncryptionKey.", |
| 6138 | + "$ref": "#/definitions/ClientEncryptionKeyCreateUpdateProperties" |
| 6139 | + } |
| 6140 | + }, |
| 6141 | + "required": [ |
| 6142 | + "properties" |
| 6143 | + ] |
| 6144 | + }, |
| 6145 | + "ClientEncryptionKeyCreateUpdateProperties": { |
| 6146 | + "description": "Properties to create and update ClientEncryptionKey.", |
| 6147 | + "type": "object", |
| 6148 | + "properties": { |
| 6149 | + "resource": { |
| 6150 | + "description": "The standard JSON format of a ClientEncryptionKey", |
| 6151 | + "$ref": "#/definitions/ClientEncryptionKeyResource" |
| 6152 | + } |
| 6153 | + }, |
| 6154 | + "required": [ |
| 6155 | + "resource" |
| 6156 | + ] |
| 6157 | + }, |
| 6158 | + "ClientEncryptionKeyGetResults": { |
| 6159 | + "description": "Client Encryption Key.", |
| 6160 | + "type": "object", |
| 6161 | + "properties": { |
| 6162 | + "properties": { |
| 6163 | + "x-ms-client-flatten": true, |
| 6164 | + "description": "The properties of a ClientEncryptionKey", |
| 6165 | + "$ref": "#/definitions/ClientEncryptionKeyGetProperties" |
| 6166 | + } |
| 6167 | + }, |
| 6168 | + "allOf": [ |
| 6169 | + { |
| 6170 | + "$ref": "#/definitions/ARMProxyResource" |
| 6171 | + } |
| 6172 | + ] |
| 6173 | + }, |
| 6174 | + "ClientEncryptionKeyGetProperties": { |
| 6175 | + "description": "The properties of a ClientEncryptionKey resource", |
| 6176 | + "type": "object", |
| 6177 | + "properties": { |
| 6178 | + "resource": { |
| 6179 | + "allOf": [ |
| 6180 | + { |
| 6181 | + "$ref": "#/definitions/ClientEncryptionKeyResource" |
| 6182 | + }, |
| 6183 | + { |
| 6184 | + "$ref": "#/definitions/ExtendedResourceProperties" |
| 6185 | + } |
| 6186 | + ] |
| 6187 | + } |
| 6188 | + } |
| 6189 | + }, |
5993 | 6190 | "DatabaseAccountGetResults": { |
5994 | 6191 | "description": "An Azure Cosmos DB database account.", |
5995 | 6192 | "type": "object", |
|
7917 | 8114 | } |
7918 | 8115 | } |
7919 | 8116 | }, |
| 8117 | + "ClientEncryptionKeyResource": { |
| 8118 | + "type": "object", |
| 8119 | + "description": "Cosmos DB client encryption key resource object.", |
| 8120 | + "properties": { |
| 8121 | + "encryptionAlgorithm": { |
| 8122 | + "type": "string", |
| 8123 | + "description": "Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data." |
| 8124 | + }, |
| 8125 | + "wrappedDataEncryptionKey": { |
| 8126 | + "type": "string", |
| 8127 | + "format": "byte", |
| 8128 | + "description": "Wrapped (encrypted) form of the key represented as a byte array." |
| 8129 | + }, |
| 8130 | + "keyWrapMetadata": { |
| 8131 | + "description": "Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.", |
| 8132 | + "$ref": "#/definitions/KeyWrapMetadata" |
| 8133 | + } |
| 8134 | + } |
| 8135 | + }, |
| 8136 | + "KeyWrapMetadata": { |
| 8137 | + "type": "object", |
| 8138 | + "description": "Represents key wrap metadata that a key wrapping provider can use to wrap/unwrap a client encryption key.", |
| 8139 | + "properties": { |
| 8140 | + "name": { |
| 8141 | + "type": "string", |
| 8142 | + "description": "The name of associated KeyEncryptionKey (aka CustomerManagedKey)." |
| 8143 | + }, |
| 8144 | + "type": { |
| 8145 | + "type": "string", |
| 8146 | + "description": "ProviderName of KeyStoreProvider." |
| 8147 | + }, |
| 8148 | + "value": { |
| 8149 | + "type": "string", |
| 8150 | + "description": "Reference / link to the KeyEncryptionKey." |
| 8151 | + } |
| 8152 | + } |
| 8153 | + }, |
7920 | 8154 | "SqlDatabaseResource": { |
7921 | 8155 | "type": "object", |
7922 | 8156 | "description": "Cosmos DB SQL database resource object", |
|
9601 | 9835 | "x-ms-parameter-location": "method", |
9602 | 9836 | "description": "Cosmos DB database name." |
9603 | 9837 | }, |
| 9838 | + "clientEncryptionKeyNameParameter": { |
| 9839 | + "name": "clientEncryptionKeyName", |
| 9840 | + "in": "path", |
| 9841 | + "required": true, |
| 9842 | + "type": "string", |
| 9843 | + "x-ms-parameter-location": "method", |
| 9844 | + "description": "Cosmos DB ClientEncryptionKey name." |
| 9845 | + }, |
9604 | 9846 | "containerNameParameter": { |
9605 | 9847 | "name": "containerName", |
9606 | 9848 | "in": "path", |
|
0 commit comments