|
108 | 108 | } |
109 | 109 | } |
110 | 110 | }, |
| 111 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}": { |
| 112 | + "put": { |
| 113 | + "tags": [ |
| 114 | + "TransparentDataEncryption" |
| 115 | + ], |
| 116 | + "operationId": "TransparentDataEncryptions_CreateOrUpdate", |
| 117 | + "description": "Creates or updates a database's transparent data encryption configuration.", |
| 118 | + "x-ms-examples": { |
| 119 | + "Create or update a database's transparent data encryption configuration": { |
| 120 | + "$ref": "./examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json" |
| 121 | + } |
| 122 | + }, |
| 123 | + "parameters": [ |
| 124 | + { |
| 125 | + "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" |
| 126 | + }, |
| 127 | + { |
| 128 | + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" |
| 129 | + }, |
| 130 | + { |
| 131 | + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter" |
| 132 | + }, |
| 133 | + { |
| 134 | + "$ref": "#/parameters/ServerNameParameter" |
| 135 | + }, |
| 136 | + { |
| 137 | + "name": "databaseName", |
| 138 | + "in": "path", |
| 139 | + "required": true, |
| 140 | + "type": "string", |
| 141 | + "description": "The name of the database for which setting the transparent data encryption applies." |
| 142 | + }, |
| 143 | + { |
| 144 | + "$ref": "#/parameters/TransparentDataEncryptionNameParameter" |
| 145 | + }, |
| 146 | + { |
| 147 | + "name": "parameters", |
| 148 | + "in": "body", |
| 149 | + "required": true, |
| 150 | + "schema": { |
| 151 | + "$ref": "#/definitions/TransparentDataEncryption" |
| 152 | + }, |
| 153 | + "description": "The required parameters for creating or updating transparent data encryption." |
| 154 | + } |
| 155 | + ], |
| 156 | + "responses": { |
| 157 | + "200": { |
| 158 | + "description": "OK", |
| 159 | + "schema": { |
| 160 | + "$ref": "#/definitions/TransparentDataEncryption" |
| 161 | + } |
| 162 | + }, |
| 163 | + "201": { |
| 164 | + "description": "Created", |
| 165 | + "schema": { |
| 166 | + "$ref": "#/definitions/TransparentDataEncryption" |
| 167 | + } |
| 168 | + } |
| 169 | + } |
| 170 | + }, |
| 171 | + "get": { |
| 172 | + "tags": [ |
| 173 | + "TransparentDataEncryption" |
| 174 | + ], |
| 175 | + "operationId": "TransparentDataEncryptions_Get", |
| 176 | + "description": "Gets a database's transparent data encryption configuration.", |
| 177 | + "x-ms-examples": { |
| 178 | + "Get a database's transparent data encryption configuration": { |
| 179 | + "$ref": "./examples/DatabaseTransparentDataEncryptionGet.json" |
| 180 | + } |
| 181 | + }, |
| 182 | + "parameters": [ |
| 183 | + { |
| 184 | + "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" |
| 185 | + }, |
| 186 | + { |
| 187 | + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" |
| 188 | + }, |
| 189 | + { |
| 190 | + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter" |
| 191 | + }, |
| 192 | + { |
| 193 | + "$ref": "#/parameters/ServerNameParameter" |
| 194 | + }, |
| 195 | + { |
| 196 | + "name": "databaseName", |
| 197 | + "in": "path", |
| 198 | + "required": true, |
| 199 | + "type": "string", |
| 200 | + "description": "The name of the database for which the transparent data encryption applies." |
| 201 | + }, |
| 202 | + { |
| 203 | + "$ref": "#/parameters/TransparentDataEncryptionNameParameter" |
| 204 | + } |
| 205 | + ], |
| 206 | + "responses": { |
| 207 | + "200": { |
| 208 | + "description": "OK", |
| 209 | + "schema": { |
| 210 | + "$ref": "#/definitions/TransparentDataEncryption" |
| 211 | + } |
| 212 | + } |
| 213 | + } |
| 214 | + } |
| 215 | + }, |
111 | 216 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults": { |
112 | 217 | "get": { |
113 | 218 | "tags": [ |
|
442 | 547 | ], |
443 | 548 | "description": "Represents the response to a list elastic pool database activity request." |
444 | 549 | }, |
| 550 | + "TransparentDataEncryptionProperties": { |
| 551 | + "properties": { |
| 552 | + "status": { |
| 553 | + "type": "string", |
| 554 | + "description": "The status of the database transparent data encryption.", |
| 555 | + "enum": [ |
| 556 | + "Enabled", |
| 557 | + "Disabled" |
| 558 | + ], |
| 559 | + "x-ms-enum": { |
| 560 | + "name": "TransparentDataEncryptionStatus" |
| 561 | + } |
| 562 | + } |
| 563 | + }, |
| 564 | + "description": "Represents the properties of a database transparent data encryption." |
| 565 | + }, |
| 566 | + "TransparentDataEncryption": { |
| 567 | + "properties": { |
| 568 | + "location": { |
| 569 | + "type": "string", |
| 570 | + "readOnly": true, |
| 571 | + "description": "Resource location." |
| 572 | + }, |
| 573 | + "properties": { |
| 574 | + "x-ms-client-flatten": true, |
| 575 | + "$ref": "#/definitions/TransparentDataEncryptionProperties", |
| 576 | + "description": "Represents the properties of the resource." |
| 577 | + } |
| 578 | + }, |
| 579 | + "allOf": [ |
| 580 | + { |
| 581 | + "$ref": "../../../common/v1/types.json#/definitions/ProxyResource" |
| 582 | + } |
| 583 | + ], |
| 584 | + "description": "Represents a database transparent data encryption configuration." |
| 585 | + }, |
445 | 586 | "SloUsageMetric": { |
446 | 587 | "properties": { |
447 | 588 | "serviceLevelObjective": { |
|
633 | 774 | "description": "The name of the server.", |
634 | 775 | "x-ms-parameter-location": "method" |
635 | 776 | }, |
| 777 | + "DatabaseExpandParameter": { |
| 778 | + "name": "$expand", |
| 779 | + "in": "query", |
| 780 | + "required": false, |
| 781 | + "type": "string", |
| 782 | + "description": "A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", |
| 783 | + "x-ms-parameter-location": "method" |
| 784 | + }, |
636 | 785 | "TransparentDataEncryptionNameParameter": { |
637 | 786 | "name": "transparentDataEncryptionName", |
638 | 787 | "in": "path", |
|
0 commit comments